@pipelab/plugin-tauri 1.0.0-beta.23 → 1.0.0-beta.27
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 +115 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -45429,6 +45429,17 @@ const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
|
45429
45429
|
const metaUrl = require("url").pathToFileURL(__filename).href;
|
|
45430
45430
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? (0, node_path.dirname)((0, node_url.fileURLToPath)(metaUrl)) : process.cwd();
|
|
45431
45431
|
const isDev = process.env.NODE_ENV === "development";
|
|
45432
|
+
const getDefaultUserDataPath = (env) => {
|
|
45433
|
+
const base = (() => {
|
|
45434
|
+
switch ((0, node_os.platform)()) {
|
|
45435
|
+
case "win32": return process.env.APPDATA || (0, node_path.join)((0, node_os.homedir)(), "AppData", "Roaming");
|
|
45436
|
+
case "darwin": return (0, node_path.join)((0, node_os.homedir)(), "Library", "Application Support");
|
|
45437
|
+
default: return process.env.XDG_CONFIG_HOME || (0, node_path.join)((0, node_os.homedir)(), ".config");
|
|
45438
|
+
}
|
|
45439
|
+
})();
|
|
45440
|
+
const mode = env ?? (isDev ? "dev" : "prod");
|
|
45441
|
+
return (0, node_path.join)(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
|
|
45442
|
+
};
|
|
45432
45443
|
/**
|
|
45433
45444
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
45434
45445
|
*/
|
|
@@ -49195,6 +49206,74 @@ var WebSocketServer = class {
|
|
|
49195
49206
|
};
|
|
49196
49207
|
const webSocketServer = new WebSocketServer();
|
|
49197
49208
|
//#endregion
|
|
49209
|
+
//#region ../../node_modules/slash/index.js
|
|
49210
|
+
var require_slash = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49211
|
+
module.exports = (path) => {
|
|
49212
|
+
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
49213
|
+
const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
49214
|
+
if (isExtendedLengthPath || hasNonAscii) return path;
|
|
49215
|
+
return path.replace(/\\/g, "/");
|
|
49216
|
+
};
|
|
49217
|
+
}));
|
|
49218
|
+
//#endregion
|
|
49219
|
+
//#region ../../packages/core-node/src/fs-utils.ts
|
|
49220
|
+
var import_slash = /* @__PURE__ */ require_chunk.__toESM(require_slash(), 1);
|
|
49221
|
+
function removeTrailingSlash(path) {
|
|
49222
|
+
return path.replace(/[\\/]+$/, "");
|
|
49223
|
+
}
|
|
49224
|
+
removeTrailingSlash((0, import_slash.default)((0, node_path.resolve)((0, node_os.homedir)()))).toLowerCase();
|
|
49225
|
+
const additionalProtectedPaths = [
|
|
49226
|
+
getDefaultUserDataPath("dev"),
|
|
49227
|
+
getDefaultUserDataPath("beta"),
|
|
49228
|
+
getDefaultUserDataPath("prod"),
|
|
49229
|
+
projectRoot,
|
|
49230
|
+
process.cwd(),
|
|
49231
|
+
"/tmp",
|
|
49232
|
+
"/var/tmp",
|
|
49233
|
+
process.env.TEMP,
|
|
49234
|
+
process.env.TMP,
|
|
49235
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData"),
|
|
49236
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData", "Local"),
|
|
49237
|
+
(0, node_path.join)((0, node_os.homedir)(), "AppData", "Roaming"),
|
|
49238
|
+
(0, node_path.join)((0, node_os.homedir)(), "Library"),
|
|
49239
|
+
(0, node_path.join)((0, node_os.homedir)(), "Library", "Application Support"),
|
|
49240
|
+
(0, node_path.join)((0, node_os.homedir)(), ".config"),
|
|
49241
|
+
(0, node_path.join)((0, node_os.homedir)(), ".local"),
|
|
49242
|
+
(0, node_path.join)((0, node_os.homedir)(), ".local", "share"),
|
|
49243
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cache"),
|
|
49244
|
+
(0, node_path.join)((0, node_os.homedir)(), "OneDrive"),
|
|
49245
|
+
(0, node_path.join)((0, node_os.homedir)(), "Dropbox"),
|
|
49246
|
+
(0, node_path.join)((0, node_os.homedir)(), ".ssh"),
|
|
49247
|
+
(0, node_path.join)((0, node_os.homedir)(), ".gnupg"),
|
|
49248
|
+
(0, node_path.join)((0, node_os.homedir)(), ".aws"),
|
|
49249
|
+
(0, node_path.join)((0, node_os.homedir)(), ".docker"),
|
|
49250
|
+
(0, node_path.join)((0, node_os.homedir)(), ".kube"),
|
|
49251
|
+
(0, node_path.join)((0, node_os.homedir)(), ".vscode"),
|
|
49252
|
+
(0, node_path.join)((0, node_os.homedir)(), ".vscode-insiders"),
|
|
49253
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cursor"),
|
|
49254
|
+
(0, node_path.join)((0, node_os.homedir)(), ".npm"),
|
|
49255
|
+
(0, node_path.join)((0, node_os.homedir)(), ".pnpm-state"),
|
|
49256
|
+
(0, node_path.join)((0, node_os.homedir)(), ".yarn"),
|
|
49257
|
+
(0, node_path.join)((0, node_os.homedir)(), ".cargo"),
|
|
49258
|
+
(0, node_path.join)((0, node_os.homedir)(), ".rustup"),
|
|
49259
|
+
(0, node_path.join)((0, node_os.homedir)(), ".m2"),
|
|
49260
|
+
(0, node_path.join)((0, node_os.homedir)(), ".gradle")
|
|
49261
|
+
].filter((p) => typeof p === "string" && p.length > 0);
|
|
49262
|
+
new Set([
|
|
49263
|
+
(0, node_path.join)((0, node_os.homedir)(), "Downloads"),
|
|
49264
|
+
(0, node_path.join)((0, node_os.homedir)(), "Documents"),
|
|
49265
|
+
(0, node_path.join)((0, node_os.homedir)(), "Desktop"),
|
|
49266
|
+
(0, node_path.join)((0, node_os.homedir)(), "Pictures"),
|
|
49267
|
+
(0, node_path.join)((0, node_os.homedir)(), "Music"),
|
|
49268
|
+
(0, node_path.join)((0, node_os.homedir)(), "Videos"),
|
|
49269
|
+
(0, node_path.join)((0, node_os.homedir)(), "Saved Games"),
|
|
49270
|
+
(0, node_path.join)((0, node_os.homedir)(), "Contacts"),
|
|
49271
|
+
(0, node_path.join)((0, node_os.homedir)(), "Searches"),
|
|
49272
|
+
(0, node_path.join)((0, node_os.homedir)(), "Links"),
|
|
49273
|
+
(0, node_path.join)((0, node_os.homedir)(), "3D Objects"),
|
|
49274
|
+
...additionalProtectedPaths
|
|
49275
|
+
].map((p) => removeTrailingSlash((0, import_slash.default)((0, node_path.resolve)(p))).toLowerCase()));
|
|
49276
|
+
//#endregion
|
|
49198
49277
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
49199
49278
|
function isPlainObject(value) {
|
|
49200
49279
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -59588,13 +59667,13 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59588
59667
|
//#region ../../node_modules/mkdirp/lib/path-arg.js
|
|
59589
59668
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59590
59669
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59591
|
-
const { resolve: resolve$
|
|
59670
|
+
const { resolve: resolve$14, parse: parse$2 } = require("path");
|
|
59592
59671
|
const pathArg = (path$87) => {
|
|
59593
59672
|
if (/\0/.test(path$87)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59594
59673
|
path: path$87,
|
|
59595
59674
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59596
59675
|
});
|
|
59597
|
-
path$87 = resolve$
|
|
59676
|
+
path$87 = resolve$14(path$87);
|
|
59598
59677
|
if (platform === "win32") {
|
|
59599
59678
|
const badWinChars = /[*|"<>?:]/;
|
|
59600
59679
|
const { root } = parse$2(path$87);
|
|
@@ -60012,14 +60091,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60012
60091
|
const assert$1 = require("assert");
|
|
60013
60092
|
const normalize = require_normalize_unicode();
|
|
60014
60093
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60015
|
-
const { join: join$
|
|
60094
|
+
const { join: join$19 } = require("path");
|
|
60016
60095
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60017
60096
|
module.exports = () => {
|
|
60018
60097
|
const queues = /* @__PURE__ */ new Map();
|
|
60019
60098
|
const reservations = /* @__PURE__ */ new Map();
|
|
60020
60099
|
const getDirs = (path$64) => {
|
|
60021
60100
|
return path$64.split("/").slice(0, -1).reduce((set, path$65) => {
|
|
60022
|
-
if (set.length) path$65 = join$
|
|
60101
|
+
if (set.length) path$65 = join$19(set[set.length - 1], path$65);
|
|
60023
60102
|
set.push(path$65 || "/");
|
|
60024
60103
|
return set;
|
|
60025
60104
|
}, []);
|
|
@@ -60073,7 +60152,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60073
60152
|
};
|
|
60074
60153
|
const reserve = (paths, fn) => {
|
|
60075
60154
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60076
|
-
return stripSlashes(join$
|
|
60155
|
+
return stripSlashes(join$19(normalize(p))).toLowerCase();
|
|
60077
60156
|
});
|
|
60078
60157
|
const dirs = new Set(paths.map((path$69) => getDirs(path$69)).reduce((a, b) => a.concat(b)));
|
|
60079
60158
|
reservations.set(fn, {
|
|
@@ -62639,7 +62718,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62639
62718
|
const fs$22 = require("fs");
|
|
62640
62719
|
const { EventEmitter: EventEmitter$1 } = require("events");
|
|
62641
62720
|
const { Minimatch } = require_minimatch$1();
|
|
62642
|
-
const { resolve: resolve$
|
|
62721
|
+
const { resolve: resolve$13 } = require("path");
|
|
62643
62722
|
function readdir(dir, strict) {
|
|
62644
62723
|
return new Promise((resolve, reject) => {
|
|
62645
62724
|
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
@@ -62748,7 +62827,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62748
62827
|
if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
|
|
62749
62828
|
this.skipMatchers = [];
|
|
62750
62829
|
if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
|
|
62751
|
-
this.iterator = explore(resolve$
|
|
62830
|
+
this.iterator = explore(resolve$13(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
62752
62831
|
this.paused = false;
|
|
62753
62832
|
this.inactive = false;
|
|
62754
62833
|
this.aborted = false;
|
|
@@ -95910,7 +95989,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95910
95989
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95911
95990
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95912
95991
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95913
|
-
const { join: join$
|
|
95992
|
+
const { join: join$16, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95914
95993
|
const isWindows = process.platform === "win32";
|
|
95915
95994
|
/* istanbul ignore next */
|
|
95916
95995
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95940,7 +96019,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95940
96019
|
};
|
|
95941
96020
|
const getPathPart = (raw, cmd) => {
|
|
95942
96021
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95943
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96022
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
95944
96023
|
};
|
|
95945
96024
|
const which = async (cmd, opt = {}) => {
|
|
95946
96025
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96689,7 +96768,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96689
96768
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96690
96769
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96691
96770
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96692
|
-
const { join: join$
|
|
96771
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96693
96772
|
const isWindows = process.platform === "win32";
|
|
96694
96773
|
/* istanbul ignore next */
|
|
96695
96774
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96719,7 +96798,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96719
96798
|
};
|
|
96720
96799
|
const getPathPart = (raw, cmd) => {
|
|
96721
96800
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96722
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96801
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
96723
96802
|
};
|
|
96724
96803
|
const which = async (cmd, opt = {}) => {
|
|
96725
96804
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98617,7 +98696,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98617
98696
|
//#endregion
|
|
98618
98697
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98619
98698
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98620
|
-
const { join: join$
|
|
98699
|
+
const { join: join$14, basename: basename$5 } = require("path");
|
|
98621
98700
|
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);
|
|
98622
98701
|
const normalizeString = (pkg) => {
|
|
98623
98702
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98640,9 +98719,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98640
98719
|
const clean = {};
|
|
98641
98720
|
let hasBins = false;
|
|
98642
98721
|
Object.keys(orig).forEach((binKey) => {
|
|
98643
|
-
const base = join$
|
|
98722
|
+
const base = join$14("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98644
98723
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98645
|
-
const binTarget = join$
|
|
98724
|
+
const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98646
98725
|
if (!binTarget) return;
|
|
98647
98726
|
clean[base] = binTarget;
|
|
98648
98727
|
hasBins = true;
|
|
@@ -98908,8 +98987,8 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98908
98987
|
//#endregion
|
|
98909
98988
|
//#region ../../node_modules/@npmcli/git/lib/is.js
|
|
98910
98989
|
var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98911
|
-
const { stat: stat$
|
|
98912
|
-
module.exports = ({ cwd = process.cwd() } = {}) => stat$
|
|
98990
|
+
const { stat: stat$7 } = require("fs/promises");
|
|
98991
|
+
module.exports = ({ cwd = process.cwd() } = {}) => stat$7(cwd + "/.git").then(() => true, () => false);
|
|
98913
98992
|
}));
|
|
98914
98993
|
//#endregion
|
|
98915
98994
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
@@ -99443,8 +99522,8 @@ var require_sort$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99443
99522
|
//#endregion
|
|
99444
99523
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99445
99524
|
var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99446
|
-
const { readFile: readFile$9, writeFile: writeFile$
|
|
99447
|
-
const { resolve: resolve$
|
|
99525
|
+
const { readFile: readFile$9, writeFile: writeFile$5 } = require("node:fs/promises");
|
|
99526
|
+
const { resolve: resolve$12 } = require("node:path");
|
|
99448
99527
|
const parseJSON = require_lib$30();
|
|
99449
99528
|
const updateDeps = require_update_dependencies();
|
|
99450
99529
|
const updateScripts = require_update_scripts();
|
|
@@ -99547,7 +99626,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99547
99626
|
parseErr = err;
|
|
99548
99627
|
}
|
|
99549
99628
|
if (parseErr) {
|
|
99550
|
-
const indexFile = resolve$
|
|
99629
|
+
const indexFile = resolve$12(this.path, "index.js");
|
|
99551
99630
|
let indexFileContent;
|
|
99552
99631
|
try {
|
|
99553
99632
|
indexFileContent = await readFile$9(indexFile, "utf8");
|
|
@@ -99592,7 +99671,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99592
99671
|
return this.#path;
|
|
99593
99672
|
}
|
|
99594
99673
|
get filename() {
|
|
99595
|
-
if (this.path) return resolve$
|
|
99674
|
+
if (this.path) return resolve$12(this.path, "package.json");
|
|
99596
99675
|
}
|
|
99597
99676
|
create(path) {
|
|
99598
99677
|
this.#path = path;
|
|
@@ -99616,7 +99695,7 @@ var require_lib$18 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99616
99695
|
const content = sort ? packageSort(rest) : rest;
|
|
99617
99696
|
const fileContent = `${JSON.stringify(content, null, format)}\n`.replace(/\n/g, eol);
|
|
99618
99697
|
if (fileContent.trim() !== this.#readFileContent.trim()) {
|
|
99619
|
-
const written = await writeFile$
|
|
99698
|
+
const written = await writeFile$5(this.filename, fileContent);
|
|
99620
99699
|
this.#readFileContent = fileContent;
|
|
99621
99700
|
return written;
|
|
99622
99701
|
}
|
|
@@ -100714,8 +100793,8 @@ var require_errors$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100714
100793
|
var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100715
100794
|
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();
|
|
100716
100795
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100717
|
-
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$
|
|
100718
|
-
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$
|
|
100796
|
+
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$7, readlink, stat: stat$6, symlink, unlink, utimes } = require("fs/promises");
|
|
100797
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$11, sep: sep$2, toNamespacedPath } = require("path");
|
|
100719
100798
|
const { fileURLToPath: fileURLToPath$1 } = require("url");
|
|
100720
100799
|
const defaultOptions = {
|
|
100721
100800
|
dereference: false,
|
|
@@ -100780,7 +100859,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100780
100859
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
100781
100860
|
}
|
|
100782
100861
|
function getStats(src, dest, opts) {
|
|
100783
|
-
const statFunc = opts.dereference ? (file) => stat$
|
|
100862
|
+
const statFunc = opts.dereference ? (file) => stat$6(file, { bigint: true }) : (file) => lstat$2(file, { bigint: true });
|
|
100784
100863
|
return Promise.all([statFunc(src), statFunc(dest).catch((err) => {
|
|
100785
100864
|
// istanbul ignore next: unsure how to cover.
|
|
100786
100865
|
if (err.code === "ENOENT") return null;
|
|
@@ -100791,23 +100870,23 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100791
100870
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100792
100871
|
const destParent = dirname$10(dest);
|
|
100793
100872
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100794
|
-
await mkdir$
|
|
100873
|
+
await mkdir$8(destParent, { recursive: true });
|
|
100795
100874
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
100796
100875
|
}
|
|
100797
100876
|
function pathExists(dest) {
|
|
100798
|
-
return stat$
|
|
100877
|
+
return stat$6(dest).then(
|
|
100799
100878
|
() => true,
|
|
100800
100879
|
// istanbul ignore next: not sure when this would occur
|
|
100801
100880
|
(err) => err.code === "ENOENT" ? false : Promise.reject(err)
|
|
100802
100881
|
);
|
|
100803
100882
|
}
|
|
100804
100883
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100805
|
-
const srcParent = resolve$
|
|
100806
|
-
const destParent = resolve$
|
|
100884
|
+
const srcParent = resolve$11(dirname$10(src));
|
|
100885
|
+
const destParent = resolve$11(dirname$10(dest));
|
|
100807
100886
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100808
100887
|
let destStat;
|
|
100809
100888
|
try {
|
|
100810
|
-
destStat = await stat$
|
|
100889
|
+
destStat = await stat$6(destParent, { bigint: true });
|
|
100811
100890
|
} catch (err) {
|
|
100812
100891
|
// istanbul ignore else: not sure when this would occur
|
|
100813
100892
|
if (err.code === "ENOENT") return;
|
|
@@ -100822,7 +100901,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100822
100901
|
});
|
|
100823
100902
|
return checkParentPaths(src, srcStat, destParent);
|
|
100824
100903
|
}
|
|
100825
|
-
const normalizePathToArray = (path$57) => resolve$
|
|
100904
|
+
const normalizePathToArray = (path$57) => resolve$11(path$57).split(sep$2).filter(Boolean);
|
|
100826
100905
|
function isSrcSubdir(src, dest) {
|
|
100827
100906
|
const srcArr = normalizePathToArray(src);
|
|
100828
100907
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100836,7 +100915,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100836
100915
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
100837
100916
|
}
|
|
100838
100917
|
async function getStatsForCopy(destStat, src, dest, opts) {
|
|
100839
|
-
const srcStat = await (opts.dereference ? stat$
|
|
100918
|
+
const srcStat = await (opts.dereference ? stat$6 : lstat$2)(src);
|
|
100840
100919
|
// istanbul ignore else: can't portably test FIFO
|
|
100841
100920
|
if (srcStat.isDirectory() && opts.recursive) return onDir(srcStat, destStat, src, dest, opts);
|
|
100842
100921
|
else if (srcStat.isDirectory()) throw new ERR_FS_EISDIR({
|
|
@@ -100908,7 +100987,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100908
100987
|
return chmod$2(dest, srcMode);
|
|
100909
100988
|
}
|
|
100910
100989
|
async function setDestTimestamps(src, dest) {
|
|
100911
|
-
const updatedSrcStat = await stat$
|
|
100990
|
+
const updatedSrcStat = await stat$6(src);
|
|
100912
100991
|
return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
100913
100992
|
}
|
|
100914
100993
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -100916,23 +100995,23 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100916
100995
|
return copyDir(src, dest, opts);
|
|
100917
100996
|
}
|
|
100918
100997
|
async function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
100919
|
-
await mkdir$
|
|
100998
|
+
await mkdir$8(dest);
|
|
100920
100999
|
await copyDir(src, dest, opts);
|
|
100921
101000
|
return setDestMode(dest, srcMode);
|
|
100922
101001
|
}
|
|
100923
101002
|
async function copyDir(src, dest, opts) {
|
|
100924
|
-
const dir = await readdir$
|
|
101003
|
+
const dir = await readdir$7(src);
|
|
100925
101004
|
for (let i = 0; i < dir.length; i++) {
|
|
100926
101005
|
const item = dir[i];
|
|
100927
|
-
const srcItem = join$
|
|
100928
|
-
const destItem = join$
|
|
101006
|
+
const srcItem = join$13(src, item);
|
|
101007
|
+
const destItem = join$13(dest, item);
|
|
100929
101008
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100930
101009
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100931
101010
|
}
|
|
100932
101011
|
}
|
|
100933
101012
|
async function onLink(destStat, src, dest) {
|
|
100934
101013
|
let resolvedSrc = await readlink(src);
|
|
100935
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$
|
|
101014
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$11(dirname$10(src), resolvedSrc);
|
|
100936
101015
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100937
101016
|
let resolvedDest;
|
|
100938
101017
|
try {
|
|
@@ -100943,14 +101022,14 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100943
101022
|
// istanbul ignore next: should not be possible
|
|
100944
101023
|
throw err;
|
|
100945
101024
|
}
|
|
100946
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$
|
|
101025
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$11(dirname$10(dest), resolvedDest);
|
|
100947
101026
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100948
101027
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100949
101028
|
path: dest,
|
|
100950
101029
|
syscall: "cp",
|
|
100951
101030
|
errno: EINVAL
|
|
100952
101031
|
});
|
|
100953
|
-
if ((await stat$
|
|
101032
|
+
if ((await stat$6(src)).isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) throw new ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY({
|
|
100954
101033
|
message: `cannot overwrite ${resolvedDest} with ${resolvedSrc}`,
|
|
100955
101034
|
path: dest,
|
|
100956
101035
|
syscall: "cp",
|
|
@@ -100989,13 +101068,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100989
101068
|
//#endregion
|
|
100990
101069
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100991
101070
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100992
|
-
const { join: join$
|
|
101071
|
+
const { join: join$12, sep: sep$1 } = require("path");
|
|
100993
101072
|
const getOptions = require_get_options();
|
|
100994
|
-
const { mkdir: mkdir$
|
|
101073
|
+
const { mkdir: mkdir$7, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100995
101074
|
const withTempDir = async (root, fn, opts) => {
|
|
100996
101075
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100997
|
-
await mkdir$
|
|
100998
|
-
const target = await mkdtemp(join$
|
|
101076
|
+
await mkdir$7(root, { recursive: true });
|
|
101077
|
+
const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100999
101078
|
let err;
|
|
101000
101079
|
let result;
|
|
101001
101080
|
try {
|
|
@@ -101017,11 +101096,11 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101017
101096
|
//#endregion
|
|
101018
101097
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101019
101098
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101020
|
-
const { readdir: readdir$
|
|
101021
|
-
const { join: join$
|
|
101099
|
+
const { readdir: readdir$6 } = require("fs/promises");
|
|
101100
|
+
const { join: join$11 } = require("path");
|
|
101022
101101
|
const readdirScoped = async (dir) => {
|
|
101023
101102
|
const results = [];
|
|
101024
|
-
for (const item of await readdir$
|
|
101103
|
+
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$11(dir, item))) results.push(join$11(item, scopedItem));
|
|
101025
101104
|
else results.push(item);
|
|
101026
101105
|
return results;
|
|
101027
101106
|
};
|
|
@@ -101030,7 +101109,7 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101030
101109
|
//#endregion
|
|
101031
101110
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101032
101111
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101033
|
-
const { dirname: dirname$9, join: join$
|
|
101112
|
+
const { dirname: dirname$9, join: join$10, resolve: resolve$10, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101034
101113
|
const fs$13 = require("fs/promises");
|
|
101035
101114
|
const pathExists = async (path$56) => {
|
|
101036
101115
|
try {
|
|
@@ -101055,7 +101134,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101055
101134
|
const sourceStat = await fs$13.lstat(source);
|
|
101056
101135
|
if (sourceStat.isDirectory()) {
|
|
101057
101136
|
const files = await fs$13.readdir(source);
|
|
101058
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101137
|
+
await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
|
|
101059
101138
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101060
101139
|
source,
|
|
101061
101140
|
destination
|
|
@@ -101066,10 +101145,10 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101066
101145
|
if (root) {
|
|
101067
101146
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101068
101147
|
let target = await fs$13.readlink(symSource);
|
|
101069
|
-
if (isAbsolute$1(target)) target = resolve$
|
|
101148
|
+
if (isAbsolute$1(target)) target = resolve$10(symDestination, relative$1(symSource, target));
|
|
101070
101149
|
let targetStat = "file";
|
|
101071
101150
|
try {
|
|
101072
|
-
targetStat = await fs$13.stat(resolve$
|
|
101151
|
+
targetStat = await fs$13.stat(resolve$10(dirname$9(symSource), target));
|
|
101073
101152
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101074
101153
|
} catch {}
|
|
101075
101154
|
await fs$13.symlink(target, symDestination, targetStat);
|
|
@@ -101231,7 +101310,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101231
101310
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101232
101311
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101233
101312
|
const crypto$1 = require("crypto");
|
|
101234
|
-
const { appendFile, mkdir: mkdir$
|
|
101313
|
+
const { appendFile, mkdir: mkdir$6, readFile: readFile$8, readdir: readdir$5, rm: rm$7, writeFile: writeFile$4 } = require("fs/promises");
|
|
101235
101314
|
const { Minipass } = require_commonjs$10();
|
|
101236
101315
|
const path$17 = require("path");
|
|
101237
101316
|
const ssri = require_lib$17();
|
|
@@ -101265,7 +101344,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101265
101344
|
}).join("\n");
|
|
101266
101345
|
const setup = async () => {
|
|
101267
101346
|
const target = tmpName(cache, opts.tmpPrefix);
|
|
101268
|
-
await mkdir$
|
|
101347
|
+
await mkdir$6(path$17.dirname(target), { recursive: true });
|
|
101269
101348
|
return {
|
|
101270
101349
|
target,
|
|
101271
101350
|
moved: false
|
|
@@ -101278,8 +101357,8 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101278
101357
|
});
|
|
101279
101358
|
};
|
|
101280
101359
|
const write = async (tmp) => {
|
|
101281
|
-
await writeFile$
|
|
101282
|
-
await mkdir$
|
|
101360
|
+
await writeFile$4(tmp.target, newIndex, { flag: "wx" });
|
|
101361
|
+
await mkdir$6(path$17.dirname(bucket), { recursive: true });
|
|
101283
101362
|
await moveFile(tmp.target, bucket);
|
|
101284
101363
|
tmp.moved = true;
|
|
101285
101364
|
};
|
|
@@ -101303,7 +101382,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101303
101382
|
metadata
|
|
101304
101383
|
};
|
|
101305
101384
|
try {
|
|
101306
|
-
await mkdir$
|
|
101385
|
+
await mkdir$6(path$17.dirname(bucket), { recursive: true });
|
|
101307
101386
|
const stringified = JSON.stringify(entry);
|
|
101308
101387
|
await appendFile(bucket, `\n${hashEntry(stringified)}\t${stringified}`);
|
|
101309
101388
|
} catch (err) {
|
|
@@ -101424,7 +101503,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101424
101503
|
};
|
|
101425
101504
|
}
|
|
101426
101505
|
function readdirOrEmpty(dir) {
|
|
101427
|
-
return readdir$
|
|
101506
|
+
return readdir$5(dir).catch((err) => {
|
|
101428
101507
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return [];
|
|
101429
101508
|
throw err;
|
|
101430
101509
|
});
|
|
@@ -106146,7 +106225,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106146
106225
|
//#endregion
|
|
106147
106226
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
106148
106227
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106149
|
-
const { mkdir: mkdir$
|
|
106228
|
+
const { mkdir: mkdir$5, readFile: readFile$7, rm: rm$5, stat: stat$5, truncate, writeFile: writeFile$3 } = require("fs/promises");
|
|
106150
106229
|
const contentPath = require_path();
|
|
106151
106230
|
const fsm = require_lib$15();
|
|
106152
106231
|
const glob = require_glob();
|
|
@@ -106196,7 +106275,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106196
106275
|
}
|
|
106197
106276
|
async function fixPerms(cache, opts) {
|
|
106198
106277
|
opts.log.silly("verify", "fixing cache permissions");
|
|
106199
|
-
await mkdir$
|
|
106278
|
+
await mkdir$5(cache, { recursive: true });
|
|
106200
106279
|
return null;
|
|
106201
106280
|
}
|
|
106202
106281
|
async function garbageCollect(cache, opts) {
|
|
@@ -106242,7 +106321,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106242
106321
|
}
|
|
106243
106322
|
} else {
|
|
106244
106323
|
stats.reclaimedCount++;
|
|
106245
|
-
const s = await stat$
|
|
106324
|
+
const s = await stat$5(f);
|
|
106246
106325
|
await rm$5(f, {
|
|
106247
106326
|
recursive: true,
|
|
106248
106327
|
force: true
|
|
@@ -106256,7 +106335,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106256
106335
|
async function verifyContent(filepath, sri) {
|
|
106257
106336
|
const contentInfo = {};
|
|
106258
106337
|
try {
|
|
106259
|
-
const { size } = await stat$
|
|
106338
|
+
const { size } = await stat$5(filepath);
|
|
106260
106339
|
contentInfo.size = size;
|
|
106261
106340
|
contentInfo.valid = true;
|
|
106262
106341
|
await ssri.checkStream(new fsm.ReadStream(filepath), sri);
|
|
@@ -106310,7 +106389,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106310
106389
|
for (const entry of bucket) {
|
|
106311
106390
|
const content = contentPath(cache, entry.integrity);
|
|
106312
106391
|
try {
|
|
106313
|
-
await stat$
|
|
106392
|
+
await stat$5(content);
|
|
106314
106393
|
await index.insert(cache, entry.key, entry.integrity, {
|
|
106315
106394
|
metadata: entry.metadata,
|
|
106316
106395
|
size: entry.size,
|
|
@@ -106335,7 +106414,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106335
106414
|
async function writeVerifile(cache, opts) {
|
|
106336
106415
|
const verifile = path$13.join(cache, "_lastverified");
|
|
106337
106416
|
opts.log.silly("verify", "writing verifile to " + verifile);
|
|
106338
|
-
return writeFile$
|
|
106417
|
+
return writeFile$3(verifile, `${Date.now()}`);
|
|
106339
106418
|
}
|
|
106340
106419
|
module.exports.lastRun = lastRun;
|
|
106341
106420
|
async function lastRun(cache) {
|
|
@@ -106885,8 +106964,8 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106885
106964
|
//#region ../../node_modules/@npmcli/installed-package-contents/lib/index.js
|
|
106886
106965
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106887
106966
|
const bundled = require_lib$12();
|
|
106888
|
-
const { readFile: readFile$6, readdir: readdir$
|
|
106889
|
-
const { resolve: resolve$
|
|
106967
|
+
const { readFile: readFile$6, readdir: readdir$4, stat: stat$4 } = require("fs/promises");
|
|
106968
|
+
const { resolve: resolve$9, basename: basename$4, dirname: dirname$8 } = require("path");
|
|
106890
106969
|
const normalizePackageBin = require_lib$21();
|
|
106891
106970
|
const readPackage = ({ path: path$51, packageJsonCache }) => packageJsonCache.has(path$51) ? Promise.resolve(packageJsonCache.get(path$51)) : readFile$6(path$51).then((json) => {
|
|
106892
106971
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106930,17 +107009,17 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106930
107009
|
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106931
107010
|
const binFiles = [];
|
|
106932
107011
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106933
|
-
const base = resolve$
|
|
107012
|
+
const base = resolve$9(nm, ".bin", b);
|
|
106934
107013
|
binFiles.push(base, base + ".cmd", base + ".ps1");
|
|
106935
107014
|
});
|
|
106936
|
-
(await Promise.all(binFiles.map((b) => stat$
|
|
107015
|
+
(await Promise.all(binFiles.map((b) => stat$4(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
|
|
106937
107016
|
}
|
|
106938
107017
|
}
|
|
106939
107018
|
if (currentDepth >= depth) {
|
|
106940
107019
|
result.add(path$53);
|
|
106941
107020
|
return result;
|
|
106942
107021
|
}
|
|
106943
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$
|
|
107022
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$4(path$53, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106944
107023
|
path: path$53,
|
|
106945
107024
|
packageJsonCache
|
|
106946
107025
|
}) : null]).catch(() => []);
|
|
@@ -106951,7 +107030,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106951
107030
|
}
|
|
106952
107031
|
const recursePromises = [];
|
|
106953
107032
|
for (const entry of dirEntries) {
|
|
106954
|
-
const p = resolve$
|
|
107033
|
+
const p = resolve$9(path$53, entry.name);
|
|
106955
107034
|
if (entry.isDirectory() === false) {
|
|
106956
107035
|
result.add(p);
|
|
106957
107036
|
continue;
|
|
@@ -106970,7 +107049,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106970
107049
|
}
|
|
106971
107050
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106972
107051
|
return pkgContents({
|
|
106973
|
-
path: resolve$
|
|
107052
|
+
path: resolve$9(path$53, "node_modules", dep),
|
|
106974
107053
|
packageJsonCache,
|
|
106975
107054
|
pkg: true,
|
|
106976
107055
|
depth,
|
|
@@ -106982,7 +107061,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106982
107061
|
return result;
|
|
106983
107062
|
};
|
|
106984
107063
|
module.exports = ({ path: path$54, ...opts }) => pkgContents({
|
|
106985
|
-
path: resolve$
|
|
107064
|
+
path: resolve$9(path$54),
|
|
106986
107065
|
...opts,
|
|
106987
107066
|
pkg: true
|
|
106988
107067
|
}).then((results) => [...results]);
|
|
@@ -110593,18 +110672,18 @@ var require_protected = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
110593
110672
|
//#endregion
|
|
110594
110673
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110595
110674
|
var require_cache_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110596
|
-
const { resolve: resolve$
|
|
110675
|
+
const { resolve: resolve$8 } = require("node:path");
|
|
110597
110676
|
const { tmpdir, homedir: homedir$1 } = require("node:os");
|
|
110598
110677
|
module.exports = (fakePlatform = false) => {
|
|
110599
110678
|
const temp = tmpdir();
|
|
110600
110679
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110601
|
-
const home = homedir$1() || resolve$
|
|
110680
|
+
const home = homedir$1() || resolve$8(temp, "npm-" + uidOrPid);
|
|
110602
110681
|
const platform = fakePlatform || process.platform;
|
|
110603
110682
|
const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
|
|
110604
110683
|
const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
|
|
110605
110684
|
return {
|
|
110606
|
-
cacache: resolve$
|
|
110607
|
-
tufcache: resolve$
|
|
110685
|
+
cacache: resolve$8(cacheRoot, cacheExtra, "_cacache"),
|
|
110686
|
+
tufcache: resolve$8(cacheRoot, cacheExtra, "_tuf")
|
|
110608
110687
|
};
|
|
110609
110688
|
};
|
|
110610
110689
|
}));
|
|
@@ -112418,7 +112497,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112418
112497
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112419
112498
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112420
112499
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112421
|
-
const { basename: basename$3, dirname: dirname$7, extname: extname$1, join: join$
|
|
112500
|
+
const { basename: basename$3, dirname: dirname$7, extname: extname$1, join: join$9, relative, resolve: resolve$7, sep } = require("path");
|
|
112422
112501
|
const { log } = require_lib$29();
|
|
112423
112502
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112424
112503
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112451,7 +112530,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112451
112530
|
const normalizePath = (path$48) => path$48.split("\\").join("/");
|
|
112452
112531
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112453
112532
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112454
|
-
const ignoreContent = readFile$5(join$
|
|
112533
|
+
const ignoreContent = readFile$5(join$9(root, file), { encoding: "utf8" });
|
|
112455
112534
|
result.push(ignoreContent);
|
|
112456
112535
|
break;
|
|
112457
112536
|
} catch (err) {
|
|
@@ -112460,8 +112539,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112460
112539
|
}
|
|
112461
112540
|
if (!rel) return result;
|
|
112462
112541
|
const firstRel = rel.split(sep, 1)[0];
|
|
112463
|
-
const newRoot = join$
|
|
112464
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112542
|
+
const newRoot = join$9(root, firstRel);
|
|
112543
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
|
|
112465
112544
|
};
|
|
112466
112545
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112467
112546
|
constructor(tree, opts) {
|
|
@@ -112469,7 +112548,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112469
112548
|
...opts,
|
|
112470
112549
|
includeEmpty: false,
|
|
112471
112550
|
follow: false,
|
|
112472
|
-
path: resolve$
|
|
112551
|
+
path: resolve$7(opts?.path || tree.path).replace(/\\/g, "/"),
|
|
112473
112552
|
ignoreFiles: opts?.ignoreFiles || [
|
|
112474
112553
|
defaultRules,
|
|
112475
112554
|
"package.json",
|
|
@@ -112528,7 +112607,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112528
112607
|
let ignoreFiles = null;
|
|
112529
112608
|
if (this.tree.workspaces) {
|
|
112530
112609
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112531
|
-
const entryPath = join$
|
|
112610
|
+
const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
|
|
112532
112611
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112533
112612
|
defaultRules,
|
|
112534
112613
|
"package.json",
|
|
@@ -112588,7 +112667,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112588
112667
|
if (file.endsWith("/*")) file += "*";
|
|
112589
112668
|
const inverse = `!${file}`;
|
|
112590
112669
|
try {
|
|
112591
|
-
const stat = lstat$1(join$
|
|
112670
|
+
const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112592
112671
|
if (stat.isFile()) {
|
|
112593
112672
|
strict.unshift(inverse);
|
|
112594
112673
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112645,7 +112724,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112645
112724
|
walker.start();
|
|
112646
112725
|
});
|
|
112647
112726
|
const relativeFrom = relative(this.root, walker.path);
|
|
112648
|
-
for (const file of bundled) this.result.add(join$
|
|
112727
|
+
for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
|
|
112649
112728
|
}
|
|
112650
112729
|
}
|
|
112651
112730
|
};
|
|
@@ -112669,8 +112748,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112669
112748
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112670
112749
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112671
112750
|
const { log } = require_lib$29();
|
|
112672
|
-
const { resolve: resolve$
|
|
112673
|
-
const nodeGypPath = resolve$
|
|
112751
|
+
const { resolve: resolve$6, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112752
|
+
const nodeGypPath = resolve$6(__dirname, "../lib/node-gyp-bin");
|
|
112674
112753
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112675
112754
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$2)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$2);
|
|
112676
112755
|
const pathArr = [];
|
|
@@ -112685,7 +112764,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112685
112764
|
let p = projectPath;
|
|
112686
112765
|
let pp;
|
|
112687
112766
|
do {
|
|
112688
|
-
pathArr.push(resolve$
|
|
112767
|
+
pathArr.push(resolve$6(p, "node_modules", ".bin"));
|
|
112689
112768
|
pp = p;
|
|
112690
112769
|
p = dirname$6(p);
|
|
112691
112770
|
} while (p !== pp);
|
|
@@ -112700,7 +112779,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112700
112779
|
//#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
|
|
112701
112780
|
var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112702
112781
|
const setPATH = require_set_path();
|
|
112703
|
-
const { resolve: resolve$
|
|
112782
|
+
const { resolve: resolve$5 } = require("path");
|
|
112704
112783
|
let npm_config_node_gyp;
|
|
112705
112784
|
const makeSpawnArgs = (options) => {
|
|
112706
112785
|
const { args, binPaths, cmd, env, event, nodeGyp, path: path$47, scriptShell = true, stdio, stdioString } = options;
|
|
@@ -112714,7 +112793,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112714
112793
|
env: setPATH(path$47, binPaths, {
|
|
112715
112794
|
...process.env,
|
|
112716
112795
|
...env,
|
|
112717
|
-
npm_package_json: resolve$
|
|
112796
|
+
npm_package_json: resolve$5(path$47, "package.json"),
|
|
112718
112797
|
npm_lifecycle_event: event,
|
|
112719
112798
|
npm_lifecycle_script: cmd,
|
|
112720
112799
|
npm_config_node_gyp
|
|
@@ -112801,11 +112880,11 @@ var require_signal_manager = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
112801
112880
|
//#endregion
|
|
112802
112881
|
//#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
|
|
112803
112882
|
var require_is_server_package = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112804
|
-
const { stat: stat$
|
|
112805
|
-
const { resolve: resolve$
|
|
112883
|
+
const { stat: stat$3 } = require("node:fs/promises");
|
|
112884
|
+
const { resolve: resolve$4 } = require("node:path");
|
|
112806
112885
|
module.exports = async (path) => {
|
|
112807
112886
|
try {
|
|
112808
|
-
return (await stat$
|
|
112887
|
+
return (await stat$3(resolve$4(path, "server.js"))).isFile();
|
|
112809
112888
|
} catch (er) {
|
|
112810
112889
|
return false;
|
|
112811
112890
|
}
|
|
@@ -112915,8 +112994,8 @@ var require_run_script = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
112915
112994
|
//#endregion
|
|
112916
112995
|
//#region ../../node_modules/pacote/lib/file.js
|
|
112917
112996
|
var require_file$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112918
|
-
const { resolve: resolve$
|
|
112919
|
-
const { stat: stat$
|
|
112997
|
+
const { resolve: resolve$3 } = require("node:path");
|
|
112998
|
+
const { stat: stat$2, chmod: chmod$1 } = require("node:fs/promises");
|
|
112920
112999
|
const cacache = require_lib$14();
|
|
112921
113000
|
const fsm = require_lib$13();
|
|
112922
113001
|
const Fetcher = require_fetcher();
|
|
@@ -112941,9 +113020,9 @@ var require_file$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112941
113020
|
#exeBins(pkg, dest) {
|
|
112942
113021
|
if (!pkg.bin) return Promise.resolve();
|
|
112943
113022
|
return Promise.all(Object.keys(pkg.bin).map(async (k) => {
|
|
112944
|
-
const script = resolve$
|
|
113023
|
+
const script = resolve$3(dest, pkg.bin[k]);
|
|
112945
113024
|
try {
|
|
112946
|
-
const st = await stat$
|
|
113025
|
+
const st = await stat$2(script);
|
|
112947
113026
|
const mode = st.mode | 73;
|
|
112948
113027
|
if (mode === st.mode) return;
|
|
112949
113028
|
await chmod$1(script, mode);
|
|
@@ -112992,7 +113071,7 @@ var require_tar_create_options = /* @__PURE__ */ require_chunk.__commonJSMin(((e
|
|
|
112992
113071
|
//#endregion
|
|
112993
113072
|
//#region ../../node_modules/pacote/lib/dir.js
|
|
112994
113073
|
var require_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112995
|
-
const { resolve: resolve$
|
|
113074
|
+
const { resolve: resolve$2 } = require("node:path");
|
|
112996
113075
|
const packlist = require_lib$9();
|
|
112997
113076
|
const runScript = require_run_script();
|
|
112998
113077
|
const tar = require_index_min();
|
|
@@ -113028,7 +113107,7 @@ var require_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
113028
113107
|
env: {
|
|
113029
113108
|
npm_package_resolved: this.resolved,
|
|
113030
113109
|
npm_package_integrity: this.integrity,
|
|
113031
|
-
npm_package_json: resolve$
|
|
113110
|
+
npm_package_json: resolve$2(this.resolved, "package.json")
|
|
113032
113111
|
}
|
|
113033
113112
|
});
|
|
113034
113113
|
});
|
|
@@ -142039,7 +142118,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142039
142118
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142040
142119
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142041
142120
|
const { basename: basename$2, dirname: dirname$5 } = require("node:path");
|
|
142042
|
-
const { rm: rm$4, mkdir: mkdir$
|
|
142121
|
+
const { rm: rm$4, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
142043
142122
|
const PackageJson = require_lib$18();
|
|
142044
142123
|
const cacache = require_lib$14();
|
|
142045
142124
|
const fsm = require_lib$13();
|
|
@@ -142223,7 +142302,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142223
142302
|
}
|
|
142224
142303
|
async #mkdir(dest) {
|
|
142225
142304
|
await this.#empty(dest);
|
|
142226
|
-
return await mkdir$
|
|
142305
|
+
return await mkdir$4(dest, { recursive: true });
|
|
142227
142306
|
}
|
|
142228
142307
|
async extract(dest) {
|
|
142229
142308
|
await this.#mkdir(dest);
|
|
@@ -142243,7 +142322,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142243
142322
|
}));
|
|
142244
142323
|
}
|
|
142245
142324
|
async tarballFile(dest) {
|
|
142246
|
-
await mkdir$
|
|
142325
|
+
await mkdir$4(dirname$5(dest), { recursive: true });
|
|
142247
142326
|
return this.#toFile(dest);
|
|
142248
142327
|
}
|
|
142249
142328
|
#extract(dest, tarball) {
|
|
@@ -150670,7 +150749,7 @@ var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
150670
150749
|
const { promisify: promisify$1 } = require("util");
|
|
150671
150750
|
const path$6 = require("path");
|
|
150672
150751
|
const { createHash } = require("crypto");
|
|
150673
|
-
const { realpath, lstat, createReadStream: createReadStream$1, readdir: readdir$
|
|
150752
|
+
const { realpath, lstat, createReadStream: createReadStream$1, readdir: readdir$3 } = require("fs");
|
|
150674
150753
|
const url = require("url");
|
|
150675
150754
|
const slasher = require_glob_slash();
|
|
150676
150755
|
const minimatch = require_minimatch();
|
|
@@ -150995,7 +151074,7 @@ var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
150995
151074
|
lstat: promisify$1(lstat),
|
|
150996
151075
|
realpath: promisify$1(realpath),
|
|
150997
151076
|
createReadStream: createReadStream$1,
|
|
150998
|
-
readdir: promisify$1(readdir$
|
|
151077
|
+
readdir: promisify$1(readdir$3),
|
|
150999
151078
|
sendError
|
|
151000
151079
|
}, methods);
|
|
151001
151080
|
module.exports = async (request, response, config = {}, methods = {}) => {
|
|
@@ -151565,7 +151644,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151565
151644
|
}
|
|
151566
151645
|
//#endregion
|
|
151567
151646
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151568
|
-
const { join: join$
|
|
151647
|
+
const { join: join$7 } = node_path.default;
|
|
151569
151648
|
//#endregion
|
|
151570
151649
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151571
151650
|
const localPluginsMap = /* @__PURE__ */ new Map();
|