@pipelab/plugin-steam 1.0.0-beta.23 → 1.0.0-beta.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.cjs +181 -102
- package/dist/index.mjs +119 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -45390,6 +45390,17 @@ const websocketPort = 33753;
|
|
|
45390
45390
|
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
45391
45391
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
45392
45392
|
const isDev = process.env.NODE_ENV === "development";
|
|
45393
|
+
const getDefaultUserDataPath = (env) => {
|
|
45394
|
+
const base = (() => {
|
|
45395
|
+
switch ((0, node_os.platform)()) {
|
|
45396
|
+
case "win32": return process.env.APPDATA || (0, node_path.join)((0, node_os.homedir)(), "AppData", "Roaming");
|
|
45397
|
+
case "darwin": return (0, node_path.join)((0, node_os.homedir)(), "Library", "Application Support");
|
|
45398
|
+
default: return process.env.XDG_CONFIG_HOME || (0, node_path.join)((0, node_os.homedir)(), ".config");
|
|
45399
|
+
}
|
|
45400
|
+
})();
|
|
45401
|
+
const mode = env ?? (isDev ? "dev" : "prod");
|
|
45402
|
+
return (0, node_path.join)(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
|
|
45403
|
+
};
|
|
45393
45404
|
/**
|
|
45394
45405
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
45395
45406
|
*/
|
|
@@ -49151,6 +49162,74 @@ var WebSocketServer = class {
|
|
|
49151
49162
|
};
|
|
49152
49163
|
new WebSocketServer();
|
|
49153
49164
|
//#endregion
|
|
49165
|
+
//#region ../../node_modules/slash/index.js
|
|
49166
|
+
var require_slash = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49167
|
+
module.exports = (path) => {
|
|
49168
|
+
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
49169
|
+
const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
49170
|
+
if (isExtendedLengthPath || hasNonAscii) return path;
|
|
49171
|
+
return path.replace(/\\/g, "/");
|
|
49172
|
+
};
|
|
49173
|
+
}));
|
|
49174
|
+
//#endregion
|
|
49175
|
+
//#region ../../packages/core-node/src/fs-utils.ts
|
|
49176
|
+
var import_slash = /* @__PURE__ */ require_chunk.__toESM(require_slash(), 1);
|
|
49177
|
+
function removeTrailingSlash(path) {
|
|
49178
|
+
return path.replace(/[\\/]+$/, "");
|
|
49179
|
+
}
|
|
49180
|
+
removeTrailingSlash((0, import_slash.default)((0, node_path.resolve)((0, node_os.homedir)()))).toLowerCase();
|
|
49181
|
+
const additionalProtectedPaths = [
|
|
49182
|
+
getDefaultUserDataPath("dev"),
|
|
49183
|
+
getDefaultUserDataPath("beta"),
|
|
49184
|
+
getDefaultUserDataPath("prod"),
|
|
49185
|
+
projectRoot,
|
|
49186
|
+
process.cwd(),
|
|
49187
|
+
"/tmp",
|
|
49188
|
+
"/var/tmp",
|
|
49189
|
+
process.env.TEMP,
|
|
49190
|
+
process.env.TMP,
|
|
49191
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData"),
|
|
49192
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData", "Local"),
|
|
49193
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData", "Roaming"),
|
|
49194
|
+
(0, node_path.join)((0, node_os.homedir)(), "Library"),
|
|
49195
|
+
(0, node_path.join)((0, node_os.homedir)(), "Library", "Application Support"),
|
|
49196
|
+
(0, node_path.join)((0, node_os.homedir)(), ".config"),
|
|
49197
|
+
(0, node_path.join)((0, node_os.homedir)(), ".local"),
|
|
49198
|
+
(0, node_path.join)((0, node_os.homedir)(), ".local", "share"),
|
|
49199
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cache"),
|
|
49200
|
+
(0, node_path.join)((0, node_os.homedir)(), "OneDrive"),
|
|
49201
|
+
(0, node_path.join)((0, node_os.homedir)(), "Dropbox"),
|
|
49202
|
+
(0, node_path.join)((0, node_os.homedir)(), ".ssh"),
|
|
49203
|
+
(0, node_path.join)((0, node_os.homedir)(), ".gnupg"),
|
|
49204
|
+
(0, node_path.join)((0, node_os.homedir)(), ".aws"),
|
|
49205
|
+
(0, node_path.join)((0, node_os.homedir)(), ".docker"),
|
|
49206
|
+
(0, node_path.join)((0, node_os.homedir)(), ".kube"),
|
|
49207
|
+
(0, node_path.join)((0, node_os.homedir)(), ".vscode"),
|
|
49208
|
+
(0, node_path.join)((0, node_os.homedir)(), ".vscode-insiders"),
|
|
49209
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cursor"),
|
|
49210
|
+
(0, node_path.join)((0, node_os.homedir)(), ".npm"),
|
|
49211
|
+
(0, node_path.join)((0, node_os.homedir)(), ".pnpm-state"),
|
|
49212
|
+
(0, node_path.join)((0, node_os.homedir)(), ".yarn"),
|
|
49213
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cargo"),
|
|
49214
|
+
(0, node_path.join)((0, node_os.homedir)(), ".rustup"),
|
|
49215
|
+
(0, node_path.join)((0, node_os.homedir)(), ".m2"),
|
|
49216
|
+
(0, node_path.join)((0, node_os.homedir)(), ".gradle")
|
|
49217
|
+
].filter((p) => typeof p === "string" && p.length > 0);
|
|
49218
|
+
new Set([
|
|
49219
|
+
(0, node_path.join)((0, node_os.homedir)(), "Downloads"),
|
|
49220
|
+
(0, node_path.join)((0, node_os.homedir)(), "Documents"),
|
|
49221
|
+
(0, node_path.join)((0, node_os.homedir)(), "Desktop"),
|
|
49222
|
+
(0, node_path.join)((0, node_os.homedir)(), "Pictures"),
|
|
49223
|
+
(0, node_path.join)((0, node_os.homedir)(), "Music"),
|
|
49224
|
+
(0, node_path.join)((0, node_os.homedir)(), "Videos"),
|
|
49225
|
+
(0, node_path.join)((0, node_os.homedir)(), "Saved Games"),
|
|
49226
|
+
(0, node_path.join)((0, node_os.homedir)(), "Contacts"),
|
|
49227
|
+
(0, node_path.join)((0, node_os.homedir)(), "Searches"),
|
|
49228
|
+
(0, node_path.join)((0, node_os.homedir)(), "Links"),
|
|
49229
|
+
(0, node_path.join)((0, node_os.homedir)(), "3D Objects"),
|
|
49230
|
+
...additionalProtectedPaths
|
|
49231
|
+
].map((p) => removeTrailingSlash((0, import_slash.default)((0, node_path.resolve)(p))).toLowerCase()));
|
|
49232
|
+
//#endregion
|
|
49154
49233
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
49155
49234
|
function isPlainObject(value) {
|
|
49156
49235
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -59544,13 +59623,13 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59544
59623
|
//#region ../../node_modules/mkdirp/lib/path-arg.js
|
|
59545
59624
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59546
59625
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59547
|
-
const { resolve: resolve$
|
|
59626
|
+
const { resolve: resolve$14, parse: parse$2 } = require("path");
|
|
59548
59627
|
const pathArg = (path$87) => {
|
|
59549
59628
|
if (/\0/.test(path$87)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59550
59629
|
path: path$87,
|
|
59551
59630
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59552
59631
|
});
|
|
59553
|
-
path$87 = resolve$
|
|
59632
|
+
path$87 = resolve$14(path$87);
|
|
59554
59633
|
if (platform === "win32") {
|
|
59555
59634
|
const badWinChars = /[*|"<>?:]/;
|
|
59556
59635
|
const { root } = parse$2(path$87);
|
|
@@ -59968,14 +60047,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59968
60047
|
const assert$1 = require("assert");
|
|
59969
60048
|
const normalize = require_normalize_unicode();
|
|
59970
60049
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59971
|
-
const { join: join$
|
|
60050
|
+
const { join: join$18 } = require("path");
|
|
59972
60051
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59973
60052
|
module.exports = () => {
|
|
59974
60053
|
const queues = /* @__PURE__ */ new Map();
|
|
59975
60054
|
const reservations = /* @__PURE__ */ new Map();
|
|
59976
60055
|
const getDirs = (path$64) => {
|
|
59977
60056
|
return path$64.split("/").slice(0, -1).reduce((set, path$65) => {
|
|
59978
|
-
if (set.length) path$65 = join$
|
|
60057
|
+
if (set.length) path$65 = join$18(set[set.length - 1], path$65);
|
|
59979
60058
|
set.push(path$65 || "/");
|
|
59980
60059
|
return set;
|
|
59981
60060
|
}, []);
|
|
@@ -60029,7 +60108,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60029
60108
|
};
|
|
60030
60109
|
const reserve = (paths, fn) => {
|
|
60031
60110
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60032
|
-
return stripSlashes(join$
|
|
60111
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60033
60112
|
});
|
|
60034
60113
|
const dirs = new Set(paths.map((path$69) => getDirs(path$69)).reduce((a, b) => a.concat(b)));
|
|
60035
60114
|
reservations.set(fn, {
|
|
@@ -62500,7 +62579,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62500
62579
|
const fs$22 = require("fs");
|
|
62501
62580
|
const { EventEmitter: EventEmitter$1 } = require("events");
|
|
62502
62581
|
const { Minimatch } = require_minimatch$1();
|
|
62503
|
-
const { resolve: resolve$
|
|
62582
|
+
const { resolve: resolve$13 } = require("path");
|
|
62504
62583
|
function readdir(dir, strict) {
|
|
62505
62584
|
return new Promise((resolve, reject) => {
|
|
62506
62585
|
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
@@ -62609,7 +62688,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62609
62688
|
if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
|
|
62610
62689
|
this.skipMatchers = [];
|
|
62611
62690
|
if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
|
|
62612
|
-
this.iterator = explore(resolve$
|
|
62691
|
+
this.iterator = explore(resolve$13(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
62613
62692
|
this.paused = false;
|
|
62614
62693
|
this.inactive = false;
|
|
62615
62694
|
this.aborted = false;
|
|
@@ -95710,7 +95789,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95710
95789
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95711
95790
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95712
95791
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95713
|
-
const { join: join$
|
|
95792
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
95714
95793
|
const isWindows = process.platform === "win32";
|
|
95715
95794
|
/* istanbul ignore next */
|
|
95716
95795
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95740,7 +95819,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95740
95819
|
};
|
|
95741
95820
|
const getPathPart = (raw, cmd) => {
|
|
95742
95821
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95743
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95822
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95744
95823
|
};
|
|
95745
95824
|
const which = async (cmd, opt = {}) => {
|
|
95746
95825
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96489,7 +96568,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96489
96568
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96490
96569
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96491
96570
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96492
|
-
const { join: join$
|
|
96571
|
+
const { join: join$14, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
96493
96572
|
const isWindows = process.platform === "win32";
|
|
96494
96573
|
/* istanbul ignore next */
|
|
96495
96574
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96519,7 +96598,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96519
96598
|
};
|
|
96520
96599
|
const getPathPart = (raw, cmd) => {
|
|
96521
96600
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96522
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96601
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96523
96602
|
};
|
|
96524
96603
|
const which = async (cmd, opt = {}) => {
|
|
96525
96604
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98417,7 +98496,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98417
98496
|
//#endregion
|
|
98418
98497
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98419
98498
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98420
|
-
const { join: join$
|
|
98499
|
+
const { join: join$13, basename: basename$4 } = require("path");
|
|
98421
98500
|
const normalize = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
|
|
98422
98501
|
const normalizeString = (pkg) => {
|
|
98423
98502
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98440,9 +98519,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98440
98519
|
const clean = {};
|
|
98441
98520
|
let hasBins = false;
|
|
98442
98521
|
Object.keys(orig).forEach((binKey) => {
|
|
98443
|
-
const base = join$
|
|
98522
|
+
const base = join$13("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98444
98523
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98445
|
-
const binTarget = join$
|
|
98524
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98446
98525
|
if (!binTarget) return;
|
|
98447
98526
|
clean[base] = binTarget;
|
|
98448
98527
|
hasBins = true;
|
|
@@ -98708,8 +98787,8 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98708
98787
|
//#endregion
|
|
98709
98788
|
//#region ../../node_modules/@npmcli/git/lib/is.js
|
|
98710
98789
|
var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98711
|
-
const { stat: stat$
|
|
98712
|
-
module.exports = ({ cwd = process.cwd() } = {}) => stat$
|
|
98790
|
+
const { stat: stat$7 } = require("fs/promises");
|
|
98791
|
+
module.exports = ({ cwd = process.cwd() } = {}) => stat$7(cwd + "/.git").then(() => true, () => false);
|
|
98713
98792
|
}));
|
|
98714
98793
|
//#endregion
|
|
98715
98794
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
@@ -99243,8 +99322,8 @@ var require_sort$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99243
99322
|
//#endregion
|
|
99244
99323
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99245
99324
|
var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99246
|
-
const { readFile: readFile$8, writeFile: writeFile$
|
|
99247
|
-
const { resolve: resolve$
|
|
99325
|
+
const { readFile: readFile$8, writeFile: writeFile$5 } = require("node:fs/promises");
|
|
99326
|
+
const { resolve: resolve$12 } = require("node:path");
|
|
99248
99327
|
const parseJSON = require_lib$30();
|
|
99249
99328
|
const updateDeps = require_update_dependencies();
|
|
99250
99329
|
const updateScripts = require_update_scripts();
|
|
@@ -99347,7 +99426,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99347
99426
|
parseErr = err;
|
|
99348
99427
|
}
|
|
99349
99428
|
if (parseErr) {
|
|
99350
|
-
const indexFile = resolve$
|
|
99429
|
+
const indexFile = resolve$12(this.path, "index.js");
|
|
99351
99430
|
let indexFileContent;
|
|
99352
99431
|
try {
|
|
99353
99432
|
indexFileContent = await readFile$8(indexFile, "utf8");
|
|
@@ -99392,7 +99471,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99392
99471
|
return this.#path;
|
|
99393
99472
|
}
|
|
99394
99473
|
get filename() {
|
|
99395
|
-
if (this.path) return resolve$
|
|
99474
|
+
if (this.path) return resolve$12(this.path, "package.json");
|
|
99396
99475
|
}
|
|
99397
99476
|
create(path) {
|
|
99398
99477
|
this.#path = path;
|
|
@@ -99416,7 +99495,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99416
99495
|
const content = sort ? packageSort(rest) : rest;
|
|
99417
99496
|
const fileContent = `${JSON.stringify(content, null, format)}\n`.replace(/\n/g, eol);
|
|
99418
99497
|
if (fileContent.trim() !== this.#readFileContent.trim()) {
|
|
99419
|
-
const written = await writeFile$
|
|
99498
|
+
const written = await writeFile$5(this.filename, fileContent);
|
|
99420
99499
|
this.#readFileContent = fileContent;
|
|
99421
99500
|
return written;
|
|
99422
99501
|
}
|
|
@@ -100514,8 +100593,8 @@ var require_errors$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100514
100593
|
var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100515
100594
|
const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
|
|
100516
100595
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100517
|
-
const { chmod: chmod$3, copyFile, lstat: lstat$2, mkdir: mkdir$
|
|
100518
|
-
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$
|
|
100596
|
+
const { chmod: chmod$3, copyFile, lstat: lstat$2, mkdir: mkdir$9, readdir: readdir$7, readlink, stat: stat$6, symlink, unlink, utimes } = require("fs/promises");
|
|
100597
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$11, sep: sep$2, toNamespacedPath } = require("path");
|
|
100519
100598
|
const { fileURLToPath: fileURLToPath$1 } = require("url");
|
|
100520
100599
|
const defaultOptions = {
|
|
100521
100600
|
dereference: false,
|
|
@@ -100580,7 +100659,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100580
100659
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
100581
100660
|
}
|
|
100582
100661
|
function getStats(src, dest, opts) {
|
|
100583
|
-
const statFunc = opts.dereference ? (file) => stat$
|
|
100662
|
+
const statFunc = opts.dereference ? (file) => stat$6(file, { bigint: true }) : (file) => lstat$2(file, { bigint: true });
|
|
100584
100663
|
return Promise.all([statFunc(src), statFunc(dest).catch((err) => {
|
|
100585
100664
|
// istanbul ignore next: unsure how to cover.
|
|
100586
100665
|
if (err.code === "ENOENT") return null;
|
|
@@ -100591,23 +100670,23 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100591
100670
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100592
100671
|
const destParent = dirname$10(dest);
|
|
100593
100672
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100594
|
-
await mkdir$
|
|
100673
|
+
await mkdir$9(destParent, { recursive: true });
|
|
100595
100674
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
100596
100675
|
}
|
|
100597
100676
|
function pathExists(dest) {
|
|
100598
|
-
return stat$
|
|
100677
|
+
return stat$6(dest).then(
|
|
100599
100678
|
() => true,
|
|
100600
100679
|
// istanbul ignore next: not sure when this would occur
|
|
100601
100680
|
(err) => err.code === "ENOENT" ? false : Promise.reject(err)
|
|
100602
100681
|
);
|
|
100603
100682
|
}
|
|
100604
100683
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100605
|
-
const srcParent = resolve$
|
|
100606
|
-
const destParent = resolve$
|
|
100684
|
+
const srcParent = resolve$11(dirname$10(src));
|
|
100685
|
+
const destParent = resolve$11(dirname$10(dest));
|
|
100607
100686
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100608
100687
|
let destStat;
|
|
100609
100688
|
try {
|
|
100610
|
-
destStat = await stat$
|
|
100689
|
+
destStat = await stat$6(destParent, { bigint: true });
|
|
100611
100690
|
} catch (err) {
|
|
100612
100691
|
// istanbul ignore else: not sure when this would occur
|
|
100613
100692
|
if (err.code === "ENOENT") return;
|
|
@@ -100622,7 +100701,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100622
100701
|
});
|
|
100623
100702
|
return checkParentPaths(src, srcStat, destParent);
|
|
100624
100703
|
}
|
|
100625
|
-
const normalizePathToArray = (path$57) => resolve$
|
|
100704
|
+
const normalizePathToArray = (path$57) => resolve$11(path$57).split(sep$2).filter(Boolean);
|
|
100626
100705
|
function isSrcSubdir(src, dest) {
|
|
100627
100706
|
const srcArr = normalizePathToArray(src);
|
|
100628
100707
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100636,7 +100715,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100636
100715
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
100637
100716
|
}
|
|
100638
100717
|
async function getStatsForCopy(destStat, src, dest, opts) {
|
|
100639
|
-
const srcStat = await (opts.dereference ? stat$
|
|
100718
|
+
const srcStat = await (opts.dereference ? stat$6 : lstat$2)(src);
|
|
100640
100719
|
// istanbul ignore else: can't portably test FIFO
|
|
100641
100720
|
if (srcStat.isDirectory() && opts.recursive) return onDir(srcStat, destStat, src, dest, opts);
|
|
100642
100721
|
else if (srcStat.isDirectory()) throw new ERR_FS_EISDIR({
|
|
@@ -100708,7 +100787,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100708
100787
|
return chmod$3(dest, srcMode);
|
|
100709
100788
|
}
|
|
100710
100789
|
async function setDestTimestamps(src, dest) {
|
|
100711
|
-
const updatedSrcStat = await stat$
|
|
100790
|
+
const updatedSrcStat = await stat$6(src);
|
|
100712
100791
|
return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
100713
100792
|
}
|
|
100714
100793
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -100716,23 +100795,23 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100716
100795
|
return copyDir(src, dest, opts);
|
|
100717
100796
|
}
|
|
100718
100797
|
async function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
100719
|
-
await mkdir$
|
|
100798
|
+
await mkdir$9(dest);
|
|
100720
100799
|
await copyDir(src, dest, opts);
|
|
100721
100800
|
return setDestMode(dest, srcMode);
|
|
100722
100801
|
}
|
|
100723
100802
|
async function copyDir(src, dest, opts) {
|
|
100724
|
-
const dir = await readdir$
|
|
100803
|
+
const dir = await readdir$7(src);
|
|
100725
100804
|
for (let i = 0; i < dir.length; i++) {
|
|
100726
100805
|
const item = dir[i];
|
|
100727
|
-
const srcItem = join$
|
|
100728
|
-
const destItem = join$
|
|
100806
|
+
const srcItem = join$12(src, item);
|
|
100807
|
+
const destItem = join$12(dest, item);
|
|
100729
100808
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100730
100809
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100731
100810
|
}
|
|
100732
100811
|
}
|
|
100733
100812
|
async function onLink(destStat, src, dest) {
|
|
100734
100813
|
let resolvedSrc = await readlink(src);
|
|
100735
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$
|
|
100814
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$11(dirname$10(src), resolvedSrc);
|
|
100736
100815
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100737
100816
|
let resolvedDest;
|
|
100738
100817
|
try {
|
|
@@ -100743,14 +100822,14 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100743
100822
|
// istanbul ignore next: should not be possible
|
|
100744
100823
|
throw err;
|
|
100745
100824
|
}
|
|
100746
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$
|
|
100825
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$11(dirname$10(dest), resolvedDest);
|
|
100747
100826
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100748
100827
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100749
100828
|
path: dest,
|
|
100750
100829
|
syscall: "cp",
|
|
100751
100830
|
errno: EINVAL
|
|
100752
100831
|
});
|
|
100753
|
-
if ((await stat$
|
|
100832
|
+
if ((await stat$6(src)).isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) throw new ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY({
|
|
100754
100833
|
message: `cannot overwrite ${resolvedDest} with ${resolvedSrc}`,
|
|
100755
100834
|
path: dest,
|
|
100756
100835
|
syscall: "cp",
|
|
@@ -100789,13 +100868,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100789
100868
|
//#endregion
|
|
100790
100869
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100791
100870
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100792
|
-
const { join: join$
|
|
100871
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
100793
100872
|
const getOptions = require_get_options();
|
|
100794
|
-
const { mkdir: mkdir$
|
|
100873
|
+
const { mkdir: mkdir$8, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100795
100874
|
const withTempDir = async (root, fn, opts) => {
|
|
100796
100875
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100797
|
-
await mkdir$
|
|
100798
|
-
const target = await mkdtemp(join$
|
|
100876
|
+
await mkdir$8(root, { recursive: true });
|
|
100877
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100799
100878
|
let err;
|
|
100800
100879
|
let result;
|
|
100801
100880
|
try {
|
|
@@ -100817,11 +100896,11 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100817
100896
|
//#endregion
|
|
100818
100897
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100819
100898
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100820
|
-
const { readdir: readdir$
|
|
100821
|
-
const { join: join$
|
|
100899
|
+
const { readdir: readdir$6 } = require("fs/promises");
|
|
100900
|
+
const { join: join$10 } = require("path");
|
|
100822
100901
|
const readdirScoped = async (dir) => {
|
|
100823
100902
|
const results = [];
|
|
100824
|
-
for (const item of await readdir$
|
|
100903
|
+
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
100825
100904
|
else results.push(item);
|
|
100826
100905
|
return results;
|
|
100827
100906
|
};
|
|
@@ -100830,7 +100909,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100830
100909
|
//#endregion
|
|
100831
100910
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100832
100911
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100833
|
-
const { dirname: dirname$9, join: join$
|
|
100912
|
+
const { dirname: dirname$9, join: join$9, resolve: resolve$10, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100834
100913
|
const fs$13 = require("fs/promises");
|
|
100835
100914
|
const pathExists = async (path$56) => {
|
|
100836
100915
|
try {
|
|
@@ -100855,7 +100934,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100855
100934
|
const sourceStat = await fs$13.lstat(source);
|
|
100856
100935
|
if (sourceStat.isDirectory()) {
|
|
100857
100936
|
const files = await fs$13.readdir(source);
|
|
100858
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100937
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
100859
100938
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100860
100939
|
source,
|
|
100861
100940
|
destination
|
|
@@ -100866,10 +100945,10 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100866
100945
|
if (root) {
|
|
100867
100946
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
100868
100947
|
let target = await fs$13.readlink(symSource);
|
|
100869
|
-
if (isAbsolute$1(target)) target = resolve$
|
|
100948
|
+
if (isAbsolute$1(target)) target = resolve$10(symDestination, relative$1(symSource, target));
|
|
100870
100949
|
let targetStat = "file";
|
|
100871
100950
|
try {
|
|
100872
|
-
targetStat = await fs$13.stat(resolve$
|
|
100951
|
+
targetStat = await fs$13.stat(resolve$10(dirname$9(symSource), target));
|
|
100873
100952
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
100874
100953
|
} catch {}
|
|
100875
100954
|
await fs$13.symlink(target, symDestination, targetStat);
|
|
@@ -101031,7 +101110,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101031
101110
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101032
101111
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101033
101112
|
const crypto$1 = require("crypto");
|
|
101034
|
-
const { appendFile, mkdir: mkdir$
|
|
101113
|
+
const { appendFile, mkdir: mkdir$7, readFile: readFile$7, readdir: readdir$5, rm: rm$7, writeFile: writeFile$4 } = require("fs/promises");
|
|
101035
101114
|
const { Minipass } = require_commonjs$10();
|
|
101036
101115
|
const path$17 = require("path");
|
|
101037
101116
|
const ssri = require_lib$17();
|
|
@@ -101065,7 +101144,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101065
101144
|
}).join("\n");
|
|
101066
101145
|
const setup = async () => {
|
|
101067
101146
|
const target = tmpName(cache, opts.tmpPrefix);
|
|
101068
|
-
await mkdir$
|
|
101147
|
+
await mkdir$7(path$17.dirname(target), { recursive: true });
|
|
101069
101148
|
return {
|
|
101070
101149
|
target,
|
|
101071
101150
|
moved: false
|
|
@@ -101078,8 +101157,8 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101078
101157
|
});
|
|
101079
101158
|
};
|
|
101080
101159
|
const write = async (tmp) => {
|
|
101081
|
-
await writeFile$
|
|
101082
|
-
await mkdir$
|
|
101160
|
+
await writeFile$4(tmp.target, newIndex, { flag: "wx" });
|
|
101161
|
+
await mkdir$7(path$17.dirname(bucket), { recursive: true });
|
|
101083
101162
|
await moveFile(tmp.target, bucket);
|
|
101084
101163
|
tmp.moved = true;
|
|
101085
101164
|
};
|
|
@@ -101103,7 +101182,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101103
101182
|
metadata
|
|
101104
101183
|
};
|
|
101105
101184
|
try {
|
|
101106
|
-
await mkdir$
|
|
101185
|
+
await mkdir$7(path$17.dirname(bucket), { recursive: true });
|
|
101107
101186
|
const stringified = JSON.stringify(entry);
|
|
101108
101187
|
await appendFile(bucket, `\n${hashEntry(stringified)}\t${stringified}`);
|
|
101109
101188
|
} catch (err) {
|
|
@@ -101224,7 +101303,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101224
101303
|
};
|
|
101225
101304
|
}
|
|
101226
101305
|
function readdirOrEmpty(dir) {
|
|
101227
|
-
return readdir$
|
|
101306
|
+
return readdir$5(dir).catch((err) => {
|
|
101228
101307
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return [];
|
|
101229
101308
|
throw err;
|
|
101230
101309
|
});
|
|
@@ -105946,7 +106025,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
105946
106025
|
//#endregion
|
|
105947
106026
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
105948
106027
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105949
|
-
const { mkdir: mkdir$
|
|
106028
|
+
const { mkdir: mkdir$6, readFile: readFile$6, rm: rm$5, stat: stat$5, truncate, writeFile: writeFile$3 } = require("fs/promises");
|
|
105950
106029
|
const contentPath = require_path();
|
|
105951
106030
|
const fsm = require_lib$15();
|
|
105952
106031
|
const glob = require_glob();
|
|
@@ -105996,7 +106075,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
105996
106075
|
}
|
|
105997
106076
|
async function fixPerms(cache, opts) {
|
|
105998
106077
|
opts.log.silly("verify", "fixing cache permissions");
|
|
105999
|
-
await mkdir$
|
|
106078
|
+
await mkdir$6(cache, { recursive: true });
|
|
106000
106079
|
return null;
|
|
106001
106080
|
}
|
|
106002
106081
|
async function garbageCollect(cache, opts) {
|
|
@@ -106042,7 +106121,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106042
106121
|
}
|
|
106043
106122
|
} else {
|
|
106044
106123
|
stats.reclaimedCount++;
|
|
106045
|
-
const s = await stat$
|
|
106124
|
+
const s = await stat$5(f);
|
|
106046
106125
|
await rm$5(f, {
|
|
106047
106126
|
recursive: true,
|
|
106048
106127
|
force: true
|
|
@@ -106056,7 +106135,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106056
106135
|
async function verifyContent(filepath, sri) {
|
|
106057
106136
|
const contentInfo = {};
|
|
106058
106137
|
try {
|
|
106059
|
-
const { size } = await stat$
|
|
106138
|
+
const { size } = await stat$5(filepath);
|
|
106060
106139
|
contentInfo.size = size;
|
|
106061
106140
|
contentInfo.valid = true;
|
|
106062
106141
|
await ssri.checkStream(new fsm.ReadStream(filepath), sri);
|
|
@@ -106110,7 +106189,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106110
106189
|
for (const entry of bucket) {
|
|
106111
106190
|
const content = contentPath(cache, entry.integrity);
|
|
106112
106191
|
try {
|
|
106113
|
-
await stat$
|
|
106192
|
+
await stat$5(content);
|
|
106114
106193
|
await index.insert(cache, entry.key, entry.integrity, {
|
|
106115
106194
|
metadata: entry.metadata,
|
|
106116
106195
|
size: entry.size,
|
|
@@ -106135,7 +106214,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106135
106214
|
async function writeVerifile(cache, opts) {
|
|
106136
106215
|
const verifile = path$13.join(cache, "_lastverified");
|
|
106137
106216
|
opts.log.silly("verify", "writing verifile to " + verifile);
|
|
106138
|
-
return writeFile$
|
|
106217
|
+
return writeFile$3(verifile, `${Date.now()}`);
|
|
106139
106218
|
}
|
|
106140
106219
|
module.exports.lastRun = lastRun;
|
|
106141
106220
|
async function lastRun(cache) {
|
|
@@ -106685,8 +106764,8 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106685
106764
|
//#region ../../node_modules/@npmcli/installed-package-contents/lib/index.js
|
|
106686
106765
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106687
106766
|
const bundled = require_lib$12();
|
|
106688
|
-
const { readFile: readFile$5, readdir: readdir$
|
|
106689
|
-
const { resolve: resolve$
|
|
106767
|
+
const { readFile: readFile$5, readdir: readdir$4, stat: stat$4 } = require("fs/promises");
|
|
106768
|
+
const { resolve: resolve$9, basename: basename$3, dirname: dirname$8 } = require("path");
|
|
106690
106769
|
const normalizePackageBin = require_lib$21();
|
|
106691
106770
|
const readPackage = ({ path: path$51, packageJsonCache }) => packageJsonCache.has(path$51) ? Promise.resolve(packageJsonCache.get(path$51)) : readFile$5(path$51).then((json) => {
|
|
106692
106771
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106730,17 +106809,17 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106730
106809
|
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106731
106810
|
const binFiles = [];
|
|
106732
106811
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106733
|
-
const base = resolve$
|
|
106812
|
+
const base = resolve$9(nm, ".bin", b);
|
|
106734
106813
|
binFiles.push(base, base + ".cmd", base + ".ps1");
|
|
106735
106814
|
});
|
|
106736
|
-
(await Promise.all(binFiles.map((b) => stat$
|
|
106815
|
+
(await Promise.all(binFiles.map((b) => stat$4(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
|
|
106737
106816
|
}
|
|
106738
106817
|
}
|
|
106739
106818
|
if (currentDepth >= depth) {
|
|
106740
106819
|
result.add(path$53);
|
|
106741
106820
|
return result;
|
|
106742
106821
|
}
|
|
106743
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$
|
|
106822
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$4(path$53, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106744
106823
|
path: path$53,
|
|
106745
106824
|
packageJsonCache
|
|
106746
106825
|
}) : null]).catch(() => []);
|
|
@@ -106751,7 +106830,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106751
106830
|
}
|
|
106752
106831
|
const recursePromises = [];
|
|
106753
106832
|
for (const entry of dirEntries) {
|
|
106754
|
-
const p = resolve$
|
|
106833
|
+
const p = resolve$9(path$53, entry.name);
|
|
106755
106834
|
if (entry.isDirectory() === false) {
|
|
106756
106835
|
result.add(p);
|
|
106757
106836
|
continue;
|
|
@@ -106770,7 +106849,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106770
106849
|
}
|
|
106771
106850
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106772
106851
|
return pkgContents({
|
|
106773
|
-
path: resolve$
|
|
106852
|
+
path: resolve$9(path$53, "node_modules", dep),
|
|
106774
106853
|
packageJsonCache,
|
|
106775
106854
|
pkg: true,
|
|
106776
106855
|
depth,
|
|
@@ -106782,7 +106861,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106782
106861
|
return result;
|
|
106783
106862
|
};
|
|
106784
106863
|
module.exports = ({ path: path$54, ...opts }) => pkgContents({
|
|
106785
|
-
path: resolve$
|
|
106864
|
+
path: resolve$9(path$54),
|
|
106786
106865
|
...opts,
|
|
106787
106866
|
pkg: true
|
|
106788
106867
|
}).then((results) => [...results]);
|
|
@@ -110393,18 +110472,18 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
110393
110472
|
//#endregion
|
|
110394
110473
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110395
110474
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110396
|
-
const { resolve: resolve$
|
|
110475
|
+
const { resolve: resolve$8 } = require("node:path");
|
|
110397
110476
|
const { tmpdir, homedir } = require("node:os");
|
|
110398
110477
|
module.exports = (fakePlatform = false) => {
|
|
110399
110478
|
const temp = tmpdir();
|
|
110400
110479
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110401
|
-
const home = homedir() || resolve$
|
|
110480
|
+
const home = homedir() || resolve$8(temp, "npm-" + uidOrPid);
|
|
110402
110481
|
const platform = fakePlatform || process.platform;
|
|
110403
110482
|
const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
|
|
110404
110483
|
const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
|
|
110405
110484
|
return {
|
|
110406
|
-
cacache: resolve$
|
|
110407
|
-
tufcache: resolve$
|
|
110485
|
+
cacache: resolve$8(cacheRoot, cacheExtra, "_cacache"),
|
|
110486
|
+
tufcache: resolve$8(cacheRoot, cacheExtra, "_tuf")
|
|
110408
110487
|
};
|
|
110409
110488
|
};
|
|
110410
110489
|
}));
|
|
@@ -112218,7 +112297,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112218
112297
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112219
112298
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112220
112299
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112221
|
-
const { basename: basename$2, dirname: dirname$7, extname: extname$1, join: join$
|
|
112300
|
+
const { basename: basename$2, dirname: dirname$7, extname: extname$1, join: join$8, relative, resolve: resolve$7, sep } = require("path");
|
|
112222
112301
|
const { log } = require_lib$29();
|
|
112223
112302
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112224
112303
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112251,7 +112330,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112251
112330
|
const normalizePath = (path$48) => path$48.split("\\").join("/");
|
|
112252
112331
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112253
112332
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112254
|
-
const ignoreContent = readFile$4(join$
|
|
112333
|
+
const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
|
|
112255
112334
|
result.push(ignoreContent);
|
|
112256
112335
|
break;
|
|
112257
112336
|
} catch (err) {
|
|
@@ -112260,8 +112339,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112260
112339
|
}
|
|
112261
112340
|
if (!rel) return result;
|
|
112262
112341
|
const firstRel = rel.split(sep, 1)[0];
|
|
112263
|
-
const newRoot = join$
|
|
112264
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112342
|
+
const newRoot = join$8(root, firstRel);
|
|
112343
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112265
112344
|
};
|
|
112266
112345
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112267
112346
|
constructor(tree, opts) {
|
|
@@ -112269,7 +112348,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112269
112348
|
...opts,
|
|
112270
112349
|
includeEmpty: false,
|
|
112271
112350
|
follow: false,
|
|
112272
|
-
path: resolve$
|
|
112351
|
+
path: resolve$7(opts?.path || tree.path).replace(/\\/g, "/"),
|
|
112273
112352
|
ignoreFiles: opts?.ignoreFiles || [
|
|
112274
112353
|
defaultRules,
|
|
112275
112354
|
"package.json",
|
|
@@ -112328,7 +112407,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112328
112407
|
let ignoreFiles = null;
|
|
112329
112408
|
if (this.tree.workspaces) {
|
|
112330
112409
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112331
|
-
const entryPath = join$
|
|
112410
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112332
112411
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112333
112412
|
defaultRules,
|
|
112334
112413
|
"package.json",
|
|
@@ -112388,7 +112467,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112388
112467
|
if (file.endsWith("/*")) file += "*";
|
|
112389
112468
|
const inverse = `!${file}`;
|
|
112390
112469
|
try {
|
|
112391
|
-
const stat = lstat$1(join$
|
|
112470
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112392
112471
|
if (stat.isFile()) {
|
|
112393
112472
|
strict.unshift(inverse);
|
|
112394
112473
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112445,7 +112524,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112445
112524
|
walker.start();
|
|
112446
112525
|
});
|
|
112447
112526
|
const relativeFrom = relative(this.root, walker.path);
|
|
112448
|
-
for (const file of bundled) this.result.add(join$
|
|
112527
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112449
112528
|
}
|
|
112450
112529
|
}
|
|
112451
112530
|
};
|
|
@@ -112469,8 +112548,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112469
112548
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112470
112549
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112471
112550
|
const { log } = require_lib$29();
|
|
112472
|
-
const { resolve: resolve$
|
|
112473
|
-
const nodeGypPath = resolve$
|
|
112551
|
+
const { resolve: resolve$6, dirname: dirname$6, delimiter: delimiter$1 } = require("path");
|
|
112552
|
+
const nodeGypPath = resolve$6(__dirname, "../lib/node-gyp-bin");
|
|
112474
112553
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112475
112554
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
112476
112555
|
const pathArr = [];
|
|
@@ -112485,7 +112564,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112485
112564
|
let p = projectPath;
|
|
112486
112565
|
let pp;
|
|
112487
112566
|
do {
|
|
112488
|
-
pathArr.push(resolve$
|
|
112567
|
+
pathArr.push(resolve$6(p, "node_modules", ".bin"));
|
|
112489
112568
|
pp = p;
|
|
112490
112569
|
p = dirname$6(p);
|
|
112491
112570
|
} while (p !== pp);
|
|
@@ -112500,7 +112579,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112500
112579
|
//#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
|
|
112501
112580
|
var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112502
112581
|
const setPATH = require_set_path();
|
|
112503
|
-
const { resolve: resolve$
|
|
112582
|
+
const { resolve: resolve$5 } = require("path");
|
|
112504
112583
|
let npm_config_node_gyp;
|
|
112505
112584
|
const makeSpawnArgs = (options) => {
|
|
112506
112585
|
const { args, binPaths, cmd, env, event, nodeGyp, path: path$47, scriptShell = true, stdio, stdioString } = options;
|
|
@@ -112514,7 +112593,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112514
112593
|
env: setPATH(path$47, binPaths, {
|
|
112515
112594
|
...process.env,
|
|
112516
112595
|
...env,
|
|
112517
|
-
npm_package_json: resolve$
|
|
112596
|
+
npm_package_json: resolve$5(path$47, "package.json"),
|
|
112518
112597
|
npm_lifecycle_event: event,
|
|
112519
112598
|
npm_lifecycle_script: cmd,
|
|
112520
112599
|
npm_config_node_gyp
|
|
@@ -112601,11 +112680,11 @@ var require_signal_manager = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
112601
112680
|
//#endregion
|
|
112602
112681
|
//#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
|
|
112603
112682
|
var require_is_server_package = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112604
|
-
const { stat: stat$
|
|
112605
|
-
const { resolve: resolve$
|
|
112683
|
+
const { stat: stat$3 } = require("node:fs/promises");
|
|
112684
|
+
const { resolve: resolve$4 } = require("node:path");
|
|
112606
112685
|
module.exports = async (path) => {
|
|
112607
112686
|
try {
|
|
112608
|
-
return (await stat$
|
|
112687
|
+
return (await stat$3(resolve$4(path, "server.js"))).isFile();
|
|
112609
112688
|
} catch (er) {
|
|
112610
112689
|
return false;
|
|
112611
112690
|
}
|
|
@@ -112715,8 +112794,8 @@ var require_run_script = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
112715
112794
|
//#endregion
|
|
112716
112795
|
//#region ../../node_modules/pacote/lib/file.js
|
|
112717
112796
|
var require_file$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112718
|
-
const { resolve: resolve$
|
|
112719
|
-
const { stat: stat$
|
|
112797
|
+
const { resolve: resolve$3 } = require("node:path");
|
|
112798
|
+
const { stat: stat$2, chmod: chmod$2 } = require("node:fs/promises");
|
|
112720
112799
|
const cacache = require_lib$14();
|
|
112721
112800
|
const fsm = require_lib$13();
|
|
112722
112801
|
const Fetcher = require_fetcher();
|
|
@@ -112741,9 +112820,9 @@ var require_file$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112741
112820
|
#exeBins(pkg, dest) {
|
|
112742
112821
|
if (!pkg.bin) return Promise.resolve();
|
|
112743
112822
|
return Promise.all(Object.keys(pkg.bin).map(async (k) => {
|
|
112744
|
-
const script = resolve$
|
|
112823
|
+
const script = resolve$3(dest, pkg.bin[k]);
|
|
112745
112824
|
try {
|
|
112746
|
-
const st = await stat$
|
|
112825
|
+
const st = await stat$2(script);
|
|
112747
112826
|
const mode = st.mode | 73;
|
|
112748
112827
|
if (mode === st.mode) return;
|
|
112749
112828
|
await chmod$2(script, mode);
|
|
@@ -112792,7 +112871,7 @@ var require_tar_create_options = /* @__PURE__ */ require_chunk.__commonJSMin(((e
|
|
|
112792
112871
|
//#endregion
|
|
112793
112872
|
//#region ../../node_modules/pacote/lib/dir.js
|
|
112794
112873
|
var require_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112795
|
-
const { resolve: resolve$
|
|
112874
|
+
const { resolve: resolve$2 } = require("node:path");
|
|
112796
112875
|
const packlist = require_lib$9();
|
|
112797
112876
|
const runScript = require_run_script();
|
|
112798
112877
|
const tar = require_index_min();
|
|
@@ -112828,7 +112907,7 @@ var require_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
112828
112907
|
env: {
|
|
112829
112908
|
npm_package_resolved: this.resolved,
|
|
112830
112909
|
npm_package_integrity: this.integrity,
|
|
112831
|
-
npm_package_json: resolve$
|
|
112910
|
+
npm_package_json: resolve$2(this.resolved, "package.json")
|
|
112832
112911
|
}
|
|
112833
112912
|
});
|
|
112834
112913
|
});
|
|
@@ -141839,7 +141918,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141839
141918
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141840
141919
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141841
141920
|
const { basename: basename$1, dirname: dirname$5 } = require("node:path");
|
|
141842
|
-
const { rm: rm$4, mkdir: mkdir$
|
|
141921
|
+
const { rm: rm$4, mkdir: mkdir$5 } = require("node:fs/promises");
|
|
141843
141922
|
const PackageJson = require_lib$18();
|
|
141844
141923
|
const cacache = require_lib$14();
|
|
141845
141924
|
const fsm = require_lib$13();
|
|
@@ -142023,7 +142102,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142023
142102
|
}
|
|
142024
142103
|
async #mkdir(dest) {
|
|
142025
142104
|
await this.#empty(dest);
|
|
142026
|
-
return await mkdir$
|
|
142105
|
+
return await mkdir$5(dest, { recursive: true });
|
|
142027
142106
|
}
|
|
142028
142107
|
async extract(dest) {
|
|
142029
142108
|
await this.#mkdir(dest);
|
|
@@ -142043,7 +142122,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142043
142122
|
}));
|
|
142044
142123
|
}
|
|
142045
142124
|
async tarballFile(dest) {
|
|
142046
|
-
await mkdir$
|
|
142125
|
+
await mkdir$5(dirname$5(dest), { recursive: true });
|
|
142047
142126
|
return this.#toFile(dest);
|
|
142048
142127
|
}
|
|
142049
142128
|
#extract(dest, tarball) {
|
|
@@ -150470,7 +150549,7 @@ var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
150470
150549
|
const { promisify: promisify$1 } = require("util");
|
|
150471
150550
|
const path$6 = require("path");
|
|
150472
150551
|
const { createHash } = require("crypto");
|
|
150473
|
-
const { realpath, lstat, createReadStream: createReadStream$1, readdir: readdir$
|
|
150552
|
+
const { realpath, lstat, createReadStream: createReadStream$1, readdir: readdir$3 } = require("fs");
|
|
150474
150553
|
const url = require("url");
|
|
150475
150554
|
const slasher = require_glob_slash();
|
|
150476
150555
|
const minimatch = require_minimatch();
|
|
@@ -150795,7 +150874,7 @@ var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
150795
150874
|
lstat: promisify$1(lstat),
|
|
150796
150875
|
realpath: promisify$1(realpath),
|
|
150797
150876
|
createReadStream: createReadStream$1,
|
|
150798
|
-
readdir: promisify$1(readdir$
|
|
150877
|
+
readdir: promisify$1(readdir$3),
|
|
150799
150878
|
sendError
|
|
150800
150879
|
}, methods);
|
|
150801
150880
|
module.exports = async (request, response, config = {}, methods = {}) => {
|
|
@@ -150924,7 +151003,7 @@ require_lib();
|
|
|
150924
151003
|
require_src();
|
|
150925
151004
|
//#endregion
|
|
150926
151005
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
150927
|
-
const { join: join$
|
|
151006
|
+
const { join: join$6 } = node_path.default;
|
|
150928
151007
|
//#endregion
|
|
150929
151008
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
150930
151009
|
const localPluginsMap = /* @__PURE__ */ new Map();
|