@homebridge-plugins/homebridge-eufy-security 4.6.0-beta.49 → 4.6.0-beta.50
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/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const LIB_VERSION = "4.6.0-beta.
|
|
1
|
+
export const LIB_VERSION = "4.6.0-beta.50";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -250,15 +250,17 @@ const RecordingsView = {
|
|
|
250
250
|
pos += chunk.length;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
let binary = '';
|
|
254
|
+
for (let i = 0; i < combined.length; i++) {
|
|
255
|
+
binary += String.fromCharCode(combined[i]);
|
|
256
|
+
}
|
|
257
|
+
const base64 = btoa(binary);
|
|
255
258
|
const a = document.createElement('a');
|
|
256
|
-
a.href =
|
|
259
|
+
a.href = 'data:application/octet-stream;base64,' + base64;
|
|
257
260
|
a.download = filename;
|
|
258
261
|
document.body.appendChild(a);
|
|
259
262
|
a.click();
|
|
260
263
|
document.body.removeChild(a);
|
|
261
|
-
URL.revokeObjectURL(url);
|
|
262
264
|
|
|
263
265
|
homebridge.toast.success('Downloaded: ' + filename);
|
|
264
266
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge Eufy Security",
|
|
3
3
|
"name": "@homebridge-plugins/homebridge-eufy-security",
|
|
4
|
-
"version": "4.6.0-beta.
|
|
4
|
+
"version": "4.6.0-beta.50",
|
|
5
5
|
"description": "Control Eufy Security from homebridge.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "Apache-2.0",
|