@moostjs/event-http 0.5.31 → 0.5.32
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 +6 -0
- package/dist/index.mjs +7 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -509,6 +509,12 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
509
509
|
_define_property(this, "httpApp", void 0);
|
|
510
510
|
_define_property(this, "pathBuilders", {});
|
|
511
511
|
_define_property(this, "moost", void 0);
|
|
512
|
+
__wooksjs_event_http.HttpErrorRenderer.registerFramework({
|
|
513
|
+
image: "https://moost.org/moost-full-logo.png",
|
|
514
|
+
link: "https://moost.org/",
|
|
515
|
+
poweredBy: "moostjs",
|
|
516
|
+
version: "0.5.31"
|
|
517
|
+
});
|
|
512
518
|
if (httpApp && httpApp instanceof __wooksjs_event_http.WooksHttp) this.httpApp = httpApp;
|
|
513
519
|
else if (httpApp) this.httpApp = (0, __wooksjs_event_http.createHttpApp)({
|
|
514
520
|
...httpApp,
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Intercept, Resolve, TInterceptorPriority, defineInterceptorFn, defineMoostEventHandler, getMoostMate } from "moost";
|
|
2
2
|
import { attachHook } from "@wooksjs/event-core";
|
|
3
|
-
import { HttpError, HttpError as HttpError$1, WooksHttp, createHttpApp, useAuthorization, useCookies, useHeaders, useHttpContext, useRequest, useResponse, useSearchParams, useSetCookie, useSetCookies, useSetHeader, useStatus } from "@wooksjs/event-http";
|
|
3
|
+
import { HttpError, HttpError as HttpError$1, HttpErrorRenderer, WooksHttp, createHttpApp, useAuthorization, useCookies, useHeaders, useHttpContext, useRequest, useResponse, useSearchParams, useSetCookie, useSetCookies, useSetHeader, useStatus } from "@wooksjs/event-http";
|
|
4
4
|
import { useBody } from "@wooksjs/http-body";
|
|
5
5
|
import { createProvideRegistry } from "@prostojs/infact";
|
|
6
6
|
import { Server } from "http";
|
|
@@ -486,6 +486,12 @@ const CONTEXT_TYPE = "HTTP";
|
|
|
486
486
|
_define_property(this, "httpApp", void 0);
|
|
487
487
|
_define_property(this, "pathBuilders", {});
|
|
488
488
|
_define_property(this, "moost", void 0);
|
|
489
|
+
HttpErrorRenderer.registerFramework({
|
|
490
|
+
image: "https://moost.org/moost-full-logo.png",
|
|
491
|
+
link: "https://moost.org/",
|
|
492
|
+
poweredBy: "moostjs",
|
|
493
|
+
version: "0.5.31"
|
|
494
|
+
});
|
|
489
495
|
if (httpApp && httpApp instanceof WooksHttp) this.httpApp = httpApp;
|
|
490
496
|
else if (httpApp) this.httpApp = createHttpApp({
|
|
491
497
|
...httpApp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.32",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@wooksjs/event-core": "^0.6.
|
|
41
|
+
"@wooksjs/event-core": "^0.6.2",
|
|
42
42
|
"@prostojs/infact": "^0.3.3",
|
|
43
43
|
"@prostojs/router": "^0.2.1",
|
|
44
|
-
"moost": "^0.5.
|
|
44
|
+
"moost": "^0.5.32"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@wooksjs/event-http": "^0.6.
|
|
48
|
-
"@wooksjs/http-body": "^0.6.
|
|
47
|
+
"@wooksjs/event-http": "^0.6.2",
|
|
48
|
+
"@wooksjs/http-body": "^0.6.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"vitest": "3.2.4"
|