@h3ravel/foundation 1.29.0-alpha.13 → 1.29.0-alpha.15
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 +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1647,7 +1647,7 @@ declare class TestApplication {
|
|
|
1647
1647
|
*
|
|
1648
1648
|
* @returns
|
|
1649
1649
|
*/
|
|
1650
|
-
init(cwd?: string): Promise<
|
|
1650
|
+
init(cwd?: string): Promise<Application>;
|
|
1651
1651
|
configure(app: Application): any;
|
|
1652
1652
|
}
|
|
1653
1653
|
//#endregion
|
|
@@ -1824,7 +1824,7 @@ declare abstract class Handler extends IExceptionHandler {
|
|
|
1824
1824
|
/**
|
|
1825
1825
|
* A map of exceptions with their corresponding custom log levels.
|
|
1826
1826
|
*/
|
|
1827
|
-
protected levels: Map<string | Error, "
|
|
1827
|
+
protected levels: Map<string | Error, "log" | "debug" | "warn" | "info" | "error">;
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Internal exceptions that are not reported by default. Subclasses may expand.
|
|
1830
1830
|
*/
|
|
@@ -2224,7 +2224,7 @@ declare class HttpException extends Error {
|
|
|
2224
2224
|
protected headers: Record<string, string>;
|
|
2225
2225
|
code: number;
|
|
2226
2226
|
constructor(statusCode: number, message?: string, previous?: Error | undefined, headers?: Record<string, string>, code?: number);
|
|
2227
|
-
static fromStatusCode(statusCode: number, message?: string, previous?: Error, headers?: Record<string, string>, code?: number):
|
|
2227
|
+
static fromStatusCode(statusCode: number, message?: string, previous?: Error, headers?: Record<string, string>, code?: number): NotAcceptableHttpException | ConflictHttpException | GoneHttpException | LengthRequiredHttpException | NotFoundHttpException | LockedHttpException | PreconditionFailedHttpException | UnsupportedMediaTypeHttpException | BadRequestHttpException | PreconditionRequiredHttpException | ServiceUnavailableHttpException | TooManyRequestsHttpException | UnprocessableEntityHttpException | AccessDeniedHttpException | HttpException;
|
|
2228
2228
|
getStatusCode(): number;
|
|
2229
2229
|
getHeaders(): Record<string, string>;
|
|
2230
2230
|
setHeaders(headers: Record<string, string>): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/foundation",
|
|
3
|
-
"version": "1.29.0-alpha.
|
|
3
|
+
"version": "1.29.0-alpha.15",
|
|
4
4
|
"description": "H3ravel Foundation for shared and reuseable services.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@h3ravel/contracts": "^1.29.0-alpha.
|
|
58
|
+
"@h3ravel/contracts": "^1.29.0-alpha.15",
|
|
59
59
|
"@types/supertest": "^6.0.3",
|
|
60
60
|
"supertest": "^7.1.4"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@h3ravel/musket": "^1.29.0-alpha.11",
|
|
64
|
-
"@h3ravel/shared": "^1.29.0-alpha.
|
|
65
|
-
"@h3ravel/support": "^1.29.0-alpha.
|
|
64
|
+
"@h3ravel/shared": "^1.29.0-alpha.15",
|
|
65
|
+
"@h3ravel/support": "^1.29.0-alpha.15",
|
|
66
66
|
"h3": "2.0.1-rc.5"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|