@moostjs/event-http 0.4.12 → 0.4.13
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -236,6 +236,7 @@ class MoostHttp {
|
|
|
236
236
|
getControllerInstance: () => this.moost,
|
|
237
237
|
callControllerMethod: () => undefined,
|
|
238
238
|
targetPath: '',
|
|
239
|
+
handlerType: 'HTTP',
|
|
239
240
|
})();
|
|
240
241
|
if (!response) {
|
|
241
242
|
throw new eventHttp.HttpError(404, 'Resource Not Found');
|
|
@@ -275,6 +276,7 @@ class MoostHttp {
|
|
|
275
276
|
},
|
|
276
277
|
},
|
|
277
278
|
targetPath,
|
|
279
|
+
handlerType: handler.type,
|
|
278
280
|
});
|
|
279
281
|
const routerBinding = this.httpApp.on(handler.method, targetPath, fn);
|
|
280
282
|
const { getPath: pathBuilder } = routerBinding;
|
package/dist/index.mjs
CHANGED
|
@@ -235,6 +235,7 @@ class MoostHttp {
|
|
|
235
235
|
getControllerInstance: () => this.moost,
|
|
236
236
|
callControllerMethod: () => undefined,
|
|
237
237
|
targetPath: '',
|
|
238
|
+
handlerType: 'HTTP',
|
|
238
239
|
})();
|
|
239
240
|
if (!response) {
|
|
240
241
|
throw new HttpError(404, 'Resource Not Found');
|
|
@@ -274,6 +275,7 @@ class MoostHttp {
|
|
|
274
275
|
},
|
|
275
276
|
},
|
|
276
277
|
targetPath,
|
|
278
|
+
handlerType: handler.type,
|
|
277
279
|
});
|
|
278
280
|
const routerBinding = this.httpApp.on(handler.method, targetPath, fn);
|
|
279
281
|
const { getPath: pathBuilder } = routerBinding;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
|
|
39
39
|
"peerDependencies": {},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"moost": "0.4.
|
|
42
|
-
"@wooksjs/event-core": "^0.5.
|
|
43
|
-
"@wooksjs/event-http": "^0.5.
|
|
44
|
-
"@wooksjs/http-body": "^0.5.
|
|
41
|
+
"moost": "0.4.13",
|
|
42
|
+
"@wooksjs/event-core": "^0.5.11",
|
|
43
|
+
"@wooksjs/event-http": "^0.5.11",
|
|
44
|
+
"@wooksjs/http-body": "^0.5.11",
|
|
45
45
|
"@prostojs/infact": "^0.2.3",
|
|
46
46
|
"@prostojs/router": "^0.2.1"
|
|
47
47
|
}
|