@moostjs/event-cli 0.4.7 → 0.4.9
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 +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -65,6 +65,7 @@ class MoostCli {
|
|
|
65
65
|
getControllerInstance: () => this.moost,
|
|
66
66
|
callControllerMethod: () => undefined,
|
|
67
67
|
logErrors: this.opts?.debug,
|
|
68
|
+
targetPath: '',
|
|
68
69
|
})();
|
|
69
70
|
if (response === undefined) {
|
|
70
71
|
this.cliApp.onUnknownCommand(pathParams);
|
|
@@ -96,18 +97,17 @@ class MoostCli {
|
|
|
96
97
|
.replace(/\/\/+/g, '/')
|
|
97
98
|
.replace(/\/\\:/g, '\\:')
|
|
98
99
|
.replace(/^\/+/g, '');
|
|
99
|
-
if (!fn) {
|
|
100
|
-
fn = moost.defineMoostEventHandler({
|
|
101
|
-
contextType: CONTEXT_TYPE,
|
|
102
|
-
loggerTitle: LOGGER_TITLE,
|
|
103
|
-
getIterceptorHandler: opts.getIterceptorHandler,
|
|
104
|
-
getControllerInstance: opts.getInstance,
|
|
105
|
-
controllerMethod: opts.method,
|
|
106
|
-
resolveArgs: opts.resolveArgs,
|
|
107
|
-
logErrors: this.opts?.debug,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
100
|
const targetPath = makePath(path);
|
|
101
|
+
fn = moost.defineMoostEventHandler({
|
|
102
|
+
contextType: CONTEXT_TYPE,
|
|
103
|
+
loggerTitle: LOGGER_TITLE,
|
|
104
|
+
getIterceptorHandler: opts.getIterceptorHandler,
|
|
105
|
+
getControllerInstance: opts.getInstance,
|
|
106
|
+
controllerMethod: opts.method,
|
|
107
|
+
resolveArgs: opts.resolveArgs,
|
|
108
|
+
logErrors: this.opts?.debug,
|
|
109
|
+
targetPath,
|
|
110
|
+
});
|
|
111
111
|
const meta = getCliMate().read(opts.fakeInstance, opts.method);
|
|
112
112
|
const classMeta = getCliMate().read(opts.fakeInstance);
|
|
113
113
|
const cliOptions = new Map();
|
package/dist/index.mjs
CHANGED
|
@@ -64,6 +64,7 @@ class MoostCli {
|
|
|
64
64
|
getControllerInstance: () => this.moost,
|
|
65
65
|
callControllerMethod: () => undefined,
|
|
66
66
|
logErrors: this.opts?.debug,
|
|
67
|
+
targetPath: '',
|
|
67
68
|
})();
|
|
68
69
|
if (response === undefined) {
|
|
69
70
|
this.cliApp.onUnknownCommand(pathParams);
|
|
@@ -95,18 +96,17 @@ class MoostCli {
|
|
|
95
96
|
.replace(/\/\/+/g, '/')
|
|
96
97
|
.replace(/\/\\:/g, '\\:')
|
|
97
98
|
.replace(/^\/+/g, '');
|
|
98
|
-
if (!fn) {
|
|
99
|
-
fn = defineMoostEventHandler({
|
|
100
|
-
contextType: CONTEXT_TYPE,
|
|
101
|
-
loggerTitle: LOGGER_TITLE,
|
|
102
|
-
getIterceptorHandler: opts.getIterceptorHandler,
|
|
103
|
-
getControllerInstance: opts.getInstance,
|
|
104
|
-
controllerMethod: opts.method,
|
|
105
|
-
resolveArgs: opts.resolveArgs,
|
|
106
|
-
logErrors: this.opts?.debug,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
99
|
const targetPath = makePath(path);
|
|
100
|
+
fn = defineMoostEventHandler({
|
|
101
|
+
contextType: CONTEXT_TYPE,
|
|
102
|
+
loggerTitle: LOGGER_TITLE,
|
|
103
|
+
getIterceptorHandler: opts.getIterceptorHandler,
|
|
104
|
+
getControllerInstance: opts.getInstance,
|
|
105
|
+
controllerMethod: opts.method,
|
|
106
|
+
resolveArgs: opts.resolveArgs,
|
|
107
|
+
logErrors: this.opts?.debug,
|
|
108
|
+
targetPath,
|
|
109
|
+
});
|
|
110
110
|
const meta = getCliMate().read(opts.fakeInstance, opts.method);
|
|
111
111
|
const classMeta = getCliMate().read(opts.fakeInstance);
|
|
112
112
|
const cliOptions = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "@moostjs/event-cli",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-cli#readme",
|
|
39
39
|
"peerDependencies": {},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"moost": "0.4.
|
|
42
|
-
"wooks": "^0.5.
|
|
43
|
-
"@wooksjs/event-core": "^0.5.
|
|
44
|
-
"@wooksjs/event-cli": "^0.5.
|
|
41
|
+
"moost": "0.4.9",
|
|
42
|
+
"wooks": "^0.5.9",
|
|
43
|
+
"@wooksjs/event-core": "^0.5.9",
|
|
44
|
+
"@wooksjs/event-cli": "^0.5.9"
|
|
45
45
|
}
|
|
46
46
|
}
|