@etsoo/appscript 1.1.94 → 1.1.98

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.
@@ -102,7 +102,7 @@ class CoreAppTest extends CoreApp<IAppSettings, {}, NotificationCallProps> {
102
102
  },
103
103
  createClient(),
104
104
  container,
105
- new WindowStorage([]),
105
+ new WindowStorage([], (_field, data, _index) => data),
106
106
  'SmartERP'
107
107
  );
108
108
  }
@@ -228,7 +228,7 @@ class CoreApp {
228
228
  return;
229
229
  // Update device id and cache it
230
230
  this._deviceId = data.deviceId;
231
- this.storage.setData(CoreApp.deviceIdField, this.deviceId);
231
+ this.storage.setData(CoreApp.deviceIdField, this._deviceId);
232
232
  // Current passphrase
233
233
  this.passphrase = passphrase;
234
234
  this.storage.setData(CoreApp.devicePassphraseField, this.encrypt(passphrase, this.name));
@@ -225,7 +225,7 @@ export class CoreApp {
225
225
  return;
226
226
  // Update device id and cache it
227
227
  this._deviceId = data.deviceId;
228
- this.storage.setData(CoreApp.deviceIdField, this.deviceId);
228
+ this.storage.setData(CoreApp.deviceIdField, this._deviceId);
229
229
  // Current passphrase
230
230
  this.passphrase = passphrase;
231
231
  this.storage.setData(CoreApp.devicePassphraseField, this.encrypt(passphrase, this.name));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.94",
3
+ "version": "1.1.98",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.0.95",
56
56
  "@etsoo/restclient": "^1.0.63",
57
- "@etsoo/shared": "^1.0.84",
57
+ "@etsoo/shared": "^1.0.89",
58
58
  "@types/crypto-js": "^4.0.2",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -768,7 +768,7 @@ export abstract class CoreApp<
768
768
 
769
769
  // Update device id and cache it
770
770
  this._deviceId = data.deviceId;
771
- this.storage.setData(CoreApp.deviceIdField, this.deviceId);
771
+ this.storage.setData(CoreApp.deviceIdField, this._deviceId);
772
772
 
773
773
  // Current passphrase
774
774
  this.passphrase = passphrase;