@layerzerolabs/common-node-utils 0.0.67 → 0.0.74
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/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-test.log +1 -1
- package/dist/{ORVETYPP.cjs → AY3Z4VAF.cjs} +12 -2
- package/dist/AY3Z4VAF.cjs.map +1 -0
- package/dist/{PXUGBXL3.js → HUETPARE.js} +13 -4
- package/dist/HUETPARE.js.map +1 -0
- package/dist/files.cjs +6 -2
- package/dist/files.d.ts +1 -0
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/files.ts +10 -1
- package/dist/ORVETYPP.cjs.map +0 -1
- package/dist/PXUGBXL3.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/common/common-node-utils/tsup.config.ts
|
|
9
|
-
[34mCLI[39m Target:
|
|
9
|
+
[34mCLI[39m Target: ES2023
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/files.cjs [22m[
|
|
14
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m1.
|
|
15
|
-
[32mCJS[39m [1mdist/
|
|
13
|
+
[32mCJS[39m [1mdist/files.cjs [22m[32m421.00 B[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m1.99 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/AY3Z4VAF.cjs [22m[32m1019.00 B[39m
|
|
16
16
|
[32mCJS[39m [1mdist/files.cjs.map [22m[32m70.00 B[39m
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m2.08 KB[39m
|
|
18
|
-
[32mCJS[39m [1mdist/
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
20
|
-
[32mESM[39m [1mdist/
|
|
21
|
-
[32mESM[39m [1mdist/
|
|
22
|
-
[32mESM[39m [1mdist/
|
|
23
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m2.04 KB[39m
|
|
24
|
-
[32mESM[39m [1mdist/PXUGBXL3.js.map [22m[32m1.98 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/AY3Z4VAF.cjs.map [22m[32m1.74 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 191ms
|
|
20
|
+
[32mESM[39m [1mdist/files.js [22m[32m141.00 B[39m
|
|
21
|
+
[32mESM[39m [1mdist/index.js [22m[32m1.07 KB[39m
|
|
22
|
+
[32mESM[39m [1mdist/HUETPARE.js [22m[32m1.21 KB[39m
|
|
25
23
|
[32mESM[39m [1mdist/files.js.map [22m[32m69.00 B[39m
|
|
26
|
-
[32mESM[39m
|
|
24
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m2.04 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/HUETPARE.js.map [22m[32m2.49 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 194ms
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -8,8 +8,8 @@ Breaking changes might not follow SemVer, please pin Vitest's version when using
|
|
|
8
8
|
[1m[46m RUN [49m[22m [36mv3.2.3 [39m[90m/home/runner/work/monorepo-internal/monorepo-internal/packages/common/common-node-utils[39m
|
|
9
9
|
|
|
10
10
|
No test files found, exiting with code 0
|
|
11
|
-
|
|
12
11
|
[2minclude: [22m[33m**/*.{test,spec}.?(c|m)[jt]s?(x)[39m
|
|
12
|
+
|
|
13
13
|
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/cypress/**[2m, [22m**/.{idea,git,cache,output,temp}/**[2m, [22m**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*[39m
|
|
14
14
|
[2mtypecheck include: [22m[33m**/*.{test,spec}-d.?(c|m)[jt]s?(x)[39m
|
|
15
15
|
[2mtypecheck exclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/cypress/**[2m, [22m**/.{idea,git,cache,output,temp}/**[2m, [22m**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*[39m
|
|
@@ -17,8 +17,18 @@ var writeFileAndCreateDirsCached = /* @__PURE__ */ __name(async (path$1, data) =
|
|
|
17
17
|
encoding: "utf-8"
|
|
18
18
|
}));
|
|
19
19
|
}, "writeFileAndCreateDirsCached");
|
|
20
|
+
async function pathExists(path) {
|
|
21
|
+
try {
|
|
22
|
+
await promises.stat(path);
|
|
23
|
+
return true;
|
|
24
|
+
} catch (err) {
|
|
25
|
+
return err.code !== "ENOENT" ? true : false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
__name(pathExists, "pathExists");
|
|
20
29
|
|
|
21
30
|
exports.__name = __name;
|
|
31
|
+
exports.pathExists = pathExists;
|
|
22
32
|
exports.writeFileAndCreateDirsCached = writeFileAndCreateDirsCached;
|
|
23
|
-
//# sourceMappingURL=
|
|
24
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=AY3Z4VAF.cjs.map
|
|
34
|
+
//# sourceMappingURL=AY3Z4VAF.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/files.ts"],"names":["dirCache","Map","writeFileAndCreateDirsCached","path","data","dir","dirname","has","set","mkdir","recursive","get","then","writeFile","encoding","pathExists","stat","err","code"],"mappings":";;;;;;;AAGA,IAAMA,QAAAA,uBAAeC,GAAAA,EAAAA;AAEd,IAAMC,4BAAAA,mBAA+B,MAAA,CAAA,OAAOC,MAAAA,EAAcC,IAAAA,KAAAA;AAC7D,EAAA,MAAMC,GAAAA,GAAMC,aAAQH,MAAAA,CAAAA;AAEpB,EAAA,IAAI,CAACH,QAAAA,CAASO,GAAAA,CAAIF,GAAAA,CAAAA,EAAM;AACpBL,IAAAA,QAAAA,CAASQ,GAAAA,CAAIH,GAAAA,EAAKI,cAAAA,CAAMJ,GAAAA,EAAK;MAAEK,SAAAA,EAAW;AAAK,KAAA,CAAA,CAAA;AACnD,EAAA;AACA,EAAA,MAAMV,QAAAA,CAASW,IAAIN,GAAAA,CAAAA,EAAMO,KAAK,MAAMC,kBAAAA,CAAUV,QAAMC,IAAAA,EAAM;IAAEU,QAAAA,EAAU;AAAQ,GAAA,CAAA,CAAA;AAClF,CAAA,EAP4C,8BAAA;AAS5C,eAAsBC,WAAWZ,IAAAA,EAAY;AACzC,EAAA,IAAI;AACA,IAAA,MAAMa,cAAKb,IAAAA,CAAAA;AACX,IAAA,OAAO,IAAA;AACX,EAAA,CAAA,CAAA,OAASc,GAAAA,EAAU;AACf,IAAA,OAAOA,GAAAA,CAAIC,IAAAA,KAAS,QAAA,GAAW,IAAA,GAAO,KAAA;AAC1C,EAAA;AACJ;AAPsBH,MAAAA,CAAAA,UAAAA,EAAAA,YAAAA,CAAAA","file":"AY3Z4VAF.cjs","sourcesContent":["import { mkdir, stat, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\n\nconst dirCache = new Map<string, Promise<string | undefined>>();\n\nexport const writeFileAndCreateDirsCached = async (path: string, data: string) => {\n const dir = dirname(path);\n // Deduplicate concurrent mkdir calls\n if (!dirCache.has(dir)) {\n dirCache.set(dir, mkdir(dir, { recursive: true }));\n }\n await dirCache.get(dir)?.then(() => writeFile(path, data, { encoding: 'utf-8' }));\n};\n\nexport async function pathExists(path: string): Promise<boolean> {\n try {\n await stat(path);\n return true;\n } catch (err: any) {\n return err.code !== 'ENOENT' ? true : false;\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fileURLToPath } from 'url';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { mkdir, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { mkdir, writeFile, stat } from 'node:fs/promises';
|
|
4
4
|
import { dirname } from 'node:path';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -20,7 +20,16 @@ var writeFileAndCreateDirsCached = /* @__PURE__ */ __name(async (path2, data) =>
|
|
|
20
20
|
encoding: "utf-8"
|
|
21
21
|
}));
|
|
22
22
|
}, "writeFileAndCreateDirsCached");
|
|
23
|
+
async function pathExists(path2) {
|
|
24
|
+
try {
|
|
25
|
+
await stat(path2);
|
|
26
|
+
return true;
|
|
27
|
+
} catch (err) {
|
|
28
|
+
return err.code !== "ENOENT" ? true : false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
__name(pathExists, "pathExists");
|
|
23
32
|
|
|
24
|
-
export { __dirname, __name, writeFileAndCreateDirsCached };
|
|
25
|
-
//# sourceMappingURL=
|
|
26
|
-
//# sourceMappingURL=
|
|
33
|
+
export { __dirname, __name, pathExists, writeFileAndCreateDirsCached };
|
|
34
|
+
//# sourceMappingURL=HUETPARE.js.map
|
|
35
|
+
//# sourceMappingURL=HUETPARE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/tsup@8.4.0_@swc+core@1.12.5_@swc+helpers@0.5.17__postcss@8.5.3_tsx@4.20.4_typescript@5.8.2_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js","../src/files.ts"],"names":["getFilename","fileURLToPath","url","getDirname","path","dirname","__dirname","dirCache","Map","writeFileAndCreateDirsCached","data","dir","has","set","mkdir","recursive","get","then","writeFile","encoding","pathExists","stat","err","code"],"mappings":";;;;;;;AAIA,IAAMA,WAAAA,mBAAc,MAAA,CAAA,MAAMC,aAAAA,CAAc,MAAA,CAAA,IAAA,CAAYC,GAAG,CAAA,EAAnC,aAAA,CAAA;AACpB,IAAMC,6BAAa,MAAA,CAAA,MAAMC,IAAAA,CAAKC,OAAAA,CAAQL,WAAAA,EAAAA,CAAAA,EAAnB,YAAA,CAAA;AAEZ,IAAMM,4BAA4BH,UAAAA;ACJzC,IAAMI,QAAAA,uBAAeC,GAAAA,EAAAA;AAEd,IAAMC,4BAAAA,mBAA+B,MAAA,CAAA,OAAOL,KAAAA,EAAcM,IAAAA,KAAAA;AAC7D,EAAA,MAAMC,GAAAA,GAAMN,QAAQD,KAAAA,CAAAA;AAEpB,EAAA,IAAI,CAACG,QAAAA,CAASK,GAAAA,CAAID,GAAAA,CAAAA,EAAM;AACpBJ,IAAAA,QAAAA,CAASM,GAAAA,CAAIF,GAAAA,EAAKG,KAAAA,CAAMH,GAAAA,EAAK;MAAEI,SAAAA,EAAW;AAAK,KAAA,CAAA,CAAA;AACnD,EAAA;AACA,EAAA,MAAMR,QAAAA,CAASS,IAAIL,GAAAA,CAAAA,EAAMM,KAAK,MAAMC,SAAAA,CAAUd,OAAMM,IAAAA,EAAM;IAAES,QAAAA,EAAU;AAAQ,GAAA,CAAA,CAAA;AAClF,CAAA,EAP4C,8BAAA;AAS5C,eAAsBC,WAAWhB,KAAAA,EAAY;AACzC,EAAA,IAAI;AACA,IAAA,MAAMiB,KAAKjB,KAAAA,CAAAA;AACX,IAAA,OAAO,IAAA;AACX,EAAA,CAAA,CAAA,OAASkB,GAAAA,EAAU;AACf,IAAA,OAAOA,GAAAA,CAAIC,IAAAA,KAAS,QAAA,GAAW,IAAA,GAAO,KAAA;AAC1C,EAAA;AACJ;AAPsBH,MAAAA,CAAAA,UAAAA,EAAAA,YAAAA,CAAAA","file":"HUETPARE.js","sourcesContent":["// Shim globals in esm bundle\nimport { fileURLToPath } from 'url'\nimport path from 'path'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n","import { mkdir, stat, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\n\nconst dirCache = new Map<string, Promise<string | undefined>>();\n\nexport const writeFileAndCreateDirsCached = async (path: string, data: string) => {\n const dir = dirname(path);\n // Deduplicate concurrent mkdir calls\n if (!dirCache.has(dir)) {\n dirCache.set(dir, mkdir(dir, { recursive: true }));\n }\n await dirCache.get(dir)?.then(() => writeFile(path, data, { encoding: 'utf-8' }));\n};\n\nexport async function pathExists(path: string): Promise<boolean> {\n try {\n await stat(path);\n return true;\n } catch (err: any) {\n return err.code !== 'ENOENT' ? true : false;\n }\n}\n"]}
|
package/dist/files.cjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var AY3Z4VAF_cjs = require('./AY3Z4VAF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "pathExists", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return AY3Z4VAF_cjs.pathExists; }
|
|
10
|
+
});
|
|
7
11
|
Object.defineProperty(exports, "writeFileAndCreateDirsCached", {
|
|
8
12
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
13
|
+
get: function () { return AY3Z4VAF_cjs.writeFileAndCreateDirsCached; }
|
|
10
14
|
});
|
|
11
15
|
//# sourceMappingURL=files.cjs.map
|
|
12
16
|
//# sourceMappingURL=files.cjs.map
|
package/dist/files.d.ts
CHANGED
package/dist/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,kBAO5E,CAAC"}
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B,GAAU,MAAM,MAAM,EAAE,MAAM,MAAM,kBAO5E,CAAC;AAEF,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D"}
|
package/dist/files.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var AY3Z4VAF_cjs = require('./AY3Z4VAF.cjs');
|
|
4
4
|
var fs = require('fs/promises');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
|
28
28
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
29
29
|
|
|
30
30
|
var _fullyQualifiedRepoRootPath = void 0;
|
|
31
|
-
var getFullyQualifiedRepoRootPath = /* @__PURE__ */
|
|
31
|
+
var getFullyQualifiedRepoRootPath = /* @__PURE__ */ AY3Z4VAF_cjs.__name(() => {
|
|
32
32
|
if (!_fullyQualifiedRepoRootPath) {
|
|
33
33
|
_fullyQualifiedRepoRootPath = (async () => {
|
|
34
34
|
let currentDir = __dirname;
|
|
@@ -50,9 +50,13 @@ var getFullyQualifiedRepoRootPath = /* @__PURE__ */ ORVETYPP_cjs.__name(() => {
|
|
|
50
50
|
return _fullyQualifiedRepoRootPath;
|
|
51
51
|
}, "getFullyQualifiedRepoRootPath");
|
|
52
52
|
|
|
53
|
+
Object.defineProperty(exports, "pathExists", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return AY3Z4VAF_cjs.pathExists; }
|
|
56
|
+
});
|
|
53
57
|
Object.defineProperty(exports, "writeFileAndCreateDirsCached", {
|
|
54
58
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
59
|
+
get: function () { return AY3Z4VAF_cjs.writeFileAndCreateDirsCached; }
|
|
56
60
|
});
|
|
57
61
|
exports.getFullyQualifiedRepoRootPath = getFullyQualifiedRepoRootPath;
|
|
58
62
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __name, __dirname } from './
|
|
2
|
-
export { writeFileAndCreateDirsCached } from './
|
|
1
|
+
import { __name, __dirname } from './HUETPARE.js';
|
|
2
|
+
export { pathExists, writeFileAndCreateDirsCached } from './HUETPARE.js';
|
|
3
3
|
import * as fs from 'fs/promises';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/common-node-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"tsup": "^8.4.0",
|
|
18
18
|
"vitest": "^3.2.3",
|
|
19
|
-
"@layerzerolabs/tsup-configuration": "0.0.
|
|
20
|
-
"@layerzerolabs/typescript-configuration": "0.0.
|
|
19
|
+
"@layerzerolabs/tsup-configuration": "0.0.74",
|
|
20
|
+
"@layerzerolabs/typescript-configuration": "0.0.74"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "restricted",
|
package/src/files.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mkdir, writeFile } from 'node:fs/promises';
|
|
1
|
+
import { mkdir, stat, writeFile } from 'node:fs/promises';
|
|
2
2
|
import { dirname } from 'node:path';
|
|
3
3
|
|
|
4
4
|
const dirCache = new Map<string, Promise<string | undefined>>();
|
|
@@ -11,3 +11,12 @@ export const writeFileAndCreateDirsCached = async (path: string, data: string) =
|
|
|
11
11
|
}
|
|
12
12
|
await dirCache.get(dir)?.then(() => writeFile(path, data, { encoding: 'utf-8' }));
|
|
13
13
|
};
|
|
14
|
+
|
|
15
|
+
export async function pathExists(path: string): Promise<boolean> {
|
|
16
|
+
try {
|
|
17
|
+
await stat(path);
|
|
18
|
+
return true;
|
|
19
|
+
} catch (err: any) {
|
|
20
|
+
return err.code !== 'ENOENT' ? true : false;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/ORVETYPP.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/files.ts"],"names":["dirCache","Map","writeFileAndCreateDirsCached","path","data","dir","dirname","has","set","mkdir","recursive","get","then","writeFile","encoding"],"mappings":";;;;;;;AAGA,IAAMA,QAAAA,uBAAeC,GAAAA,EAAAA;AAEd,IAAMC,4BAAAA,mBAA+B,MAAA,CAAA,OAAOC,MAAAA,EAAcC,IAAAA,KAAAA;AAC7D,EAAA,MAAMC,GAAAA,GAAMC,aAAQH,MAAAA,CAAAA;AAEpB,EAAA,IAAI,CAACH,QAAAA,CAASO,GAAAA,CAAIF,GAAAA,CAAAA,EAAM;AACpBL,IAAAA,QAAAA,CAASQ,GAAAA,CAAIH,GAAAA,EAAKI,cAAAA,CAAMJ,GAAAA,EAAK;MAAEK,SAAAA,EAAW;AAAK,KAAA,CAAA,CAAA;AACnD,EAAA;AACA,EAAA,MAAMV,QAAAA,CAASW,IAAIN,GAAAA,CAAAA,EAAMO,KAAK,MAAMC,kBAAAA,CAAUV,QAAMC,IAAAA,EAAM;IAAEU,QAAAA,EAAU;AAAQ,GAAA,CAAA,CAAA;AAClF,CAAA,EAP4C,8BAAA","file":"ORVETYPP.cjs","sourcesContent":["import { mkdir, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\n\nconst dirCache = new Map<string, Promise<string | undefined>>();\n\nexport const writeFileAndCreateDirsCached = async (path: string, data: string) => {\n const dir = dirname(path);\n // Deduplicate concurrent mkdir calls\n if (!dirCache.has(dir)) {\n dirCache.set(dir, mkdir(dir, { recursive: true }));\n }\n await dirCache.get(dir)?.then(() => writeFile(path, data, { encoding: 'utf-8' }));\n};\n"]}
|
package/dist/PXUGBXL3.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/.pnpm/tsup@8.4.0_@swc+core@1.12.5_@swc+helpers@0.5.17__postcss@8.5.3_tsx@4.20.4_typescript@5.8.2_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js","../src/files.ts"],"names":["getFilename","fileURLToPath","url","getDirname","path","dirname","__dirname","dirCache","Map","writeFileAndCreateDirsCached","data","dir","has","set","mkdir","recursive","get","then","writeFile","encoding"],"mappings":";;;;;;;AAIA,IAAMA,WAAAA,mBAAc,MAAA,CAAA,MAAMC,aAAAA,CAAc,MAAA,CAAA,IAAA,CAAYC,GAAG,CAAA,EAAnC,aAAA,CAAA;AACpB,IAAMC,6BAAa,MAAA,CAAA,MAAMC,IAAAA,CAAKC,OAAAA,CAAQL,WAAAA,EAAAA,CAAAA,EAAnB,YAAA,CAAA;AAEZ,IAAMM,4BAA4BH,UAAAA;ACJzC,IAAMI,QAAAA,uBAAeC,GAAAA,EAAAA;AAEd,IAAMC,4BAAAA,mBAA+B,MAAA,CAAA,OAAOL,KAAAA,EAAcM,IAAAA,KAAAA;AAC7D,EAAA,MAAMC,GAAAA,GAAMN,QAAQD,KAAAA,CAAAA;AAEpB,EAAA,IAAI,CAACG,QAAAA,CAASK,GAAAA,CAAID,GAAAA,CAAAA,EAAM;AACpBJ,IAAAA,QAAAA,CAASM,GAAAA,CAAIF,GAAAA,EAAKG,KAAAA,CAAMH,GAAAA,EAAK;MAAEI,SAAAA,EAAW;AAAK,KAAA,CAAA,CAAA;AACnD,EAAA;AACA,EAAA,MAAMR,QAAAA,CAASS,IAAIL,GAAAA,CAAAA,EAAMM,KAAK,MAAMC,SAAAA,CAAUd,OAAMM,IAAAA,EAAM;IAAES,QAAAA,EAAU;AAAQ,GAAA,CAAA,CAAA;AAClF,CAAA,EAP4C,8BAAA","file":"PXUGBXL3.js","sourcesContent":["// Shim globals in esm bundle\nimport { fileURLToPath } from 'url'\nimport path from 'path'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n","import { mkdir, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\n\nconst dirCache = new Map<string, Promise<string | undefined>>();\n\nexport const writeFileAndCreateDirsCached = async (path: string, data: string) => {\n const dir = dirname(path);\n // Deduplicate concurrent mkdir calls\n if (!dirCache.has(dir)) {\n dirCache.set(dir, mkdir(dir, { recursive: true }));\n }\n await dirCache.get(dir)?.then(() => writeFile(path, data, { encoding: 'utf-8' }));\n};\n"]}
|