@etsoo/appscript 1.2.55 → 1.2.58

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.
@@ -29,5 +29,6 @@ export declare class FlutterHost implements IBridgeHost {
29
29
  getStartUrl(): string | null | undefined;
30
30
  loadApp(name: string, startUrl?: string): void;
31
31
  userAuthorization(authorized: boolean): void;
32
+ onUpdate(func: (app: string, version: string) => void): void;
32
33
  }
33
34
  export {};
@@ -86,5 +86,6 @@ class FlutterHost {
86
86
  else
87
87
  this.cacheCommand('userAuthorization', authorized);
88
88
  }
89
+ onUpdate(func) { }
89
90
  }
90
91
  exports.FlutterHost = FlutterHost;
@@ -37,4 +37,9 @@ export interface IBridgeHost {
37
37
  * @param authorized Authorized or not
38
38
  */
39
39
  userAuthorization(authorized: boolean): void;
40
+ /**
41
+ * On update callback
42
+ * @param func Callback function
43
+ */
44
+ onUpdate(func: (app: string, version: string) => void): void;
40
45
  }
@@ -50,6 +50,7 @@
50
50
  "message": "Message",
51
51
  "mobile": "Mobile number",
52
52
  "mobilePhones": "Mobile numbers",
53
+ "monthLabel": "{0} month(s)",
53
54
  "months": [
54
55
  "Jan.",
55
56
  "Feb.",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "½Kg",
144
145
  "unitKILOGRAM": "Kg",
145
146
  "update": "Update",
147
+ "updateReady": "Update ready",
148
+ "updateTip": "Restart the application to use the latest features",
146
149
  "user": "User",
147
150
  "view": "View",
148
151
  "warning": "Warning",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobile": "手机号码",
52
52
  "mobilePhones": "手机号码",
53
+ "monthLabel": "{0}个月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -144,6 +145,8 @@
144
145
  "unitKILOGRAM": "公斤",
145
146
  "unitTON": "吨",
146
147
  "update": "更新",
148
+ "updateReady": "更新就绪",
149
+ "updateTip": "重新启动应用程序以使用最新功能",
147
150
  "user": "用户",
148
151
  "view": "查看",
149
152
  "warning": "警告",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobilePhone": "手機號碼",
52
52
  "mobilePhones": "手機號碼",
53
+ "monthLabel": "{0}個月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "斤",
144
145
  "unitKILOGRAM": "公斤",
145
146
  "update": "更新",
147
+ "updateReady": "更新就緒",
148
+ "updateTip": "重新啟動應用程序以使用最新功能",
146
149
  "user": "用戶",
147
150
  "view": "查看",
148
151
  "warning": "警告",
package/lib/cjs/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -29,5 +29,6 @@ export declare class FlutterHost implements IBridgeHost {
29
29
  getStartUrl(): string | null | undefined;
30
30
  loadApp(name: string, startUrl?: string): void;
31
31
  userAuthorization(authorized: boolean): void;
32
+ onUpdate(func: (app: string, version: string) => void): void;
32
33
  }
33
34
  export {};
@@ -83,4 +83,5 @@ export class FlutterHost {
83
83
  else
84
84
  this.cacheCommand('userAuthorization', authorized);
85
85
  }
86
+ onUpdate(func) { }
86
87
  }
@@ -37,4 +37,9 @@ export interface IBridgeHost {
37
37
  * @param authorized Authorized or not
38
38
  */
39
39
  userAuthorization(authorized: boolean): void;
40
+ /**
41
+ * On update callback
42
+ * @param func Callback function
43
+ */
44
+ onUpdate(func: (app: string, version: string) => void): void;
40
45
  }
@@ -50,6 +50,7 @@
50
50
  "message": "Message",
51
51
  "mobile": "Mobile number",
52
52
  "mobilePhones": "Mobile numbers",
53
+ "monthLabel": "{0} month(s)",
53
54
  "months": [
54
55
  "Jan.",
55
56
  "Feb.",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "½Kg",
144
145
  "unitKILOGRAM": "Kg",
145
146
  "update": "Update",
147
+ "updateReady": "Update ready",
148
+ "updateTip": "Restart the application to use the latest features",
146
149
  "user": "User",
147
150
  "view": "View",
148
151
  "warning": "Warning",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobile": "手机号码",
52
52
  "mobilePhones": "手机号码",
53
+ "monthLabel": "{0}个月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -144,6 +145,8 @@
144
145
  "unitKILOGRAM": "公斤",
145
146
  "unitTON": "吨",
146
147
  "update": "更新",
148
+ "updateReady": "更新就绪",
149
+ "updateTip": "重新启动应用程序以使用最新功能",
147
150
  "user": "用户",
148
151
  "view": "查看",
149
152
  "warning": "警告",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobilePhone": "手機號碼",
52
52
  "mobilePhones": "手機號碼",
53
+ "monthLabel": "{0}個月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "斤",
144
145
  "unitKILOGRAM": "公斤",
145
146
  "update": "更新",
147
+ "updateReady": "更新就緒",
148
+ "updateTip": "重新啟動應用程序以使用最新功能",
146
149
  "user": "用戶",
147
150
  "view": "查看",
148
151
  "warning": "警告",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.55",
3
+ "version": "1.2.58",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -52,9 +52,9 @@
52
52
  },
53
53
  "homepage": "https://github.com/ETSOO/AppScript#readme",
54
54
  "dependencies": {
55
- "@etsoo/notificationbase": "^1.1.1",
56
- "@etsoo/restclient": "^1.0.64",
57
- "@etsoo/shared": "^1.1.11",
55
+ "@etsoo/notificationbase": "^1.1.2",
56
+ "@etsoo/restclient": "^1.0.65",
57
+ "@etsoo/shared": "^1.1.15",
58
58
  "@types/crypto-js": "^4.1.1",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -64,14 +64,14 @@
64
64
  "@babel/plugin-transform-runtime": "^7.17.0",
65
65
  "@babel/preset-env": "^7.16.11",
66
66
  "@babel/runtime-corejs3": "^7.17.2",
67
- "@types/jest": "^27.4.0",
68
- "@typescript-eslint/eslint-plugin": "^5.12.1",
69
- "@typescript-eslint/parser": "^5.12.1",
70
- "eslint": "^8.9.0",
67
+ "@types/jest": "^27.4.1",
68
+ "@typescript-eslint/eslint-plugin": "^5.13.0",
69
+ "@typescript-eslint/parser": "^5.13.0",
70
+ "eslint": "^8.10.0",
71
71
  "eslint-config-airbnb-base": "^15.0.0",
72
72
  "eslint-plugin-import": "^2.25.4",
73
73
  "jest": "^27.5.1",
74
74
  "ts-jest": "^27.1.3",
75
- "typescript": "^4.5.5"
75
+ "typescript": "^4.6.2"
76
76
  }
77
77
  }
@@ -106,4 +106,6 @@ export class FlutterHost implements IBridgeHost {
106
106
  this.host.callHandler('userAuthorization', authorized);
107
107
  else this.cacheCommand('userAuthorization', authorized);
108
108
  }
109
+
110
+ onUpdate(func: (app: string, version: string) => void) {}
109
111
  }
@@ -43,4 +43,10 @@ export interface IBridgeHost {
43
43
  * @param authorized Authorized or not
44
44
  */
45
45
  userAuthorization(authorized: boolean): void;
46
+
47
+ /**
48
+ * On update callback
49
+ * @param func Callback function
50
+ */
51
+ onUpdate(func: (app: string, version: string) => void): void;
46
52
  }
@@ -50,6 +50,7 @@
50
50
  "message": "Message",
51
51
  "mobile": "Mobile number",
52
52
  "mobilePhones": "Mobile numbers",
53
+ "monthLabel": "{0} month(s)",
53
54
  "months": [
54
55
  "Jan.",
55
56
  "Feb.",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "½Kg",
144
145
  "unitKILOGRAM": "Kg",
145
146
  "update": "Update",
147
+ "updateReady": "Update ready",
148
+ "updateTip": "Restart the application to use the latest features",
146
149
  "user": "User",
147
150
  "view": "View",
148
151
  "warning": "Warning",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobile": "手机号码",
52
52
  "mobilePhones": "手机号码",
53
+ "monthLabel": "{0}个月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -144,6 +145,8 @@
144
145
  "unitKILOGRAM": "公斤",
145
146
  "unitTON": "吨",
146
147
  "update": "更新",
148
+ "updateReady": "更新就绪",
149
+ "updateTip": "重新启动应用程序以使用最新功能",
147
150
  "user": "用户",
148
151
  "view": "查看",
149
152
  "warning": "警告",
@@ -50,6 +50,7 @@
50
50
  "message": "留言",
51
51
  "mobilePhone": "手機號碼",
52
52
  "mobilePhones": "手機號碼",
53
+ "monthLabel": "{0}個月",
53
54
  "months": [
54
55
  "1月",
55
56
  "2月",
@@ -143,6 +144,8 @@
143
144
  "unitJIN": "斤",
144
145
  "unitKILOGRAM": "公斤",
145
146
  "update": "更新",
147
+ "updateReady": "更新就緒",
148
+ "updateTip": "重新啟動應用程序以使用最新功能",
146
149
  "user": "用戶",
147
150
  "view": "查看",
148
151
  "warning": "警告",