@etsoo/appscript 1.2.53 → 1.2.54

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.
@@ -23,6 +23,7 @@ export declare class FlutterHost implements IBridgeHost {
23
23
  });
24
24
  cacheCommand(name: string, ...args: unknown[]): void;
25
25
  changeCulture(locale: string): void;
26
+ closable(): boolean;
26
27
  exit(): void;
27
28
  getLabels<T extends string>(...keys: T[]): Promise<any>;
28
29
  getStartUrl(): string | null | undefined;
@@ -39,6 +39,9 @@ class FlutterHost {
39
39
  else
40
40
  this.cacheCommand('changeCulture', locale);
41
41
  }
42
+ closable() {
43
+ return false;
44
+ }
42
45
  exit() {
43
46
  if (this.host.callHandler)
44
47
  this.host.callHandler('exit');
@@ -7,6 +7,10 @@ export interface IBridgeHost {
7
7
  * @param locale Locale
8
8
  */
9
9
  changeCulture(locale: string): void;
10
+ /**
11
+ * Closable from client
12
+ */
13
+ closable(): boolean;
10
14
  /**
11
15
  * Exit the application
12
16
  */
@@ -23,6 +23,7 @@ export declare class FlutterHost implements IBridgeHost {
23
23
  });
24
24
  cacheCommand(name: string, ...args: unknown[]): void;
25
25
  changeCulture(locale: string): void;
26
+ closable(): boolean;
26
27
  exit(): void;
27
28
  getLabels<T extends string>(...keys: T[]): Promise<any>;
28
29
  getStartUrl(): string | null | undefined;
@@ -36,6 +36,9 @@ export class FlutterHost {
36
36
  else
37
37
  this.cacheCommand('changeCulture', locale);
38
38
  }
39
+ closable() {
40
+ return false;
41
+ }
39
42
  exit() {
40
43
  if (this.host.callHandler)
41
44
  this.host.callHandler('exit');
@@ -7,6 +7,10 @@ export interface IBridgeHost {
7
7
  * @param locale Locale
8
8
  */
9
9
  changeCulture(locale: string): void;
10
+ /**
11
+ * Closable from client
12
+ */
13
+ closable(): boolean;
10
14
  /**
11
15
  * Exit the application
12
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -55,19 +55,19 @@
55
55
  "@etsoo/notificationbase": "^1.1.1",
56
56
  "@etsoo/restclient": "^1.0.64",
57
57
  "@etsoo/shared": "^1.1.11",
58
- "@types/crypto-js": "^4.1.0",
58
+ "@types/crypto-js": "^4.1.1",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/cli": "^7.17.0",
63
- "@babel/core": "^7.17.2",
62
+ "@babel/cli": "^7.17.6",
63
+ "@babel/core": "^7.17.5",
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
67
  "@types/jest": "^27.4.0",
68
- "@typescript-eslint/eslint-plugin": "^5.11.0",
69
- "@typescript-eslint/parser": "^5.11.0",
70
- "eslint": "^8.8.0",
68
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
69
+ "@typescript-eslint/parser": "^5.12.1",
70
+ "eslint": "^8.9.0",
71
71
  "eslint-config-airbnb-base": "^15.0.0",
72
72
  "eslint-plugin-import": "^2.25.4",
73
73
  "jest": "^27.5.1",
@@ -56,6 +56,10 @@ export class FlutterHost implements IBridgeHost {
56
56
  else this.cacheCommand('changeCulture', locale);
57
57
  }
58
58
 
59
+ closable(): boolean {
60
+ return false;
61
+ }
62
+
59
63
  exit(): void {
60
64
  if (this.host.callHandler) this.host.callHandler('exit');
61
65
  else this.cacheCommand('exit');
@@ -8,6 +8,11 @@ export interface IBridgeHost {
8
8
  */
9
9
  changeCulture(locale: string): void;
10
10
 
11
+ /**
12
+ * Closable from client
13
+ */
14
+ closable(): boolean;
15
+
11
16
  /**
12
17
  * Exit the application
13
18
  */