@arkstack/driver-h3 0.12.12 → 0.12.14

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.
@@ -1,12 +1,19 @@
1
- import { n as MiddlewareConfig, t as Middleware$2 } from "./types-C4wkZQOC.js";
1
+ import { n as MiddlewareConfig, t as Middleware$2 } from "./types-yX_T9j5I.js";
2
2
  import { ArkstackKitDriver, ArkstackRouteListOptions, PromiseOrValue } from "@arkstack/contract";
3
- import { H3, H3Event, HTTPError } from "h3";
3
+ import { H3, H3Event, HTTPError, HTTPResponse } from "h3";
4
4
  import { Route } from "clear-router";
5
5
  import { Router } from "clear-router/h3";
6
6
  import { H3App, Handler, HttpContext, Middleware as Middleware$1 } from "clear-router/types/h3";
7
7
 
8
8
  //#region src/error-handler.d.ts
9
- declare const defaultErrorHandler: (err: HTTPError | Error | string, event: H3Event) => Promise<any>;
9
+ declare const defaultErrorHandler: (err: HTTPError | Error | string, event: H3Event) => Promise<HTTPResponse | {
10
+ error: boolean;
11
+ message: string;
12
+ status: "error";
13
+ code: number;
14
+ errors?: unknown;
15
+ stack?: string;
16
+ }>;
10
17
  //#endregion
11
18
  //#region src/Router.d.ts
12
19
  declare class Router$1 extends Router {
@@ -1,12 +1,19 @@
1
1
  import { n as MiddlewareConfig, t as Middleware$2 } from "./types-DWUchLdg.js";
2
2
  import { ArkstackKitDriver, ArkstackRouteListOptions, PromiseOrValue } from "@arkstack/contract";
3
- import { H3, H3Event, HTTPError } from "h3";
3
+ import { H3, H3Event, HTTPError, HTTPResponse } from "h3";
4
4
  import { Route } from "clear-router";
5
5
  import { Router } from "clear-router/h3";
6
6
  import { H3App, Handler, HttpContext, Middleware as Middleware$1 } from "clear-router/types/h3";
7
7
 
8
8
  //#region src/error-handler.d.ts
9
- declare const defaultErrorHandler: (err: HTTPError | Error | string, event: H3Event) => Promise<any>;
9
+ declare const defaultErrorHandler: (err: HTTPError | Error | string, event: H3Event) => Promise<HTTPResponse | {
10
+ error: boolean;
11
+ message: string;
12
+ status: "error";
13
+ code: number;
14
+ errors?: unknown;
15
+ stack?: string;
16
+ }>;
10
17
  //#endregion
11
18
  //#region src/Router.d.ts
12
19
  declare class Router$1 extends Router {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /// <reference path="./app.d.ts" />
2
- import { a as Router, i as H3Middleware, n as H3DriverOptions, o as defaultErrorHandler, r as H3EventResponse, t as H3Driver } from "./index-BLhGjrmA.js";
2
+ import { a as Router, i as H3Middleware, n as H3DriverOptions, o as defaultErrorHandler, r as H3EventResponse, t as H3Driver } from "./index-BJ2iafCy.js";
3
3
  export { H3Driver, H3DriverOptions, H3EventResponse, H3Middleware, Router, defaultErrorHandler };
@@ -1,4 +1,4 @@
1
- import { i as H3Middleware } from "../index-BLhGjrmA.js";
1
+ import { i as H3Middleware } from "../index-BJ2iafCy.js";
2
2
  import * as _$h3 from "h3";
3
3
  import { EventHandlerRequest, H3Event } from "h3";
4
4
  import { NextFunction } from "clear-router/types/h3";
@@ -1,12 +1,12 @@
1
1
  /// <reference path="./app.d.ts" />
2
2
  import { ArkstackKitDriver, ArkstackMiddlewareConfig, ArkstackRouteListOptions, PromiseOrValue } from "@arkstack/contract";
3
- import { H3, H3Event, HTTPError, Middleware } from "h3";
3
+ import { H3, H3Event, HTTPError, HTTPResponse, Middleware } from "h3";
4
4
  import { Route } from "clear-router";
5
5
  import { Router } from "clear-router/h3";
6
6
  import { ClassMiddleware } from "clear-router/types/basic";
7
7
  import { H3App, Handler, HttpContext, Middleware as Middleware$1 } from "clear-router/types/h3";
8
8
 
9
- //#region dist/index-Dls9g_8I.d.ts
9
+ //#region dist/index-DIJtwwZP.d.ts
10
10
  //#endregion
11
11
  //#region src/index.d.ts
12
12
  type H3Middleware = Middleware$1 | [Middleware$1, Record<string, any>];
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as MiddlewareConfig, t as Middleware } from "./types-C4wkZQOC.js";
1
+ import { n as MiddlewareConfig, t as Middleware } from "./types-yX_T9j5I.js";
2
2
  export { Middleware, MiddlewareConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/driver-h3",
3
- "version": "0.12.12",
3
+ "version": "0.12.14",
4
4
  "type": "module",
5
5
  "description": "H3 driver for Arkstack, providing H3-based runtime integration for the framework.",
6
6
  "homepage": "https://arkstack.toneflix.net",
@@ -38,15 +38,15 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "clear-router": "^2.8.6",
41
- "@resora/plugin-clear-router": "^1.0.37",
42
- "resora": "^1.3.6",
43
- "@arkstack/contract": "^0.12.12"
41
+ "@resora/plugin-clear-router": "^1.0.39",
42
+ "resora": "^1.3.7",
43
+ "@arkstack/contract": "^0.12.14"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "h3": "2.0.1-rc.22",
47
- "@arkstack/foundry": "^0.12.12",
48
- "@arkstack/auth": "^0.12.12",
49
- "@arkstack/common": "^0.12.12"
47
+ "@arkstack/auth": "^0.12.14",
48
+ "@arkstack/foundry": "^0.12.14",
49
+ "@arkstack/common": "^0.12.14"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@arkstack/auth": {