@etsoo/appscript 1.1.60 → 1.1.61

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.
@@ -252,6 +252,10 @@ class CoreApp {
252
252
  * @returns Enhanced passphrase
253
253
  */
254
254
  encryptionEnhance(passphrase) {
255
+ var _a, _b;
256
+ passphrase += passphrase.length;
257
+ if (this.authorized)
258
+ return passphrase + ((_b = (_a = this.userData) === null || _a === void 0 ? void 0 : _a.passphrase) !== null && _b !== void 0 ? _b : '');
255
259
  return passphrase;
256
260
  }
257
261
  /**
@@ -27,6 +27,10 @@ export interface IUserData {
27
27
  * Access token
28
28
  */
29
29
  readonly token: string;
30
+ /**
31
+ * Passphrase for encryption
32
+ */
33
+ readonly passphrase: string;
30
34
  }
31
35
  /**
32
36
  * User interface
@@ -249,6 +249,10 @@ export class CoreApp {
249
249
  * @returns Enhanced passphrase
250
250
  */
251
251
  encryptionEnhance(passphrase) {
252
+ var _a, _b;
253
+ passphrase += passphrase.length;
254
+ if (this.authorized)
255
+ return passphrase + ((_b = (_a = this.userData) === null || _a === void 0 ? void 0 : _a.passphrase) !== null && _b !== void 0 ? _b : '');
252
256
  return passphrase;
253
257
  }
254
258
  /**
@@ -27,6 +27,10 @@ export interface IUserData {
27
27
  * Access token
28
28
  */
29
29
  readonly token: string;
30
+ /**
31
+ * Passphrase for encryption
32
+ */
33
+ readonly passphrase: string;
30
34
  }
31
35
  /**
32
36
  * User interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -713,6 +713,9 @@ export abstract class CoreApp<
713
713
  * @returns Enhanced passphrase
714
714
  */
715
715
  protected encryptionEnhance(passphrase: string) {
716
+ passphrase += passphrase.length;
717
+ if (this.authorized)
718
+ return passphrase + (this.userData?.passphrase ?? '');
716
719
  return passphrase;
717
720
  }
718
721
 
package/src/state/User.ts CHANGED
@@ -33,6 +33,11 @@ export interface IUserData {
33
33
  * Access token
34
34
  */
35
35
  readonly token: string;
36
+
37
+ /**
38
+ * Passphrase for encryption
39
+ */
40
+ readonly passphrase: string;
36
41
  }
37
42
 
38
43
  /**