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.
@@ -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, val)) {
16
+ if (Object.prototype.hasOwnProperty.call(ApplicationProcessingConfiguration, key)) {
17
17
  ApplicationProcessingConfiguration[key] = val;
18
18
  }
19
19
  }
@@ -219,7 +219,7 @@ export async function defineAlemonConfig(Options) {
219
219
  * 开始解析
220
220
  * ************
221
221
  */
222
- if (Options?.mount) {
222
+ if (Options?.mount !== false) {
223
223
  await appsInit();
224
224
  }
225
225
  setTimeout(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "阿柠檬框架",
5
5
  "author": "ningmengchongshui",
6
6
  "license": "GPL-2.0",
@@ -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;