@etsoo/appscript 1.3.28 → 1.3.29
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.
- package/lib/cjs/app/CoreApp.d.ts +2 -2
- package/lib/cjs/app/CoreApp.js +3 -2
- package/lib/cjs/app/IApp.d.ts +2 -2
- package/lib/mjs/app/CoreApp.d.ts +2 -2
- package/lib/mjs/app/CoreApp.js +3 -2
- package/lib/mjs/app/IApp.d.ts +2 -2
- package/package.json +12 -12
- package/src/app/CoreApp.ts +8 -3
- package/src/app/IApp.ts +2 -2
package/lib/cjs/app/CoreApp.d.ts
CHANGED
|
@@ -196,10 +196,10 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
196
196
|
protected initCallEncryptedUpdateFields(): string[];
|
|
197
197
|
/**
|
|
198
198
|
* Alert action result
|
|
199
|
-
* @param result Action result
|
|
199
|
+
* @param result Action result or message
|
|
200
200
|
* @param callback Callback
|
|
201
201
|
*/
|
|
202
|
-
alertResult(result: IActionResult, callback?: NotificationReturn<void>): void;
|
|
202
|
+
alertResult(result: IActionResult | string, callback?: NotificationReturn<void>): void;
|
|
203
203
|
/**
|
|
204
204
|
* Authorize
|
|
205
205
|
* @param token New token
|
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -423,11 +423,12 @@ class CoreApp {
|
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* Alert action result
|
|
426
|
-
* @param result Action result
|
|
426
|
+
* @param result Action result or message
|
|
427
427
|
* @param callback Callback
|
|
428
428
|
*/
|
|
429
429
|
alertResult(result, callback) {
|
|
430
|
-
this.
|
|
430
|
+
const message = typeof result === 'string' ? result : this.formatResult(result);
|
|
431
|
+
this.notifier.alert(message, callback);
|
|
431
432
|
}
|
|
432
433
|
/**
|
|
433
434
|
* Authorize
|
package/lib/cjs/app/IApp.d.ts
CHANGED
|
@@ -136,10 +136,10 @@ export interface IApp {
|
|
|
136
136
|
addRootUrl(url: string): string;
|
|
137
137
|
/**
|
|
138
138
|
* Alert action result
|
|
139
|
-
* @param result Action result
|
|
139
|
+
* @param result Action result or message
|
|
140
140
|
* @param callback Callback
|
|
141
141
|
*/
|
|
142
|
-
alertResult(result: IActionResult, callback?: NotificationReturn<void>): void;
|
|
142
|
+
alertResult(result: IActionResult | string, callback?: NotificationReturn<void>): void;
|
|
143
143
|
/**
|
|
144
144
|
* Authorize
|
|
145
145
|
* @param token New token
|
package/lib/mjs/app/CoreApp.d.ts
CHANGED
|
@@ -196,10 +196,10 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
196
196
|
protected initCallEncryptedUpdateFields(): string[];
|
|
197
197
|
/**
|
|
198
198
|
* Alert action result
|
|
199
|
-
* @param result Action result
|
|
199
|
+
* @param result Action result or message
|
|
200
200
|
* @param callback Callback
|
|
201
201
|
*/
|
|
202
|
-
alertResult(result: IActionResult, callback?: NotificationReturn<void>): void;
|
|
202
|
+
alertResult(result: IActionResult | string, callback?: NotificationReturn<void>): void;
|
|
203
203
|
/**
|
|
204
204
|
* Authorize
|
|
205
205
|
* @param token New token
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -420,11 +420,12 @@ export class CoreApp {
|
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* Alert action result
|
|
423
|
-
* @param result Action result
|
|
423
|
+
* @param result Action result or message
|
|
424
424
|
* @param callback Callback
|
|
425
425
|
*/
|
|
426
426
|
alertResult(result, callback) {
|
|
427
|
-
this.
|
|
427
|
+
const message = typeof result === 'string' ? result : this.formatResult(result);
|
|
428
|
+
this.notifier.alert(message, callback);
|
|
428
429
|
}
|
|
429
430
|
/**
|
|
430
431
|
* Authorize
|
package/lib/mjs/app/IApp.d.ts
CHANGED
|
@@ -136,10 +136,10 @@ export interface IApp {
|
|
|
136
136
|
addRootUrl(url: string): string;
|
|
137
137
|
/**
|
|
138
138
|
* Alert action result
|
|
139
|
-
* @param result Action result
|
|
139
|
+
* @param result Action result or message
|
|
140
140
|
* @param callback Callback
|
|
141
141
|
*/
|
|
142
|
-
alertResult(result: IActionResult, callback?: NotificationReturn<void>): void;
|
|
142
|
+
alertResult(result: IActionResult | string, callback?: NotificationReturn<void>): void;
|
|
143
143
|
/**
|
|
144
144
|
* Authorize
|
|
145
145
|
* @param token New token
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.29",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -52,26 +52,26 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/ETSOO/AppScript#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@etsoo/notificationbase": "^1.1.
|
|
56
|
-
"@etsoo/restclient": "^1.0.
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
55
|
+
"@etsoo/notificationbase": "^1.1.14",
|
|
56
|
+
"@etsoo/restclient": "^1.0.76",
|
|
57
|
+
"@etsoo/shared": "^1.1.73",
|
|
58
58
|
"@types/crypto-js": "^4.1.1",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/cli": "^7.19.3",
|
|
63
|
-
"@babel/core": "^7.
|
|
63
|
+
"@babel/core": "^7.20.2",
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
65
|
-
"@babel/preset-env": "^7.
|
|
65
|
+
"@babel/preset-env": "^7.20.2",
|
|
66
66
|
"@babel/runtime-corejs3": "^7.20.1",
|
|
67
|
-
"@types/jest": "^29.2.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^5.42.
|
|
69
|
-
"@typescript-eslint/parser": "^5.42.
|
|
70
|
-
"eslint": "^8.
|
|
67
|
+
"@types/jest": "^29.2.2",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
|
69
|
+
"@typescript-eslint/parser": "^5.42.1",
|
|
70
|
+
"eslint": "^8.27.0",
|
|
71
71
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
72
72
|
"eslint-plugin-import": "^2.26.0",
|
|
73
|
-
"jest": "^29.
|
|
74
|
-
"jest-environment-jsdom": "^29.
|
|
73
|
+
"jest": "^29.3.0",
|
|
74
|
+
"jest-environment-jsdom": "^29.3.0",
|
|
75
75
|
"ts-jest": "^29.0.3",
|
|
76
76
|
"typescript": "^4.8.4"
|
|
77
77
|
}
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -648,11 +648,16 @@ export abstract class CoreApp<
|
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
650
|
* Alert action result
|
|
651
|
-
* @param result Action result
|
|
651
|
+
* @param result Action result or message
|
|
652
652
|
* @param callback Callback
|
|
653
653
|
*/
|
|
654
|
-
alertResult(
|
|
655
|
-
|
|
654
|
+
alertResult(
|
|
655
|
+
result: IActionResult | string,
|
|
656
|
+
callback?: NotificationReturn<void>
|
|
657
|
+
) {
|
|
658
|
+
const message =
|
|
659
|
+
typeof result === 'string' ? result : this.formatResult(result);
|
|
660
|
+
this.notifier.alert(message, callback);
|
|
656
661
|
}
|
|
657
662
|
|
|
658
663
|
/**
|
package/src/app/IApp.ts
CHANGED
|
@@ -179,11 +179,11 @@ export interface IApp {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Alert action result
|
|
182
|
-
* @param result Action result
|
|
182
|
+
* @param result Action result or message
|
|
183
183
|
* @param callback Callback
|
|
184
184
|
*/
|
|
185
185
|
alertResult(
|
|
186
|
-
result: IActionResult,
|
|
186
|
+
result: IActionResult | string,
|
|
187
187
|
callback?: NotificationReturn<void>
|
|
188
188
|
): void;
|
|
189
189
|
|