@moostjs/event-cli 0.2.10 → 0.2.12

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/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ class MoostCli {
42
42
  }
43
43
  }
44
44
  onInit() {
45
- this.cliApp.run();
45
+ void this.cliApp.run();
46
46
  }
47
47
  bindHandler(opts) {
48
48
  let fn;
@@ -86,6 +86,7 @@ class MoostCli {
86
86
  }
87
87
  }
88
88
  }
89
+ restoreCtx();
89
90
  // fire after interceptors
90
91
  response = yield interceptorHandler.fireAfter(response);
91
92
  unscope();
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { WooksCli } from '@wooksjs/event-cli';
5
5
 
6
6
  export declare function Cli(path?: string): MethodDecorator;
7
7
 
8
- export declare function CliParam(keys: string | [string, string], descr: string): ParameterDecorator & PropertyDecorator;
8
+ export declare function CliParam(keys: string | [string, string], descr?: string): ParameterDecorator & PropertyDecorator;
9
9
 
10
10
  /**
11
11
  * Get Cli Flag
package/dist/index.mjs CHANGED
@@ -40,7 +40,7 @@ class MoostCli {
40
40
  }
41
41
  }
42
42
  onInit() {
43
- this.cliApp.run();
43
+ void this.cliApp.run();
44
44
  }
45
45
  bindHandler(opts) {
46
46
  let fn;
@@ -84,6 +84,7 @@ class MoostCli {
84
84
  }
85
85
  }
86
86
  }
87
+ restoreCtx();
87
88
  // fire after interceptors
88
89
  response = yield interceptorHandler.fireAfter(response);
89
90
  unscope();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/event-cli",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "@moostjs/event-cli",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-cli#readme",
30
30
  "peerDependencies": {
31
- "moost": "0.2.10",
31
+ "moost": "0.2.12",
32
32
  "wooks": "^0.2.6",
33
33
  "@wooksjs/event-core": "^0.2.6"
34
34
  },