@moostjs/event-http 0.6.50 → 0.6.52
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 +8 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.mjs +8 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -642,7 +642,13 @@ const LOGGER_TITLE = "moost-http";
|
|
|
642
642
|
getHttpApp() {
|
|
643
643
|
return this.httpApp;
|
|
644
644
|
}
|
|
645
|
-
|
|
645
|
+
/**
|
|
646
|
+
* Returns a Node.js request listener for a custom server, or a middleware for a host app.
|
|
647
|
+
*
|
|
648
|
+
* With `onNoMatch` (middleware mode) a request no route matches is handed to `onNoMatch`
|
|
649
|
+
* before any Moost event starts — it belongs to the host app, so it gets no event context,
|
|
650
|
+
* DI scope, interceptors or tracing.
|
|
651
|
+
*/ getServerCb(onNoMatch) {
|
|
646
652
|
return this.httpApp.getServerCb(onNoMatch);
|
|
647
653
|
}
|
|
648
654
|
/**
|
|
@@ -816,7 +822,7 @@ const LOGGER_TITLE = "moost-http";
|
|
|
816
822
|
image: "https://moost.org/moost-full-logo.svg",
|
|
817
823
|
link: "https://moost.org/",
|
|
818
824
|
poweredBy: "moostjs",
|
|
819
|
-
version: "0.6.
|
|
825
|
+
version: "0.6.52"
|
|
820
826
|
});
|
|
821
827
|
if (httpApp && httpApp instanceof _wooksjs_event_http.WooksHttp) this.httpApp = httpApp;
|
|
822
828
|
else if (httpApp) this.httpApp = (0, _wooksjs_event_http.createHttpApp)({
|
package/dist/index.d.ts
CHANGED
|
@@ -468,6 +468,13 @@ declare class MoostHttp implements TMoostAdapter<THttpHandlerMeta> {
|
|
|
468
468
|
protected httpApp: WooksHttp;
|
|
469
469
|
constructor(httpApp?: WooksHttp | TWooksHttpOptions);
|
|
470
470
|
getHttpApp(): WooksHttp;
|
|
471
|
+
/**
|
|
472
|
+
* Returns a Node.js request listener for a custom server, or a middleware for a host app.
|
|
473
|
+
*
|
|
474
|
+
* With `onNoMatch` (middleware mode) a request no route matches is handed to `onNoMatch`
|
|
475
|
+
* before any Moost event starts — it belongs to the host app, so it gets no event context,
|
|
476
|
+
* DI scope, interceptors or tracing.
|
|
477
|
+
*/
|
|
471
478
|
getServerCb(onNoMatch?: (req: IncomingMessage, res: ServerResponse) => void): (req: IncomingMessage, res: ServerResponse) => void;
|
|
472
479
|
/**
|
|
473
480
|
* Programmatic route invocation using the Web Standard fetch API.
|
package/dist/index.mjs
CHANGED
|
@@ -641,7 +641,13 @@ const LOGGER_TITLE = "moost-http";
|
|
|
641
641
|
getHttpApp() {
|
|
642
642
|
return this.httpApp;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
/**
|
|
645
|
+
* Returns a Node.js request listener for a custom server, or a middleware for a host app.
|
|
646
|
+
*
|
|
647
|
+
* With `onNoMatch` (middleware mode) a request no route matches is handed to `onNoMatch`
|
|
648
|
+
* before any Moost event starts — it belongs to the host app, so it gets no event context,
|
|
649
|
+
* DI scope, interceptors or tracing.
|
|
650
|
+
*/ getServerCb(onNoMatch) {
|
|
645
651
|
return this.httpApp.getServerCb(onNoMatch);
|
|
646
652
|
}
|
|
647
653
|
/**
|
|
@@ -815,7 +821,7 @@ const LOGGER_TITLE = "moost-http";
|
|
|
815
821
|
image: "https://moost.org/moost-full-logo.svg",
|
|
816
822
|
link: "https://moost.org/",
|
|
817
823
|
poweredBy: "moostjs",
|
|
818
|
-
version: "0.6.
|
|
824
|
+
version: "0.6.52"
|
|
819
825
|
});
|
|
820
826
|
if (httpApp && httpApp instanceof WooksHttp) this.httpApp = httpApp;
|
|
821
827
|
else if (httpApp) this.httpApp = createHttpApp({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.52",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"composables",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@wooksjs/event-http": "^0.7.
|
|
42
|
-
"@wooksjs/http-body": "^0.7.
|
|
41
|
+
"@wooksjs/event-http": "^0.7.30",
|
|
42
|
+
"@wooksjs/http-body": "^0.7.30"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"vitest": "3.2.7",
|
|
46
|
-
"@moostjs/event-wf": "^0.6.
|
|
46
|
+
"@moostjs/event-wf": "^0.6.52"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@prostojs/infact": "^0.6.1",
|
|
50
|
-
"@wooksjs/event-core": "^0.7.
|
|
51
|
-
"moost": "^0.6.
|
|
50
|
+
"@wooksjs/event-core": "^0.7.30",
|
|
51
|
+
"moost": "^0.6.52"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"pub": "pnpm publish --access public",
|