node-switchbot 1.4.2-beta.4 → 1.4.2-beta.6

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.
@@ -2,9 +2,9 @@
2
2
  const SwitchbotDevice = require("./switchbot-device.js");
3
3
 
4
4
  /**
5
- * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/plugmini.md
5
+ * @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/colorbulb.md
6
6
  */
7
- class SwitchbotDeviceWoPlugMini extends SwitchbotDevice {
7
+ class SwitchbotDeviceWoColorBulb extends SwitchbotDevice {
8
8
  /**
9
9
  * @returns {Promise<boolean>} resolves with a boolean that tells whether the plug in ON(true) or OFF(false)
10
10
  */
@@ -78,4 +78,4 @@ class SwitchbotDeviceWoPlugMini extends SwitchbotDevice {
78
78
  }
79
79
  }
80
80
 
81
- module.exports = SwitchbotDeviceWoPlugMini;
81
+ module.exports = SwitchbotDeviceWoColorBulb;
package/lib/switchbot.js CHANGED
@@ -10,6 +10,7 @@ const SwitchbotDeviceWoContact = require("./switchbot-device-wocontact.js");
10
10
  const SwitchbotDeviceWoSensorTH = require("./switchbot-device-wosensorth.js");
11
11
  const SwitchbotDeviceWoHumi = require("./switchbot-device-wohumi.js");
12
12
  const SwitchbotDeviceWoPlugMini = require("./switchbot-device-woplugmini.js");
13
+ const SwitchbotDeviceWoColorBulb = require("./switchbot-device-wocolorbulb.js");
13
14
 
14
15
  class Switchbot {
15
16
  /* ------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
- "version": "1.4.2-beta.4",
3
+ "version": "1.4.2-beta.6",
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": [