node-switchbot 1.8.1-beta.7 → 1.8.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/switchbot.js +0 -4
- package/package.json +2 -2
package/lib/switchbot.js
CHANGED
|
@@ -207,8 +207,6 @@ class Switchbot {
|
|
|
207
207
|
return;
|
|
208
208
|
default: // 'resetting', 'unknown'
|
|
209
209
|
this.noble.once("stateChange", (state) => {
|
|
210
|
-
require("events").EventEmitter.prototype.setMaxListeners(0);
|
|
211
|
-
require("events").setMaxListeners(0);
|
|
212
210
|
if (state === "poweredOn") {
|
|
213
211
|
resolve();
|
|
214
212
|
} else {
|
|
@@ -377,8 +375,6 @@ class Switchbot {
|
|
|
377
375
|
},
|
|
378
376
|
false
|
|
379
377
|
);
|
|
380
|
-
require("events").EventEmitter.prototype.setMaxListeners(0);
|
|
381
|
-
require("events").setMaxListeners(0);
|
|
382
378
|
if (!valid) {
|
|
383
379
|
reject(new Error(parameterChecker.error.message));
|
|
384
380
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-switchbot",
|
|
3
|
-
"version": "1.8.1-beta.
|
|
3
|
+
"version": "1.8.1-beta.8",
|
|
4
4
|
"description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
|
|
5
5
|
"main": "./lib/switchbot.js",
|
|
6
6
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"readmeFilename": "README.md",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@
|
|
38
|
+
"@abandonware/noble": "1.9.2-15"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"npm-check-updates": "^16.7.5"
|