eufy-security-client 3.2.0 → 3.5.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/README.md +29 -0
- package/build/eufysecurity.js +5 -5
- package/build/eufysecurity.js.map +1 -1
- package/build/http/api.js +21 -21
- package/build/http/api.js.map +1 -1
- package/build/http/device.d.ts +3 -0
- package/build/http/device.js +64 -44
- package/build/http/device.js.map +1 -1
- package/build/http/parameter.d.ts +2 -0
- package/build/http/parameter.js +42 -37
- package/build/http/parameter.js.map +1 -1
- package/build/http/station.js +49 -12
- package/build/http/station.js.map +1 -1
- package/build/http/types.d.ts +4 -2
- package/build/http/types.js +79 -2
- package/build/http/types.js.map +1 -1
- package/build/mqtt/service.js +2 -2
- package/build/mqtt/service.js.map +1 -1
- package/build/p2p/session.js +15 -12
- package/build/p2p/session.js.map +1 -1
- package/build/push/service.js +8 -4
- package/build/push/service.js.map +1 -1
- package/build/push/utils.js +2 -0
- package/build/push/utils.js.map +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
[](https://nodei.co/npm/eufy-security-client/)
|
|
13
13
|
|
|
14
|
+
Join us on Discord:
|
|
15
|
+
|
|
16
|
+
<a target="_blank" href="https://discord.gg/5wjQ2asb64"><img src="https://dcbadge.limes.pink/api/server/5wjQ2asb64" alt="" /></a>
|
|
17
|
+
|
|
14
18
|
The development of this shared library was inspired by the work of the following people:
|
|
15
19
|
|
|
16
20
|
* FuzzyMistborn (<https://github.com/FuzzyMistborn/python-eufy-security>)
|
|
@@ -95,8 +99,33 @@ If more devices work (or also not) please report them by opening a GitHub issue.
|
|
|
95
99
|
|
|
96
100
|
Please use GitHub issues for this.
|
|
97
101
|
|
|
102
|
+
## Deployment
|
|
103
|
+
|
|
104
|
+
Instructions aimed at maintainers for deploying a new version: [Deployment](docs/deployment.md)
|
|
105
|
+
|
|
98
106
|
## Changelog
|
|
99
107
|
|
|
108
|
+
### 3.4.0 (2025-08-01)
|
|
109
|
+
|
|
110
|
+
* Bugfix/google gcm by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/660
|
|
111
|
+
* OPT: revert GCM fix by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/662
|
|
112
|
+
* FIX: GCM error by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/665
|
|
113
|
+
* Master > Develop sync by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/667
|
|
114
|
+
* Develop by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/666
|
|
115
|
+
* Add preset support for T8423 by @martin-genzel in https://github.com/bropat/eufy-security-client/pull/638
|
|
116
|
+
|
|
117
|
+
### 3.3.0 (not released)
|
|
118
|
+
|
|
119
|
+
* Develop > Master in https://github.com/bropat/eufy-security-client/pull/606
|
|
120
|
+
* Develop > Master in https://github.com/bropat/eufy-security-client/pull/608
|
|
121
|
+
* Develop > Master in https://github.com/bropat/eufy-security-client/pull/616
|
|
122
|
+
* Develop > Master in https://github.com/bropat/eufy-security-client/pull/620
|
|
123
|
+
* Bump 3.2.0 by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/621
|
|
124
|
+
* Deployment instructions by @ChayoteJarocho in https://github.com/bropat/eufy-security-client/pull/625
|
|
125
|
+
* NEW: IndoorCam P&T E30 - (T8417) by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/627
|
|
126
|
+
* Develop > Master by @martijnpoppen in https://github.com/bropat/eufy-security-client/pull/646
|
|
127
|
+
* fix: Prevent crash in getLockSequenceNumber when devices is null by @markgrovs in https://github.com/bropat/eufy-security-client/pull/664
|
|
128
|
+
|
|
100
129
|
### 3.2.0 (2025-04-02)
|
|
101
130
|
|
|
102
131
|
* (martijnpoppen) FIX: Indoor Cam P&T sw update 2.3.1.2 on/off #604
|
package/build/eufysecurity.js
CHANGED
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.EufySecurity = void 0;
|
|
30
30
|
const tiny_typed_emitter_1 = require("tiny-typed-emitter");
|
|
31
|
-
const
|
|
31
|
+
const fs_1 = require("fs");
|
|
32
32
|
const path = __importStar(require("path"));
|
|
33
33
|
const events_1 = __importDefault(require("events"));
|
|
34
34
|
const api_1 = require("./http/api");
|
|
@@ -143,7 +143,7 @@ class EufySecurity extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
143
143
|
if (this.config.persistentDir === undefined) {
|
|
144
144
|
this.config.persistentDir = path.resolve(__dirname, "../../..");
|
|
145
145
|
}
|
|
146
|
-
else if (!
|
|
146
|
+
else if (!(0, fs_1.existsSync)(this.config.persistentDir)) {
|
|
147
147
|
this.config.persistentDir = path.resolve(__dirname, "../../..");
|
|
148
148
|
}
|
|
149
149
|
if (this.config.persistentData) {
|
|
@@ -153,8 +153,8 @@ class EufySecurity extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
153
153
|
this.persistentFile = path.join(this.config.persistentDir, "persistent.json");
|
|
154
154
|
}
|
|
155
155
|
try {
|
|
156
|
-
if (!this.config.persistentData &&
|
|
157
|
-
const fileContent =
|
|
156
|
+
if (!this.config.persistentData && (0, fs_1.statSync)(this.persistentFile).isFile()) {
|
|
157
|
+
const fileContent = (0, fs_1.readFileSync)(this.persistentFile, "utf8");
|
|
158
158
|
this.persistentData = JSON.parse(fileContent);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -902,7 +902,7 @@ class EufySecurity extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
902
902
|
this.emit("persistent data", JSON.stringify(this.persistentData));
|
|
903
903
|
}
|
|
904
904
|
else {
|
|
905
|
-
|
|
905
|
+
(0, fs_1.writeFileSync)(this.persistentFile, JSON.stringify(this.persistentData));
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
catch (err) {
|