@cldmv/wisp 1.0.8 → 2.0.0

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/README.md CHANGED
@@ -14,17 +14,19 @@ Relative paths resolve from the file that calls wisp, not from wisp's own locati
14
14
 
15
15
  ## ✨ What's New
16
16
 
17
- ### Latest: v1.0.8 (October 2026)
17
+ ### Latest: v2.0.0 (November 2026)
18
18
 
19
- - **Development-dependency patch, no runtime change** — `@types/node` moves from 26.6.3 to 26.6.4 in the lockfile ([#46](https://github.com/CLDMV/wisp/pull/46)). The published package differs from v1.0.7 only in its `version` field.
20
- - [View full v1.0.8 Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.8.md)
19
+ - **`require("@cldmv/wisp")` returns the module object** — the CommonJS entry now gives back `{ default, wisp, wispSync }`, the same exports as `import`, instead of the `wisp` function. Change `require(x)(…)` to `require(x).wisp(…)` or `const { wisp } = require(x)`; `.wisp`, `.wispSync`, `.default` and destructuring keep working, and ESM `import` is unchanged ([#86](https://github.com/CLDMV/wisp/pull/86)).
20
+ - **Tests also run against the build** — `npm test` now includes `test:dist`, which builds the package and runs the suite against `dist/` ([#74](https://github.com/CLDMV/wisp/pull/74)).
21
+ - **`dist/` is built one file per module** — the tsup bundle is replaced by a per-file esbuild build that mirrors `src/`; the `require()` and `import` shapes are unchanged ([#91](https://github.com/CLDMV/wisp/pull/91)).
22
+ - [View full v2.0.0 Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v2/v2.0.0.md)
21
23
 
22
24
  ### Recent Releases
23
25
 
26
+ - **v1.0.9** (November 2026) — CommonJS entry renamed to `src/index.cjs` in source, caller-resolution tests through it, and the Node.js 22.22 development floor in `devEngines`; no change for consumers ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.9.md))
27
+ - **v1.0.8** (October 2026) — Development-dependency patch (`@types/node` 26.6.4); no runtime change ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.8.md))
24
28
  - **v1.0.7** (October 2026) — `require()` works inside esbuild and webpack bundles and fails clearly on older Node.js; a failed `validate` throws instead of loading the `fallback`; the package is now built into `dist/` and relicensed under Apache-2.0 ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.7.md))
25
29
  - **v1.0.6** (October 2026) — Uniform file headers via `@cldmv/fix-headers`, a CI fix and a development-dependency security update; no runtime change ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.6.md))
26
- - **v1.0.5** (October 2026) — First npm release since v1.0.1; TypeScript 6, chai 6 and `@types/node` 26 for development, v4 workflow syncs; no runtime change ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.5.md))
27
- - **v1.0.4** (September 2026) — Thrown errors now carry the original error as `cause`; ESLint wired up; mocha 12 ([Changelog](https://github.com/CLDMV/wisp/blob/master/docs/changelog/v1/v1.0.4.md))
28
30
 
29
31
  📚 **For complete version history and detailed release notes, see the [docs/changelog/](https://github.com/CLDMV/wisp/tree/master/docs/changelog/) folder.**
30
32
 
@@ -57,7 +59,8 @@ Relative paths resolve from the file that calls wisp, not from wisp's own locati
57
59
  ### Requirements
58
60
 
59
61
  - **Node.js 16 or higher** for `import` (ESM).
60
- - **`require()` needs Node.js ^20.19.0 or >=22.12.0** (synchronous `require(esm)`). On older Node.js versions, load the package with `import()` instead.
62
+ - **`require()` needs Node.js ^20.19.0 or >=22.13.0** (synchronous `require(esm)`). On older Node.js versions, load the package with `import()` instead.
63
+ - **Developing wisp needs Node.js 22.22.0 or later** (enforced via `devEngines`), while the package itself runs on Node.js 16+.
61
64
 
62
65
  ### Install
63
66
 
@@ -95,6 +98,8 @@ wisp("./config.json").then((config) => {
95
98
  const data = wispSync("./data.json");
96
99
  ```
97
100
 
101
+ `require("@cldmv/wisp")` returns the module object, the same exports as `import`: `{ default, wisp, wispSync }`. It is not the `wisp` function itself, so call `require("@cldmv/wisp").wisp(...)` (or destructure as above); `.default` is the same function as `.wisp`.
102
+
98
103
  ---
99
104
 
100
105
  ## 📖 API Reference
@@ -222,6 +227,8 @@ try {
222
227
 
223
228
  Contributions are welcome — open an [issue](https://github.com/CLDMV/wisp/issues) or a pull request.
224
229
 
230
+ In a checkout, the package name resolves to the built `dist/` (run `npm run build` first). The `wisp-dev` export condition switches it to the source in `src/`: `src/index.mjs` for `import`, `src/index.cjs` for `require()`. Pass it per command (`node --conditions=wisp-dev app.mjs`) or once per shell (`export NODE_OPTIONS=--conditions=wisp-dev`). The test scripts set it themselves: `npm test` runs the suite against `src/`, and `npm run test:dist` builds the package and runs it against `dist/`.
231
+
225
232
  [![Contributors]][contributors_url] [![Sponsor shinrai]][sponsor_url]
226
233
 
227
234
  ---
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  *
3
3
  * @Project: @cldmv/wisp
4
- * @Filename: /src/cjs-shim.cjs
4
+ * @Filename: src/index.cjs
5
5
  * @Date: 2025-10-30T15:06:33-07:00 (1761861993)
6
6
  * @Author: Nate Corcoran <CLDMV>
7
7
  * @Email: <Shinrai@users.noreply.github.com>
8
8
  * -----
9
9
  * @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
10
- * @Last modified time: 2026-10-03T19:34:10-07:00 (1791081250)
10
+ * @Last modified time: 2026-11-28T09:53:26-08:00 (1795888406)
11
11
  * -----
12
12
  * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
13
13
  *
@@ -19,12 +19,12 @@
19
19
  * @public
20
20
  *
21
21
  * @description
22
- * This module is a thin wrapper: it loads ./index.mjs through Node's synchronous require(esm)
23
- * and re-exports it. It is not bundled — tsup copies it verbatim to dist/index.cjs (see
24
- * tsup.config.mjs), where ./index.mjs is the ESM bundle; under the `wisp-dev` export
25
- * condition it is served from src/, where ./index.mjs is the source entry. It uses a plain
26
- * require() rather than createRequire so the file keeps working when bundled by
27
- * esbuild/webpack.
22
+ * Generic CLDMV CommonJS shim: it loads ./index.mjs through Node's synchronous require(esm) and
23
+ * hands back the same exports as `import`. The ESM entry exports two distinct values (`wisp` and
24
+ * `wispSync`; `default` is `wisp`), so require() returns the module object
25
+ * `{ __esModule, default: wisp, wisp, wispSync }`, not a callable. It is not bundled: tsup copies it
26
+ * verbatim to dist/index.cjs, where ./index.mjs is the ESM bundle; under the `wisp-dev` export
27
+ * condition it is served from src/, where ./index.mjs is the source entry.
28
28
  *
29
29
  * @example
30
30
  * const { wisp, wispSync } = require('@cldmv/wisp');
@@ -33,20 +33,23 @@
33
33
 
34
34
  "use strict";
35
35
 
36
- // This is a thin wrapper: it loads ./index.mjs through Node's synchronous require(esm).
37
- // Node.js versions without require(esm) would fail with a bare ERR_REQUIRE_ESM, so fail
38
- // early with a message that says what to do instead.
36
+ // Node.js versions without require(esm) would fail with a bare ERR_REQUIRE_ESM, so fail early with a
37
+ // message that says what to do instead. The floor is 22.13 rather than 22.12 because Node.js 22.12
38
+ // has require(esm) but prints an ExperimentalWarning on every use.
39
39
  if (!process.features?.require_module) {
40
40
  const error = new Error(
41
- `@cldmv/wisp: require() needs Node.js ^20.19.0 or >=22.12.0 (this is ${process.version}). On older Node.js, load the package with import() instead.`
41
+ `@cldmv/wisp: require() needs Node.js ^20.19.0 or >=22.13.0 (this is ${process.version}). On older Node.js, load the package with import() instead.`
42
42
  );
43
43
  error.code = "ERR_REQUIRE_ESM";
44
44
  throw error;
45
45
  }
46
46
 
47
+ // Same exports as `import`. One distinct exported value (aliases of it count once) comes back as that value,
48
+ // so require(x)(...) works; anything else comes back as the module object ({ default, ...named }).
47
49
  const esm = require("./index.mjs");
48
-
49
- module.exports = esm.default;
50
- module.exports.default = esm.default;
51
- module.exports.wisp = esm.wisp;
52
- module.exports.wispSync = esm.wispSync;
50
+ const values = new Set(
51
+ Object.keys(esm)
52
+ .filter((key) => key !== "__esModule")
53
+ .map((key) => esm[key])
54
+ );
55
+ module.exports = values.size === 1 ? values.values().next().value : esm;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var E=Object.defineProperty;var l=(t,e)=>E(t,"name",{value:e,configurable:!0});import N from"node:fs";import{readFile as J}from"node:fs/promises";import F from"node:path";import{pathToFileURL as L}from"node:url";import R from"node:fs";import p from"node:path";import{fileURLToPath as g,pathToFileURL as m}from"node:url";var b=l(t=>t&&String(t).startsWith("file://")?g(String(t)):t?String(t):null,"toFsPath");function k(t){let e=Error.prepareStackTrace;try{Error.prepareStackTrace=(r,f)=>f;let n=new Error("Stack trace");return t&&Error.captureStackTrace(n,t),n.stack||[]}finally{Error.prepareStackTrace=e}}l(k,"getStack");var h=g(import.meta.url);function T(t){let e=t;for(;e!==p.dirname(e);){let n=p.join(e,"package.json");if(R.existsSync(n))return e;e=p.dirname(e)}return null}l(T,"findPackageRoot");var w=T(h);function v(){var f,c;let t=!1,e=!1,n=!1,r=!1;for(let a of k(v)){let i=b((f=a==null?void 0:a.getFileName)==null?void 0:f.call(a));if(!i||(c=i.startsWith)!=null&&c.call(i,"node:internal")||i===h)continue;let o=!1,s=!1;if(w&&i.startsWith(w+p.sep)){let d=p.relative(w,i).split(p.sep);o=d[0]==="src"||d[0]==="dist",s=d.length===1&&/^index\.(mjs|cjs|js|ts)$/.test(d[0])}if(n&&!o&&(t=!0),r&&!s&&(e=!0),t)return i;n=o,r=s}return null}l(v,"pickPrimaryBaseFile");function S(){var t,e;for(let n of k(S)){let r=b((t=n==null?void 0:n.getFileName)==null?void 0:t.call(n));if(r&&!((e=r.startsWith)!=null&&e.call(r,"node:internal"))&&r!==h)return r}return h}l(S,"pickFallbackBaseFile");function W(t,e,n,r){if(typeof t!="string")throw new TypeError("rel must be a string");let f=v()??S(),c=e(f,t);if(n(c))return c;let a=S();return r(a,t)}l(W,"resolveWith");function y(t){var e;return(e=t.startsWith)!=null&&e.call(t,"file://")?t:p.isAbsolute(t)?m(t).href:W(t,(n,r)=>new URL(r,m(n)).href,n=>R.existsSync(g(n)),(n,r)=>new URL(r,m(n)).href)}l(y,"resolveUrlFromCaller");function U(t){return typeof globalThis.structuredClone=="function"?globalThis.structuredClone(t):JSON.parse(JSON.stringify(t))}l(U,"deepClone");function P(t,e,n){let r=t.default??t;if(!e&&!n)return r;let f=r===t?{...t}:r;return e?JSON.parse(JSON.stringify(f),e):U(f)}l(P,"moduleValue");function x(t,e,n){if(t)try{t(e)}catch(r){throw new Error(`@cldmv/wisp: Failed to load JSON file at ${n.href}: @cldmv/wisp: ${(r==null?void 0:r.message)??r}`,{cause:r})}}l(x,"runValidate");async function O(t,e={}){let{base:n,validate:r,reviver:f,type:c="json",fallback:a}=e,i;if(t instanceof URL)i=t;else{let s=String(t);s.startsWith("file://")?i=new URL(s):F.isAbsolute(s)?i=L(s):n?i=new URL(s,new URL(n)):i=new URL(y(s))}let o=l(async s=>P(await import(i.href,s),f,r),"loadWith");for(let s of[{with:{type:c}},{assert:{type:c}}]){let u;try{u=await o(s)}catch{continue}return x(r,u,i),u}if(c==="json"){let s;try{let u=await J(i,"utf8");s=U(JSON.parse(u,f))}catch(u){if(a)return O(a,{...e,fallback:void 0});throw new Error(`@cldmv/wisp: Failed to load JSON file at ${i.href}: ${u.message}`,{cause:u})}return x(r,s,i),s}throw new Error(`@cldmv/wisp: Unsupported type '${c}' or failed to load module at ${i.href}`)}l(O,"wisp");function I(t,e={}){let{base:n,validate:r,reviver:f,fallback:c}=e,a;if(t instanceof URL)a=t;else{let o=String(t);o.startsWith("file://")?a=new URL(o):F.isAbsolute(o)?a=L(o):n?a=new URL(o,new URL(n)):a=new URL(y(o))}let i;try{let o=N.readFileSync(a,"utf8");i=U(JSON.parse(o,f))}catch(o){if(c)return I(c,{...e,fallback:void 0});throw new Error(`@cldmv/wisp: Failed to load JSON file at ${a.href}: ${o.message}`,{cause:o})}return x(r,i,a),i}l(I,"wispSync");var $=O;export{$ as default,O as wisp,I as wispSync};
2
- //# sourceMappingURL=index.mjs.map
1
+ export*from"./wisp.mjs";import{default as f}from"./wisp.mjs";export{f as default};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ var F=Object.defineProperty;var a=(t,e)=>F(t,"name",{value:e,configurable:!0});import p from"node:fs";import o from"node:path";import{fileURLToPath as f,pathToFileURL as l}from"node:url";const S=a(t=>t&&String(t).startsWith("file://")?f(String(t)):t?String(t):null,"toFsPath");function g(t){const e=Error.prepareStackTrace;try{Error.prepareStackTrace=(n,i)=>i;const r=new Error("Stack trace");return t&&Error.captureStackTrace(r,t),r.stack||[]}finally{Error.prepareStackTrace=e}}a(g,"getStack");const u=f(import.meta.url);function d(t){let e=t;for(;e!==o.dirname(e);){const r=o.join(e,"package.json");if(p.existsSync(r))return e;e=o.dirname(e)}return null}a(d,"findPackageRoot");const m=d(u);function k(){var e,r;let t=!1;for(const n of g(k)){const i=S((e=n==null?void 0:n.getFileName)==null?void 0:e.call(n));if(!i||(r=i.startsWith)!=null&&r.call(i,"node:internal")||i===u)continue;let s=!1;if(m&&i.startsWith(m+o.sep)){const[c]=o.relative(m,i).split(o.sep);s=c==="src"||c==="dist"}if(t&&!s)return i;t=s}return null}a(k,"pickPrimaryBaseFile");function h(){var t,e;for(const r of g(h)){const n=S((t=r==null?void 0:r.getFileName)==null?void 0:t.call(r));if(n&&!((e=n.startsWith)!=null&&e.call(n,"node:internal"))&&n!==u)return n}return u}a(h,"pickFallbackBaseFile");function y(t,e,r,n){if(typeof t!="string")throw new TypeError("rel must be a string");const i=k()??h(),s=e(i,t);if(r(s))return s;const c=h();return n(c,t)}a(y,"resolveWith");function x(t){var e;return(e=t.startsWith)!=null&&e.call(t,"file://")?f(t):o.isAbsolute(t)?t:y(t,(r,n)=>o.resolve(o.dirname(r),n),r=>p.existsSync(r),(r,n)=>o.resolve(o.dirname(r),n))}a(x,"resolvePathFromCaller");function w(t){var e;return(e=t.startsWith)!=null&&e.call(t,"file://")?t:o.isAbsolute(t)?l(t).href:y(t,(r,n)=>new URL(n,l(r)).href,r=>p.existsSync(f(r)),(r,n)=>new URL(n,l(r)).href)}a(w,"resolveUrlFromCaller");export{g as getStack,x as resolvePathFromCaller,w as resolveUrlFromCaller,S as toFsPath};
2
+ //# sourceMappingURL=resolve-from-caller.mjs.map
package/dist/wisp.mjs ADDED
@@ -0,0 +1,2 @@
1
+ var S=Object.defineProperty;var u=(e,l)=>S(e,"name",{value:l,configurable:!0});import U from"node:fs";import{readFile as b}from"node:fs/promises";import p from"node:path";import{pathToFileURL as h}from"node:url";import{resolveUrlFromCaller as m}from"./lib/resolve-from-caller.mjs";function d(e){return typeof globalThis.structuredClone=="function"?globalThis.structuredClone(e):JSON.parse(JSON.stringify(e))}u(d,"deepClone");function L(e,l,n){const t=e.default??e;if(!l&&!n)return t;const f=t===e?{...e}:t;return l?JSON.parse(JSON.stringify(f),l):d(f)}u(L,"moduleValue");function w(e,l,n){if(e)try{e(l)}catch(t){throw new Error(`@cldmv/wisp: Failed to load JSON file at ${n.href}: @cldmv/wisp: ${(t==null?void 0:t.message)??t}`,{cause:t})}}u(w,"runValidate");async function y(e,l={}){const{base:n,validate:t,reviver:f,type:c="json",fallback:i}=l;let r;if(e instanceof URL)r=e;else{const a=String(e);a.startsWith("file://")?r=new URL(a):p.isAbsolute(a)?r=h(a):n?r=new URL(a,new URL(n)):r=new URL(m(a))}const s=u(async a=>L(await import(r.href,a),f,t),"loadWith");for(const a of[{with:{type:c}},{assert:{type:c}}]){let o;try{o=await s(a)}catch{continue}return w(t,o,r),o}if(c==="json"){let a;try{const o=await b(r,"utf8");a=d(JSON.parse(o,f))}catch(o){if(i)return y(i,{...l,fallback:void 0});throw new Error(`@cldmv/wisp: Failed to load JSON file at ${r.href}: ${o.message}`,{cause:o})}return w(t,a,r),a}throw new Error(`@cldmv/wisp: Unsupported type '${c}' or failed to load module at ${r.href}`)}u(y,"wisp");function R(e,l={}){const{base:n,validate:t,reviver:f,fallback:c}=l;let i;if(e instanceof URL)i=e;else{const s=String(e);s.startsWith("file://")?i=new URL(s):p.isAbsolute(s)?i=h(s):n?i=new URL(s,new URL(n)):i=new URL(m(s))}let r;try{const s=U.readFileSync(i,"utf8");r=d(JSON.parse(s,f))}catch(s){if(c)return R(c,{...l,fallback:void 0});throw new Error(`@cldmv/wisp: Failed to load JSON file at ${i.href}: ${s.message}`,{cause:s})}return w(t,r,i),r}u(R,"wispSync");var F=y;export{F as default,y as wisp,R as wispSync};
2
+ //# sourceMappingURL=wisp.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/wisp",
3
- "version": "1.0.8",
3
+ "version": "2.0.0",
4
4
  "description": "Version-agnostic JSON importing for Node.js with fallback handling and caller path resolution.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -11,7 +11,7 @@
11
11
  "wisp-dev": {
12
12
  "types": "./types/index.d.mts",
13
13
  "import": "./src/index.mjs",
14
- "require": "./src/cjs-shim.cjs"
14
+ "require": "./src/index.cjs"
15
15
  },
16
16
  "types": "./types/index.d.mts",
17
17
  "import": "./dist/index.mjs",
@@ -19,15 +19,16 @@
19
19
  }
20
20
  },
21
21
  "scripts": {
22
- "build": "tsup",
22
+ "build": "node scripts/build.mjs",
23
23
  "build:ci": "npm run lint && npm run format:check && npm run types:build && npm run build && npm run test && npm run test:types",
24
24
  "prepack": "npm run types:build && npm run build",
25
25
  "prepare": "node -e \"import('./.githooks/install.mjs').catch(()=>{})\"",
26
- "test": "node tests/run-vitest.mjs && npm run test:cjs",
27
- "test:cjs": "npm run build && node --test tests/cjs/entry.test.cjs tests/bundle/caller-resolution.test.mjs",
26
+ "test": "node tests/run-vitest.mjs && npm run test:cjs && npm run test:dist",
27
+ "test:cjs": "npm run build && node --conditions=wisp-dev --test tests/cjs/entry.test.cjs tests/built/caller-resolution.test.mjs",
28
+ "test:dist": "npm run build && node tests/run-vitest.mjs --mode=dist",
28
29
  "test:watch": "vitest --config .configs/vitest.config.mjs",
29
30
  "coverage": "node tests/run-vitest.mjs --coverage-quiet && npm run test:cjs",
30
- "ci:coverage": "npm run coverage",
31
+ "ci:coverage": "npm run coverage && npm run test:dist",
31
32
  "types:build": "tsc",
32
33
  "types:check": "tsc --noEmit",
33
34
  "test:types": "npm run types:check",
@@ -82,24 +83,28 @@
82
83
  "LICENSE"
83
84
  ],
84
85
  "devDependencies": {
85
- "@cldmv/configs": "^1.2.4",
86
- "@cldmv/eslint-plugin-jsonv": "^1.0.15",
87
- "@cldmv/fix-headers": "^2.2.0",
88
- "@cldmv/jsonv": "^1.1.3",
89
- "@cldmv/prettier-plugin-jsonv": "^1.1.3",
90
- "@cldmv/vitest-runner": "^1.5.3",
91
- "@eslint/css": "^2.0.0",
86
+ "@cldmv/configs": "^1.5.0",
87
+ "@cldmv/eslint-plugin-jsonv": "^1.0.17",
88
+ "@cldmv/fix-headers": "^2.6.1",
89
+ "@cldmv/jsonv": "^1.2.4",
90
+ "@cldmv/prettier-plugin-jsonv": "^1.2.4",
91
+ "@cldmv/vitest-runner": "^1.11.4",
92
+ "@eslint/css": "^2.0.1",
92
93
  "@eslint/js": "^10.0.1",
93
- "@eslint/json": "^2.1.0",
94
+ "@eslint/json": "^2.1.1",
94
95
  "@eslint/markdown": "^8.0.3",
95
- "@types/node": "^26.6.2",
96
- "@vitest/coverage-v8": "^5.0.3",
97
- "eslint": "^10.12.0",
98
- "globals": "^17.13.0",
99
- "prettier": "^3.9.9",
100
- "tsup": "^8.5.1",
96
+ "@types/node": "^26.6.6",
97
+ "@vitest/coverage-v8": "^5.0.5",
98
+ "esbuild": "^0.28.2",
99
+ "eslint": "^10.14.0",
100
+ "globals": "^17.14.0",
101
+ "prettier": "^3.9.10",
101
102
  "typescript": "^6.0.3",
102
- "vitest": "^5.0.3"
103
+ "vitest": "^5.0.5"
104
+ },
105
+ "overrides": {
106
+ "katex": ">=0.19.1 <1.0.0",
107
+ "minimatch": "^11.0.3"
103
108
  },
104
109
  "publishConfig": {
105
110
  "access": "public"
@@ -107,5 +112,12 @@
107
112
  "engines": {
108
113
  "node": ">=16.0.0"
109
114
  },
115
+ "devEngines": {
116
+ "runtime": {
117
+ "name": "node",
118
+ "version": ">=22.22.0",
119
+ "onFail": "error"
120
+ }
121
+ },
110
122
  "sideEffects": false
111
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-from-caller.d.mts","sourceRoot":"","sources":["../../src/lib/resolve-from-caller.mjs"],"names":[],"mappings":"AAuFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,6CAhCa,KAAK,CAAC,QAAQ,CAAC,CA0C3B;AA8MD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,2CAzCW,MAAM,GACJ,MAAM,CAsDlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,0CA1CW,MAAM,GACJ,MAAM,CAuDlB;AAxXM,4BAvBI,GAAG,GACD,MAAM,GAAC,IAAI,CAsB+F;;iBA4XzG,MAAY,MAAM,GAAC,SAAS;mBAC5B,MAAY,MAAM,GAAC,SAAS;qBAC5B,MAAY,MAAM,GAAC,SAAS;iBAC5B,MAAY,MAAM,GAAC,SAAS;mBAC5B,MAAY,MAAM,GAAC,SAAS;8BAC5B,MAAY,MAAM,GAAC,SAAS;qBAC5B,MAAY,MAAM,GAAC,SAAS;cAC5B,MAAY,OAAO,GAAC,SAAS;YAC7B,MAAY,OAAO,GAAC,SAAS;mBAC7B,MAAY,OAAO,GAAC,SAAS;gBAC7B,MAAY,OAAO,GAAC,SAAS;aAC7B,MAAY,OAAO,GAAC,SAAS;kBAC7B,MAAY,OAAO,GAAC,SAAS;qBAC7B,MAAY,MAAM,GAAC,SAAS"}
1
+ {"version":3,"file":"resolve-from-caller.d.mts","sourceRoot":"","sources":["../../src/lib/resolve-from-caller.mjs"],"names":[],"mappings":"AAuFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,6CAhCa,KAAK,CAAC,QAAQ,CAAC,CA0C3B;AA8KD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,2CAzCW,MAAM,GACJ,MAAM,CAsDlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,0CA1CW,MAAM,GACJ,MAAM,CAuDlB;AAxVM,4BAvBI,GAAG,GACD,MAAM,GAAC,IAAI,CAsB+F;;iBA4VzG,MAAY,MAAM,GAAC,SAAS;mBAC5B,MAAY,MAAM,GAAC,SAAS;qBAC5B,MAAY,MAAM,GAAC,SAAS;iBAC5B,MAAY,MAAM,GAAC,SAAS;mBAC5B,MAAY,MAAM,GAAC,SAAS;8BAC5B,MAAY,MAAM,GAAC,SAAS;qBAC5B,MAAY,MAAM,GAAC,SAAS;cAC5B,MAAY,OAAO,GAAC,SAAS;YAC7B,MAAY,OAAO,GAAC,SAAS;mBAC7B,MAAY,OAAO,GAAC,SAAS;gBAC7B,MAAY,OAAO,GAAC,SAAS;aAC7B,MAAY,OAAO,GAAC,SAAS;kBAC7B,MAAY,OAAO,GAAC,SAAS;qBAC7B,MAAY,MAAM,GAAC,SAAS"}