@moostjs/event-http 0.5.0 → 0.5.2
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.d.ts +3 -3
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { THook } from '@wooksjs/event-core';
|
|
2
2
|
import { TCookieAttributes as TCookieAttributes$1, useSetCookies, WooksHttp, TWooksHttpOptions } from '@wooksjs/event-http';
|
|
3
3
|
export { HttpError, TCacheControl, TCookieAttributesInput, TSetCookieData, useHttpContext } from '@wooksjs/event-http';
|
|
4
|
-
import * as moost from 'moost';
|
|
5
4
|
import { TInterceptorFn, TMoostAdapter, Moost, TMoostAdapterOptions } from 'moost';
|
|
6
5
|
import * as _prostojs_logger from '@prostojs/logger';
|
|
6
|
+
import * as _prostojs_infact from '@prostojs/infact';
|
|
7
7
|
import * as http from 'http';
|
|
8
8
|
import { TProstoRouterPathBuilder } from '@prostojs/router';
|
|
9
9
|
import { ListenOptions } from 'net';
|
|
@@ -249,7 +249,7 @@ interface THttpHandlerMeta {
|
|
|
249
249
|
* │ const app = new MyServer()
|
|
250
250
|
* │ const http = new MoostHttp()
|
|
251
251
|
* │ app.adapter(http).listen(3000, () => {
|
|
252
|
-
* │ app.getLogger('
|
|
252
|
+
* │ app.getLogger('MyApp').log('Up on port 3000')
|
|
253
253
|
* │ })
|
|
254
254
|
* │ app.init()
|
|
255
255
|
* ```
|
|
@@ -279,7 +279,7 @@ declare class MoostHttp implements TMoostAdapter<THttpHandlerMeta> {
|
|
|
279
279
|
onNotFound(): Promise<unknown>;
|
|
280
280
|
protected moost?: Moost;
|
|
281
281
|
onInit(moost: Moost): void;
|
|
282
|
-
getProvideRegistry():
|
|
282
|
+
getProvideRegistry(): _prostojs_infact.TProvideRegistry;
|
|
283
283
|
getLogger(): _prostojs_logger.TConsoleBase;
|
|
284
284
|
bindHandler<T extends object = object>(opts: TMoostAdapterOptions<THttpHandlerMeta, T>): void;
|
|
285
285
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-http",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "@moostjs/event-http",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
|
|
39
39
|
"peerDependencies": {},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"moost": "0.5.
|
|
42
|
-
"@wooksjs/event-core": "^0.5.
|
|
43
|
-
"@wooksjs/event-http": "^0.5.
|
|
44
|
-
"@wooksjs/http-body": "^0.5.
|
|
45
|
-
"@prostojs/infact": "^0.
|
|
41
|
+
"moost": "0.5.2",
|
|
42
|
+
"@wooksjs/event-core": "^0.5.19",
|
|
43
|
+
"@wooksjs/event-http": "^0.5.19",
|
|
44
|
+
"@wooksjs/http-body": "^0.5.19",
|
|
45
|
+
"@prostojs/infact": "^0.3.0",
|
|
46
46
|
"@prostojs/router": "^0.2.1"
|
|
47
47
|
}
|
|
48
48
|
}
|