@etsoo/appscript 1.5.0 → 1.5.2

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.
@@ -92,10 +92,12 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
92
92
  */
93
93
  get ipData(): IPData | undefined;
94
94
  protected set ipData(value: IPData | undefined);
95
+ private _debug;
95
96
  /**
96
97
  * Is debug mode
97
98
  */
98
- debug: boolean;
99
+ get debug(): boolean;
100
+ set debug(value: boolean);
99
101
  private _userData?;
100
102
  /**
101
103
  * User data
@@ -56,6 +56,16 @@ class CoreApp {
56
56
  set ipData(value) {
57
57
  this._ipData = value;
58
58
  }
59
+ /**
60
+ * Is debug mode
61
+ */
62
+ get debug() {
63
+ return this._debug;
64
+ }
65
+ set debug(value) {
66
+ this._debug = value;
67
+ this.notifier.debug = value;
68
+ }
59
69
  /**
60
70
  * User data
61
71
  */
@@ -107,10 +117,7 @@ class CoreApp {
107
117
  * Pending actions
108
118
  */
109
119
  this.pendings = [];
110
- /**
111
- * Is debug mode
112
- */
113
- this.debug = false;
120
+ this._debug = false;
114
121
  this._authorized = false;
115
122
  this._isReady = false;
116
123
  this._isTryingLogin = false;
@@ -147,8 +154,6 @@ class CoreApp {
147
154
  this.fields = IApp_1.appFields.reduce((a, v) => ({ ...a, [v]: 'smarterp-' + v + '-' + name }), {});
148
155
  // Device id
149
156
  this._deviceId = storage.getData(this.fields.deviceId, '');
150
- // Debug
151
- this.debugIt('constructor', this.fields, this._deviceId);
152
157
  this.setApi(api);
153
158
  const { currentCulture, currentRegion } = settings;
154
159
  // Load resources
@@ -92,10 +92,12 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
92
92
  */
93
93
  get ipData(): IPData | undefined;
94
94
  protected set ipData(value: IPData | undefined);
95
+ private _debug;
95
96
  /**
96
97
  * Is debug mode
97
98
  */
98
- debug: boolean;
99
+ get debug(): boolean;
100
+ set debug(value: boolean);
99
101
  private _userData?;
100
102
  /**
101
103
  * User data
@@ -53,6 +53,16 @@ export class CoreApp {
53
53
  set ipData(value) {
54
54
  this._ipData = value;
55
55
  }
56
+ /**
57
+ * Is debug mode
58
+ */
59
+ get debug() {
60
+ return this._debug;
61
+ }
62
+ set debug(value) {
63
+ this._debug = value;
64
+ this.notifier.debug = value;
65
+ }
56
66
  /**
57
67
  * User data
58
68
  */
@@ -104,10 +114,7 @@ export class CoreApp {
104
114
  * Pending actions
105
115
  */
106
116
  this.pendings = [];
107
- /**
108
- * Is debug mode
109
- */
110
- this.debug = false;
117
+ this._debug = false;
111
118
  this._authorized = false;
112
119
  this._isReady = false;
113
120
  this._isTryingLogin = false;
@@ -144,8 +151,6 @@ export class CoreApp {
144
151
  this.fields = appFields.reduce((a, v) => ({ ...a, [v]: 'smarterp-' + v + '-' + name }), {});
145
152
  // Device id
146
153
  this._deviceId = storage.getData(this.fields.deviceId, '');
147
- // Debug
148
- this.debugIt('constructor', this.fields, this._deviceId);
149
154
  this.setApi(api);
150
155
  const { currentCulture, currentRegion } = settings;
151
156
  // Load resources
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "homepage": "https://github.com/ETSOO/AppScript#readme",
54
54
  "dependencies": {
55
- "@etsoo/notificationbase": "^1.1.45",
55
+ "@etsoo/notificationbase": "^1.1.46",
56
56
  "@etsoo/restclient": "^1.1.8",
57
57
  "@etsoo/shared": "^1.2.44",
58
58
  "crypto-js": "^4.2.0"
@@ -174,10 +174,17 @@ export abstract class CoreApp<
174
174
  this._ipData = value;
175
175
  }
176
176
 
177
+ private _debug: boolean = false;
177
178
  /**
178
179
  * Is debug mode
179
180
  */
180
- debug: boolean = false;
181
+ get debug() {
182
+ return this._debug;
183
+ }
184
+ set debug(value: boolean) {
185
+ this._debug = value;
186
+ this.notifier.debug = value;
187
+ }
181
188
 
182
189
  private _userData?: U;
183
190
  /**
@@ -298,9 +305,6 @@ export abstract class CoreApp<
298
305
  // Device id
299
306
  this._deviceId = storage.getData(this.fields.deviceId, '');
300
307
 
301
- // Debug
302
- this.debugIt('constructor', this.fields, this._deviceId);
303
-
304
308
  this.setApi(api);
305
309
 
306
310
  const { currentCulture, currentRegion } = settings;