@etsoo/appscript 1.5.55 → 1.5.56
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/cjs/app/CoreApp.js +2 -2
- package/lib/mjs/app/CoreApp.js +2 -2
- package/package.json +1 -1
- package/src/app/CoreApp.ts +2 -2
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -44,6 +44,7 @@ class CoreApp {
|
|
|
44
44
|
}
|
|
45
45
|
set deviceId(value) {
|
|
46
46
|
this._deviceId = value;
|
|
47
|
+
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* Label delegate
|
|
@@ -641,8 +642,7 @@ class CoreApp {
|
|
|
641
642
|
if (passphrase == null)
|
|
642
643
|
return false;
|
|
643
644
|
// Update device id and cache it
|
|
644
|
-
this.
|
|
645
|
-
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
645
|
+
this.deviceId = data.deviceId;
|
|
646
646
|
// Devices
|
|
647
647
|
const devices = this.storage.getPersistedData(this.fields.devices, []);
|
|
648
648
|
devices.push(this.getDeviceId());
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -41,6 +41,7 @@ export class CoreApp {
|
|
|
41
41
|
}
|
|
42
42
|
set deviceId(value) {
|
|
43
43
|
this._deviceId = value;
|
|
44
|
+
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* Label delegate
|
|
@@ -638,8 +639,7 @@ export class CoreApp {
|
|
|
638
639
|
if (passphrase == null)
|
|
639
640
|
return false;
|
|
640
641
|
// Update device id and cache it
|
|
641
|
-
this.
|
|
642
|
-
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
642
|
+
this.deviceId = data.deviceId;
|
|
643
643
|
// Devices
|
|
644
644
|
const devices = this.storage.getPersistedData(this.fields.devices, []);
|
|
645
645
|
devices.push(this.getDeviceId());
|
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -176,6 +176,7 @@ export abstract class CoreApp<
|
|
|
176
176
|
}
|
|
177
177
|
protected set deviceId(value: string) {
|
|
178
178
|
this._deviceId = value;
|
|
179
|
+
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
/**
|
|
@@ -980,8 +981,7 @@ export abstract class CoreApp<
|
|
|
980
981
|
if (passphrase == null) return false;
|
|
981
982
|
|
|
982
983
|
// Update device id and cache it
|
|
983
|
-
this.
|
|
984
|
-
this.storage.setData(this.fields.deviceId, this._deviceId);
|
|
984
|
+
this.deviceId = data.deviceId;
|
|
985
985
|
|
|
986
986
|
// Devices
|
|
987
987
|
const devices = this.storage.getPersistedData<string[]>(
|