node-switchbot 2.1.0-beta.6 → 2.1.1-beta.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
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
-
## [2.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v2.1.0) (2024-
|
|
5
|
+
## [2.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v2.1.0) (2024-05-14)
|
|
6
6
|
|
|
7
7
|
### What's Changed
|
|
8
8
|
- Add Full Switchbot Lock Support [#232](https://github.com/OpenWonderLabs/node-switchbot/pull/232), Thanks [@brozef](https://github.com/brozef)
|
|
9
|
+
- Fix TypeScript issues & warnings [#239](https://github.com/OpenWonderLabs/node-switchbot/pull/239) [#240](https://github.com/OpenWonderLabs/node-switchbot/pull/240) [#241](https://github.com/OpenWonderLabs/node-switchbot/pull/241), Thanks [@dnicolson](https://github.com/dnicolson)
|
|
10
|
+
- Update Noble [#242](https://github.com/OpenWonderLabs/node-switchbot/pull/242), Thanks [@dnicolson](https://github.com/dnicolson)
|
|
11
|
+
dnicolson
|
|
9
12
|
- Housekeeping and update dependencies
|
|
10
13
|
|
|
11
14
|
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.3...v2.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"woiosensorth.d.ts","sourceRoot":"","sources":["../../src/device/woiosensorth.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,YAAa,SAAQ,eAAe;IAC/C,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"woiosensorth.d.ts","sourceRoot":"","sources":["../../src/device/woiosensorth.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,YAAa,SAAQ,eAAe;IAC/C,MAAM,CAAC,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS;;;;;;;;;;;CAyC5H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"woiosensorth.js","sourceRoot":"","sources":["../../src/device/woiosensorth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,OAAO,YAAa,SAAQ,eAAe;IAC/C,MAAM,CAAC,gBAAgB,CAAC,cAAsB,EAAE,mBAA2B,EAAE,KAA8C;QACzH,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChC,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;gBACzC,KAAK,CACH,gEAAgE,cAAc,CAAC,MAAM,SAAS,CAC/F,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,mBAAmB,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;YACtC,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;gBACzC,KAAK,CACH,qEAAqE,mBAAmB,CAAC,MAAM,UAAU,CAC1G,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,QAAQ,GAAG,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,mBAAmB,CAAC,SAA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AAI,CAAC,CAAC,CAAC,KAAK,EAAE,yBAAyB;YAC3E,QAAQ,EAAE,QAAQ,GAAG,UAAU;YAC/B,OAAO,EAAE,OAAO,GAAG,UAAU;SAC9B,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import pluginJs from "@eslint/js";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
{ languageOptions: { globals: globals.browser } },
|
|
8
|
+
pluginJs.configs.recommended,
|
|
9
|
+
...tseslint.configs.recommended,
|
|
10
|
+
{
|
|
11
|
+
ignores: [".dist/*"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
rules: {
|
|
15
|
+
"quotes": [
|
|
16
|
+
"warn",
|
|
17
|
+
"single"
|
|
18
|
+
],
|
|
19
|
+
"indent": [
|
|
20
|
+
"warn",
|
|
21
|
+
2,
|
|
22
|
+
{
|
|
23
|
+
"SwitchCase": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"linebreak-style": [
|
|
27
|
+
"warn",
|
|
28
|
+
"unix"
|
|
29
|
+
],
|
|
30
|
+
"semi": [
|
|
31
|
+
"warn",
|
|
32
|
+
"always"
|
|
33
|
+
],
|
|
34
|
+
"comma-dangle": [
|
|
35
|
+
"warn",
|
|
36
|
+
"always-multiline"
|
|
37
|
+
],
|
|
38
|
+
"dot-notation": "off",
|
|
39
|
+
"eqeqeq": "warn",
|
|
40
|
+
"curly": [
|
|
41
|
+
"warn",
|
|
42
|
+
"all"
|
|
43
|
+
],
|
|
44
|
+
"brace-style": [
|
|
45
|
+
"warn"
|
|
46
|
+
],
|
|
47
|
+
"prefer-arrow-callback": [
|
|
48
|
+
"warn"
|
|
49
|
+
],
|
|
50
|
+
"max-len": [
|
|
51
|
+
"warn",
|
|
52
|
+
150
|
|
53
|
+
],
|
|
54
|
+
"no-console": [
|
|
55
|
+
"warn"
|
|
56
|
+
], // use the provided Homebridge log method instead
|
|
57
|
+
"no-non-null-assertion": [
|
|
58
|
+
"off"
|
|
59
|
+
],
|
|
60
|
+
"comma-spacing": [
|
|
61
|
+
"error"
|
|
62
|
+
],
|
|
63
|
+
"no-multi-spaces": [
|
|
64
|
+
"warn",
|
|
65
|
+
{
|
|
66
|
+
"ignoreEOLComments": true
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"no-trailing-spaces": [
|
|
70
|
+
"warn"
|
|
71
|
+
],
|
|
72
|
+
"lines-between-class-members": [
|
|
73
|
+
"warn",
|
|
74
|
+
"always",
|
|
75
|
+
{
|
|
76
|
+
"exceptAfterSingleLine": true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
80
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
81
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
82
|
+
"@typescript-eslint/no-explicit-any": "off"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-switchbot",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1-beta.0",
|
|
4
4
|
"description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
|
|
5
5
|
"homepage": "https://github.com/OpenWonderLabs/node-switchbot",
|
|
6
6
|
"author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
|
|
@@ -42,13 +42,19 @@
|
|
|
42
42
|
"@abandonware/bluetooth-hci-socket": "^0.5.3-12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
45
|
+
"@eslint/js": "^9.3.0",
|
|
46
|
+
"@stylistic/eslint-plugin-js": "^2.1.0",
|
|
47
|
+
"@types/eslint__js": "^8.42.3",
|
|
48
|
+
"@types/node": "^20.12.12",
|
|
49
|
+
"eslint": "^9.3.0",
|
|
50
|
+
"globals": "^15.2.0",
|
|
51
|
+
"homebridge": "^1.8.2",
|
|
52
|
+
"homebridge-config-ui-x": "4.56.2",
|
|
53
|
+
"nodemon": "^3.1.0",
|
|
49
54
|
"npm-check-updates": "^16.14.20",
|
|
50
|
-
"rimraf": "^5.0.
|
|
55
|
+
"rimraf": "^5.0.7",
|
|
51
56
|
"ts-node": "^10.9.2",
|
|
52
|
-
"typescript": "^5.4.5"
|
|
57
|
+
"typescript": "^5.4.5",
|
|
58
|
+
"typescript-eslint": "^8.0.0-alpha.13"
|
|
53
59
|
}
|
|
54
60
|
}
|