@pipelab/plugin-steam 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 +119 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __require, i as __reExport, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-kImr3pkf.mjs";
|
|
2
|
-
import path, { dirname, join } from "node:path";
|
|
3
|
-
import { constants, platform } from "node:os";
|
|
2
|
+
import path, { dirname, join, resolve } from "node:path";
|
|
3
|
+
import { constants, homedir, platform } from "node:os";
|
|
4
4
|
import { chmod, mkdir, writeFile } from "node:fs/promises";
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import { normalize } from "path";
|
|
@@ -45390,6 +45390,17 @@ const websocketPort = 33753;
|
|
|
45390
45390
|
const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
|
|
45391
45391
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
|
|
45392
45392
|
const isDev = process.env.NODE_ENV === "development";
|
|
45393
|
+
const getDefaultUserDataPath = (env) => {
|
|
45394
|
+
const base = (() => {
|
|
45395
|
+
switch (platform()) {
|
|
45396
|
+
case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
|
|
45397
|
+
case "darwin": return join(homedir(), "Library", "Application Support");
|
|
45398
|
+
default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
|
|
45399
|
+
}
|
|
45400
|
+
})();
|
|
45401
|
+
const mode = env ?? (isDev ? "dev" : "prod");
|
|
45402
|
+
return 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,71 @@ var WebSocketServer = class {
|
|
|
49151
49162
|
};
|
|
49152
49163
|
new WebSocketServer();
|
|
49153
49164
|
//#endregion
|
|
49165
|
+
//#region ../../packages/core-node/src/fs-utils.ts
|
|
49166
|
+
var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __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
|
+
})))(), 1);
|
|
49174
|
+
function removeTrailingSlash(path) {
|
|
49175
|
+
return path.replace(/[\\/]+$/, "");
|
|
49176
|
+
}
|
|
49177
|
+
removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
|
|
49178
|
+
const additionalProtectedPaths = [
|
|
49179
|
+
getDefaultUserDataPath("dev"),
|
|
49180
|
+
getDefaultUserDataPath("beta"),
|
|
49181
|
+
getDefaultUserDataPath("prod"),
|
|
49182
|
+
projectRoot,
|
|
49183
|
+
process.cwd(),
|
|
49184
|
+
"/tmp",
|
|
49185
|
+
"/var/tmp",
|
|
49186
|
+
process.env.TEMP,
|
|
49187
|
+
process.env.TMP,
|
|
49188
|
+
join(homedir(), "AppData"),
|
|
49189
|
+
join(homedir(), "AppData", "Local"),
|
|
49190
|
+
join(homedir(), "AppData", "Roaming"),
|
|
49191
|
+
join(homedir(), "Library"),
|
|
49192
|
+
join(homedir(), "Library", "Application Support"),
|
|
49193
|
+
join(homedir(), ".config"),
|
|
49194
|
+
join(homedir(), ".local"),
|
|
49195
|
+
join(homedir(), ".local", "share"),
|
|
49196
|
+
join(homedir(), ".cache"),
|
|
49197
|
+
join(homedir(), "OneDrive"),
|
|
49198
|
+
join(homedir(), "Dropbox"),
|
|
49199
|
+
join(homedir(), ".ssh"),
|
|
49200
|
+
join(homedir(), ".gnupg"),
|
|
49201
|
+
join(homedir(), ".aws"),
|
|
49202
|
+
join(homedir(), ".docker"),
|
|
49203
|
+
join(homedir(), ".kube"),
|
|
49204
|
+
join(homedir(), ".vscode"),
|
|
49205
|
+
join(homedir(), ".vscode-insiders"),
|
|
49206
|
+
join(homedir(), ".cursor"),
|
|
49207
|
+
join(homedir(), ".npm"),
|
|
49208
|
+
join(homedir(), ".pnpm-state"),
|
|
49209
|
+
join(homedir(), ".yarn"),
|
|
49210
|
+
join(homedir(), ".cargo"),
|
|
49211
|
+
join(homedir(), ".rustup"),
|
|
49212
|
+
join(homedir(), ".m2"),
|
|
49213
|
+
join(homedir(), ".gradle")
|
|
49214
|
+
].filter((p) => typeof p === "string" && p.length > 0);
|
|
49215
|
+
new Set([
|
|
49216
|
+
join(homedir(), "Downloads"),
|
|
49217
|
+
join(homedir(), "Documents"),
|
|
49218
|
+
join(homedir(), "Desktop"),
|
|
49219
|
+
join(homedir(), "Pictures"),
|
|
49220
|
+
join(homedir(), "Music"),
|
|
49221
|
+
join(homedir(), "Videos"),
|
|
49222
|
+
join(homedir(), "Saved Games"),
|
|
49223
|
+
join(homedir(), "Contacts"),
|
|
49224
|
+
join(homedir(), "Searches"),
|
|
49225
|
+
join(homedir(), "Links"),
|
|
49226
|
+
join(homedir(), "3D Objects"),
|
|
49227
|
+
...additionalProtectedPaths
|
|
49228
|
+
].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
|
|
49229
|
+
//#endregion
|
|
49154
49230
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
49155
49231
|
function isPlainObject(value) {
|
|
49156
49232
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -59541,13 +59617,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59541
59617
|
//#region ../../node_modules/mkdirp/lib/path-arg.js
|
|
59542
59618
|
var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59543
59619
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59544
|
-
const { resolve: resolve$
|
|
59620
|
+
const { resolve: resolve$13, parse: parse$2 } = __require("path");
|
|
59545
59621
|
const pathArg = (path) => {
|
|
59546
59622
|
if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59547
59623
|
path,
|
|
59548
59624
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59549
59625
|
});
|
|
59550
|
-
path = resolve$
|
|
59626
|
+
path = resolve$13(path);
|
|
59551
59627
|
if (platform === "win32") {
|
|
59552
59628
|
const badWinChars = /[*|"<>?:]/;
|
|
59553
59629
|
const { root } = parse$2(path);
|
|
@@ -62497,7 +62573,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62497
62573
|
const fs$19 = __require("fs");
|
|
62498
62574
|
const { EventEmitter: EventEmitter$1 } = __require("events");
|
|
62499
62575
|
const { Minimatch } = require_minimatch$1();
|
|
62500
|
-
const { resolve: resolve$
|
|
62576
|
+
const { resolve: resolve$12 } = __require("path");
|
|
62501
62577
|
function readdir(dir, strict) {
|
|
62502
62578
|
return new Promise((resolve, reject) => {
|
|
62503
62579
|
fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
@@ -62606,7 +62682,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62606
62682
|
if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
|
|
62607
62683
|
this.skipMatchers = [];
|
|
62608
62684
|
if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
|
|
62609
|
-
this.iterator = explore(resolve$
|
|
62685
|
+
this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
62610
62686
|
this.paused = false;
|
|
62611
62687
|
this.inactive = false;
|
|
62612
62688
|
this.aborted = false;
|
|
@@ -97889,7 +97965,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97889
97965
|
const isWindows = process.platform === "win32";
|
|
97890
97966
|
const { URL: URL$6 } = __require("node:url");
|
|
97891
97967
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
97892
|
-
const { homedir: homedir$
|
|
97968
|
+
const { homedir: homedir$2 } = __require("node:os");
|
|
97893
97969
|
const HostedGit = require_lib$28();
|
|
97894
97970
|
const semver = require_semver$2();
|
|
97895
97971
|
const validatePackageName = require_lib$23();
|
|
@@ -98094,7 +98170,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98094
98170
|
}
|
|
98095
98171
|
if (/^\/~(\/|$)/.test(specPath)) {
|
|
98096
98172
|
res.saveSpec = `file:${specPath.substr(1)}`;
|
|
98097
|
-
resolvedPath = path$17.resolve(homedir$
|
|
98173
|
+
resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
|
|
98098
98174
|
} else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
|
|
98099
98175
|
else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
|
|
98100
98176
|
res.fetchSpec = path$17.resolve(where, resolvedPath);
|
|
@@ -99241,7 +99317,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99241
99317
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99242
99318
|
var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99243
99319
|
const { readFile: readFile$4, writeFile: writeFile$3 } = __require("node:fs/promises");
|
|
99244
|
-
const { resolve: resolve$
|
|
99320
|
+
const { resolve: resolve$11 } = __require("node:path");
|
|
99245
99321
|
const parseJSON = require_lib$30();
|
|
99246
99322
|
const updateDeps = require_update_dependencies();
|
|
99247
99323
|
const updateScripts = require_update_scripts();
|
|
@@ -99344,7 +99420,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99344
99420
|
parseErr = err;
|
|
99345
99421
|
}
|
|
99346
99422
|
if (parseErr) {
|
|
99347
|
-
const indexFile = resolve$
|
|
99423
|
+
const indexFile = resolve$11(this.path, "index.js");
|
|
99348
99424
|
let indexFileContent;
|
|
99349
99425
|
try {
|
|
99350
99426
|
indexFileContent = await readFile$4(indexFile, "utf8");
|
|
@@ -99389,7 +99465,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99389
99465
|
return this.#path;
|
|
99390
99466
|
}
|
|
99391
99467
|
get filename() {
|
|
99392
|
-
if (this.path) return resolve$
|
|
99468
|
+
if (this.path) return resolve$11(this.path, "package.json");
|
|
99393
99469
|
}
|
|
99394
99470
|
create(path) {
|
|
99395
99471
|
this.#path = path;
|
|
@@ -100512,7 +100588,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100512
100588
|
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();
|
|
100513
100589
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
|
|
100514
100590
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$4, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
|
|
100515
|
-
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$
|
|
100591
|
+
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
|
|
100516
100592
|
const { fileURLToPath: fileURLToPath$1 } = __require("url");
|
|
100517
100593
|
const defaultOptions = {
|
|
100518
100594
|
dereference: false,
|
|
@@ -100599,8 +100675,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100599
100675
|
);
|
|
100600
100676
|
}
|
|
100601
100677
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100602
|
-
const srcParent = resolve$
|
|
100603
|
-
const destParent = resolve$
|
|
100678
|
+
const srcParent = resolve$10(dirname$6(src));
|
|
100679
|
+
const destParent = resolve$10(dirname$6(dest));
|
|
100604
100680
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100605
100681
|
let destStat;
|
|
100606
100682
|
try {
|
|
@@ -100619,7 +100695,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100619
100695
|
});
|
|
100620
100696
|
return checkParentPaths(src, srcStat, destParent);
|
|
100621
100697
|
}
|
|
100622
|
-
const normalizePathToArray = (path) => resolve$
|
|
100698
|
+
const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
|
|
100623
100699
|
function isSrcSubdir(src, dest) {
|
|
100624
100700
|
const srcArr = normalizePathToArray(src);
|
|
100625
100701
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100729,7 +100805,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100729
100805
|
}
|
|
100730
100806
|
async function onLink(destStat, src, dest) {
|
|
100731
100807
|
let resolvedSrc = await readlink(src);
|
|
100732
|
-
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$
|
|
100808
|
+
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
|
|
100733
100809
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100734
100810
|
let resolvedDest;
|
|
100735
100811
|
try {
|
|
@@ -100740,7 +100816,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100740
100816
|
// istanbul ignore next: should not be possible
|
|
100741
100817
|
throw err;
|
|
100742
100818
|
}
|
|
100743
|
-
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$
|
|
100819
|
+
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
|
|
100744
100820
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100745
100821
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100746
100822
|
path: dest,
|
|
@@ -100827,7 +100903,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
100827
100903
|
//#endregion
|
|
100828
100904
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100829
100905
|
var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
100830
|
-
const { dirname: dirname$5, join: join$3, resolve: resolve$
|
|
100906
|
+
const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
|
|
100831
100907
|
const fs$11 = __require("fs/promises");
|
|
100832
100908
|
const pathExists = async (path) => {
|
|
100833
100909
|
try {
|
|
@@ -100863,10 +100939,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100863
100939
|
if (root) {
|
|
100864
100940
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
100865
100941
|
let target = await fs$11.readlink(symSource);
|
|
100866
|
-
if (isAbsolute(target)) target = resolve$
|
|
100942
|
+
if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
100867
100943
|
let targetStat = "file";
|
|
100868
100944
|
try {
|
|
100869
|
-
targetStat = await fs$11.stat(resolve$
|
|
100945
|
+
targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
|
|
100870
100946
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
100871
100947
|
} catch {}
|
|
100872
100948
|
await fs$11.symlink(target, symDestination, targetStat);
|
|
@@ -106683,7 +106759,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106683
106759
|
var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
106684
106760
|
const bundled = require_lib$12();
|
|
106685
106761
|
const { readFile: readFile$1, readdir: readdir$1, stat: stat$2 } = __require("fs/promises");
|
|
106686
|
-
const { resolve: resolve$
|
|
106762
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$4 } = __require("path");
|
|
106687
106763
|
const normalizePackageBin = require_lib$21();
|
|
106688
106764
|
const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$1(path).then((json) => {
|
|
106689
106765
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106727,7 +106803,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106727
106803
|
const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
|
|
106728
106804
|
const binFiles = [];
|
|
106729
106805
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106730
|
-
const base = resolve$
|
|
106806
|
+
const base = resolve$8(nm, ".bin", b);
|
|
106731
106807
|
binFiles.push(base, base + ".cmd", base + ".ps1");
|
|
106732
106808
|
});
|
|
106733
106809
|
(await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
|
|
@@ -106748,7 +106824,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106748
106824
|
}
|
|
106749
106825
|
const recursePromises = [];
|
|
106750
106826
|
for (const entry of dirEntries) {
|
|
106751
|
-
const p = resolve$
|
|
106827
|
+
const p = resolve$8(path, entry.name);
|
|
106752
106828
|
if (entry.isDirectory() === false) {
|
|
106753
106829
|
result.add(p);
|
|
106754
106830
|
continue;
|
|
@@ -106767,7 +106843,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106767
106843
|
}
|
|
106768
106844
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106769
106845
|
return pkgContents({
|
|
106770
|
-
path: resolve$
|
|
106846
|
+
path: resolve$8(path, "node_modules", dep),
|
|
106771
106847
|
packageJsonCache,
|
|
106772
106848
|
pkg: true,
|
|
106773
106849
|
depth,
|
|
@@ -106779,7 +106855,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106779
106855
|
return result;
|
|
106780
106856
|
};
|
|
106781
106857
|
module.exports = ({ path, ...opts }) => pkgContents({
|
|
106782
|
-
path: resolve$
|
|
106858
|
+
path: resolve$8(path),
|
|
106783
106859
|
...opts,
|
|
106784
106860
|
pkg: true
|
|
106785
106861
|
}).then((results) => [...results]);
|
|
@@ -110390,18 +110466,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110390
110466
|
//#endregion
|
|
110391
110467
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110392
110468
|
var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
110393
|
-
const { resolve: resolve$
|
|
110394
|
-
const { tmpdir, homedir } = __require("node:os");
|
|
110469
|
+
const { resolve: resolve$7 } = __require("node:path");
|
|
110470
|
+
const { tmpdir, homedir: homedir$1 } = __require("node:os");
|
|
110395
110471
|
module.exports = (fakePlatform = false) => {
|
|
110396
110472
|
const temp = tmpdir();
|
|
110397
110473
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110398
|
-
const home = homedir() || resolve$
|
|
110474
|
+
const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110399
110475
|
const platform = fakePlatform || process.platform;
|
|
110400
110476
|
const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
|
|
110401
110477
|
const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
|
|
110402
110478
|
return {
|
|
110403
|
-
cacache: resolve$
|
|
110404
|
-
tufcache: resolve$
|
|
110479
|
+
cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
|
|
110480
|
+
tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
|
|
110405
110481
|
};
|
|
110406
110482
|
};
|
|
110407
110483
|
}));
|
|
@@ -112215,7 +112291,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112215
112291
|
var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112216
112292
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112217
112293
|
const { lstatSync: lstat$1, readFileSync: readFile } = __require("fs");
|
|
112218
|
-
const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$
|
|
112294
|
+
const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
|
|
112219
112295
|
const { log } = require_lib$29();
|
|
112220
112296
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112221
112297
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112266,7 +112342,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112266
112342
|
...opts,
|
|
112267
112343
|
includeEmpty: false,
|
|
112268
112344
|
follow: false,
|
|
112269
|
-
path: resolve$
|
|
112345
|
+
path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
|
|
112270
112346
|
ignoreFiles: opts?.ignoreFiles || [
|
|
112271
112347
|
defaultRules,
|
|
112272
112348
|
"package.json",
|
|
@@ -112467,8 +112543,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112467
112543
|
var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112468
112544
|
init_esm_shims();
|
|
112469
112545
|
const { log } = require_lib$29();
|
|
112470
|
-
const { resolve: resolve$
|
|
112471
|
-
const nodeGypPath = resolve$
|
|
112546
|
+
const { resolve: resolve$5, dirname: dirname$2, delimiter } = __require("path");
|
|
112547
|
+
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112472
112548
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112473
112549
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter);
|
|
112474
112550
|
const pathArr = [];
|
|
@@ -112483,7 +112559,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112483
112559
|
let p = projectPath;
|
|
112484
112560
|
let pp;
|
|
112485
112561
|
do {
|
|
112486
|
-
pathArr.push(resolve$
|
|
112562
|
+
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112487
112563
|
pp = p;
|
|
112488
112564
|
p = dirname$2(p);
|
|
112489
112565
|
} while (p !== pp);
|
|
@@ -112498,7 +112574,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112498
112574
|
//#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
|
|
112499
112575
|
var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112500
112576
|
const setPATH = require_set_path();
|
|
112501
|
-
const { resolve: resolve$
|
|
112577
|
+
const { resolve: resolve$4 } = __require("path");
|
|
112502
112578
|
let npm_config_node_gyp;
|
|
112503
112579
|
const makeSpawnArgs = (options) => {
|
|
112504
112580
|
const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
|
|
@@ -112512,7 +112588,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
112512
112588
|
env: setPATH(path, binPaths, {
|
|
112513
112589
|
...process.env,
|
|
112514
112590
|
...env,
|
|
112515
|
-
npm_package_json: resolve$
|
|
112591
|
+
npm_package_json: resolve$4(path, "package.json"),
|
|
112516
112592
|
npm_lifecycle_event: event,
|
|
112517
112593
|
npm_lifecycle_script: cmd,
|
|
112518
112594
|
npm_config_node_gyp
|
|
@@ -112600,10 +112676,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
112600
112676
|
//#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
|
|
112601
112677
|
var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112602
112678
|
const { stat: stat$1 } = __require("node:fs/promises");
|
|
112603
|
-
const { resolve: resolve$
|
|
112679
|
+
const { resolve: resolve$3 } = __require("node:path");
|
|
112604
112680
|
module.exports = async (path) => {
|
|
112605
112681
|
try {
|
|
112606
|
-
return (await stat$1(resolve$
|
|
112682
|
+
return (await stat$1(resolve$3(path, "server.js"))).isFile();
|
|
112607
112683
|
} catch (er) {
|
|
112608
112684
|
return false;
|
|
112609
112685
|
}
|
|
@@ -112713,7 +112789,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112713
112789
|
//#endregion
|
|
112714
112790
|
//#region ../../node_modules/pacote/lib/file.js
|
|
112715
112791
|
var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112716
|
-
const { resolve: resolve$
|
|
112792
|
+
const { resolve: resolve$2 } = __require("node:path");
|
|
112717
112793
|
const { stat, chmod: chmod$1 } = __require("node:fs/promises");
|
|
112718
112794
|
const cacache = require_lib$14();
|
|
112719
112795
|
const fsm = require_lib$13();
|
|
@@ -112739,7 +112815,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112739
112815
|
#exeBins(pkg, dest) {
|
|
112740
112816
|
if (!pkg.bin) return Promise.resolve();
|
|
112741
112817
|
return Promise.all(Object.keys(pkg.bin).map(async (k) => {
|
|
112742
|
-
const script = resolve$
|
|
112818
|
+
const script = resolve$2(dest, pkg.bin[k]);
|
|
112743
112819
|
try {
|
|
112744
112820
|
const st = await stat(script);
|
|
112745
112821
|
const mode = st.mode | 73;
|
|
@@ -112790,7 +112866,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
112790
112866
|
//#endregion
|
|
112791
112867
|
//#region ../../node_modules/pacote/lib/dir.js
|
|
112792
112868
|
var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112793
|
-
const { resolve } = __require("node:path");
|
|
112869
|
+
const { resolve: resolve$1 } = __require("node:path");
|
|
112794
112870
|
const packlist = require_lib$9();
|
|
112795
112871
|
const runScript = require_run_script();
|
|
112796
112872
|
const tar = require_index_min();
|
|
@@ -112826,7 +112902,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112826
112902
|
env: {
|
|
112827
112903
|
npm_package_resolved: this.resolved,
|
|
112828
112904
|
npm_package_integrity: this.integrity,
|
|
112829
|
-
npm_package_json: resolve(this.resolved, "package.json")
|
|
112905
|
+
npm_package_json: resolve$1(this.resolved, "package.json")
|
|
112830
112906
|
}
|
|
112831
112907
|
});
|
|
112832
112908
|
});
|