@etsoo/appscript 1.4.3 → 1.4.4

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.
@@ -408,7 +408,7 @@ class CoreApp {
408
408
  this.storage.setPersistedData(this.fields.devices, devices);
409
409
  // Current passphrase
410
410
  this.passphrase = passphrase;
411
- this.storage.setData(this.fields.devicePassphrase, this.encrypt(passphrase, this.name));
411
+ this.storage.setData(this.fields.devicePassphrase, await this.encrypt(passphrase, this.name));
412
412
  // Previous passphrase
413
413
  if (data.previousPassphrase) {
414
414
  const prev = await this.decrypt(data.previousPassphrase, timestamp.toString());
@@ -382,7 +382,7 @@ export class CoreApp {
382
382
  this.storage.setPersistedData(this.fields.devices, devices);
383
383
  // Current passphrase
384
384
  this.passphrase = passphrase;
385
- this.storage.setData(this.fields.devicePassphrase, this.encrypt(passphrase, this.name));
385
+ this.storage.setData(this.fields.devicePassphrase, await this.encrypt(passphrase, this.name));
386
386
  // Previous passphrase
387
387
  if (data.previousPassphrase) {
388
388
  const prev = await this.decrypt(data.previousPassphrase, timestamp.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -593,7 +593,7 @@ export abstract class CoreApp<
593
593
  this.passphrase = passphrase;
594
594
  this.storage.setData(
595
595
  this.fields.devicePassphrase,
596
- this.encrypt(passphrase, this.name)
596
+ await this.encrypt(passphrase, this.name)
597
597
  );
598
598
 
599
599
  // Previous passphrase