Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
@@ -23,8 +23,7 @@ 'use strict'; | ||
this.address = address; | ||
this.args = []; | ||
args.forEach(arg => this.append(arg)); | ||
this.args = args; | ||
} | ||
append(arg) { | ||
var argOut; | ||
let argOut; | ||
switch (typeof arg) { | ||
@@ -43,6 +42,4 @@ case 'object': | ||
argOut = new Argument('integer', arg); | ||
this.args.push(argOut); | ||
} else { | ||
argOut = new Argument('float', arg); | ||
this.args.push(argOut); | ||
} | ||
@@ -52,7 +49,5 @@ break; | ||
argOut = new Argument('string', arg); | ||
this.args.push(argOut); | ||
break; | ||
case 'boolean': | ||
argOut = new Argument('boolean', arg); | ||
this.args.push(argOut); | ||
break; | ||
@@ -62,2 +57,3 @@ default: | ||
} | ||
if (argOut) this.args.push(argOut); | ||
} | ||
@@ -197,3 +193,2 @@ } | ||
data = address.decode(data); | ||
if (data.length <= 0) { | ||
@@ -200,0 +195,0 @@ return message; |
{ | ||
"name": "node-osc", | ||
"description": "pyOSC inspired library", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0-beta.1", | ||
"main": "./dist/bundle.js", | ||
"exports": { | ||
"default": "./lib/index.mjs", | ||
"require": "./dist/bundle.js" | ||
"require": "./dist/bundle.js", | ||
"default": "./lib/index.mjs" | ||
}, | ||
@@ -22,5 +22,3 @@ "author": { | ||
"test": "npm run lint && npm run build && npm run tap", | ||
"tap": "tap --no-esm --node-arg=--experimental-modules test/test-*{.js,.mjs}", | ||
"coverage": "npm run tap -- --coverage", | ||
"coverage-html": "npm run tap -- --coverage-report=html", | ||
"tap": "c8 tap --no-coverage --no-esm --node-arg=--experimental-modules test/test-*{.js,.mjs}", | ||
"lint": "eslint lib/* test/* examples/*" | ||
@@ -46,2 +44,3 @@ }, | ||
"devDependencies": { | ||
"c8": "^6.0.1", | ||
"eslint": "^6.0.1", | ||
@@ -48,0 +47,0 @@ "rollup": "^1.27.9", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1079
3
57392
4
24