@arkstack/driver-h3 0.14.14 → 0.14.16

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.js +4 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import { t as staticAssetHandler } from "./middlewares-DWDWNHGY.js";
2
- import { Arkstack, ArkstackKitDriver } from "@arkstack/contract";
2
+ import { ArkstackKitDriver } from "@arkstack/contract";
3
3
  import { H3, HTTPResponse, serve, toResponse } from "h3";
4
- import { ErrorHandler, Logger, env, renderError } from "@arkstack/common";
4
+ import { ErrorHandler, Logger, env, renderError, resolveRuntimeModule } from "@arkstack/common";
5
5
  import ngrok from "@ngrok/ngrok";
6
6
  import { resolveMiddleware } from "@arkstack/http";
7
7
  import { registerPlugin } from "resora";
8
- import { join } from "node:path";
9
8
  import { Router as Router$1 } from "clear-router/h3";
10
9
  import { clearRouterH3Plugin } from "@resora/plugin-clear-router";
11
10
  //#region src/error-handler.ts
@@ -67,10 +66,10 @@ Router$1.configure({ inferParamName: true });
67
66
  var Router = class extends Router$1 {
68
67
  static async bind(app) {
69
68
  try {
70
- await Router$1.group("/api", join(Arkstack.rootDir(), "src/routes/api.ts"));
69
+ await Router$1.group("/api", resolveRuntimeModule("src/routes/api.ts"));
71
70
  } catch {}
72
71
  try {
73
- await Router$1.group("/", join(Arkstack.rootDir(), "src/routes/web.ts"));
72
+ await Router$1.group("/", resolveRuntimeModule("src/routes/web.ts"));
74
73
  } catch {}
75
74
  return Router$1.apply(app);
76
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/driver-h3",
3
- "version": "0.14.14",
3
+ "version": "0.14.16",
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",
@@ -41,13 +41,13 @@
41
41
  "@resora/plugin-clear-router": "^1.0.63",
42
42
  "clear-router": "^2.8.8",
43
43
  "resora": "^1.3.26",
44
- "@arkstack/contract": "^0.14.14"
44
+ "@arkstack/contract": "^0.14.16"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "h3": "2.0.1-rc.22",
48
- "@arkstack/auth": "^0.14.14",
49
- "@arkstack/foundry": "^0.14.14",
50
- "@arkstack/common": "^0.14.14"
48
+ "@arkstack/auth": "^0.14.16",
49
+ "@arkstack/foundry": "^0.14.16",
50
+ "@arkstack/common": "^0.14.16"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@arkstack/auth": {