deeke-script-app 1.9.2 → 1.9.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.
@@ -127,6 +127,16 @@ interface System {
127
127
  * @param keepOn 是否保持屏幕常亮
128
128
  */
129
129
  public setKeepScreenOn(keepOn: boolean): void;
130
+
131
+ /**
132
+ * 获取当前系统区域与语言信息(配置中的首个 Locale)
133
+ * @returns language 为语言码;country 为国家/地区码;tag 为 BCP 47 标签(如 zh-CN)
134
+ */
135
+ public getLocaleInfo(): {
136
+ language: string;
137
+ country: string;
138
+ tag: string;
139
+ };
130
140
  }
131
141
 
132
142
  export { };
package/jsconfig.json CHANGED
@@ -1,12 +1,26 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES6",
4
- "lib": ["es6"], // 不包含 "dom"
5
- "checkJs": true
4
+ "lib": [
5
+ "es2016",
6
+ ],
7
+ "checkJs": true,
8
+ "allowJs": true,
9
+ "module": "commonjs",
10
+ "moduleResolution": "node10",
11
+ "types": [
12
+ "node"
13
+ ],
14
+ "ignoreDeprecations": "6.0",
15
+ "baseUrl": ".",
16
+ "paths": {
17
+ "app/*": [
18
+ "app/*"
19
+ ]
20
+ },
6
21
  },
7
22
  "include": [
8
- "src/**/*",
9
- "test/**/*",
23
+ "**/*",
10
24
  "@deekeScript/**/*"
11
25
  ]
12
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {