alemonjs 1.0.17 → 1.0.19
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/core/configs.js +2 -2
- package/lib/define/main.js +1 -1
- package/package.json +1 -1
- package/types/core/configs.d.ts +1 -1
package/lib/core/configs.js
CHANGED
|
@@ -7,13 +7,13 @@ const ApplicationProcessingConfiguration = {
|
|
|
7
7
|
// 打开正则
|
|
8
8
|
openRegex: /./,
|
|
9
9
|
// 屏蔽正则
|
|
10
|
-
closeRegex:
|
|
10
|
+
closeRegex: undefined,
|
|
11
11
|
// 指令生成地址
|
|
12
12
|
route: '/public/defset'
|
|
13
13
|
};
|
|
14
14
|
export function setAppProCoinfg(key, val) {
|
|
15
15
|
// 当前仅当同属性名的时候才会覆盖默认配置
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(ApplicationProcessingConfiguration,
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(ApplicationProcessingConfiguration, key)) {
|
|
17
17
|
ApplicationProcessingConfiguration[key] = val;
|
|
18
18
|
}
|
|
19
19
|
}
|
package/lib/define/main.js
CHANGED
package/package.json
CHANGED
package/types/core/configs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface ApplicationProcessingOpsion {
|
|
|
3
3
|
main: string;
|
|
4
4
|
type: 'ts' | 'js';
|
|
5
5
|
openRegex: RegExp;
|
|
6
|
-
closeRegex: RegExp;
|
|
6
|
+
closeRegex: RegExp | undefined;
|
|
7
7
|
route: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function setAppProCoinfg<T extends keyof ApplicationProcessingOpsion>(key: T, val: ApplicationProcessingOpsion[T]): void;
|