@h3ravel/http 11.1.0 → 11.2.0
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/chunk-BncF-t-1.cjs +48 -0
- package/dist/chunk-qJlxXUkR.js +33 -0
- package/dist/find-up-simple-CPevfdC2.cjs +37 -0
- package/dist/find-up-simple-CPevfdC2.cjs.map +1 -0
- package/dist/find-up-simple-DLa63O5_.js +32 -0
- package/dist/find-up-simple-DLa63O5_.js.map +1 -0
- package/dist/index.cjs +18374 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +18357 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { Application, ConsoleCommand, ServiceProvider } from "@h3ravel/core";
|
|
1
2
|
import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
|
|
2
|
-
import { Application, ServiceProvider } from "@h3ravel/core";
|
|
3
3
|
import { EventHandlerRequest, H3Event } from "h3";
|
|
4
4
|
import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
|
|
5
5
|
|
|
6
|
+
//#region src/Commands/FireCommand.d.ts
|
|
7
|
+
declare class FireCommand extends ConsoleCommand {
|
|
8
|
+
/**
|
|
9
|
+
* The name and signature of the console command.
|
|
10
|
+
*
|
|
11
|
+
* @var string
|
|
12
|
+
*/
|
|
13
|
+
protected signature: string;
|
|
14
|
+
/**
|
|
15
|
+
* The console command description.
|
|
16
|
+
*
|
|
17
|
+
* @var string
|
|
18
|
+
*/
|
|
19
|
+
protected description: string;
|
|
20
|
+
handle(): Promise<void>;
|
|
21
|
+
protected fire(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
6
24
|
//#region src/Middleware.d.ts
|
|
7
25
|
declare abstract class Middleware implements IMiddleware {
|
|
8
26
|
abstract handle(context: HttpContext, next: () => Promise<unknown>): Promise<unknown>;
|
|
@@ -219,5 +237,5 @@ declare class Response implements IResponse {
|
|
|
219
237
|
getEvent<K extends DotNestedKeys<H3Event>>(key: K): DotNestedValue<H3Event, K>;
|
|
220
238
|
}
|
|
221
239
|
//#endregion
|
|
222
|
-
export { ApiResource, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
|
|
240
|
+
export { ApiResource, FireCommand, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
|
|
223
241
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { Application, ConsoleCommand, ServiceProvider } from "@h3ravel/core";
|
|
1
2
|
import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
|
|
2
3
|
import { EventHandlerRequest, H3Event } from "h3";
|
|
3
|
-
import { Application, ServiceProvider } from "@h3ravel/core";
|
|
4
4
|
import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
|
|
5
5
|
|
|
6
|
+
//#region src/Commands/FireCommand.d.ts
|
|
7
|
+
declare class FireCommand extends ConsoleCommand {
|
|
8
|
+
/**
|
|
9
|
+
* The name and signature of the console command.
|
|
10
|
+
*
|
|
11
|
+
* @var string
|
|
12
|
+
*/
|
|
13
|
+
protected signature: string;
|
|
14
|
+
/**
|
|
15
|
+
* The console command description.
|
|
16
|
+
*
|
|
17
|
+
* @var string
|
|
18
|
+
*/
|
|
19
|
+
protected description: string;
|
|
20
|
+
handle(): Promise<void>;
|
|
21
|
+
protected fire(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
6
24
|
//#region src/Middleware.d.ts
|
|
7
25
|
declare abstract class Middleware implements IMiddleware {
|
|
8
26
|
abstract handle(context: HttpContext, next: () => Promise<unknown>): Promise<unknown>;
|
|
@@ -219,5 +237,5 @@ declare class Response implements IResponse {
|
|
|
219
237
|
getEvent<K extends DotNestedKeys<H3Event>>(key: K): DotNestedValue<H3Event, K>;
|
|
220
238
|
}
|
|
221
239
|
//#endregion
|
|
222
|
-
export { ApiResource, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
|
|
240
|
+
export { ApiResource, FireCommand, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
|
|
223
241
|
//# sourceMappingURL=index.d.ts.map
|