node-red-contrib-blynk-ws
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -15,6 +15,14 @@ { | ||
"plugins": [ | ||
"progress", | ||
"html", | ||
"json" | ||
], | ||
"rules": { | ||
"progress/activate": [1, { | ||
"printEvery": 0, | ||
"showSlowStats": true, | ||
"maxSlowFiles":5, | ||
"fullPath": false | ||
}], | ||
"prefer-destructuring": "off", | ||
@@ -24,4 +32,5 @@ "no-plusplus": "off", | ||
"no-prototype-builtins": "off", | ||
"no-multiple-empty-lines": "off", | ||
"max-len": [2, {"code": 140, "ignoreUrls": true}] | ||
} | ||
} |
@@ -9,2 +9,10 @@ # Changelog | ||
## [1.0.1] - 2019-08-28 | ||
### Changed | ||
- Update dependancies for security | ||
- Update esLint + airbnb base | ||
### Fixed | ||
- Bridge node - Regexp validation for auth token | ||
## [1.0.0] - 2019-07-27 | ||
@@ -185,3 +193,4 @@ ### Added | ||
[Unreleased]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/1.0.0...HEAD | ||
[Unreleased]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/1.0.1...HEAD | ||
[1.0.1]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/1.0.0...1.0.1 | ||
[1.0.0]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.2...1.0.0 | ||
@@ -188,0 +197,0 @@ [0.9.2]: https://github.com/gablau/node-red-contrib-blynk-ws/compare/0.9.1...0.9.2 |
@@ -12,3 +12,3 @@ /* blynk helper function */ | ||
// return Object.keys(obj).find(key => obj[key] === value); //javascript ES6 only | ||
return Object.keys(obj).filter(key => obj[key] === value)[0]; | ||
return Object.keys(obj).filter((key) => obj[key] === value)[0]; | ||
} | ||
@@ -15,0 +15,0 @@ |
@@ -16,4 +16,4 @@ const ws = require('ws'); | ||
module.exports = (RED) => { | ||
const LIBRARY_VERSION = '1.0.0'; // node-red lib version | ||
const LIBRARY_DATE = '2019-07-27'; // node-red lib date | ||
const LIBRARY_VERSION = '1.0.1'; // node-red lib version | ||
const LIBRARY_DATE = '2019-08-28'; // node-red lib date | ||
@@ -51,3 +51,3 @@ const RECONNECT_TIMEOUT_SECONDS = 5; // number of seconds for reconnection when disconnected or socket error | ||
if (typeof this.dbg_pins === 'string') { | ||
const tmpPins = this.dbg_pins.split(',').map(m => parseInt(m.trim(), 10)); | ||
const tmpPins = this.dbg_pins.split(',').map((m) => parseInt(m.trim(), 10)); | ||
for (let i = 0; i < tmpPins.length; i++) { | ||
@@ -286,3 +286,3 @@ tmpPins[i] = +tmpPins[i]; | ||
const skipProperty = ['BLYNK_VERSION', 'BLYNK_HEARTBEAT', 'BLYNK_PROTOCOL_MAX_LENGTH', 'BLYNK_MAX_CMD_IN_MESSAGE']; | ||
const validProperty = Object.keys(blynkLib).filter(item => (skipProperty.indexOf(item) === -1)); | ||
const validProperty = Object.keys(blynkLib).filter((item) => (skipProperty.indexOf(item) === -1)); | ||
for (let i = 0; i < validProperty.length; i++) { | ||
@@ -289,0 +289,0 @@ BlynkClientNode.prototype[validProperty[i]] = blynkLib[validProperty[i]]; |
{ | ||
"name": "node-red-contrib-blynk-ws", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Node Red integration with Blynk App and Server through websockets", | ||
"scripts": { | ||
"lint": "eslint ./nodes/* ./libs/*", | ||
"lint": "eslint \"{libs,nodes}/**/*.{js,json,html}\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -33,7 +33,8 @@ }, | ||
"devDependencies": { | ||
"eslint": "^6.0.1", | ||
"eslint-config-airbnb-base": "^13.2.0", | ||
"eslint": "^6.x.x", | ||
"eslint-config-airbnb-base": "^14.x.x", | ||
"eslint-plugin-html": "^6.0.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-json": "^1.4.0" | ||
"eslint-plugin-import": "^2.x.x", | ||
"eslint-plugin-json": "^1.4.0", | ||
"eslint-plugin-progress": "github:gablau/eslint-plugin-progress" | ||
}, | ||
@@ -40,0 +41,0 @@ "node-red": { |
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
185001
64
2604
1
6