@etsoo/appscript 1.5.83 → 1.5.84

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.
@@ -165,7 +165,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
165
165
  /**
166
166
  * Get persisted fields
167
167
  */
168
- protected get persistedFields(): string[];
168
+ protected readonly persistedFields: string[];
169
169
  /**
170
170
  * Protected constructor
171
171
  * @param settings Settings
@@ -133,17 +133,6 @@ class CoreApp {
133
133
  set isTryingLogin(value) {
134
134
  this._isTryingLogin = value;
135
135
  }
136
- /**
137
- * Get persisted fields
138
- */
139
- get persistedFields() {
140
- return [
141
- this.fields.deviceId,
142
- this.fields.devicePassphrase,
143
- this.fields.serversideDeviceId,
144
- this.fields.keepLogin
145
- ];
146
- }
147
136
  /**
148
137
  * Protected constructor
149
138
  * @param settings Settings
@@ -219,6 +208,13 @@ class CoreApp {
219
208
  this.debug = debug;
220
209
  // Fields, attach with the name identifier
221
210
  this.fields = IApp_1.appFields.reduce((a, v) => ({ ...a, [v]: "smarterp-" + v + "-" + name }), {});
211
+ // Persisted fields
212
+ this.persistedFields = [
213
+ this.fields.deviceId,
214
+ this.fields.devicePassphrase,
215
+ this.fields.serversideDeviceId,
216
+ this.fields.keepLogin
217
+ ];
222
218
  // Device id
223
219
  this._deviceId = storage.getData(this.fields.deviceId, "");
224
220
  // Embedded
@@ -165,7 +165,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
165
165
  /**
166
166
  * Get persisted fields
167
167
  */
168
- protected get persistedFields(): string[];
168
+ protected readonly persistedFields: string[];
169
169
  /**
170
170
  * Protected constructor
171
171
  * @param settings Settings
@@ -130,17 +130,6 @@ export class CoreApp {
130
130
  set isTryingLogin(value) {
131
131
  this._isTryingLogin = value;
132
132
  }
133
- /**
134
- * Get persisted fields
135
- */
136
- get persistedFields() {
137
- return [
138
- this.fields.deviceId,
139
- this.fields.devicePassphrase,
140
- this.fields.serversideDeviceId,
141
- this.fields.keepLogin
142
- ];
143
- }
144
133
  /**
145
134
  * Protected constructor
146
135
  * @param settings Settings
@@ -216,6 +205,13 @@ export class CoreApp {
216
205
  this.debug = debug;
217
206
  // Fields, attach with the name identifier
218
207
  this.fields = appFields.reduce((a, v) => ({ ...a, [v]: "smarterp-" + v + "-" + name }), {});
208
+ // Persisted fields
209
+ this.persistedFields = [
210
+ this.fields.deviceId,
211
+ this.fields.devicePassphrase,
212
+ this.fields.serversideDeviceId,
213
+ this.fields.keepLogin
214
+ ];
219
215
  // Device id
220
216
  this._deviceId = storage.getData(this.fields.deviceId, "");
221
217
  // Embedded
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.83",
3
+ "version": "1.5.84",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -317,14 +317,7 @@ export abstract class CoreApp<
317
317
  /**
318
318
  * Get persisted fields
319
319
  */
320
- protected get persistedFields() {
321
- return [
322
- this.fields.deviceId,
323
- this.fields.devicePassphrase,
324
- this.fields.serversideDeviceId,
325
- this.fields.keepLogin
326
- ];
327
- }
320
+ protected readonly persistedFields: string[];
328
321
 
329
322
  /**
330
323
  * Protected constructor
@@ -400,6 +393,14 @@ export abstract class CoreApp<
400
393
  {} as any
401
394
  );
402
395
 
396
+ // Persisted fields
397
+ this.persistedFields = [
398
+ this.fields.deviceId,
399
+ this.fields.devicePassphrase,
400
+ this.fields.serversideDeviceId,
401
+ this.fields.keepLogin
402
+ ];
403
+
403
404
  // Device id
404
405
  this._deviceId = storage.getData(this.fields.deviceId, "");
405
406