@arkstack/common 0.12.24 → 0.12.26

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as importFile, E as outputDir, S as env, T as nodeEnv, _ as Hash, b as appUrl, c as abortIf, d as initializeGlobalContext, f as isClass, g as Exception, h as AppException, l as assertFound, m as RequestException, p as perPage, s as abort, u as getModel, v as Encryption, w as interopDefault, x as config, y as CONFIG_KEY } from "./utils-Y1a3rhA3.js";
1
+ import { C as importFile, E as outputDir, S as env, T as nodeEnv, _ as Hash, b as appUrl, c as abortIf, d as initializeGlobalContext, f as isClass, g as Exception, h as AppException, l as assertFound, m as RequestException, p as perPage, s as abort, u as getModel, v as Encryption, w as interopDefault, x as config, y as CONFIG_KEY } from "./utils-BFPGDwc3.js";
2
2
  import { Hook as Hook$1 } from "@arkstack/foundry";
3
3
  import { str } from "@h3ravel/support";
4
4
  import { Arkstack } from "@arkstack/contract";
@@ -1,2 +1,2 @@
1
- import { _ as Hash, a as use, c as abortIf, d as initializeGlobalContext, f as isClass, i as trait, l as assertFound, n as crc32, o as uses, p as perPage, r as getTraitMethods, s as abort, t as callTraitMethods, u as getModel, v as Encryption } from "../utils-Y1a3rhA3.js";
1
+ import { _ as Hash, a as use, c as abortIf, d as initializeGlobalContext, f as isClass, i as trait, l as assertFound, n as crc32, o as uses, p as perPage, r as getTraitMethods, s as abort, t as callTraitMethods, u as getModel, v as Encryption } from "../utils-BFPGDwc3.js";
2
2
  export { Encryption, Hash, abort, abortIf, assertFound, callTraitMethods, crc32, getModel, getTraitMethods, initializeGlobalContext, isClass, perPage, trait, use, uses };
@@ -44,9 +44,9 @@ const env = (env, defaultValue) => {
44
44
  * @returns
45
45
  */
46
46
  const appUrl = (link) => {
47
- const port = env("PORT") || "3000";
47
+ const port = env("PORT", env("APP_PORT", "3000"));
48
48
  const defaultUrl = `http://localhost:${port}`;
49
- const appUrl = env("APP_URL") ?? defaultUrl;
49
+ const appUrl = env("APP_URL", `http://localhost:${port}`);
50
50
  try {
51
51
  const url = new URL(appUrl);
52
52
  if (url.port || url.hostname === "localhost") url.port = port;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/common",
3
- "version": "0.12.24",
3
+ "version": "0.12.26",
4
4
  "type": "module",
5
5
  "description": "Core utilities, primitives, and shared infrastructure for the Arkstack ecosystem.",
6
6
  "homepage": "https://arkstack.toneflix.net",
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@h3ravel/support": "^2.1.4",
44
- "arkormx": "^2.5.6",
45
- "@arkstack/foundry": "^0.12.24",
46
- "@arkstack/contract": "^0.12.24"
44
+ "arkormx": "^2.5.7",
45
+ "@arkstack/foundry": "^0.12.26",
46
+ "@arkstack/contract": "^0.12.26"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsdown --config-loader unrun",