@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 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: '3.3',
90
+ version: this.version,
90
91
  issueRefreshOnConnect: true,
91
92
  });
92
93
 
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@george.talusan/eufy-robovac-js",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./lib/RoboVac.js"
7
7
  },
8
+ "files": [
9
+ "lib",
10
+ "README.md"
11
+ ],
8
12
  "engines": {
9
13
  "node": ">=22"
10
14
  },
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(rtk ls *)",
5
- "Bash(node *)"
6
- ]
7
- }
8
- }
@@ -1,12 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "npm"
4
- directory: "/"
5
- schedule:
6
- interval: "weekly"
7
- open-pull-requests-limit: 10
8
-
9
- - package-ecosystem: "github-actions"
10
- directory: "/"
11
- schedule:
12
- interval: "weekly"
@@ -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
@@ -1,8 +0,0 @@
1
- import globals from "globals";
2
- import pluginJs from "@eslint/js";
3
-
4
- export default [
5
- {files: ["**/*.js"], languageOptions: {sourceType: "module"}},
6
- {languageOptions: { globals: globals.browser }},
7
- pluginJs.configs.recommended,
8
- ];