@etsoo/appscript 1.4.24 → 1.4.26

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.
@@ -342,7 +342,8 @@ class CoreApp {
342
342
  */
343
343
  clearDeviceId() {
344
344
  this._deviceId = '';
345
- this.storage.setData(this.fields.deviceId, undefined);
345
+ this.storage.clear([this.fields.deviceId], false);
346
+ this.storage.clear([this.fields.deviceId], true);
346
347
  }
347
348
  /**
348
349
  * Init call
@@ -402,7 +403,7 @@ class CoreApp {
402
403
  if (callback)
403
404
  callback(false);
404
405
  // Clear device id
405
- this.storage.setData(this.fields.deviceId, undefined);
406
+ this.clearDeviceId();
406
407
  return;
407
408
  }
408
409
  const updateResult = await this.initCallUpdate(result.data, data.timestamp);
@@ -316,7 +316,8 @@ export class CoreApp {
316
316
  */
317
317
  clearDeviceId() {
318
318
  this._deviceId = '';
319
- this.storage.setData(this.fields.deviceId, undefined);
319
+ this.storage.clear([this.fields.deviceId], false);
320
+ this.storage.clear([this.fields.deviceId], true);
320
321
  }
321
322
  /**
322
323
  * Init call
@@ -376,7 +377,7 @@ export class CoreApp {
376
377
  if (callback)
377
378
  callback(false);
378
379
  // Clear device id
379
- this.storage.setData(this.fields.deviceId, undefined);
380
+ this.clearDeviceId();
380
381
  return;
381
382
  }
382
383
  const updateResult = await this.initCallUpdate(result.data, data.timestamp);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.24",
3
+ "version": "1.4.26",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -53,18 +53,18 @@
53
53
  "homepage": "https://github.com/ETSOO/AppScript#readme",
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.1.25",
56
- "@etsoo/restclient": "^1.0.88",
57
- "@etsoo/shared": "^1.2.7",
56
+ "@etsoo/restclient": "^1.0.89",
57
+ "@etsoo/shared": "^1.2.8",
58
58
  "crypto-js": "^4.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/cli": "^7.22.6",
62
- "@babel/core": "^7.22.8",
63
- "@babel/plugin-transform-runtime": "^7.22.7",
64
- "@babel/preset-env": "^7.22.7",
61
+ "@babel/cli": "^7.22.9",
62
+ "@babel/core": "^7.22.9",
63
+ "@babel/plugin-transform-runtime": "^7.22.9",
64
+ "@babel/preset-env": "^7.22.9",
65
65
  "@babel/runtime-corejs3": "^7.22.6",
66
66
  "@types/crypto-js": "^4.1.1",
67
- "@types/jest": "^29.5.2",
67
+ "@types/jest": "^29.5.3",
68
68
  "jest": "^29.6.1",
69
69
  "jest-environment-jsdom": "^29.6.1",
70
70
  "ts-jest": "^29.1.1",
@@ -505,7 +505,8 @@ export abstract class CoreApp<
505
505
  */
506
506
  clearDeviceId() {
507
507
  this._deviceId = '';
508
- this.storage.setData(this.fields.deviceId, undefined);
508
+ this.storage.clear([this.fields.deviceId], false);
509
+ this.storage.clear([this.fields.deviceId], true);
509
510
  }
510
511
 
511
512
  /**
@@ -576,7 +577,7 @@ export abstract class CoreApp<
576
577
  if (callback) callback(false);
577
578
 
578
579
  // Clear device id
579
- this.storage.setData(this.fields.deviceId, undefined);
580
+ this.clearDeviceId();
580
581
 
581
582
  return;
582
583
  }