Compare commits

...

5 Commits

Author SHA1 Message Date
6843316518 version bump
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2021-04-29 20:18:47 +02:00
b393e09274 drone npm publish
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-29 20:17:41 +02:00
84521c5130 fixed array paramter check
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-29 20:14:02 +02:00
c1c16cdfe0 html cleanup
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-29 18:25:59 +02:00
955e373261 set main in package.json 2021-04-28 18:07:15 +02:00
5 changed files with 174 additions and 161 deletions

View File

@@ -7,3 +7,15 @@ steps:
commands: commands:
- yarn install - yarn install
- yarn run build - yarn run build
- name: publish
image: plugins/npm
settings:
username:
from_secret: NPM_USERNAME
password:
from_secret: NPM_PASSWORD
email:
from_secret: NPM_EMAIL
when:
event:
- tag

View File

@@ -1,8 +1,8 @@
{ {
"name": "node-red-contrib-teamspeak", "name": "node-red-contrib-teamspeak",
"version": "1.0.0", "version": "1.0.1",
"description": "Node RED teamspeak node", "description": "Node-RED teamspeak node",
"main": "index.js", "main": "dist/nodes/TS3Config/TS3Config.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "tsc --build && copyfiles -u 2 './src/nodes/**/*.{png,svg}' ./dist/nodes/ && node build/build.js" "build": "tsc --build && copyfiles -u 2 './src/nodes/**/*.{png,svg}' ./dist/nodes/ && node build/build.js"

View File

@@ -32,7 +32,7 @@ const nodeInit: NodeInitializer = (RED): void => {
if (typeof member === "function"){ if (typeof member === "function"){
let args: any[] = [] let args: any[] = []
if (msg.payload instanceof Array){ if (Array.isArray(msg.payload)){
args = msg.payload args = msg.payload
}else{ }else{
args = [msg.payload] args = [msg.payload]

View File

@@ -157,6 +157,7 @@
</select> </select>
<div class="form-row"> <div class="form-row">
You can find documentation for all functions You can find documentation for all functions
<a target="_blank" href="https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.teamspeak-2.html#on"> here</a> <a target="_blank"
href="https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.teamspeak-2.html#on"> here</a>
</div> </div>
</div> </div>