@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.
- package/lib/cjs/app/AppSettings.d.ts +5 -0
- package/lib/cjs/app/ExternalSettings.d.ts +0 -5
- package/lib/cjs/app/ExternalSettings.js +2 -2
- package/lib/mjs/app/AppSettings.d.ts +5 -0
- package/lib/mjs/app/ExternalSettings.d.ts +0 -5
- package/lib/mjs/app/ExternalSettings.js +2 -2
- package/package.json +1 -1
- package/src/app/AppSettings.ts +6 -0
- package/src/app/ExternalSettings.ts +2 -8
|
@@ -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
|
*/
|
|
@@ -24,8 +24,8 @@ var ExternalSettings;
|
|
|
24
24
|
}
|
|
25
25
|
if (settings != null &&
|
|
26
26
|
typeof settings === "object" &&
|
|
27
|
-
"
|
|
28
|
-
"
|
|
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
|
*/
|
|
@@ -21,8 +21,8 @@ export var ExternalSettings;
|
|
|
21
21
|
}
|
|
22
22
|
if (settings != null &&
|
|
23
23
|
typeof settings === "object" &&
|
|
24
|
-
"
|
|
25
|
-
"
|
|
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
package/src/app/AppSettings.ts
CHANGED
|
@@ -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
|
-
"
|
|
81
|
-
"
|
|
74
|
+
"endpoint" in settings &&
|
|
75
|
+
"webUrl" in settings
|
|
82
76
|
) {
|
|
83
77
|
const s = settings as T;
|
|
84
78
|
if (hostname) s.hostname = hostname;
|