@lumiastream/tapo-cove 3.12.2 → 3.13.0
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/CHANGELOG.md +7 -0
- package/dist/index.js +2 -7
- package/dist/index.mjs +2 -7
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.13.0](https://github.com/lumiastream/rgb/compare/v3.12.2...v3.13.0) (2024-02-29)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- move from fetch work to axios ([07e5dac](https://github.com/lumiastream/rgb/commit/07e5dac313cf1f00845a29918c1f352201eb3a34))
|
|
11
|
+
- tapo does not need to decrypt response ([36f7b4c](https://github.com/lumiastream/rgb/commit/36f7b4c5bc4a9d7553c1090a0c08a9f76fe9ae19))
|
|
12
|
+
|
|
6
13
|
## [3.12.2](https://github.com/lumiastream/rgb/compare/v3.12.1...v3.12.2) (2023-10-26)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
package/dist/index.js
CHANGED
|
@@ -427,11 +427,7 @@ var _TapoApi = class _TapoApi {
|
|
|
427
427
|
if (response.status !== 200) {
|
|
428
428
|
throw new Error("[KLAP] Request failed");
|
|
429
429
|
}
|
|
430
|
-
|
|
431
|
-
return {
|
|
432
|
-
response,
|
|
433
|
-
body: data
|
|
434
|
-
};
|
|
430
|
+
return true;
|
|
435
431
|
});
|
|
436
432
|
this.sendPower = (config) => {
|
|
437
433
|
this.sendState({ device: config.device, state: new LightState({ on: config.power }) });
|
|
@@ -620,7 +616,7 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
620
616
|
throwErrorIfFound(response.data);
|
|
621
617
|
const devices = [];
|
|
622
618
|
const localDevices = yield (0, import_local_devices.default)({ skipNameResolution: true });
|
|
623
|
-
(_a = response.data.result) == null ? void 0 : _a.deviceList.
|
|
619
|
+
(_a = response.data.result) == null ? void 0 : _a.deviceList.forEach((deviceInfo) => __async(void 0, null, function* () {
|
|
624
620
|
var _a2, _b;
|
|
625
621
|
if (!deviceInfo.ip) {
|
|
626
622
|
const findableMac = deviceInfo.deviceMac.replace(/:/g, "").toUpperCase();
|
|
@@ -631,7 +627,6 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
631
627
|
return;
|
|
632
628
|
}
|
|
633
629
|
}
|
|
634
|
-
console.log("deviceInfo: ", deviceInfo);
|
|
635
630
|
switch (deviceInfo.deviceType) {
|
|
636
631
|
case "IOT.SMARTBULB":
|
|
637
632
|
case "SMART.TAPOBULB": {
|
package/dist/index.mjs
CHANGED
|
@@ -395,11 +395,7 @@ var _TapoApi = class _TapoApi {
|
|
|
395
395
|
if (response.status !== 200) {
|
|
396
396
|
throw new Error("[KLAP] Request failed");
|
|
397
397
|
}
|
|
398
|
-
|
|
399
|
-
return {
|
|
400
|
-
response,
|
|
401
|
-
body: data
|
|
402
|
-
};
|
|
398
|
+
return true;
|
|
403
399
|
});
|
|
404
400
|
this.sendPower = (config) => {
|
|
405
401
|
this.sendState({ device: config.device, state: new LightState({ on: config.power }) });
|
|
@@ -588,7 +584,7 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
588
584
|
throwErrorIfFound(response.data);
|
|
589
585
|
const devices = [];
|
|
590
586
|
const localDevices = yield findLocalDevices({ skipNameResolution: true });
|
|
591
|
-
(_a = response.data.result) == null ? void 0 : _a.deviceList.
|
|
587
|
+
(_a = response.data.result) == null ? void 0 : _a.deviceList.forEach((deviceInfo) => __async(void 0, null, function* () {
|
|
592
588
|
var _a2, _b;
|
|
593
589
|
if (!deviceInfo.ip) {
|
|
594
590
|
const findableMac = deviceInfo.deviceMac.replace(/:/g, "").toUpperCase();
|
|
@@ -599,7 +595,6 @@ var discover = (config) => __async(void 0, null, function* () {
|
|
|
599
595
|
return;
|
|
600
596
|
}
|
|
601
597
|
}
|
|
602
|
-
console.log("deviceInfo: ", deviceInfo);
|
|
603
598
|
switch (deviceInfo.deviceType) {
|
|
604
599
|
case "IOT.SMARTBULB":
|
|
605
600
|
case "SMART.TAPOBULB": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiastream/tapo-cove",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,10 +11,9 @@
|
|
|
11
11
|
"lint": "tsc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lumiastream/fetch-cove": "^3.12.0",
|
|
15
14
|
"@lumiastream/lumia-rgb-types": "^3.11.0",
|
|
16
|
-
"@lumiastream/lumia-rgb-utils": "^3.
|
|
17
|
-
"axios": "
|
|
15
|
+
"@lumiastream/lumia-rgb-utils": "^3.13.0",
|
|
16
|
+
"axios": "*",
|
|
18
17
|
"crypto": "1.0.1",
|
|
19
18
|
"local-devices": "^4.0.0"
|
|
20
19
|
},
|
|
@@ -24,5 +23,5 @@
|
|
|
24
23
|
"tsup": "*",
|
|
25
24
|
"typescript": "*"
|
|
26
25
|
},
|
|
27
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "66456bcf21aaf0d90f63020ad705d029c78aa737"
|
|
28
27
|
}
|