@arkstack/driver-express 0.14.16 → 0.14.18

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,4 +1,4 @@
1
- import { Exception, Hook, Logger, config, env, nodeEnv } from "@arkstack/common";
1
+ import { Exception, Hook, Logger, config, env, nodeEnv, resolveRuntimeDir } from "@arkstack/common";
2
2
  import { applyRuntimeConfig, getDefaultConfig, runWithCtx, setCtx } from "resora";
3
3
  import multer from "multer";
4
4
  import { rateLimit } from "express-rate-limit";
@@ -157,12 +157,17 @@ var RequestLoggerMiddleware = class {
157
157
  * async context so downstream handlers resolve the correct context.
158
158
  */
159
159
  const resora = () => {
160
+ let resources;
160
161
  return (req, res, next) => {
161
162
  try {
162
- applyRuntimeConfig({
163
- ...getDefaultConfig(),
164
- ...config("resources", {})
165
- });
163
+ if (!resources) {
164
+ resources = {
165
+ ...getDefaultConfig(),
166
+ ...config("resources", {})
167
+ };
168
+ if (typeof resources.resourcesDir === "string") resources.resourcesDir = resolveRuntimeDir(resources.resourcesDir);
169
+ }
170
+ applyRuntimeConfig(resources);
166
171
  } catch {}
167
172
  setCtx({
168
173
  req,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/driver-express",
3
- "version": "0.14.16",
3
+ "version": "0.14.18",
4
4
  "type": "module",
5
5
  "description": "Express driver for Arkstack, providing Express-based runtime integration for the framework.",
6
6
  "homepage": "https://arkstack.toneflix.net",
@@ -38,18 +38,18 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@ngrok/ngrok": "^1.7.0",
41
- "@resora/plugin-clear-router": "^1.0.63",
42
- "clear-router": "^2.8.8",
41
+ "@resora/plugin-clear-router": "^1.0.65",
42
+ "clear-router": "^2.8.9",
43
43
  "express-rate-limit": "^8.4.1",
44
44
  "multer": "^2.1.1",
45
- "resora": "^1.3.26",
46
- "@arkstack/contract": "^0.14.16"
45
+ "resora": "^1.3.27",
46
+ "@arkstack/contract": "^0.14.18"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "express": "^5.2.1",
50
- "@arkstack/foundry": "^0.14.16",
51
- "@arkstack/auth": "^0.14.16",
52
- "@arkstack/common": "^0.14.16"
50
+ "@arkstack/common": "^0.14.18",
51
+ "@arkstack/auth": "^0.14.18",
52
+ "@arkstack/foundry": "^0.14.18"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@arkstack/auth": {