@etsoo/appscript 1.6.2 → 1.6.3

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.
@@ -5,6 +5,11 @@ import { IExternalSettings } from "./ExternalSettings";
5
5
  * App settings interface
6
6
  */
7
7
  export interface IAppSettings extends IExternalSettings {
8
+ /**
9
+ * Application id
10
+ * 程序编号
11
+ */
12
+ readonly appId: number;
8
13
  /**
9
14
  * Supported country/region ids
10
15
  */
@@ -23,11 +23,6 @@ export interface IExternalSettings extends ExternalEndpoint {
23
23
  * App root url
24
24
  */
25
25
  readonly homepage: string;
26
- /**
27
- * Application id
28
- * 程序编号
29
- */
30
- readonly appId: number;
31
26
  /**
32
27
  * Default hostname for substitution
33
28
  * 用于替换的默认主机名
@@ -24,8 +24,8 @@ var ExternalSettings;
24
24
  }
25
25
  if (settings != null &&
26
26
  typeof settings === "object" &&
27
- "appId" in settings &&
28
- "endpoint" in settings) {
27
+ "endpoint" in settings &&
28
+ "webUrl" in settings) {
29
29
  const s = settings;
30
30
  if (hostname)
31
31
  s.hostname = hostname;
@@ -5,6 +5,11 @@ import { IExternalSettings } from "./ExternalSettings";
5
5
  * App settings interface
6
6
  */
7
7
  export interface IAppSettings extends IExternalSettings {
8
+ /**
9
+ * Application id
10
+ * 程序编号
11
+ */
12
+ readonly appId: number;
8
13
  /**
9
14
  * Supported country/region ids
10
15
  */
@@ -23,11 +23,6 @@ export interface IExternalSettings extends ExternalEndpoint {
23
23
  * App root url
24
24
  */
25
25
  readonly homepage: string;
26
- /**
27
- * Application id
28
- * 程序编号
29
- */
30
- readonly appId: number;
31
26
  /**
32
27
  * Default hostname for substitution
33
28
  * 用于替换的默认主机名
@@ -21,8 +21,8 @@ export var ExternalSettings;
21
21
  }
22
22
  if (settings != null &&
23
23
  typeof settings === "object" &&
24
- "appId" in settings &&
25
- "endpoint" in settings) {
24
+ "endpoint" in settings &&
25
+ "webUrl" in settings) {
26
26
  const s = settings;
27
27
  if (hostname)
28
28
  s.hostname = hostname;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -6,6 +6,12 @@ import { IExternalSettings } from "./ExternalSettings";
6
6
  * App settings interface
7
7
  */
8
8
  export interface IAppSettings extends IExternalSettings {
9
+ /**
10
+ * Application id
11
+ * 程序编号
12
+ */
13
+ readonly appId: number;
14
+
9
15
  /**
10
16
  * Supported country/region ids
11
17
  */
@@ -27,12 +27,6 @@ export interface IExternalSettings extends ExternalEndpoint {
27
27
  */
28
28
  readonly homepage: string;
29
29
 
30
- /**
31
- * Application id
32
- * 程序编号
33
- */
34
- readonly appId: number;
35
-
36
30
  /**
37
31
  * Default hostname for substitution
38
32
  * 用于替换的默认主机名
@@ -77,8 +71,8 @@ export namespace ExternalSettings {
77
71
  if (
78
72
  settings != null &&
79
73
  typeof settings === "object" &&
80
- "appId" in settings &&
81
- "endpoint" in settings
74
+ "endpoint" in settings &&
75
+ "webUrl" in settings
82
76
  ) {
83
77
  const s = settings as T;
84
78
  if (hostname) s.hostname = hostname;