@h3ravel/foundation 2.0.1 → 2.1.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1898,7 +1898,7 @@ declare abstract class Handler extends IExceptionHandler {
1898
1898
  /**
1899
1899
  * A map of exceptions with their corresponding custom log levels.
1900
1900
  */
1901
- protected levels: Map<string | Error, "log" | "debug" | "warn" | "info" | "error">;
1901
+ protected levels: Map<string | Error, "debug" | "info" | "warn" | "error" | "log">;
1902
1902
  /**
1903
1903
  * Internal exceptions that are not reported by default. Subclasses may expand.
1904
1904
  */
@@ -2298,7 +2298,7 @@ declare class HttpException extends Error {
2298
2298
  protected headers: Record<string, string>;
2299
2299
  code: number;
2300
2300
  constructor(statusCode: number, message?: string, previous?: Error | undefined, headers?: Record<string, string>, code?: number);
2301
- static fromStatusCode(statusCode: number, message?: string, previous?: Error, headers?: Record<string, string>, code?: number): NotAcceptableHttpException | AccessDeniedHttpException | BadRequestHttpException | ConflictHttpException | LengthRequiredHttpException | LockedHttpException | GoneHttpException | ServiceUnavailableHttpException | UnprocessableEntityHttpException | NotFoundHttpException | HttpException | PreconditionFailedHttpException | UnsupportedMediaTypeHttpException | PreconditionRequiredHttpException | TooManyRequestsHttpException;
2301
+ static fromStatusCode(statusCode: number, message?: string, previous?: Error, headers?: Record<string, string>, code?: number): AccessDeniedHttpException | TooManyRequestsHttpException | BadRequestHttpException | ConflictHttpException | GoneHttpException | LengthRequiredHttpException | LockedHttpException | NotAcceptableHttpException | NotFoundHttpException | PreconditionFailedHttpException | PreconditionRequiredHttpException | UnprocessableEntityHttpException | ServiceUnavailableHttpException | UnsupportedMediaTypeHttpException | HttpException;
2302
2302
  getStatusCode(): number;
2303
2303
  getHeaders(): Record<string, string>;
2304
2304
  setHeaders(headers: Record<string, string>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/foundation",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "H3ravel Foundation for shared and reuseable services.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -53,12 +53,12 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@h3ravel/contracts": "^2.0.1"
56
+ "@h3ravel/contracts": "^2.1.1"
57
57
  },
58
58
  "dependencies": {
59
59
  "@h3ravel/musket": "^1.29.0-alpha.15",
60
- "@h3ravel/shared": "^2.0.1",
61
- "@h3ravel/support": "^2.0.1",
60
+ "@h3ravel/shared": "^2.1.1",
61
+ "@h3ravel/support": "^2.1.1",
62
62
  "h3": "2.0.1-rc.5",
63
63
  "parasito": "^0.2.5"
64
64
  },