@george.talusan/eufy-robovac-js 0.0.14 → 0.0.15
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/RoboVac.js +3 -2
- package/package.json +5 -1
- package/.claude/settings.local.json +0 -8
- package/.github/dependabot.yml +0 -12
- package/.github/workflows/npm-publish.yml +0 -33
- package/.nvmrc +0 -1
- package/eslint.config.mjs +0 -8
package/lib/RoboVac.js
CHANGED
|
@@ -72,11 +72,12 @@ class RoboVac extends EventEmitter
|
|
|
72
72
|
{
|
|
73
73
|
dps = {};
|
|
74
74
|
|
|
75
|
-
constructor({ ip, deviceId, localKey }) {
|
|
75
|
+
constructor({ ip, deviceId, localKey, version = '3.3' }) {
|
|
76
76
|
super();
|
|
77
77
|
this.ip = ip;
|
|
78
78
|
this.deviceId = deviceId;
|
|
79
79
|
this.localKey = localKey;
|
|
80
|
+
this.version = version;
|
|
80
81
|
this.dps = {};
|
|
81
82
|
this.connected = false;
|
|
82
83
|
}
|
|
@@ -86,7 +87,7 @@ class RoboVac extends EventEmitter
|
|
|
86
87
|
id: this.deviceId,
|
|
87
88
|
key: this.localKey,
|
|
88
89
|
ip: this.ip,
|
|
89
|
-
version:
|
|
90
|
+
version: this.version,
|
|
90
91
|
issueRefreshOnConnect: true,
|
|
91
92
|
});
|
|
92
93
|
|
package/package.json
CHANGED
package/.github/dependabot.yml
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: publish eufy-robovac-js
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v7
|
|
15
|
-
- uses: actions/setup-node@v6
|
|
16
|
-
with:
|
|
17
|
-
node-version: 20
|
|
18
|
-
- run: npm ci
|
|
19
|
-
- run: npm test
|
|
20
|
-
|
|
21
|
-
publish-npm:
|
|
22
|
-
needs: build
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v7
|
|
26
|
-
- uses: actions/setup-node@v6
|
|
27
|
-
with:
|
|
28
|
-
node-version: 20
|
|
29
|
-
registry-url: https://registry.npmjs.org/
|
|
30
|
-
- run: npm ci
|
|
31
|
-
- run: npm publish
|
|
32
|
-
env:
|
|
33
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22
|
package/eslint.config.mjs
DELETED