@pipelab/plugin-tauri 1.0.0-beta.18 → 1.0.0-beta.19
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 +457 -500
- package/dist/index.mjs +49 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -2103,7 +2103,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2103
2103
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2104
2104
|
locale: "en-US",
|
|
2105
2105
|
theme: "light",
|
|
2106
|
-
version: "
|
|
2106
|
+
version: "7.0.0",
|
|
2107
2107
|
autosave: true,
|
|
2108
2108
|
agents: [],
|
|
2109
2109
|
tours: {
|
|
@@ -2116,11 +2116,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2116
2116
|
completed: false
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
|
-
buildHistory: { retentionPolicy: {
|
|
2120
|
-
enabled: false,
|
|
2121
|
-
maxEntries: 50,
|
|
2122
|
-
maxAge: 30
|
|
2123
|
-
} },
|
|
2124
2119
|
plugins: DEFAULT_PLUGINS,
|
|
2125
2120
|
isInternalMigrationBannerClosed: false
|
|
2126
2121
|
});
|
|
@@ -2177,18 +2172,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2177
2172
|
return {
|
|
2178
2173
|
...rest,
|
|
2179
2174
|
agents: [],
|
|
2180
|
-
buildHistory: { retentionPolicy: {
|
|
2181
|
-
enabled: false,
|
|
2182
|
-
maxEntries: 50,
|
|
2183
|
-
maxAge: 30
|
|
2184
|
-
} },
|
|
2185
2175
|
plugins: DEFAULT_PLUGINS,
|
|
2186
2176
|
isInternalMigrationBannerClosed: false
|
|
2187
2177
|
};
|
|
2188
2178
|
}
|
|
2189
2179
|
}),
|
|
2190
2180
|
createMigration({
|
|
2191
|
-
version: "
|
|
2181
|
+
version: "7.0.0",
|
|
2192
2182
|
up: finalVersion
|
|
2193
2183
|
})
|
|
2194
2184
|
]
|
|
@@ -2207,7 +2197,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2207
2197
|
});
|
|
2208
2198
|
const fileRepoMigratorInternal = createMigrator();
|
|
2209
2199
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2210
|
-
version: "
|
|
2200
|
+
version: "3.0.0",
|
|
2211
2201
|
projects: [{
|
|
2212
2202
|
id: "main",
|
|
2213
2203
|
name: "Default project",
|
|
@@ -2217,30 +2207,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2217
2207
|
});
|
|
2218
2208
|
fileRepoMigratorInternal.createMigrations({
|
|
2219
2209
|
defaultValue: defaultFileRepo,
|
|
2220
|
-
migrations: [
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2210
|
+
migrations: [
|
|
2211
|
+
createMigration({
|
|
2212
|
+
version: "1.0.0",
|
|
2213
|
+
up: (state) => {
|
|
2214
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2215
|
+
return {
|
|
2216
|
+
...file,
|
|
2217
|
+
id,
|
|
2218
|
+
project: "main"
|
|
2219
|
+
};
|
|
2220
|
+
});
|
|
2224
2221
|
return {
|
|
2225
|
-
...
|
|
2226
|
-
|
|
2227
|
-
|
|
2222
|
+
...state,
|
|
2223
|
+
projects: [{
|
|
2224
|
+
id: "main",
|
|
2225
|
+
name: "Default project",
|
|
2226
|
+
description: "The initial default project"
|
|
2227
|
+
}],
|
|
2228
|
+
pipelines
|
|
2228
2229
|
};
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
up: finalVersion
|
|
2243
|
-
})]
|
|
2230
|
+
}
|
|
2231
|
+
}),
|
|
2232
|
+
createMigration({
|
|
2233
|
+
version: "2.0.0",
|
|
2234
|
+
up: (state) => {
|
|
2235
|
+
return { ...state };
|
|
2236
|
+
}
|
|
2237
|
+
}),
|
|
2238
|
+
createMigration({
|
|
2239
|
+
version: "3.0.0",
|
|
2240
|
+
up: finalVersion
|
|
2241
|
+
})
|
|
2242
|
+
]
|
|
2244
2243
|
});
|
|
2245
2244
|
const savedFileMigratorInternal = createMigrator();
|
|
2246
2245
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2401,14 +2400,19 @@ object({
|
|
|
2401
2400
|
version: literal("1.0.0"),
|
|
2402
2401
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2403
2402
|
});
|
|
2404
|
-
const FileRepoProjectValidatorV2
|
|
2403
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2405
2404
|
id: string(),
|
|
2406
2405
|
name: string(),
|
|
2407
2406
|
description: string()
|
|
2408
2407
|
});
|
|
2409
2408
|
object({
|
|
2410
2409
|
version: literal("2.0.0"),
|
|
2411
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2410
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2411
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2412
|
+
});
|
|
2413
|
+
object({
|
|
2414
|
+
version: literal("3.0.0"),
|
|
2415
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2412
2416
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2413
2417
|
});
|
|
2414
2418
|
object({
|
|
@@ -2517,44 +2521,6 @@ object({
|
|
|
2517
2521
|
name: string(),
|
|
2518
2522
|
url: string()
|
|
2519
2523
|
})),
|
|
2520
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2521
|
-
enabled: boolean(),
|
|
2522
|
-
maxEntries: number(),
|
|
2523
|
-
maxAge: number()
|
|
2524
|
-
}) })
|
|
2525
|
-
});
|
|
2526
|
-
object({
|
|
2527
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2528
|
-
version: literal("8.0.0"),
|
|
2529
|
-
locale: union([
|
|
2530
|
-
literal("en-US"),
|
|
2531
|
-
literal("fr-FR"),
|
|
2532
|
-
literal("pt-BR"),
|
|
2533
|
-
literal("zh-CN"),
|
|
2534
|
-
literal("es-ES"),
|
|
2535
|
-
literal("de-DE")
|
|
2536
|
-
]),
|
|
2537
|
-
tours: object({
|
|
2538
|
-
dashboard: object({
|
|
2539
|
-
step: number(),
|
|
2540
|
-
completed: boolean()
|
|
2541
|
-
}),
|
|
2542
|
-
editor: object({
|
|
2543
|
-
step: number(),
|
|
2544
|
-
completed: boolean()
|
|
2545
|
-
})
|
|
2546
|
-
}),
|
|
2547
|
-
autosave: boolean(),
|
|
2548
|
-
agents: array(object({
|
|
2549
|
-
id: string(),
|
|
2550
|
-
name: string(),
|
|
2551
|
-
url: string()
|
|
2552
|
-
})),
|
|
2553
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2554
|
-
enabled: boolean(),
|
|
2555
|
-
maxEntries: number(),
|
|
2556
|
-
maxAge: number()
|
|
2557
|
-
}) }),
|
|
2558
2524
|
plugins: array(object({
|
|
2559
2525
|
name: string(),
|
|
2560
2526
|
enabled: boolean(),
|
|
@@ -45441,20 +45407,6 @@ var WebSocketError = class extends Error {
|
|
|
45441
45407
|
const isWebSocketRequestMessage = (message) => {
|
|
45442
45408
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45443
45409
|
};
|
|
45444
|
-
object({
|
|
45445
|
-
version: literal("1.0.0"),
|
|
45446
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45447
|
-
});
|
|
45448
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45449
|
-
id: string(),
|
|
45450
|
-
name: string(),
|
|
45451
|
-
description: string()
|
|
45452
|
-
});
|
|
45453
|
-
object({
|
|
45454
|
-
version: literal("2.0.0"),
|
|
45455
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45456
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45457
|
-
});
|
|
45458
45410
|
//#endregion
|
|
45459
45411
|
//#region ../../packages/constants/src/index.ts
|
|
45460
45412
|
/**
|
|
@@ -45489,6 +45441,11 @@ function findProjectRoot(startDir) {
|
|
|
45489
45441
|
return null;
|
|
45490
45442
|
}
|
|
45491
45443
|
const projectRoot = findProjectRoot(_dirname);
|
|
45444
|
+
const CacheFolder = {
|
|
45445
|
+
Actions: "actions",
|
|
45446
|
+
Pipelines: "pipelines",
|
|
45447
|
+
Pacote: "pacote"
|
|
45448
|
+
};
|
|
45492
45449
|
//#endregion
|
|
45493
45450
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45494
45451
|
var require_constants$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -50008,7 +49965,7 @@ const handleCommand$1 = (filePath, rawArguments, rawOptions) => {
|
|
|
50008
49965
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50009
49966
|
module.exports = isexe;
|
|
50010
49967
|
isexe.sync = sync;
|
|
50011
|
-
var fs$
|
|
49968
|
+
var fs$37 = require("fs");
|
|
50012
49969
|
function checkPathExt(path, options) {
|
|
50013
49970
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
50014
49971
|
if (!pathext) return true;
|
|
@@ -50025,12 +49982,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50025
49982
|
return checkPathExt(path, options);
|
|
50026
49983
|
}
|
|
50027
49984
|
function isexe(path, options, cb) {
|
|
50028
|
-
fs$
|
|
49985
|
+
fs$37.stat(path, function(er, stat) {
|
|
50029
49986
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
50030
49987
|
});
|
|
50031
49988
|
}
|
|
50032
49989
|
function sync(path, options) {
|
|
50033
|
-
return checkStat(fs$
|
|
49990
|
+
return checkStat(fs$37.statSync(path), path, options);
|
|
50034
49991
|
}
|
|
50035
49992
|
}));
|
|
50036
49993
|
//#endregion
|
|
@@ -50038,14 +49995,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50038
49995
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50039
49996
|
module.exports = isexe;
|
|
50040
49997
|
isexe.sync = sync;
|
|
50041
|
-
var fs$
|
|
49998
|
+
var fs$36 = require("fs");
|
|
50042
49999
|
function isexe(path, options, cb) {
|
|
50043
|
-
fs$
|
|
50000
|
+
fs$36.stat(path, function(er, stat) {
|
|
50044
50001
|
cb(er, er ? false : checkStat(stat, options));
|
|
50045
50002
|
});
|
|
50046
50003
|
}
|
|
50047
50004
|
function sync(path, options) {
|
|
50048
|
-
return checkStat(fs$
|
|
50005
|
+
return checkStat(fs$36.statSync(path), options);
|
|
50049
50006
|
}
|
|
50050
50007
|
function checkStat(stat, options) {
|
|
50051
50008
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50109,7 +50066,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
50109
50066
|
//#region ../../node_modules/which/which.js
|
|
50110
50067
|
var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50111
50068
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50112
|
-
const path$
|
|
50069
|
+
const path$45 = require("path");
|
|
50113
50070
|
const COLON = isWindows ? ";" : ":";
|
|
50114
50071
|
const isexe = require_isexe();
|
|
50115
50072
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -50139,7 +50096,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50139
50096
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50140
50097
|
const ppRaw = pathEnv[i];
|
|
50141
50098
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50142
|
-
const pCmd = path$
|
|
50099
|
+
const pCmd = path$45.join(pathPart, cmd);
|
|
50143
50100
|
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
50144
50101
|
});
|
|
50145
50102
|
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
@@ -50160,7 +50117,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50160
50117
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
50161
50118
|
const ppRaw = pathEnv[i];
|
|
50162
50119
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50163
|
-
const pCmd = path$
|
|
50120
|
+
const pCmd = path$45.join(pathPart, cmd);
|
|
50164
50121
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50165
50122
|
for (let j = 0; j < pathExt.length; j++) {
|
|
50166
50123
|
const cur = p + pathExt[j];
|
|
@@ -50191,7 +50148,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
50191
50148
|
//#endregion
|
|
50192
50149
|
//#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50193
50150
|
var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50194
|
-
const path$
|
|
50151
|
+
const path$44 = require("path");
|
|
50195
50152
|
const which = require_which$1();
|
|
50196
50153
|
const getPathKey = require_path_key();
|
|
50197
50154
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -50206,12 +50163,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
50206
50163
|
try {
|
|
50207
50164
|
resolved = which.sync(parsed.command, {
|
|
50208
50165
|
path: env[getPathKey({ env })],
|
|
50209
|
-
pathExt: withoutPathExt ? path$
|
|
50166
|
+
pathExt: withoutPathExt ? path$44.delimiter : void 0
|
|
50210
50167
|
});
|
|
50211
50168
|
} catch (e) {} finally {
|
|
50212
50169
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
50213
50170
|
}
|
|
50214
|
-
if (resolved) resolved = path$
|
|
50171
|
+
if (resolved) resolved = path$44.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50215
50172
|
return resolved;
|
|
50216
50173
|
}
|
|
50217
50174
|
function resolveCommand(parsed) {
|
|
@@ -50260,16 +50217,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50260
50217
|
//#endregion
|
|
50261
50218
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50262
50219
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50263
|
-
const fs$
|
|
50220
|
+
const fs$35 = require("fs");
|
|
50264
50221
|
const shebangCommand = require_shebang_command();
|
|
50265
50222
|
function readShebang(command) {
|
|
50266
50223
|
const size = 150;
|
|
50267
50224
|
const buffer = Buffer.alloc(size);
|
|
50268
50225
|
let fd;
|
|
50269
50226
|
try {
|
|
50270
|
-
fd = fs$
|
|
50271
|
-
fs$
|
|
50272
|
-
fs$
|
|
50227
|
+
fd = fs$35.openSync(command, "r");
|
|
50228
|
+
fs$35.readSync(fd, buffer, 0, size, 0);
|
|
50229
|
+
fs$35.closeSync(fd);
|
|
50273
50230
|
} catch (e) {}
|
|
50274
50231
|
return shebangCommand(buffer.toString());
|
|
50275
50232
|
}
|
|
@@ -50278,7 +50235,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
50278
50235
|
//#endregion
|
|
50279
50236
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50280
50237
|
var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50281
|
-
const path$
|
|
50238
|
+
const path$43 = require("path");
|
|
50282
50239
|
const resolveCommand = require_resolveCommand();
|
|
50283
50240
|
const escape = require_escape$4();
|
|
50284
50241
|
const readShebang = require_readShebang();
|
|
@@ -50301,7 +50258,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50301
50258
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50302
50259
|
if (parsed.options.forceShell || needsShell) {
|
|
50303
50260
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50304
|
-
parsed.command = path$
|
|
50261
|
+
parsed.command = path$43.normalize(parsed.command);
|
|
50305
50262
|
parsed.command = escape.command(parsed.command);
|
|
50306
50263
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50307
50264
|
parsed.args = [
|
|
@@ -56957,10 +56914,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56957
56914
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
56958
56915
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
56959
56916
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
56960
|
-
const path$
|
|
56917
|
+
const path$96 = split[0];
|
|
56961
56918
|
const prefix = split[1];
|
|
56962
56919
|
this.needPax = split[2];
|
|
56963
|
-
this.needPax = encString(buf, off, 100, path$
|
|
56920
|
+
this.needPax = encString(buf, off, 100, path$96) || this.needPax;
|
|
56964
56921
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
56965
56922
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
56966
56923
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -57063,7 +57020,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57063
57020
|
//#region ../../node_modules/tar/lib/pax.js
|
|
57064
57021
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57065
57022
|
const Header = require_header();
|
|
57066
|
-
const path$
|
|
57023
|
+
const path$37 = require("path");
|
|
57067
57024
|
var Pax = class {
|
|
57068
57025
|
constructor(obj, global) {
|
|
57069
57026
|
this.atime = obj.atime || null;
|
|
@@ -57091,7 +57048,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
57091
57048
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
57092
57049
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
57093
57050
|
new Header({
|
|
57094
|
-
path: ("PaxHeader/" + path$
|
|
57051
|
+
path: ("PaxHeader/" + path$37.basename(this.path)).slice(0, 99),
|
|
57095
57052
|
mode: this.mode || 420,
|
|
57096
57053
|
uid: this.uid || null,
|
|
57097
57054
|
gid: this.gid || null,
|
|
@@ -57194,16 +57151,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
57194
57151
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
57195
57152
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57196
57153
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
57197
|
-
module.exports = (path$
|
|
57154
|
+
module.exports = (path$95) => {
|
|
57198
57155
|
let r = "";
|
|
57199
|
-
let parsed = parse$3(path$
|
|
57200
|
-
while (isAbsolute$3(path$
|
|
57201
|
-
const root = path$
|
|
57202
|
-
path$
|
|
57156
|
+
let parsed = parse$3(path$95);
|
|
57157
|
+
while (isAbsolute$3(path$95) || parsed.root) {
|
|
57158
|
+
const root = path$95.charAt(0) === "/" && path$95.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
57159
|
+
path$95 = path$95.slice(root.length);
|
|
57203
57160
|
r += root;
|
|
57204
|
-
parsed = parse$3(path$
|
|
57161
|
+
parsed = parse$3(path$95);
|
|
57205
57162
|
}
|
|
57206
|
-
return [r, path$
|
|
57163
|
+
return [r, path$95];
|
|
57207
57164
|
};
|
|
57208
57165
|
}));
|
|
57209
57166
|
//#endregion
|
|
@@ -57226,14 +57183,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57226
57183
|
const { Minipass } = require_minipass$4();
|
|
57227
57184
|
const Pax = require_pax();
|
|
57228
57185
|
const Header = require_header();
|
|
57229
|
-
const fs$
|
|
57230
|
-
const path$
|
|
57186
|
+
const fs$34 = require("fs");
|
|
57187
|
+
const path$36 = require("path");
|
|
57231
57188
|
const normPath = require_normalize_windows_path();
|
|
57232
57189
|
const stripSlash = require_strip_trailing_slashes();
|
|
57233
|
-
const prefixPath = (path$
|
|
57234
|
-
if (!prefix) return normPath(path$
|
|
57235
|
-
path$
|
|
57236
|
-
return stripSlash(prefix) + "/" + path$
|
|
57190
|
+
const prefixPath = (path$92, prefix) => {
|
|
57191
|
+
if (!prefix) return normPath(path$92);
|
|
57192
|
+
path$92 = normPath(path$92).replace(/^\.(\/|$)/, "");
|
|
57193
|
+
return stripSlash(prefix) + "/" + path$92;
|
|
57237
57194
|
};
|
|
57238
57195
|
const maxReadSize = 16 * 1024 * 1024;
|
|
57239
57196
|
const PROCESS = Symbol("process");
|
|
@@ -57300,7 +57257,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57300
57257
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
57301
57258
|
p = p.replace(/\\/g, "/");
|
|
57302
57259
|
}
|
|
57303
|
-
this.absolute = normPath(opt.absolute || path$
|
|
57260
|
+
this.absolute = normPath(opt.absolute || path$36.resolve(this.cwd, p));
|
|
57304
57261
|
if (this.path === "") this.path = "./";
|
|
57305
57262
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
57306
57263
|
entry: this,
|
|
@@ -57314,7 +57271,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57314
57271
|
return super.emit(ev, ...data);
|
|
57315
57272
|
}
|
|
57316
57273
|
[LSTAT]() {
|
|
57317
|
-
fs$
|
|
57274
|
+
fs$34.lstat(this.absolute, (er, stat) => {
|
|
57318
57275
|
if (er) return this.emit("error", er);
|
|
57319
57276
|
this[ONLSTAT](stat);
|
|
57320
57277
|
});
|
|
@@ -57338,8 +57295,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57338
57295
|
[MODE](mode) {
|
|
57339
57296
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
57340
57297
|
}
|
|
57341
|
-
[PREFIX](path$
|
|
57342
|
-
return prefixPath(path$
|
|
57298
|
+
[PREFIX](path$93) {
|
|
57299
|
+
return prefixPath(path$93, this.prefix);
|
|
57343
57300
|
}
|
|
57344
57301
|
[HEADER]() {
|
|
57345
57302
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -57379,7 +57336,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57379
57336
|
this.end();
|
|
57380
57337
|
}
|
|
57381
57338
|
[SYMLINK]() {
|
|
57382
|
-
fs$
|
|
57339
|
+
fs$34.readlink(this.absolute, (er, linkpath) => {
|
|
57383
57340
|
if (er) return this.emit("error", er);
|
|
57384
57341
|
this[ONREADLINK](linkpath);
|
|
57385
57342
|
});
|
|
@@ -57391,7 +57348,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57391
57348
|
}
|
|
57392
57349
|
[HARDLINK](linkpath) {
|
|
57393
57350
|
this.type = "Link";
|
|
57394
|
-
this.linkpath = normPath(path$
|
|
57351
|
+
this.linkpath = normPath(path$36.relative(this.cwd, linkpath));
|
|
57395
57352
|
this.stat.size = 0;
|
|
57396
57353
|
this[HEADER]();
|
|
57397
57354
|
this.end();
|
|
@@ -57410,7 +57367,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57410
57367
|
this[OPENFILE]();
|
|
57411
57368
|
}
|
|
57412
57369
|
[OPENFILE]() {
|
|
57413
|
-
fs$
|
|
57370
|
+
fs$34.open(this.absolute, "r", (er, fd) => {
|
|
57414
57371
|
if (er) return this.emit("error", er);
|
|
57415
57372
|
this[ONOPENFILE](fd);
|
|
57416
57373
|
});
|
|
@@ -57430,13 +57387,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57430
57387
|
}
|
|
57431
57388
|
[READ]() {
|
|
57432
57389
|
const { fd, buf, offset, length, pos } = this;
|
|
57433
|
-
fs$
|
|
57390
|
+
fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57434
57391
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57435
57392
|
this[ONREAD](bytesRead);
|
|
57436
57393
|
});
|
|
57437
57394
|
}
|
|
57438
57395
|
[CLOSE](cb) {
|
|
57439
|
-
fs$
|
|
57396
|
+
fs$34.close(this.fd, cb);
|
|
57440
57397
|
}
|
|
57441
57398
|
[ONREAD](bytesRead) {
|
|
57442
57399
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57492,19 +57449,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57492
57449
|
});
|
|
57493
57450
|
var WriteEntrySync = class extends WriteEntry {
|
|
57494
57451
|
[LSTAT]() {
|
|
57495
|
-
this[ONLSTAT](fs$
|
|
57452
|
+
this[ONLSTAT](fs$34.lstatSync(this.absolute));
|
|
57496
57453
|
}
|
|
57497
57454
|
[SYMLINK]() {
|
|
57498
|
-
this[ONREADLINK](fs$
|
|
57455
|
+
this[ONREADLINK](fs$34.readlinkSync(this.absolute));
|
|
57499
57456
|
}
|
|
57500
57457
|
[OPENFILE]() {
|
|
57501
|
-
this[ONOPENFILE](fs$
|
|
57458
|
+
this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
|
|
57502
57459
|
}
|
|
57503
57460
|
[READ]() {
|
|
57504
57461
|
let threw = true;
|
|
57505
57462
|
try {
|
|
57506
57463
|
const { fd, buf, offset, length, pos } = this;
|
|
57507
|
-
const bytesRead = fs$
|
|
57464
|
+
const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
|
|
57508
57465
|
this[ONREAD](bytesRead);
|
|
57509
57466
|
threw = false;
|
|
57510
57467
|
} finally {
|
|
@@ -57517,7 +57474,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57517
57474
|
cb();
|
|
57518
57475
|
}
|
|
57519
57476
|
[CLOSE](cb) {
|
|
57520
|
-
fs$
|
|
57477
|
+
fs$34.closeSync(this.fd);
|
|
57521
57478
|
cb();
|
|
57522
57479
|
}
|
|
57523
57480
|
};
|
|
@@ -57590,8 +57547,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57590
57547
|
super.write(this.header.block);
|
|
57591
57548
|
readEntry.pipe(this);
|
|
57592
57549
|
}
|
|
57593
|
-
[PREFIX](path$
|
|
57594
|
-
return prefixPath(path$
|
|
57550
|
+
[PREFIX](path$94) {
|
|
57551
|
+
return prefixPath(path$94, this.prefix);
|
|
57595
57552
|
}
|
|
57596
57553
|
[MODE](mode) {
|
|
57597
57554
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -57875,8 +57832,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
57875
57832
|
//#region ../../node_modules/tar/lib/pack.js
|
|
57876
57833
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57877
57834
|
var PackJob = class {
|
|
57878
|
-
constructor(path$
|
|
57879
|
-
this.path = path$
|
|
57835
|
+
constructor(path$88, absolute) {
|
|
57836
|
+
this.path = path$88 || "./";
|
|
57880
57837
|
this.absolute = absolute;
|
|
57881
57838
|
this.entry = null;
|
|
57882
57839
|
this.stat = null;
|
|
@@ -57914,8 +57871,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57914
57871
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57915
57872
|
const WRITE = Symbol("write");
|
|
57916
57873
|
const ONDRAIN = Symbol("ondrain");
|
|
57917
|
-
const fs$
|
|
57918
|
-
const path$
|
|
57874
|
+
const fs$33 = require("fs");
|
|
57875
|
+
const path$35 = require("path");
|
|
57919
57876
|
const warner = require_warn_mixin();
|
|
57920
57877
|
const normPath = require_normalize_windows_path();
|
|
57921
57878
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -57967,24 +57924,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57967
57924
|
[WRITE](chunk) {
|
|
57968
57925
|
return super.write(chunk);
|
|
57969
57926
|
}
|
|
57970
|
-
add(path$
|
|
57971
|
-
this.write(path$
|
|
57927
|
+
add(path$89) {
|
|
57928
|
+
this.write(path$89);
|
|
57972
57929
|
return this;
|
|
57973
57930
|
}
|
|
57974
|
-
end(path$
|
|
57975
|
-
if (path$
|
|
57931
|
+
end(path$90) {
|
|
57932
|
+
if (path$90) this.write(path$90);
|
|
57976
57933
|
this[ENDED] = true;
|
|
57977
57934
|
this[PROCESS]();
|
|
57978
57935
|
return this;
|
|
57979
57936
|
}
|
|
57980
|
-
write(path$
|
|
57937
|
+
write(path$91) {
|
|
57981
57938
|
if (this[ENDED]) throw new Error("write after end");
|
|
57982
|
-
if (path$
|
|
57983
|
-
else this[ADDFSENTRY](path$
|
|
57939
|
+
if (path$91 instanceof ReadEntry) this[ADDTARENTRY](path$91);
|
|
57940
|
+
else this[ADDFSENTRY](path$91);
|
|
57984
57941
|
return this.flowing;
|
|
57985
57942
|
}
|
|
57986
57943
|
[ADDTARENTRY](p) {
|
|
57987
|
-
const absolute = normPath(path$
|
|
57944
|
+
const absolute = normPath(path$35.resolve(this.cwd, p.path));
|
|
57988
57945
|
if (!this.filter(p.path, p)) p.resume();
|
|
57989
57946
|
else {
|
|
57990
57947
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -57996,14 +57953,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57996
57953
|
this[PROCESS]();
|
|
57997
57954
|
}
|
|
57998
57955
|
[ADDFSENTRY](p) {
|
|
57999
|
-
const absolute = normPath(path$
|
|
57956
|
+
const absolute = normPath(path$35.resolve(this.cwd, p));
|
|
58000
57957
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
58001
57958
|
this[PROCESS]();
|
|
58002
57959
|
}
|
|
58003
57960
|
[STAT](job) {
|
|
58004
57961
|
job.pending = true;
|
|
58005
57962
|
this[JOBS] += 1;
|
|
58006
|
-
fs$
|
|
57963
|
+
fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
58007
57964
|
job.pending = false;
|
|
58008
57965
|
this[JOBS] -= 1;
|
|
58009
57966
|
if (er) this.emit("error", er);
|
|
@@ -58019,7 +57976,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58019
57976
|
[READDIR](job) {
|
|
58020
57977
|
job.pending = true;
|
|
58021
57978
|
this[JOBS] += 1;
|
|
58022
|
-
fs$
|
|
57979
|
+
fs$33.readdir(job.absolute, (er, entries) => {
|
|
58023
57980
|
job.pending = false;
|
|
58024
57981
|
this[JOBS] -= 1;
|
|
58025
57982
|
if (er) return this.emit("error", er);
|
|
@@ -58137,10 +58094,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58137
58094
|
resume() {}
|
|
58138
58095
|
[STAT](job) {
|
|
58139
58096
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58140
|
-
this[ONSTAT](job, fs$
|
|
58097
|
+
this[ONSTAT](job, fs$33[stat](job.absolute));
|
|
58141
58098
|
}
|
|
58142
58099
|
[READDIR](job, stat) {
|
|
58143
|
-
this[ONREADDIR](job, fs$
|
|
58100
|
+
this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
|
|
58144
58101
|
}
|
|
58145
58102
|
[PIPE](job) {
|
|
58146
58103
|
const source = job.entry;
|
|
@@ -58596,8 +58553,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58596
58553
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58597
58554
|
const MiniPass = require_minipass$2();
|
|
58598
58555
|
const EE$11 = require("events").EventEmitter;
|
|
58599
|
-
const fs$
|
|
58600
|
-
let writev = fs$
|
|
58556
|
+
const fs$32 = require("fs");
|
|
58557
|
+
let writev = fs$32.writev;
|
|
58601
58558
|
/* istanbul ignore next */
|
|
58602
58559
|
if (!writev) {
|
|
58603
58560
|
const binding = process.binding("fs");
|
|
@@ -58668,7 +58625,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58668
58625
|
throw new TypeError("this is a readable stream");
|
|
58669
58626
|
}
|
|
58670
58627
|
[_open]() {
|
|
58671
|
-
fs$
|
|
58628
|
+
fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58672
58629
|
}
|
|
58673
58630
|
[_onopen](er, fd) {
|
|
58674
58631
|
if (er) this[_onerror](er);
|
|
@@ -58687,7 +58644,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58687
58644
|
const buf = this[_makeBuf]();
|
|
58688
58645
|
/* istanbul ignore if */
|
|
58689
58646
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58690
|
-
fs$
|
|
58647
|
+
fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58691
58648
|
}
|
|
58692
58649
|
}
|
|
58693
58650
|
[_onread](er, br, buf) {
|
|
@@ -58699,7 +58656,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58699
58656
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58700
58657
|
const fd = this[_fd];
|
|
58701
58658
|
this[_fd] = null;
|
|
58702
|
-
fs$
|
|
58659
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58703
58660
|
}
|
|
58704
58661
|
}
|
|
58705
58662
|
[_onerror](er) {
|
|
@@ -58737,7 +58694,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58737
58694
|
[_open]() {
|
|
58738
58695
|
let threw = true;
|
|
58739
58696
|
try {
|
|
58740
|
-
this[_onopen](null, fs$
|
|
58697
|
+
this[_onopen](null, fs$32.openSync(this[_path], "r"));
|
|
58741
58698
|
threw = false;
|
|
58742
58699
|
} finally {
|
|
58743
58700
|
if (threw) this[_close]();
|
|
@@ -58751,7 +58708,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58751
58708
|
do {
|
|
58752
58709
|
const buf = this[_makeBuf]();
|
|
58753
58710
|
/* istanbul ignore next */
|
|
58754
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58711
|
+
const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58755
58712
|
if (!this[_handleChunk](br, buf)) break;
|
|
58756
58713
|
} while (true);
|
|
58757
58714
|
this[_reading] = false;
|
|
@@ -58765,7 +58722,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58765
58722
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58766
58723
|
const fd = this[_fd];
|
|
58767
58724
|
this[_fd] = null;
|
|
58768
|
-
fs$
|
|
58725
|
+
fs$32.closeSync(fd);
|
|
58769
58726
|
this.emit("close");
|
|
58770
58727
|
}
|
|
58771
58728
|
}
|
|
@@ -58810,7 +58767,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58810
58767
|
this.emit("error", er);
|
|
58811
58768
|
}
|
|
58812
58769
|
[_open]() {
|
|
58813
|
-
fs$
|
|
58770
|
+
fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58814
58771
|
}
|
|
58815
58772
|
[_onopen](er, fd) {
|
|
58816
58773
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58845,7 +58802,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58845
58802
|
return true;
|
|
58846
58803
|
}
|
|
58847
58804
|
[_write](buf) {
|
|
58848
|
-
fs$
|
|
58805
|
+
fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58849
58806
|
}
|
|
58850
58807
|
[_onwrite](er, bw) {
|
|
58851
58808
|
if (er) this[_onerror](er);
|
|
@@ -58879,7 +58836,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58879
58836
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58880
58837
|
const fd = this[_fd];
|
|
58881
58838
|
this[_fd] = null;
|
|
58882
|
-
fs$
|
|
58839
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58883
58840
|
}
|
|
58884
58841
|
}
|
|
58885
58842
|
};
|
|
@@ -58887,28 +58844,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58887
58844
|
[_open]() {
|
|
58888
58845
|
let fd;
|
|
58889
58846
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58890
|
-
fd = fs$
|
|
58847
|
+
fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58891
58848
|
} catch (er) {
|
|
58892
58849
|
if (er.code === "ENOENT") {
|
|
58893
58850
|
this[_flags] = "w";
|
|
58894
58851
|
return this[_open]();
|
|
58895
58852
|
} else throw er;
|
|
58896
58853
|
}
|
|
58897
|
-
else fd = fs$
|
|
58854
|
+
else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58898
58855
|
this[_onopen](null, fd);
|
|
58899
58856
|
}
|
|
58900
58857
|
[_close]() {
|
|
58901
58858
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58902
58859
|
const fd = this[_fd];
|
|
58903
58860
|
this[_fd] = null;
|
|
58904
|
-
fs$
|
|
58861
|
+
fs$32.closeSync(fd);
|
|
58905
58862
|
this.emit("close");
|
|
58906
58863
|
}
|
|
58907
58864
|
}
|
|
58908
58865
|
[_write](buf) {
|
|
58909
58866
|
let threw = true;
|
|
58910
58867
|
try {
|
|
58911
|
-
this[_onwrite](null, fs$
|
|
58868
|
+
this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58912
58869
|
threw = false;
|
|
58913
58870
|
} finally {
|
|
58914
58871
|
if (threw) try {
|
|
@@ -59273,9 +59230,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59273
59230
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59274
59231
|
const hlo = require_high_level_opt();
|
|
59275
59232
|
const Parser = require_parse$4();
|
|
59276
|
-
const fs$
|
|
59233
|
+
const fs$31 = require("fs");
|
|
59277
59234
|
const fsm = require_fs_minipass();
|
|
59278
|
-
const path$
|
|
59235
|
+
const path$34 = require("path");
|
|
59279
59236
|
const stripSlash = require_strip_trailing_slashes();
|
|
59280
59237
|
module.exports = (opt_, files, cb) => {
|
|
59281
59238
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -59301,8 +59258,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59301
59258
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
59302
59259
|
const filter = opt.filter;
|
|
59303
59260
|
const mapHas = (file, r) => {
|
|
59304
|
-
const root = r || path$
|
|
59305
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
59261
|
+
const root = r || path$34.parse(file).root || ".";
|
|
59262
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$34.dirname(file), root);
|
|
59306
59263
|
map.set(file, ret);
|
|
59307
59264
|
return ret;
|
|
59308
59265
|
};
|
|
@@ -59314,15 +59271,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59314
59271
|
let threw = true;
|
|
59315
59272
|
let fd;
|
|
59316
59273
|
try {
|
|
59317
|
-
const stat = fs$
|
|
59274
|
+
const stat = fs$31.statSync(file);
|
|
59318
59275
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59319
|
-
if (stat.size < readSize) p.end(fs$
|
|
59276
|
+
if (stat.size < readSize) p.end(fs$31.readFileSync(file));
|
|
59320
59277
|
else {
|
|
59321
59278
|
let pos = 0;
|
|
59322
59279
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59323
|
-
fd = fs$
|
|
59280
|
+
fd = fs$31.openSync(file, "r");
|
|
59324
59281
|
while (pos < stat.size) {
|
|
59325
|
-
const bytesRead = fs$
|
|
59282
|
+
const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
|
|
59326
59283
|
pos += bytesRead;
|
|
59327
59284
|
p.write(buf.slice(0, bytesRead));
|
|
59328
59285
|
}
|
|
@@ -59331,7 +59288,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59331
59288
|
threw = false;
|
|
59332
59289
|
} finally {
|
|
59333
59290
|
if (threw && fd) try {
|
|
59334
|
-
fs$
|
|
59291
|
+
fs$31.closeSync(fd);
|
|
59335
59292
|
} catch (er) {}
|
|
59336
59293
|
}
|
|
59337
59294
|
};
|
|
@@ -59342,7 +59299,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59342
59299
|
const p = new Promise((resolve, reject) => {
|
|
59343
59300
|
parse.on("error", reject);
|
|
59344
59301
|
parse.on("end", resolve);
|
|
59345
|
-
fs$
|
|
59302
|
+
fs$31.stat(file, (er, stat) => {
|
|
59346
59303
|
if (er) reject(er);
|
|
59347
59304
|
else {
|
|
59348
59305
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59365,7 +59322,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59365
59322
|
const Pack = require_pack$1();
|
|
59366
59323
|
const fsm = require_fs_minipass();
|
|
59367
59324
|
const t = require_list();
|
|
59368
|
-
const path$
|
|
59325
|
+
const path$33 = require("path");
|
|
59369
59326
|
module.exports = (opt_, files, cb) => {
|
|
59370
59327
|
if (typeof files === "function") cb = files;
|
|
59371
59328
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -59397,7 +59354,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59397
59354
|
const addFilesSync = (p, files) => {
|
|
59398
59355
|
files.forEach((file) => {
|
|
59399
59356
|
if (file.charAt(0) === "@") t({
|
|
59400
|
-
file: path$
|
|
59357
|
+
file: path$33.resolve(p.cwd, file.slice(1)),
|
|
59401
59358
|
sync: true,
|
|
59402
59359
|
noResume: true,
|
|
59403
59360
|
onentry: (entry) => p.add(entry)
|
|
@@ -59410,7 +59367,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59410
59367
|
while (files.length) {
|
|
59411
59368
|
const file = files.shift();
|
|
59412
59369
|
if (file.charAt(0) === "@") return t({
|
|
59413
|
-
file: path$
|
|
59370
|
+
file: path$33.resolve(p.cwd, file.slice(1)),
|
|
59414
59371
|
noResume: true,
|
|
59415
59372
|
onentry: (entry) => p.add(entry)
|
|
59416
59373
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59434,10 +59391,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59434
59391
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59435
59392
|
const hlo = require_high_level_opt();
|
|
59436
59393
|
const Pack = require_pack$1();
|
|
59437
|
-
const fs$
|
|
59394
|
+
const fs$30 = require("fs");
|
|
59438
59395
|
const fsm = require_fs_minipass();
|
|
59439
59396
|
const t = require_list();
|
|
59440
|
-
const path$
|
|
59397
|
+
const path$32 = require("path");
|
|
59441
59398
|
const Header = require_header();
|
|
59442
59399
|
module.exports = (opt_, files, cb) => {
|
|
59443
59400
|
const opt = hlo(opt_);
|
|
@@ -59454,16 +59411,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59454
59411
|
let position;
|
|
59455
59412
|
try {
|
|
59456
59413
|
try {
|
|
59457
|
-
fd = fs$
|
|
59414
|
+
fd = fs$30.openSync(opt.file, "r+");
|
|
59458
59415
|
} catch (er) {
|
|
59459
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59416
|
+
if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
|
|
59460
59417
|
else throw er;
|
|
59461
59418
|
}
|
|
59462
|
-
const st = fs$
|
|
59419
|
+
const st = fs$30.fstatSync(fd);
|
|
59463
59420
|
const headBuf = Buffer.alloc(512);
|
|
59464
59421
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59465
59422
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59466
|
-
bytes = fs$
|
|
59423
|
+
bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59467
59424
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59468
59425
|
if (!bytes) break POSITION;
|
|
59469
59426
|
}
|
|
@@ -59478,7 +59435,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59478
59435
|
streamSync(opt, p, position, fd, files);
|
|
59479
59436
|
} finally {
|
|
59480
59437
|
if (threw) try {
|
|
59481
|
-
fs$
|
|
59438
|
+
fs$30.closeSync(fd);
|
|
59482
59439
|
} catch (er) {}
|
|
59483
59440
|
}
|
|
59484
59441
|
};
|
|
@@ -59495,7 +59452,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59495
59452
|
const p = new Pack(opt);
|
|
59496
59453
|
const getPos = (fd, size, cb_) => {
|
|
59497
59454
|
const cb = (er, pos) => {
|
|
59498
|
-
if (er) fs$
|
|
59455
|
+
if (er) fs$30.close(fd, (_) => cb_(er));
|
|
59499
59456
|
else cb_(null, pos);
|
|
59500
59457
|
};
|
|
59501
59458
|
let position = 0;
|
|
@@ -59505,7 +59462,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59505
59462
|
const onread = (er, bytes) => {
|
|
59506
59463
|
if (er) return cb(er);
|
|
59507
59464
|
bufPos += bytes;
|
|
59508
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59465
|
+
if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59509
59466
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59510
59467
|
if (bufPos < 512) return cb(null, position);
|
|
59511
59468
|
const h = new Header(headBuf);
|
|
@@ -59516,9 +59473,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59516
59473
|
if (position >= size) return cb(null, position);
|
|
59517
59474
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59518
59475
|
bufPos = 0;
|
|
59519
|
-
fs$
|
|
59476
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59520
59477
|
};
|
|
59521
|
-
fs$
|
|
59478
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59522
59479
|
};
|
|
59523
59480
|
const promise = new Promise((resolve, reject) => {
|
|
59524
59481
|
p.on("error", reject);
|
|
@@ -59526,11 +59483,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59526
59483
|
const onopen = (er, fd) => {
|
|
59527
59484
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59528
59485
|
flag = "w+";
|
|
59529
|
-
return fs$
|
|
59486
|
+
return fs$30.open(opt.file, flag, onopen);
|
|
59530
59487
|
}
|
|
59531
59488
|
if (er) return reject(er);
|
|
59532
|
-
fs$
|
|
59533
|
-
if (er) return fs$
|
|
59489
|
+
fs$30.fstat(fd, (er, st) => {
|
|
59490
|
+
if (er) return fs$30.close(fd, () => reject(er));
|
|
59534
59491
|
getPos(fd, st.size, (er, position) => {
|
|
59535
59492
|
if (er) return reject(er);
|
|
59536
59493
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59544,14 +59501,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59544
59501
|
});
|
|
59545
59502
|
});
|
|
59546
59503
|
};
|
|
59547
|
-
fs$
|
|
59504
|
+
fs$30.open(opt.file, flag, onopen);
|
|
59548
59505
|
});
|
|
59549
59506
|
return cb ? promise.then(cb, cb) : promise;
|
|
59550
59507
|
};
|
|
59551
59508
|
const addFilesSync = (p, files) => {
|
|
59552
59509
|
files.forEach((file) => {
|
|
59553
59510
|
if (file.charAt(0) === "@") t({
|
|
59554
|
-
file: path$
|
|
59511
|
+
file: path$32.resolve(p.cwd, file.slice(1)),
|
|
59555
59512
|
sync: true,
|
|
59556
59513
|
noResume: true,
|
|
59557
59514
|
onentry: (entry) => p.add(entry)
|
|
@@ -59564,7 +59521,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59564
59521
|
while (files.length) {
|
|
59565
59522
|
const file = files.shift();
|
|
59566
59523
|
if (file.charAt(0) === "@") return t({
|
|
59567
|
-
file: path$
|
|
59524
|
+
file: path$32.resolve(p.cwd, file.slice(1)),
|
|
59568
59525
|
noResume: true,
|
|
59569
59526
|
onentry: (entry) => p.add(entry)
|
|
59570
59527
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59597,32 +59554,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59597
59554
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59598
59555
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59599
59556
|
const { promisify: promisify$2 } = require("util");
|
|
59600
|
-
const fs$
|
|
59557
|
+
const fs$29 = require("fs");
|
|
59601
59558
|
const optsArg = (opts) => {
|
|
59602
59559
|
if (!opts) opts = {
|
|
59603
59560
|
mode: 511,
|
|
59604
|
-
fs: fs$
|
|
59561
|
+
fs: fs$29
|
|
59605
59562
|
};
|
|
59606
59563
|
else if (typeof opts === "object") opts = {
|
|
59607
59564
|
mode: 511,
|
|
59608
|
-
fs: fs$
|
|
59565
|
+
fs: fs$29,
|
|
59609
59566
|
...opts
|
|
59610
59567
|
};
|
|
59611
59568
|
else if (typeof opts === "number") opts = {
|
|
59612
59569
|
mode: opts,
|
|
59613
|
-
fs: fs$
|
|
59570
|
+
fs: fs$29
|
|
59614
59571
|
};
|
|
59615
59572
|
else if (typeof opts === "string") opts = {
|
|
59616
59573
|
mode: parseInt(opts, 8),
|
|
59617
|
-
fs: fs$
|
|
59574
|
+
fs: fs$29
|
|
59618
59575
|
};
|
|
59619
59576
|
else throw new TypeError("invalid options argument");
|
|
59620
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59577
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
|
|
59621
59578
|
opts.mkdirAsync = promisify$2(opts.mkdir);
|
|
59622
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59579
|
+
opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
|
|
59623
59580
|
opts.statAsync = promisify$2(opts.stat);
|
|
59624
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59625
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59581
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
|
|
59582
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
|
|
59626
59583
|
return opts;
|
|
59627
59584
|
};
|
|
59628
59585
|
module.exports = optsArg;
|
|
@@ -59632,21 +59589,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59632
59589
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59633
59590
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59634
59591
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
59635
|
-
const pathArg = (path$
|
|
59636
|
-
if (/\0/.test(path$
|
|
59637
|
-
path: path$
|
|
59592
|
+
const pathArg = (path$87) => {
|
|
59593
|
+
if (/\0/.test(path$87)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59594
|
+
path: path$87,
|
|
59638
59595
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59639
59596
|
});
|
|
59640
|
-
path$
|
|
59597
|
+
path$87 = resolve$13(path$87);
|
|
59641
59598
|
if (platform === "win32") {
|
|
59642
59599
|
const badWinChars = /[*|"<>?:]/;
|
|
59643
|
-
const { root } = parse$2(path$
|
|
59644
|
-
if (badWinChars.test(path$
|
|
59645
|
-
path: path$
|
|
59600
|
+
const { root } = parse$2(path$87);
|
|
59601
|
+
if (badWinChars.test(path$87.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
59602
|
+
path: path$87,
|
|
59646
59603
|
code: "EINVAL"
|
|
59647
59604
|
});
|
|
59648
59605
|
}
|
|
59649
|
-
return path$
|
|
59606
|
+
return path$87;
|
|
59650
59607
|
};
|
|
59651
59608
|
module.exports = pathArg;
|
|
59652
59609
|
}));
|
|
@@ -59654,14 +59611,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59654
59611
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59655
59612
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59656
59613
|
const { dirname: dirname$14 } = require("path");
|
|
59657
|
-
const findMade = (opts, parent, path$
|
|
59658
|
-
if (path$
|
|
59659
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
59614
|
+
const findMade = (opts, parent, path$85 = void 0) => {
|
|
59615
|
+
if (path$85 === parent) return Promise.resolve();
|
|
59616
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$85 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59660
59617
|
};
|
|
59661
|
-
const findMadeSync = (opts, parent, path$
|
|
59662
|
-
if (path$
|
|
59618
|
+
const findMadeSync = (opts, parent, path$86 = void 0) => {
|
|
59619
|
+
if (path$86 === parent) return void 0;
|
|
59663
59620
|
try {
|
|
59664
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
59621
|
+
return opts.statSync(parent).isDirectory() ? path$86 : void 0;
|
|
59665
59622
|
} catch (er) {
|
|
59666
59623
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59667
59624
|
}
|
|
@@ -59675,16 +59632,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59675
59632
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59676
59633
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59677
59634
|
const { dirname: dirname$13 } = require("path");
|
|
59678
|
-
const mkdirpManual = (path$
|
|
59635
|
+
const mkdirpManual = (path$83, opts, made) => {
|
|
59679
59636
|
opts.recursive = false;
|
|
59680
|
-
const parent = dirname$13(path$
|
|
59681
|
-
if (parent === path$
|
|
59637
|
+
const parent = dirname$13(path$83);
|
|
59638
|
+
if (parent === path$83) return opts.mkdirAsync(path$83, opts).catch((er) => {
|
|
59682
59639
|
if (er.code !== "EISDIR") throw er;
|
|
59683
59640
|
});
|
|
59684
|
-
return opts.mkdirAsync(path$
|
|
59685
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
59641
|
+
return opts.mkdirAsync(path$83, opts).then(() => made || path$83, (er) => {
|
|
59642
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$83, opts, made));
|
|
59686
59643
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59687
|
-
return opts.statAsync(path$
|
|
59644
|
+
return opts.statAsync(path$83).then((st) => {
|
|
59688
59645
|
if (st.isDirectory()) return made;
|
|
59689
59646
|
else throw er;
|
|
59690
59647
|
}, () => {
|
|
@@ -59692,23 +59649,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59692
59649
|
});
|
|
59693
59650
|
});
|
|
59694
59651
|
};
|
|
59695
|
-
const mkdirpManualSync = (path$
|
|
59696
|
-
const parent = dirname$13(path$
|
|
59652
|
+
const mkdirpManualSync = (path$84, opts, made) => {
|
|
59653
|
+
const parent = dirname$13(path$84);
|
|
59697
59654
|
opts.recursive = false;
|
|
59698
|
-
if (parent === path$
|
|
59699
|
-
return opts.mkdirSync(path$
|
|
59655
|
+
if (parent === path$84) try {
|
|
59656
|
+
return opts.mkdirSync(path$84, opts);
|
|
59700
59657
|
} catch (er) {
|
|
59701
59658
|
if (er.code !== "EISDIR") throw er;
|
|
59702
59659
|
else return;
|
|
59703
59660
|
}
|
|
59704
59661
|
try {
|
|
59705
|
-
opts.mkdirSync(path$
|
|
59706
|
-
return made || path$
|
|
59662
|
+
opts.mkdirSync(path$84, opts);
|
|
59663
|
+
return made || path$84;
|
|
59707
59664
|
} catch (er) {
|
|
59708
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59665
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$84, opts, mkdirpManualSync(parent, opts, made));
|
|
59709
59666
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59710
59667
|
try {
|
|
59711
|
-
if (!opts.statSync(path$
|
|
59668
|
+
if (!opts.statSync(path$84).isDirectory()) throw er;
|
|
59712
59669
|
} catch (_) {
|
|
59713
59670
|
throw er;
|
|
59714
59671
|
}
|
|
@@ -59725,23 +59682,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59725
59682
|
const { dirname: dirname$12 } = require("path");
|
|
59726
59683
|
const { findMade, findMadeSync } = require_find_made();
|
|
59727
59684
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59728
|
-
const mkdirpNative = (path$
|
|
59685
|
+
const mkdirpNative = (path$81, opts) => {
|
|
59729
59686
|
opts.recursive = true;
|
|
59730
|
-
if (dirname$12(path$
|
|
59731
|
-
return findMade(opts, path$
|
|
59732
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
59687
|
+
if (dirname$12(path$81) === path$81) return opts.mkdirAsync(path$81, opts);
|
|
59688
|
+
return findMade(opts, path$81).then((made) => opts.mkdirAsync(path$81, opts).then(() => made).catch((er) => {
|
|
59689
|
+
if (er.code === "ENOENT") return mkdirpManual(path$81, opts);
|
|
59733
59690
|
else throw er;
|
|
59734
59691
|
}));
|
|
59735
59692
|
};
|
|
59736
|
-
const mkdirpNativeSync = (path$
|
|
59693
|
+
const mkdirpNativeSync = (path$82, opts) => {
|
|
59737
59694
|
opts.recursive = true;
|
|
59738
|
-
if (dirname$12(path$
|
|
59739
|
-
const made = findMadeSync(opts, path$
|
|
59695
|
+
if (dirname$12(path$82) === path$82) return opts.mkdirSync(path$82, opts);
|
|
59696
|
+
const made = findMadeSync(opts, path$82);
|
|
59740
59697
|
try {
|
|
59741
|
-
opts.mkdirSync(path$
|
|
59698
|
+
opts.mkdirSync(path$82, opts);
|
|
59742
59699
|
return made;
|
|
59743
59700
|
} catch (er) {
|
|
59744
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59701
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$82, opts);
|
|
59745
59702
|
else throw er;
|
|
59746
59703
|
}
|
|
59747
59704
|
};
|
|
@@ -59753,12 +59710,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59753
59710
|
//#endregion
|
|
59754
59711
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59755
59712
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59756
|
-
const fs$
|
|
59713
|
+
const fs$28 = require("fs");
|
|
59757
59714
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59758
59715
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59759
59716
|
module.exports = {
|
|
59760
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59761
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59717
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
|
|
59718
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
|
|
59762
59719
|
};
|
|
59763
59720
|
}));
|
|
59764
59721
|
//#endregion
|
|
@@ -59789,64 +59746,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59789
59746
|
//#endregion
|
|
59790
59747
|
//#region ../../node_modules/chownr/chownr.js
|
|
59791
59748
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59792
|
-
const fs$
|
|
59793
|
-
const path$
|
|
59749
|
+
const fs$27 = require("fs");
|
|
59750
|
+
const path$31 = require("path");
|
|
59794
59751
|
/* istanbul ignore next */
|
|
59795
|
-
const LCHOWN = fs$
|
|
59752
|
+
const LCHOWN = fs$27.lchown ? "lchown" : "chown";
|
|
59796
59753
|
/* istanbul ignore next */
|
|
59797
|
-
const LCHOWNSYNC = fs$
|
|
59754
|
+
const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
|
|
59798
59755
|
/* istanbul ignore next */
|
|
59799
|
-
const needEISDIRHandled = fs$
|
|
59800
|
-
const lchownSync = (path$
|
|
59756
|
+
const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59757
|
+
const lchownSync = (path$73, uid, gid) => {
|
|
59801
59758
|
try {
|
|
59802
|
-
return fs$
|
|
59759
|
+
return fs$27[LCHOWNSYNC](path$73, uid, gid);
|
|
59803
59760
|
} catch (er) {
|
|
59804
59761
|
if (er.code !== "ENOENT") throw er;
|
|
59805
59762
|
}
|
|
59806
59763
|
};
|
|
59807
59764
|
/* istanbul ignore next */
|
|
59808
|
-
const chownSync = (path$
|
|
59765
|
+
const chownSync = (path$74, uid, gid) => {
|
|
59809
59766
|
try {
|
|
59810
|
-
return fs$
|
|
59767
|
+
return fs$27.chownSync(path$74, uid, gid);
|
|
59811
59768
|
} catch (er) {
|
|
59812
59769
|
if (er.code !== "ENOENT") throw er;
|
|
59813
59770
|
}
|
|
59814
59771
|
};
|
|
59815
59772
|
/* istanbul ignore next */
|
|
59816
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
59773
|
+
const handleEISDIR = needEISDIRHandled ? (path$75, uid, gid, cb) => (er) => {
|
|
59817
59774
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59818
|
-
else fs$
|
|
59775
|
+
else fs$27.chown(path$75, uid, gid, cb);
|
|
59819
59776
|
} : (_, __, ___, cb) => cb;
|
|
59820
59777
|
/* istanbul ignore next */
|
|
59821
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
59778
|
+
const handleEISDirSync = needEISDIRHandled ? (path$76, uid, gid) => {
|
|
59822
59779
|
try {
|
|
59823
|
-
return lchownSync(path$
|
|
59780
|
+
return lchownSync(path$76, uid, gid);
|
|
59824
59781
|
} catch (er) {
|
|
59825
59782
|
if (er.code !== "EISDIR") throw er;
|
|
59826
|
-
chownSync(path$
|
|
59783
|
+
chownSync(path$76, uid, gid);
|
|
59827
59784
|
}
|
|
59828
|
-
} : (path$
|
|
59785
|
+
} : (path$77, uid, gid) => lchownSync(path$77, uid, gid);
|
|
59829
59786
|
const nodeVersion = process.version;
|
|
59830
|
-
let readdir = (path$
|
|
59831
|
-
let readdirSync = (path$
|
|
59787
|
+
let readdir = (path$78, options, cb) => fs$27.readdir(path$78, options, cb);
|
|
59788
|
+
let readdirSync = (path$79, options) => fs$27.readdirSync(path$79, options);
|
|
59832
59789
|
/* istanbul ignore next */
|
|
59833
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
59790
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$80, options, cb) => fs$27.readdir(path$80, cb);
|
|
59834
59791
|
const chown = (cpath, uid, gid, cb) => {
|
|
59835
|
-
fs$
|
|
59792
|
+
fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59836
59793
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59837
59794
|
}));
|
|
59838
59795
|
};
|
|
59839
59796
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59840
|
-
if (typeof child === "string") return fs$
|
|
59797
|
+
if (typeof child === "string") return fs$27.lstat(path$31.resolve(p, child), (er, stats) => {
|
|
59841
59798
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59842
59799
|
stats.name = child;
|
|
59843
59800
|
chownrKid(p, stats, uid, gid, cb);
|
|
59844
59801
|
});
|
|
59845
|
-
if (child.isDirectory()) chownr(path$
|
|
59802
|
+
if (child.isDirectory()) chownr(path$31.resolve(p, child.name), uid, gid, (er) => {
|
|
59846
59803
|
if (er) return cb(er);
|
|
59847
|
-
chown(path$
|
|
59804
|
+
chown(path$31.resolve(p, child.name), uid, gid, cb);
|
|
59848
59805
|
});
|
|
59849
|
-
else chown(path$
|
|
59806
|
+
else chown(path$31.resolve(p, child.name), uid, gid, cb);
|
|
59850
59807
|
};
|
|
59851
59808
|
const chownr = (p, uid, gid, cb) => {
|
|
59852
59809
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -59867,15 +59824,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59867
59824
|
};
|
|
59868
59825
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59869
59826
|
if (typeof child === "string") try {
|
|
59870
|
-
const stats = fs$
|
|
59827
|
+
const stats = fs$27.lstatSync(path$31.resolve(p, child));
|
|
59871
59828
|
stats.name = child;
|
|
59872
59829
|
child = stats;
|
|
59873
59830
|
} catch (er) {
|
|
59874
59831
|
if (er.code === "ENOENT") return;
|
|
59875
59832
|
else throw er;
|
|
59876
59833
|
}
|
|
59877
|
-
if (child.isDirectory()) chownrSync(path$
|
|
59878
|
-
handleEISDirSync(path$
|
|
59834
|
+
if (child.isDirectory()) chownrSync(path$31.resolve(p, child.name), uid, gid);
|
|
59835
|
+
handleEISDirSync(path$31.resolve(p, child.name), uid, gid);
|
|
59879
59836
|
};
|
|
59880
59837
|
const chownrSync = (p, uid, gid) => {
|
|
59881
59838
|
let children;
|
|
@@ -59896,14 +59853,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59896
59853
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59897
59854
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59898
59855
|
const mkdirp = require_mkdirp();
|
|
59899
|
-
const fs$
|
|
59900
|
-
const path$
|
|
59856
|
+
const fs$26 = require("fs");
|
|
59857
|
+
const path$30 = require("path");
|
|
59901
59858
|
const chownr = require_chownr();
|
|
59902
59859
|
const normPath = require_normalize_windows_path();
|
|
59903
59860
|
var SymlinkError = class extends Error {
|
|
59904
|
-
constructor(symlink, path$
|
|
59861
|
+
constructor(symlink, path$71) {
|
|
59905
59862
|
super("Cannot extract through symbolic link");
|
|
59906
|
-
this.path = path$
|
|
59863
|
+
this.path = path$71;
|
|
59907
59864
|
this.symlink = symlink;
|
|
59908
59865
|
}
|
|
59909
59866
|
get name() {
|
|
@@ -59911,9 +59868,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59911
59868
|
}
|
|
59912
59869
|
};
|
|
59913
59870
|
var CwdError = class extends Error {
|
|
59914
|
-
constructor(path$
|
|
59915
|
-
super(code + ": Cannot cd into '" + path$
|
|
59916
|
-
this.path = path$
|
|
59871
|
+
constructor(path$72, code) {
|
|
59872
|
+
super(code + ": Cannot cd into '" + path$72 + "'");
|
|
59873
|
+
this.path = path$72;
|
|
59917
59874
|
this.code = code;
|
|
59918
59875
|
}
|
|
59919
59876
|
get name() {
|
|
@@ -59923,7 +59880,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59923
59880
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59924
59881
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59925
59882
|
const checkCwd = (dir, cb) => {
|
|
59926
|
-
fs$
|
|
59883
|
+
fs$26.stat(dir, (er, st) => {
|
|
59927
59884
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59928
59885
|
cb(er);
|
|
59929
59886
|
});
|
|
@@ -59945,31 +59902,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59945
59902
|
else {
|
|
59946
59903
|
cSet(cache, dir, true);
|
|
59947
59904
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59948
|
-
else if (needChmod) fs$
|
|
59905
|
+
else if (needChmod) fs$26.chmod(dir, mode, cb);
|
|
59949
59906
|
else cb();
|
|
59950
59907
|
}
|
|
59951
59908
|
};
|
|
59952
59909
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59953
59910
|
if (dir === cwd) return checkCwd(dir, done);
|
|
59954
59911
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
59955
|
-
mkdir_(cwd, normPath(path$
|
|
59912
|
+
mkdir_(cwd, normPath(path$30.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
59956
59913
|
};
|
|
59957
59914
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
59958
59915
|
if (!parts.length) return cb(null, created);
|
|
59959
59916
|
const p = parts.shift();
|
|
59960
|
-
const part = normPath(path$
|
|
59917
|
+
const part = normPath(path$30.resolve(base + "/" + p));
|
|
59961
59918
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59962
|
-
fs$
|
|
59919
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59963
59920
|
};
|
|
59964
59921
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59965
|
-
if (er) fs$
|
|
59922
|
+
if (er) fs$26.lstat(part, (statEr, st) => {
|
|
59966
59923
|
if (statEr) {
|
|
59967
59924
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59968
59925
|
cb(statEr);
|
|
59969
59926
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59970
|
-
else if (unlink) fs$
|
|
59927
|
+
else if (unlink) fs$26.unlink(part, (er) => {
|
|
59971
59928
|
if (er) return cb(er);
|
|
59972
|
-
fs$
|
|
59929
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59973
59930
|
});
|
|
59974
59931
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59975
59932
|
else cb(er);
|
|
@@ -59983,7 +59940,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59983
59940
|
let ok = false;
|
|
59984
59941
|
let code = "ENOTDIR";
|
|
59985
59942
|
try {
|
|
59986
|
-
ok = fs$
|
|
59943
|
+
ok = fs$26.statSync(dir).isDirectory();
|
|
59987
59944
|
} catch (er) {
|
|
59988
59945
|
code = er.code;
|
|
59989
59946
|
} finally {
|
|
@@ -60005,7 +59962,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
60005
59962
|
const done = (created) => {
|
|
60006
59963
|
cSet(cache, dir, true);
|
|
60007
59964
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
60008
|
-
if (needChmod) fs$
|
|
59965
|
+
if (needChmod) fs$26.chmodSync(dir, mode);
|
|
60009
59966
|
};
|
|
60010
59967
|
if (cache && cGet(cache, dir) === true) return done();
|
|
60011
59968
|
if (dir === cwd) {
|
|
@@ -60013,23 +59970,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
60013
59970
|
return done();
|
|
60014
59971
|
}
|
|
60015
59972
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
60016
|
-
const parts = normPath(path$
|
|
59973
|
+
const parts = normPath(path$30.relative(cwd, dir)).split("/");
|
|
60017
59974
|
let created = null;
|
|
60018
59975
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
60019
|
-
part = normPath(path$
|
|
59976
|
+
part = normPath(path$30.resolve(part));
|
|
60020
59977
|
if (cGet(cache, part)) continue;
|
|
60021
59978
|
try {
|
|
60022
|
-
fs$
|
|
59979
|
+
fs$26.mkdirSync(part, mode);
|
|
60023
59980
|
created = created || part;
|
|
60024
59981
|
cSet(cache, part, true);
|
|
60025
59982
|
} catch (er) {
|
|
60026
|
-
const st = fs$
|
|
59983
|
+
const st = fs$26.lstatSync(part);
|
|
60027
59984
|
if (st.isDirectory()) {
|
|
60028
59985
|
cSet(cache, part, true);
|
|
60029
59986
|
continue;
|
|
60030
59987
|
} else if (unlink) {
|
|
60031
|
-
fs$
|
|
60032
|
-
fs$
|
|
59988
|
+
fs$26.unlinkSync(part);
|
|
59989
|
+
fs$26.mkdirSync(part, mode);
|
|
60033
59990
|
created = created || part;
|
|
60034
59991
|
cSet(cache, part, true);
|
|
60035
59992
|
continue;
|
|
@@ -60055,15 +60012,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60055
60012
|
const assert$1 = require("assert");
|
|
60056
60013
|
const normalize = require_normalize_unicode();
|
|
60057
60014
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60058
|
-
const { join: join$
|
|
60015
|
+
const { join: join$17 } = require("path");
|
|
60059
60016
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60060
60017
|
module.exports = () => {
|
|
60061
60018
|
const queues = /* @__PURE__ */ new Map();
|
|
60062
60019
|
const reservations = /* @__PURE__ */ new Map();
|
|
60063
|
-
const getDirs = (path$
|
|
60064
|
-
return path$
|
|
60065
|
-
if (set.length) path$
|
|
60066
|
-
set.push(path$
|
|
60020
|
+
const getDirs = (path$64) => {
|
|
60021
|
+
return path$64.split("/").slice(0, -1).reduce((set, path$65) => {
|
|
60022
|
+
if (set.length) path$65 = join$17(set[set.length - 1], path$65);
|
|
60023
|
+
set.push(path$65 || "/");
|
|
60067
60024
|
return set;
|
|
60068
60025
|
}, []);
|
|
60069
60026
|
};
|
|
@@ -60073,8 +60030,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60073
60030
|
/* istanbul ignore if - unpossible */
|
|
60074
60031
|
if (!res) throw new Error("function does not have any path reservations");
|
|
60075
60032
|
return {
|
|
60076
|
-
paths: res.paths.map((path$
|
|
60077
|
-
dirs: [...res.dirs].map((path$
|
|
60033
|
+
paths: res.paths.map((path$66) => queues.get(path$66)),
|
|
60034
|
+
dirs: [...res.dirs].map((path$67) => queues.get(path$67))
|
|
60078
60035
|
};
|
|
60079
60036
|
};
|
|
60080
60037
|
const check = (fn) => {
|
|
@@ -60091,10 +60048,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60091
60048
|
if (!running.has(fn)) return false;
|
|
60092
60049
|
const { paths, dirs } = reservations.get(fn);
|
|
60093
60050
|
const next = /* @__PURE__ */ new Set();
|
|
60094
|
-
paths.forEach((path$
|
|
60095
|
-
const q = queues.get(path$
|
|
60051
|
+
paths.forEach((path$68) => {
|
|
60052
|
+
const q = queues.get(path$68);
|
|
60096
60053
|
assert$1.equal(q[0], fn);
|
|
60097
|
-
if (q.length === 1) queues.delete(path$
|
|
60054
|
+
if (q.length === 1) queues.delete(path$68);
|
|
60098
60055
|
else {
|
|
60099
60056
|
q.shift();
|
|
60100
60057
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -60116,16 +60073,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60116
60073
|
};
|
|
60117
60074
|
const reserve = (paths, fn) => {
|
|
60118
60075
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60119
|
-
return stripSlashes(join$
|
|
60076
|
+
return stripSlashes(join$17(normalize(p))).toLowerCase();
|
|
60120
60077
|
});
|
|
60121
|
-
const dirs = new Set(paths.map((path$
|
|
60078
|
+
const dirs = new Set(paths.map((path$69) => getDirs(path$69)).reduce((a, b) => a.concat(b)));
|
|
60122
60079
|
reservations.set(fn, {
|
|
60123
60080
|
dirs,
|
|
60124
60081
|
paths
|
|
60125
60082
|
});
|
|
60126
|
-
paths.forEach((path$
|
|
60127
|
-
const q = queues.get(path$
|
|
60128
|
-
if (!q) queues.set(path$
|
|
60083
|
+
paths.forEach((path$70) => {
|
|
60084
|
+
const q = queues.get(path$70);
|
|
60085
|
+
if (!q) queues.set(path$70, [fn]);
|
|
60129
60086
|
else q.push(fn);
|
|
60130
60087
|
});
|
|
60131
60088
|
dirs.forEach((dir) => {
|
|
@@ -60158,9 +60115,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60158
60115
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60159
60116
|
const assert = require("assert");
|
|
60160
60117
|
const Parser = require_parse$4();
|
|
60161
|
-
const fs$
|
|
60118
|
+
const fs$25 = require("fs");
|
|
60162
60119
|
const fsm = require_fs_minipass();
|
|
60163
|
-
const path$
|
|
60120
|
+
const path$29 = require("path");
|
|
60164
60121
|
const mkdir = require_mkdir();
|
|
60165
60122
|
const wc = require_winchars();
|
|
60166
60123
|
const pathReservations = require_path_reservations();
|
|
@@ -60198,28 +60155,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60198
60155
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60199
60156
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60200
60157
|
/* istanbul ignore next */
|
|
60201
|
-
const unlinkFile = (path$
|
|
60202
|
-
if (!isWindows) return fs$
|
|
60203
|
-
const name = path$
|
|
60204
|
-
fs$
|
|
60158
|
+
const unlinkFile = (path$60, cb) => {
|
|
60159
|
+
if (!isWindows) return fs$25.unlink(path$60, cb);
|
|
60160
|
+
const name = path$60 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60161
|
+
fs$25.rename(path$60, name, (er) => {
|
|
60205
60162
|
if (er) return cb(er);
|
|
60206
|
-
fs$
|
|
60163
|
+
fs$25.unlink(name, cb);
|
|
60207
60164
|
});
|
|
60208
60165
|
};
|
|
60209
60166
|
/* istanbul ignore next */
|
|
60210
|
-
const unlinkFileSync = (path$
|
|
60211
|
-
if (!isWindows) return fs$
|
|
60212
|
-
const name = path$
|
|
60213
|
-
fs$
|
|
60214
|
-
fs$
|
|
60167
|
+
const unlinkFileSync = (path$61) => {
|
|
60168
|
+
if (!isWindows) return fs$25.unlinkSync(path$61);
|
|
60169
|
+
const name = path$61 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60170
|
+
fs$25.renameSync(path$61, name);
|
|
60171
|
+
fs$25.unlinkSync(name);
|
|
60215
60172
|
};
|
|
60216
60173
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60217
|
-
const cacheKeyNormalize = (path$
|
|
60174
|
+
const cacheKeyNormalize = (path$62) => stripSlash(normPath(normalize(path$62))).toLowerCase();
|
|
60218
60175
|
const pruneCache = (cache, abs) => {
|
|
60219
60176
|
abs = cacheKeyNormalize(abs);
|
|
60220
|
-
for (const path$
|
|
60221
|
-
const pnorm = cacheKeyNormalize(path$
|
|
60222
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
60177
|
+
for (const path$63 of cache.keys()) {
|
|
60178
|
+
const pnorm = cacheKeyNormalize(path$63);
|
|
60179
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$63);
|
|
60223
60180
|
}
|
|
60224
60181
|
};
|
|
60225
60182
|
const dropCache = (cache) => {
|
|
@@ -60264,7 +60221,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60264
60221
|
this.noMtime = !!opt.noMtime;
|
|
60265
60222
|
this.preservePaths = !!opt.preservePaths;
|
|
60266
60223
|
this.unlink = !!opt.unlink;
|
|
60267
|
-
this.cwd = normPath(path$
|
|
60224
|
+
this.cwd = normPath(path$29.resolve(opt.cwd || process.cwd()));
|
|
60268
60225
|
this.strip = +opt.strip || 0;
|
|
60269
60226
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
60270
60227
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -60322,8 +60279,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60322
60279
|
});
|
|
60323
60280
|
}
|
|
60324
60281
|
}
|
|
60325
|
-
if (path$
|
|
60326
|
-
else entry.absolute = normPath(path$
|
|
60282
|
+
if (path$29.isAbsolute(entry.path)) entry.absolute = normPath(path$29.resolve(entry.path));
|
|
60283
|
+
else entry.absolute = normPath(path$29.resolve(this.cwd, entry.path));
|
|
60327
60284
|
/* istanbul ignore if - defense in depth */
|
|
60328
60285
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
60329
60286
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -60336,9 +60293,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60336
60293
|
}
|
|
60337
60294
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
60338
60295
|
if (this.win32) {
|
|
60339
|
-
const { root: aRoot } = path$
|
|
60296
|
+
const { root: aRoot } = path$29.win32.parse(entry.absolute);
|
|
60340
60297
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
60341
|
-
const { root: pRoot } = path$
|
|
60298
|
+
const { root: pRoot } = path$29.win32.parse(entry.path);
|
|
60342
60299
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
60343
60300
|
}
|
|
60344
60301
|
return true;
|
|
@@ -60397,7 +60354,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60397
60354
|
autoClose: false
|
|
60398
60355
|
});
|
|
60399
60356
|
stream.on("error", (er) => {
|
|
60400
|
-
if (stream.fd) fs$
|
|
60357
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60401
60358
|
stream.write = () => true;
|
|
60402
60359
|
this[ONERROR](er, entry);
|
|
60403
60360
|
fullyDone();
|
|
@@ -60406,12 +60363,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60406
60363
|
const done = (er) => {
|
|
60407
60364
|
if (er) {
|
|
60408
60365
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60409
|
-
if (stream.fd) fs$
|
|
60366
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60410
60367
|
this[ONERROR](er, entry);
|
|
60411
60368
|
fullyDone();
|
|
60412
60369
|
return;
|
|
60413
60370
|
}
|
|
60414
|
-
if (--actions === 0) fs$
|
|
60371
|
+
if (--actions === 0) fs$25.close(stream.fd, (er) => {
|
|
60415
60372
|
if (er) this[ONERROR](er, entry);
|
|
60416
60373
|
else this[UNPEND]();
|
|
60417
60374
|
fullyDone();
|
|
@@ -60424,13 +60381,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60424
60381
|
actions++;
|
|
60425
60382
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60426
60383
|
const mtime = entry.mtime;
|
|
60427
|
-
fs$
|
|
60384
|
+
fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60428
60385
|
}
|
|
60429
60386
|
if (this[DOCHOWN](entry)) {
|
|
60430
60387
|
actions++;
|
|
60431
60388
|
const uid = this[UID](entry);
|
|
60432
60389
|
const gid = this[GID](entry);
|
|
60433
|
-
fs$
|
|
60390
|
+
fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60434
60391
|
}
|
|
60435
60392
|
done();
|
|
60436
60393
|
});
|
|
@@ -60462,11 +60419,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60462
60419
|
};
|
|
60463
60420
|
if (entry.mtime && !this.noMtime) {
|
|
60464
60421
|
actions++;
|
|
60465
|
-
fs$
|
|
60422
|
+
fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60466
60423
|
}
|
|
60467
60424
|
if (this[DOCHOWN](entry)) {
|
|
60468
60425
|
actions++;
|
|
60469
|
-
fs$
|
|
60426
|
+
fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60470
60427
|
}
|
|
60471
60428
|
done();
|
|
60472
60429
|
});
|
|
@@ -60480,7 +60437,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60480
60437
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
60481
60438
|
}
|
|
60482
60439
|
[HARDLINK](entry, done) {
|
|
60483
|
-
const linkpath = normPath(path$
|
|
60440
|
+
const linkpath = normPath(path$29.resolve(this.cwd, entry.linkpath));
|
|
60484
60441
|
this[LINK](entry, linkpath, "link", done);
|
|
60485
60442
|
}
|
|
60486
60443
|
[PEND]() {
|
|
@@ -60526,7 +60483,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60526
60483
|
};
|
|
60527
60484
|
const start = () => {
|
|
60528
60485
|
if (entry.absolute !== this.cwd) {
|
|
60529
|
-
const parent = normPath(path$
|
|
60486
|
+
const parent = normPath(path$29.dirname(entry.absolute));
|
|
60530
60487
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
60531
60488
|
if (er) {
|
|
60532
60489
|
this[ONERROR](er, entry);
|
|
@@ -60539,7 +60496,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60539
60496
|
afterMakeParent();
|
|
60540
60497
|
};
|
|
60541
60498
|
const afterMakeParent = () => {
|
|
60542
|
-
fs$
|
|
60499
|
+
fs$25.lstat(entry.absolute, (lstatEr, st) => {
|
|
60543
60500
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60544
60501
|
this[SKIP](entry);
|
|
60545
60502
|
done();
|
|
@@ -60551,9 +60508,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60551
60508
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60552
60509
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60553
60510
|
if (!needChmod) return afterChmod();
|
|
60554
|
-
return fs$
|
|
60511
|
+
return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60555
60512
|
}
|
|
60556
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60513
|
+
if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60557
60514
|
}
|
|
60558
60515
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60559
60516
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60579,7 +60536,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60579
60536
|
}
|
|
60580
60537
|
}
|
|
60581
60538
|
[LINK](entry, linkpath, link, done) {
|
|
60582
|
-
fs$
|
|
60539
|
+
fs$25[link](linkpath, entry.absolute, (er) => {
|
|
60583
60540
|
if (er) this[ONERROR](er, entry);
|
|
60584
60541
|
else {
|
|
60585
60542
|
this[UNPEND]();
|
|
@@ -60608,23 +60565,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60608
60565
|
this[CHECKED_CWD] = true;
|
|
60609
60566
|
}
|
|
60610
60567
|
if (entry.absolute !== this.cwd) {
|
|
60611
|
-
const parent = normPath(path$
|
|
60568
|
+
const parent = normPath(path$29.dirname(entry.absolute));
|
|
60612
60569
|
if (parent !== this.cwd) {
|
|
60613
60570
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
60614
60571
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60615
60572
|
}
|
|
60616
60573
|
}
|
|
60617
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60574
|
+
const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
|
|
60618
60575
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60619
60576
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60620
60577
|
if (st.isDirectory()) {
|
|
60621
60578
|
if (entry.type === "Directory") {
|
|
60622
60579
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60623
|
-
fs$
|
|
60580
|
+
fs$25.chmodSync(entry.absolute, entry.mode);
|
|
60624
60581
|
}) : [];
|
|
60625
60582
|
return this[MAKEFS](er, entry);
|
|
60626
60583
|
}
|
|
60627
|
-
const [er] = callSync(() => fs$
|
|
60584
|
+
const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
|
|
60628
60585
|
this[MAKEFS](er, entry);
|
|
60629
60586
|
}
|
|
60630
60587
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60635,7 +60592,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60635
60592
|
const oner = (er) => {
|
|
60636
60593
|
let closeError;
|
|
60637
60594
|
try {
|
|
60638
|
-
fs$
|
|
60595
|
+
fs$25.closeSync(fd);
|
|
60639
60596
|
} catch (e) {
|
|
60640
60597
|
closeError = e;
|
|
60641
60598
|
}
|
|
@@ -60644,7 +60601,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60644
60601
|
};
|
|
60645
60602
|
let fd;
|
|
60646
60603
|
try {
|
|
60647
|
-
fd = fs$
|
|
60604
|
+
fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60648
60605
|
} catch (er) {
|
|
60649
60606
|
return oner(er);
|
|
60650
60607
|
}
|
|
@@ -60655,7 +60612,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60655
60612
|
}
|
|
60656
60613
|
tx.on("data", (chunk) => {
|
|
60657
60614
|
try {
|
|
60658
|
-
fs$
|
|
60615
|
+
fs$25.writeSync(fd, chunk, 0, chunk.length);
|
|
60659
60616
|
} catch (er) {
|
|
60660
60617
|
oner(er);
|
|
60661
60618
|
}
|
|
@@ -60666,10 +60623,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60666
60623
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60667
60624
|
const mtime = entry.mtime;
|
|
60668
60625
|
try {
|
|
60669
|
-
fs$
|
|
60626
|
+
fs$25.futimesSync(fd, atime, mtime);
|
|
60670
60627
|
} catch (futimeser) {
|
|
60671
60628
|
try {
|
|
60672
|
-
fs$
|
|
60629
|
+
fs$25.utimesSync(entry.absolute, atime, mtime);
|
|
60673
60630
|
} catch (utimeser) {
|
|
60674
60631
|
er = futimeser;
|
|
60675
60632
|
}
|
|
@@ -60679,10 +60636,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60679
60636
|
const uid = this[UID](entry);
|
|
60680
60637
|
const gid = this[GID](entry);
|
|
60681
60638
|
try {
|
|
60682
|
-
fs$
|
|
60639
|
+
fs$25.fchownSync(fd, uid, gid);
|
|
60683
60640
|
} catch (fchowner) {
|
|
60684
60641
|
try {
|
|
60685
|
-
fs$
|
|
60642
|
+
fs$25.chownSync(entry.absolute, uid, gid);
|
|
60686
60643
|
} catch (chowner) {
|
|
60687
60644
|
er = er || fchowner;
|
|
60688
60645
|
}
|
|
@@ -60700,10 +60657,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60700
60657
|
return;
|
|
60701
60658
|
}
|
|
60702
60659
|
if (entry.mtime && !this.noMtime) try {
|
|
60703
|
-
fs$
|
|
60660
|
+
fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60704
60661
|
} catch (er) {}
|
|
60705
60662
|
if (this[DOCHOWN](entry)) try {
|
|
60706
|
-
fs$
|
|
60663
|
+
fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60707
60664
|
} catch (er) {}
|
|
60708
60665
|
done();
|
|
60709
60666
|
entry.resume();
|
|
@@ -60728,7 +60685,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60728
60685
|
}
|
|
60729
60686
|
[LINK](entry, linkpath, link, done) {
|
|
60730
60687
|
try {
|
|
60731
|
-
fs$
|
|
60688
|
+
fs$25[link + "Sync"](linkpath, entry.absolute);
|
|
60732
60689
|
done();
|
|
60733
60690
|
entry.resume();
|
|
60734
60691
|
} catch (er) {
|
|
@@ -60744,9 +60701,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60744
60701
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60745
60702
|
const hlo = require_high_level_opt();
|
|
60746
60703
|
const Unpack = require_unpack();
|
|
60747
|
-
const fs$
|
|
60704
|
+
const fs$24 = require("fs");
|
|
60748
60705
|
const fsm = require_fs_minipass();
|
|
60749
|
-
const path$
|
|
60706
|
+
const path$28 = require("path");
|
|
60750
60707
|
const stripSlash = require_strip_trailing_slashes();
|
|
60751
60708
|
module.exports = (opt_, files, cb) => {
|
|
60752
60709
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -60764,8 +60721,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60764
60721
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
60765
60722
|
const filter = opt.filter;
|
|
60766
60723
|
const mapHas = (file, r) => {
|
|
60767
|
-
const root = r || path$
|
|
60768
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
60724
|
+
const root = r || path$28.parse(file).root || ".";
|
|
60725
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$28.dirname(file), root);
|
|
60769
60726
|
map.set(file, ret);
|
|
60770
60727
|
return ret;
|
|
60771
60728
|
};
|
|
@@ -60774,7 +60731,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60774
60731
|
const extractFileSync = (opt) => {
|
|
60775
60732
|
const u = new Unpack.Sync(opt);
|
|
60776
60733
|
const file = opt.file;
|
|
60777
|
-
const stat = fs$
|
|
60734
|
+
const stat = fs$24.statSync(file);
|
|
60778
60735
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60779
60736
|
new fsm.ReadStreamSync(file, {
|
|
60780
60737
|
readSize,
|
|
@@ -60788,7 +60745,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60788
60745
|
const p = new Promise((resolve, reject) => {
|
|
60789
60746
|
u.on("error", reject);
|
|
60790
60747
|
u.on("close", resolve);
|
|
60791
|
-
fs$
|
|
60748
|
+
fs$24.stat(file, (er, stat) => {
|
|
60792
60749
|
if (er) reject(er);
|
|
60793
60750
|
else {
|
|
60794
60751
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60871,7 +60828,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60871
60828
|
//#endregion
|
|
60872
60829
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60873
60830
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60874
|
-
var fs$
|
|
60831
|
+
var fs$23 = require("fs");
|
|
60875
60832
|
var util$9 = require("util");
|
|
60876
60833
|
var stream$1 = require("stream");
|
|
60877
60834
|
var Readable = stream$1.Readable;
|
|
@@ -60896,7 +60853,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60896
60853
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60897
60854
|
var self = this;
|
|
60898
60855
|
self.pend.go(function(cb) {
|
|
60899
|
-
fs$
|
|
60856
|
+
fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60900
60857
|
cb();
|
|
60901
60858
|
callback(err, bytesRead, buffer);
|
|
60902
60859
|
});
|
|
@@ -60905,7 +60862,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60905
60862
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60906
60863
|
var self = this;
|
|
60907
60864
|
self.pend.go(function(cb) {
|
|
60908
|
-
fs$
|
|
60865
|
+
fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60909
60866
|
cb();
|
|
60910
60867
|
callback(err, written, buffer);
|
|
60911
60868
|
});
|
|
@@ -60925,7 +60882,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60925
60882
|
self.refCount -= 1;
|
|
60926
60883
|
if (self.refCount > 0) return;
|
|
60927
60884
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60928
|
-
if (self.autoClose) fs$
|
|
60885
|
+
if (self.autoClose) fs$23.close(self.fd, onCloseDone);
|
|
60929
60886
|
function onCloseDone(err) {
|
|
60930
60887
|
if (err) self.emit("error", err);
|
|
60931
60888
|
else self.emit("close");
|
|
@@ -60956,7 +60913,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60956
60913
|
self.context.pend.go(function(cb) {
|
|
60957
60914
|
if (self.destroyed) return cb();
|
|
60958
60915
|
var buffer = new Buffer(toRead);
|
|
60959
|
-
fs$
|
|
60916
|
+
fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60960
60917
|
if (err) self.destroy(err);
|
|
60961
60918
|
else if (bytesRead === 0) {
|
|
60962
60919
|
self.destroyed = true;
|
|
@@ -61002,7 +60959,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
61002
60959
|
}
|
|
61003
60960
|
self.context.pend.go(function(cb) {
|
|
61004
60961
|
if (self.destroyed) return cb();
|
|
61005
|
-
fs$
|
|
60962
|
+
fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
61006
60963
|
if (err) {
|
|
61007
60964
|
self.destroy();
|
|
61008
60965
|
cb();
|
|
@@ -61409,7 +61366,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61409
61366
|
//#endregion
|
|
61410
61367
|
//#region ../../node_modules/yauzl/index.js
|
|
61411
61368
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61412
|
-
var fs$
|
|
61369
|
+
var fs$22 = require("fs");
|
|
61413
61370
|
var zlib$1 = require("zlib");
|
|
61414
61371
|
var fd_slicer = require_fd_slicer();
|
|
61415
61372
|
var crc32 = require_buffer_crc32();
|
|
@@ -61431,10 +61388,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61431
61388
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61432
61389
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61433
61390
|
if (callback == null) callback = defaultCallback;
|
|
61434
|
-
fs$
|
|
61391
|
+
fs$22.open(path, "r", function(err, fd) {
|
|
61435
61392
|
if (err) return callback(err);
|
|
61436
61393
|
fromFd(fd, options, function(err, zipfile) {
|
|
61437
|
-
if (err) fs$
|
|
61394
|
+
if (err) fs$22.close(fd, defaultCallback);
|
|
61438
61395
|
callback(err, zipfile);
|
|
61439
61396
|
});
|
|
61440
61397
|
});
|
|
@@ -61451,7 +61408,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61451
61408
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61452
61409
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61453
61410
|
if (callback == null) callback = defaultCallback;
|
|
61454
|
-
fs$
|
|
61411
|
+
fs$22.fstat(fd, function(err, stats) {
|
|
61455
61412
|
if (err) return callback(err);
|
|
61456
61413
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61457
61414
|
});
|
|
@@ -62679,13 +62636,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62679
62636
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62680
62637
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62681
62638
|
module.exports = readdirGlob;
|
|
62682
|
-
const fs$
|
|
62639
|
+
const fs$21 = require("fs");
|
|
62683
62640
|
const { EventEmitter: EventEmitter$1 } = require("events");
|
|
62684
62641
|
const { Minimatch } = require_minimatch$1();
|
|
62685
62642
|
const { resolve: resolve$12 } = require("path");
|
|
62686
62643
|
function readdir(dir, strict) {
|
|
62687
62644
|
return new Promise((resolve, reject) => {
|
|
62688
|
-
fs$
|
|
62645
|
+
fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62689
62646
|
if (err) switch (err.code) {
|
|
62690
62647
|
case "ENOTDIR":
|
|
62691
62648
|
if (strict) reject(err);
|
|
@@ -62707,7 +62664,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62707
62664
|
}
|
|
62708
62665
|
function stat(file, followSymlinks) {
|
|
62709
62666
|
return new Promise((resolve, reject) => {
|
|
62710
|
-
(followSymlinks ? fs$
|
|
62667
|
+
(followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
|
|
62711
62668
|
if (err) switch (err.code) {
|
|
62712
62669
|
case "ENOENT":
|
|
62713
62670
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -62721,8 +62678,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62721
62678
|
});
|
|
62722
62679
|
});
|
|
62723
62680
|
}
|
|
62724
|
-
async function* exploreWalkAsync(dir, path$
|
|
62725
|
-
let files = await readdir(path$
|
|
62681
|
+
async function* exploreWalkAsync(dir, path$58, followSymlinks, useStat, shouldSkip, strict) {
|
|
62682
|
+
let files = await readdir(path$58 + dir, strict);
|
|
62726
62683
|
for (const file of files) {
|
|
62727
62684
|
let name = file.name;
|
|
62728
62685
|
if (name === void 0) {
|
|
@@ -62731,7 +62688,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62731
62688
|
}
|
|
62732
62689
|
const filename = dir + "/" + name;
|
|
62733
62690
|
const relative = filename.slice(1);
|
|
62734
|
-
const absolute = path$
|
|
62691
|
+
const absolute = path$58 + "/" + relative;
|
|
62735
62692
|
let stats = null;
|
|
62736
62693
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
62737
62694
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -62743,7 +62700,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62743
62700
|
absolute,
|
|
62744
62701
|
stats
|
|
62745
62702
|
};
|
|
62746
|
-
yield* exploreWalkAsync(filename, path$
|
|
62703
|
+
yield* exploreWalkAsync(filename, path$58, followSymlinks, useStat, shouldSkip, false);
|
|
62747
62704
|
}
|
|
62748
62705
|
} else yield {
|
|
62749
62706
|
relative,
|
|
@@ -62752,8 +62709,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62752
62709
|
};
|
|
62753
62710
|
}
|
|
62754
62711
|
}
|
|
62755
|
-
async function* explore(path$
|
|
62756
|
-
yield* exploreWalkAsync("", path$
|
|
62712
|
+
async function* explore(path$59, followSymlinks, useStat, shouldSkip) {
|
|
62713
|
+
yield* exploreWalkAsync("", path$59, followSymlinks, useStat, shouldSkip, true);
|
|
62757
62714
|
}
|
|
62758
62715
|
function readOptions(options) {
|
|
62759
62716
|
return {
|
|
@@ -68746,7 +68703,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68746
68703
|
//#endregion
|
|
68747
68704
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68748
68705
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68749
|
-
var fs$
|
|
68706
|
+
var fs$20 = require("fs");
|
|
68750
68707
|
var polyfills = require_polyfills();
|
|
68751
68708
|
var legacy = require_legacy_streams();
|
|
68752
68709
|
var clone = require_clone$1();
|
|
@@ -68775,36 +68732,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68775
68732
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68776
68733
|
console.error(m);
|
|
68777
68734
|
};
|
|
68778
|
-
if (!fs$
|
|
68779
|
-
publishQueue(fs$
|
|
68780
|
-
fs$
|
|
68735
|
+
if (!fs$20[gracefulQueue]) {
|
|
68736
|
+
publishQueue(fs$20, global[gracefulQueue] || []);
|
|
68737
|
+
fs$20.close = (function(fs$close) {
|
|
68781
68738
|
function close(fd, cb) {
|
|
68782
|
-
return fs$close.call(fs$
|
|
68739
|
+
return fs$close.call(fs$20, fd, function(err) {
|
|
68783
68740
|
if (!err) resetQueue();
|
|
68784
68741
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68785
68742
|
});
|
|
68786
68743
|
}
|
|
68787
68744
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68788
68745
|
return close;
|
|
68789
|
-
})(fs$
|
|
68790
|
-
fs$
|
|
68746
|
+
})(fs$20.close);
|
|
68747
|
+
fs$20.closeSync = (function(fs$closeSync) {
|
|
68791
68748
|
function closeSync(fd) {
|
|
68792
|
-
fs$closeSync.apply(fs$
|
|
68749
|
+
fs$closeSync.apply(fs$20, arguments);
|
|
68793
68750
|
resetQueue();
|
|
68794
68751
|
}
|
|
68795
68752
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68796
68753
|
return closeSync;
|
|
68797
|
-
})(fs$
|
|
68754
|
+
})(fs$20.closeSync);
|
|
68798
68755
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68799
|
-
debug(fs$
|
|
68800
|
-
require("assert").equal(fs$
|
|
68756
|
+
debug(fs$20[gracefulQueue]);
|
|
68757
|
+
require("assert").equal(fs$20[gracefulQueue].length, 0);
|
|
68801
68758
|
});
|
|
68802
68759
|
}
|
|
68803
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68804
|
-
module.exports = patch(clone(fs$
|
|
68805
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68806
|
-
module.exports = patch(fs$
|
|
68807
|
-
fs$
|
|
68760
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
|
|
68761
|
+
module.exports = patch(clone(fs$20));
|
|
68762
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
|
|
68763
|
+
module.exports = patch(fs$20);
|
|
68764
|
+
fs$20.__patched = true;
|
|
68808
68765
|
}
|
|
68809
68766
|
function patch(fs) {
|
|
68810
68767
|
polyfills(fs);
|
|
@@ -69059,23 +69016,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69059
69016
|
}
|
|
69060
69017
|
function enqueue(elem) {
|
|
69061
69018
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69062
|
-
fs$
|
|
69019
|
+
fs$20[gracefulQueue].push(elem);
|
|
69063
69020
|
retry();
|
|
69064
69021
|
}
|
|
69065
69022
|
var retryTimer;
|
|
69066
69023
|
function resetQueue() {
|
|
69067
69024
|
var now = Date.now();
|
|
69068
|
-
for (var i = 0; i < fs$
|
|
69069
|
-
fs$
|
|
69070
|
-
fs$
|
|
69025
|
+
for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
|
|
69026
|
+
fs$20[gracefulQueue][i][3] = now;
|
|
69027
|
+
fs$20[gracefulQueue][i][4] = now;
|
|
69071
69028
|
}
|
|
69072
69029
|
retry();
|
|
69073
69030
|
}
|
|
69074
69031
|
function retry() {
|
|
69075
69032
|
clearTimeout(retryTimer);
|
|
69076
69033
|
retryTimer = void 0;
|
|
69077
|
-
if (fs$
|
|
69078
|
-
var elem = fs$
|
|
69034
|
+
if (fs$20[gracefulQueue].length === 0) return;
|
|
69035
|
+
var elem = fs$20[gracefulQueue].shift();
|
|
69079
69036
|
var fn = elem[0];
|
|
69080
69037
|
var args = elem[1];
|
|
69081
69038
|
var err = elem[2];
|
|
@@ -69094,7 +69051,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69094
69051
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69095
69052
|
debug("RETRY", fn.name, args);
|
|
69096
69053
|
fn.apply(null, args.concat([startTime]));
|
|
69097
|
-
} else fs$
|
|
69054
|
+
} else fs$20[gracefulQueue].push(elem);
|
|
69098
69055
|
}
|
|
69099
69056
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69100
69057
|
}
|
|
@@ -84220,7 +84177,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84220
84177
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
84221
84178
|
*/
|
|
84222
84179
|
var fs = require_graceful_fs();
|
|
84223
|
-
var path$
|
|
84180
|
+
var path$27 = require("path");
|
|
84224
84181
|
var flatten = require_flatten();
|
|
84225
84182
|
var difference = require_difference();
|
|
84226
84183
|
var union = require_union();
|
|
@@ -84240,7 +84197,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84240
84197
|
return result;
|
|
84241
84198
|
};
|
|
84242
84199
|
file.exists = function() {
|
|
84243
|
-
var filepath = path$
|
|
84200
|
+
var filepath = path$27.join.apply(path$27, arguments);
|
|
84244
84201
|
return fs.existsSync(filepath);
|
|
84245
84202
|
};
|
|
84246
84203
|
file.expand = function(...args) {
|
|
@@ -84251,7 +84208,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84251
84208
|
return glob.sync(pattern, options);
|
|
84252
84209
|
});
|
|
84253
84210
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
84254
|
-
filepath = path$
|
|
84211
|
+
filepath = path$27.join(options.cwd || "", filepath);
|
|
84255
84212
|
try {
|
|
84256
84213
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
84257
84214
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -84263,16 +84220,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84263
84220
|
};
|
|
84264
84221
|
file.expandMapping = function(patterns, destBase, options) {
|
|
84265
84222
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
84266
|
-
return path$
|
|
84223
|
+
return path$27.join(destBase || "", destPath);
|
|
84267
84224
|
} }, options);
|
|
84268
84225
|
var files = [];
|
|
84269
84226
|
var fileByDest = {};
|
|
84270
84227
|
file.expand(options, patterns).forEach(function(src) {
|
|
84271
84228
|
var destPath = src;
|
|
84272
|
-
if (options.flatten) destPath = path$
|
|
84229
|
+
if (options.flatten) destPath = path$27.basename(destPath);
|
|
84273
84230
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
84274
84231
|
var dest = options.rename(destBase, destPath, options);
|
|
84275
|
-
if (options.cwd) src = path$
|
|
84232
|
+
if (options.cwd) src = path$27.join(options.cwd, src);
|
|
84276
84233
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
84277
84234
|
src = src.replace(pathSeparatorRe, "/");
|
|
84278
84235
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -84347,7 +84304,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84347
84304
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
84348
84305
|
*/
|
|
84349
84306
|
var fs = require_graceful_fs();
|
|
84350
|
-
var path$
|
|
84307
|
+
var path$26 = require("path");
|
|
84351
84308
|
var isStream = require_is_stream$1();
|
|
84352
84309
|
var lazystream = require_lazystream();
|
|
84353
84310
|
var normalizePath = require_normalize_path();
|
|
@@ -84423,11 +84380,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84423
84380
|
(function next() {
|
|
84424
84381
|
file = list[i++];
|
|
84425
84382
|
if (!file) return callback(null, results);
|
|
84426
|
-
filepath = path$
|
|
84383
|
+
filepath = path$26.join(dirpath, file);
|
|
84427
84384
|
fs.stat(filepath, function(err, stats) {
|
|
84428
84385
|
results.push({
|
|
84429
84386
|
path: filepath,
|
|
84430
|
-
relative: path$
|
|
84387
|
+
relative: path$26.relative(base, filepath).replace(/\\/g, "/"),
|
|
84431
84388
|
stats
|
|
84432
84389
|
});
|
|
84433
84390
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -84491,10 +84448,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84491
84448
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84492
84449
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84493
84450
|
*/
|
|
84494
|
-
var fs$
|
|
84451
|
+
var fs$19 = require("fs");
|
|
84495
84452
|
var glob = require_readdir_glob();
|
|
84496
84453
|
var async = require_async();
|
|
84497
|
-
var path$
|
|
84454
|
+
var path$25 = require("path");
|
|
84498
84455
|
var util = require_archiver_utils();
|
|
84499
84456
|
var inherits$5 = require("util").inherits;
|
|
84500
84457
|
var ArchiverError = require_error$10();
|
|
@@ -84568,7 +84525,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84568
84525
|
data.sourcePath = filepath;
|
|
84569
84526
|
task.data = data;
|
|
84570
84527
|
this._entriesCount++;
|
|
84571
|
-
if (data.stats && data.stats instanceof fs$
|
|
84528
|
+
if (data.stats && data.stats instanceof fs$19.Stats) {
|
|
84572
84529
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84573
84530
|
if (task) {
|
|
84574
84531
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84798,7 +84755,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84798
84755
|
callback();
|
|
84799
84756
|
return;
|
|
84800
84757
|
}
|
|
84801
|
-
fs$
|
|
84758
|
+
fs$19.lstat(task.filepath, function(err, stats) {
|
|
84802
84759
|
if (this._state.aborted) {
|
|
84803
84760
|
setImmediate(callback);
|
|
84804
84761
|
return;
|
|
@@ -84864,10 +84821,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84864
84821
|
task.data.sourceType = "buffer";
|
|
84865
84822
|
task.source = Buffer.concat([]);
|
|
84866
84823
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84867
|
-
var linkPath = fs$
|
|
84868
|
-
var dirName = path$
|
|
84824
|
+
var linkPath = fs$19.readlinkSync(task.filepath);
|
|
84825
|
+
var dirName = path$25.dirname(task.filepath);
|
|
84869
84826
|
task.data.type = "symlink";
|
|
84870
|
-
task.data.linkname = path$
|
|
84827
|
+
task.data.linkname = path$25.relative(dirName, path$25.resolve(dirName, linkPath));
|
|
84871
84828
|
task.data.sourceType = "buffer";
|
|
84872
84829
|
task.source = Buffer.concat([]);
|
|
84873
84830
|
} else {
|
|
@@ -95953,7 +95910,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95953
95910
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95954
95911
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95955
95912
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95956
|
-
const { join: join$
|
|
95913
|
+
const { join: join$14, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95957
95914
|
const isWindows = process.platform === "win32";
|
|
95958
95915
|
/* istanbul ignore next */
|
|
95959
95916
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95983,7 +95940,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95983
95940
|
};
|
|
95984
95941
|
const getPathPart = (raw, cmd) => {
|
|
95985
95942
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95986
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95943
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
95987
95944
|
};
|
|
95988
95945
|
const which = async (cmd, opt = {}) => {
|
|
95989
95946
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96732,7 +96689,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96732
96689
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96733
96690
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96734
96691
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96735
|
-
const { join: join$
|
|
96692
|
+
const { join: join$13, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96736
96693
|
const isWindows = process.platform === "win32";
|
|
96737
96694
|
/* istanbul ignore next */
|
|
96738
96695
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96762,7 +96719,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96762
96719
|
};
|
|
96763
96720
|
const getPathPart = (raw, cmd) => {
|
|
96764
96721
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96765
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96722
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
96766
96723
|
};
|
|
96767
96724
|
const which = async (cmd, opt = {}) => {
|
|
96768
96725
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98660,7 +98617,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98660
98617
|
//#endregion
|
|
98661
98618
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98662
98619
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98663
|
-
const { join: join$
|
|
98620
|
+
const { join: join$12, basename: basename$5 } = require("path");
|
|
98664
98621
|
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);
|
|
98665
98622
|
const normalizeString = (pkg) => {
|
|
98666
98623
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98683,9 +98640,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98683
98640
|
const clean = {};
|
|
98684
98641
|
let hasBins = false;
|
|
98685
98642
|
Object.keys(orig).forEach((binKey) => {
|
|
98686
|
-
const base = join$
|
|
98643
|
+
const base = join$12("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98687
98644
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98688
|
-
const binTarget = join$
|
|
98645
|
+
const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98689
98646
|
if (!binTarget) return;
|
|
98690
98647
|
clean[base] = binTarget;
|
|
98691
98648
|
hasBins = true;
|
|
@@ -100758,7 +100715,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100758
100715
|
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();
|
|
100759
100716
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100760
100717
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100761
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100718
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100762
100719
|
const { fileURLToPath: fileURLToPath$1 } = require("url");
|
|
100763
100720
|
const defaultOptions = {
|
|
100764
100721
|
dereference: false,
|
|
@@ -100865,7 +100822,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100865
100822
|
});
|
|
100866
100823
|
return checkParentPaths(src, srcStat, destParent);
|
|
100867
100824
|
}
|
|
100868
|
-
const normalizePathToArray = (path$
|
|
100825
|
+
const normalizePathToArray = (path$57) => resolve$10(path$57).split(sep$2).filter(Boolean);
|
|
100869
100826
|
function isSrcSubdir(src, dest) {
|
|
100870
100827
|
const srcArr = normalizePathToArray(src);
|
|
100871
100828
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100967,8 +100924,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100967
100924
|
const dir = await readdir$6(src);
|
|
100968
100925
|
for (let i = 0; i < dir.length; i++) {
|
|
100969
100926
|
const item = dir[i];
|
|
100970
|
-
const srcItem = join$
|
|
100971
|
-
const destItem = join$
|
|
100927
|
+
const srcItem = join$11(src, item);
|
|
100928
|
+
const destItem = join$11(dest, item);
|
|
100972
100929
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100973
100930
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100974
100931
|
}
|
|
@@ -101032,13 +100989,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101032
100989
|
//#endregion
|
|
101033
100990
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
101034
100991
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101035
|
-
const { join: join$
|
|
100992
|
+
const { join: join$10, sep: sep$1 } = require("path");
|
|
101036
100993
|
const getOptions = require_get_options();
|
|
101037
|
-
const { mkdir: mkdir$6, mkdtemp, rm: rm$
|
|
100994
|
+
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
101038
100995
|
const withTempDir = async (root, fn, opts) => {
|
|
101039
100996
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
101040
100997
|
await mkdir$6(root, { recursive: true });
|
|
101041
|
-
const target = await mkdtemp(join$
|
|
100998
|
+
const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
101042
100999
|
let err;
|
|
101043
101000
|
let result;
|
|
101044
101001
|
try {
|
|
@@ -101047,7 +101004,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101047
101004
|
err = _err;
|
|
101048
101005
|
}
|
|
101049
101006
|
try {
|
|
101050
|
-
await rm$
|
|
101007
|
+
await rm$8(target, {
|
|
101051
101008
|
force: true,
|
|
101052
101009
|
recursive: true
|
|
101053
101010
|
});
|
|
@@ -101061,10 +101018,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101061
101018
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101062
101019
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101063
101020
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
101064
|
-
const { join: join$
|
|
101021
|
+
const { join: join$9 } = require("path");
|
|
101065
101022
|
const readdirScoped = async (dir) => {
|
|
101066
101023
|
const results = [];
|
|
101067
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101024
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$9(dir, item))) results.push(join$9(item, scopedItem));
|
|
101068
101025
|
else results.push(item);
|
|
101069
101026
|
return results;
|
|
101070
101027
|
};
|
|
@@ -101073,11 +101030,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101073
101030
|
//#endregion
|
|
101074
101031
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101075
101032
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101076
|
-
const { dirname: dirname$8, join: join$
|
|
101033
|
+
const { dirname: dirname$8, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101077
101034
|
const fs$12 = require("fs/promises");
|
|
101078
|
-
const pathExists = async (path$
|
|
101035
|
+
const pathExists = async (path$56) => {
|
|
101079
101036
|
try {
|
|
101080
|
-
await fs$12.access(path$
|
|
101037
|
+
await fs$12.access(path$56);
|
|
101081
101038
|
return true;
|
|
101082
101039
|
} catch (er) {
|
|
101083
101040
|
return er.code !== "ENOENT";
|
|
@@ -101098,7 +101055,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101098
101055
|
const sourceStat = await fs$12.lstat(source);
|
|
101099
101056
|
if (sourceStat.isDirectory()) {
|
|
101100
101057
|
const files = await fs$12.readdir(source);
|
|
101101
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101058
|
+
await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
|
|
101102
101059
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101103
101060
|
source,
|
|
101104
101061
|
destination
|
|
@@ -101274,7 +101231,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101274
101231
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101275
101232
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101276
101233
|
const crypto$1 = require("crypto");
|
|
101277
|
-
const { appendFile, mkdir: mkdir$5, readFile: readFile$8, readdir: readdir$4, rm: rm$
|
|
101234
|
+
const { appendFile, mkdir: mkdir$5, readFile: readFile$8, readdir: readdir$4, rm: rm$7, writeFile: writeFile$3 } = require("fs/promises");
|
|
101278
101235
|
const { Minipass } = require_commonjs$10();
|
|
101279
101236
|
const path$17 = require("path");
|
|
101280
101237
|
const ssri = require_lib$17();
|
|
@@ -101315,7 +101272,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101315
101272
|
};
|
|
101316
101273
|
};
|
|
101317
101274
|
const teardown = async (tmp) => {
|
|
101318
|
-
if (!tmp.moved) return rm$
|
|
101275
|
+
if (!tmp.moved) return rm$7(tmp.target, {
|
|
101319
101276
|
recursive: true,
|
|
101320
101277
|
force: true
|
|
101321
101278
|
});
|
|
@@ -101371,7 +101328,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101371
101328
|
module.exports.delete = del;
|
|
101372
101329
|
function del(cache, key, opts = {}) {
|
|
101373
101330
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
101374
|
-
return rm$
|
|
101331
|
+
return rm$7(bucketPath(cache, key), {
|
|
101375
101332
|
recursive: true,
|
|
101376
101333
|
force: true
|
|
101377
101334
|
});
|
|
@@ -106133,7 +106090,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106133
106090
|
const { glob } = require_index_min$1();
|
|
106134
106091
|
const path$15 = require("path");
|
|
106135
106092
|
const globify = (pattern) => pattern.split(path$15.win32.sep).join(path$15.posix.sep);
|
|
106136
|
-
module.exports = (path$
|
|
106093
|
+
module.exports = (path$55, options) => glob(globify(path$55), options);
|
|
106137
106094
|
}));
|
|
106138
106095
|
//#endregion
|
|
106139
106096
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -106156,7 +106113,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106156
106113
|
//#endregion
|
|
106157
106114
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
106158
106115
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106159
|
-
const { rm: rm$
|
|
106116
|
+
const { rm: rm$6 } = require("fs/promises");
|
|
106160
106117
|
const glob = require_glob();
|
|
106161
106118
|
const index = require_entry_index();
|
|
106162
106119
|
const memo = require_memoization();
|
|
@@ -106180,7 +106137,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106180
106137
|
silent: true,
|
|
106181
106138
|
nosort: true
|
|
106182
106139
|
});
|
|
106183
|
-
return Promise.all(paths.map((p) => rm$
|
|
106140
|
+
return Promise.all(paths.map((p) => rm$6(p, {
|
|
106184
106141
|
recursive: true,
|
|
106185
106142
|
force: true
|
|
106186
106143
|
})));
|
|
@@ -106189,7 +106146,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106189
106146
|
//#endregion
|
|
106190
106147
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
106191
106148
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106192
|
-
const { mkdir: mkdir$4, readFile: readFile$7, rm: rm$
|
|
106149
|
+
const { mkdir: mkdir$4, readFile: readFile$7, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$2 } = require("fs/promises");
|
|
106193
106150
|
const contentPath = require_path();
|
|
106194
106151
|
const fsm = require_lib$15();
|
|
106195
106152
|
const glob = require_glob();
|
|
@@ -106286,7 +106243,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106286
106243
|
} else {
|
|
106287
106244
|
stats.reclaimedCount++;
|
|
106288
106245
|
const s = await stat$4(f);
|
|
106289
|
-
await rm$
|
|
106246
|
+
await rm$5(f, {
|
|
106290
106247
|
recursive: true,
|
|
106291
106248
|
force: true
|
|
106292
106249
|
});
|
|
@@ -106309,7 +106266,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106309
106266
|
valid: false
|
|
106310
106267
|
};
|
|
106311
106268
|
if (err.code !== "EINTEGRITY") throw err;
|
|
106312
|
-
await rm$
|
|
106269
|
+
await rm$5(filepath, {
|
|
106313
106270
|
recursive: true,
|
|
106314
106271
|
force: true
|
|
106315
106272
|
});
|
|
@@ -106370,7 +106327,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106370
106327
|
}
|
|
106371
106328
|
function cleanTmp(cache, opts) {
|
|
106372
106329
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
106373
|
-
return rm$
|
|
106330
|
+
return rm$5(path$13.join(cache, "tmp"), {
|
|
106374
106331
|
recursive: true,
|
|
106375
106332
|
force: true
|
|
106376
106333
|
});
|
|
@@ -106931,14 +106888,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106931
106888
|
const { readFile: readFile$6, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106932
106889
|
const { resolve: resolve$8, basename: basename$4, dirname: dirname$7 } = require("path");
|
|
106933
106890
|
const normalizePackageBin = require_lib$21();
|
|
106934
|
-
const readPackage = ({ path: path$
|
|
106891
|
+
const readPackage = ({ path: path$51, packageJsonCache }) => packageJsonCache.has(path$51) ? Promise.resolve(packageJsonCache.get(path$51)) : readFile$6(path$51).then((json) => {
|
|
106935
106892
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
106936
|
-
packageJsonCache.set(path$
|
|
106893
|
+
packageJsonCache.set(path$51, pkg);
|
|
106937
106894
|
return pkg;
|
|
106938
106895
|
}).catch(() => null);
|
|
106939
106896
|
const normalized = Symbol("package data has been normalized");
|
|
106940
|
-
const rpj = ({ path: path$
|
|
106941
|
-
path: path$
|
|
106897
|
+
const rpj = ({ path: path$52, packageJsonCache }) => readPackage({
|
|
106898
|
+
path: path$52,
|
|
106942
106899
|
packageJsonCache
|
|
106943
106900
|
}).then((pkg) => {
|
|
106944
106901
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -106952,14 +106909,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106952
106909
|
pkg[normalized] = true;
|
|
106953
106910
|
return pkg;
|
|
106954
106911
|
});
|
|
106955
|
-
const pkgContents = async ({ path: path$
|
|
106912
|
+
const pkgContents = async ({ path: path$53, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
106956
106913
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
106957
106914
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
106958
106915
|
if (pkg === true) return rpj({
|
|
106959
|
-
path: path$
|
|
106916
|
+
path: path$53 + "/package.json",
|
|
106960
106917
|
packageJsonCache
|
|
106961
106918
|
}).then((p) => pkgContents({
|
|
106962
|
-
path: path$
|
|
106919
|
+
path: path$53,
|
|
106963
106920
|
depth,
|
|
106964
106921
|
currentDepth,
|
|
106965
106922
|
pkg: p,
|
|
@@ -106968,7 +106925,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106968
106925
|
}));
|
|
106969
106926
|
if (pkg) {
|
|
106970
106927
|
if (pkg.bin) {
|
|
106971
|
-
const dir = dirname$7(path$
|
|
106928
|
+
const dir = dirname$7(path$53);
|
|
106972
106929
|
const scope = basename$4(dir);
|
|
106973
106930
|
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106974
106931
|
const binFiles = [];
|
|
@@ -106980,21 +106937,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106980
106937
|
}
|
|
106981
106938
|
}
|
|
106982
106939
|
if (currentDepth >= depth) {
|
|
106983
|
-
result.add(path$
|
|
106940
|
+
result.add(path$53);
|
|
106984
106941
|
return result;
|
|
106985
106942
|
}
|
|
106986
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$
|
|
106987
|
-
path: path$
|
|
106943
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$53, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106944
|
+
path: path$53,
|
|
106988
106945
|
packageJsonCache
|
|
106989
106946
|
}) : null]).catch(() => []);
|
|
106990
106947
|
if (!dirEntries) return result;
|
|
106991
106948
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
106992
|
-
result.add(path$
|
|
106949
|
+
result.add(path$53);
|
|
106993
106950
|
return result;
|
|
106994
106951
|
}
|
|
106995
106952
|
const recursePromises = [];
|
|
106996
106953
|
for (const entry of dirEntries) {
|
|
106997
|
-
const p = resolve$8(path$
|
|
106954
|
+
const p = resolve$8(path$53, entry.name);
|
|
106998
106955
|
if (entry.isDirectory() === false) {
|
|
106999
106956
|
result.add(p);
|
|
107000
106957
|
continue;
|
|
@@ -107013,7 +106970,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
107013
106970
|
}
|
|
107014
106971
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
107015
106972
|
return pkgContents({
|
|
107016
|
-
path: resolve$8(path$
|
|
106973
|
+
path: resolve$8(path$53, "node_modules", dep),
|
|
107017
106974
|
packageJsonCache,
|
|
107018
106975
|
pkg: true,
|
|
107019
106976
|
depth,
|
|
@@ -107024,8 +106981,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
107024
106981
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
107025
106982
|
return result;
|
|
107026
106983
|
};
|
|
107027
|
-
module.exports = ({ path: path$
|
|
107028
|
-
path: resolve$8(path$
|
|
106984
|
+
module.exports = ({ path: path$54, ...opts }) => pkgContents({
|
|
106985
|
+
path: resolve$8(path$54),
|
|
107029
106986
|
...opts,
|
|
107030
106987
|
pkg: true
|
|
107031
106988
|
}).then((results) => [...results]);
|
|
@@ -112461,7 +112418,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112461
112418
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112462
112419
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112463
112420
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112464
|
-
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$
|
|
112421
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
|
|
112465
112422
|
const { log } = require_lib$29();
|
|
112466
112423
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112467
112424
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112491,10 +112448,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112491
112448
|
"/archived-packages/**"
|
|
112492
112449
|
];
|
|
112493
112450
|
const strictDefaults = ["/.git"];
|
|
112494
|
-
const normalizePath = (path$
|
|
112451
|
+
const normalizePath = (path$48) => path$48.split("\\").join("/");
|
|
112495
112452
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112496
112453
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112497
|
-
const ignoreContent = readFile$5(join$
|
|
112454
|
+
const ignoreContent = readFile$5(join$7(root, file), { encoding: "utf8" });
|
|
112498
112455
|
result.push(ignoreContent);
|
|
112499
112456
|
break;
|
|
112500
112457
|
} catch (err) {
|
|
@@ -112503,8 +112460,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112503
112460
|
}
|
|
112504
112461
|
if (!rel) return result;
|
|
112505
112462
|
const firstRel = rel.split(sep, 1)[0];
|
|
112506
|
-
const newRoot = join$
|
|
112507
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112463
|
+
const newRoot = join$7(root, firstRel);
|
|
112464
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
|
|
112508
112465
|
};
|
|
112509
112466
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112510
112467
|
constructor(tree, opts) {
|
|
@@ -112528,14 +112485,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112528
112485
|
this.requiredFiles = options.requiredFiles || [];
|
|
112529
112486
|
const additionalDefaults = [];
|
|
112530
112487
|
if (options.prefix && options.workspaces) {
|
|
112531
|
-
const path$
|
|
112488
|
+
const path$49 = normalizePath(options.path);
|
|
112532
112489
|
const prefix = normalizePath(options.prefix);
|
|
112533
112490
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112534
112491
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112535
|
-
if (path$
|
|
112492
|
+
if (path$49 !== prefix && workspaces.includes(path$49)) {
|
|
112536
112493
|
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112537
112494
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112538
|
-
} else if (path$
|
|
112495
|
+
} else if (path$49 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112539
112496
|
}
|
|
112540
112497
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
112541
112498
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -112571,7 +112528,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112571
112528
|
let ignoreFiles = null;
|
|
112572
112529
|
if (this.tree.workspaces) {
|
|
112573
112530
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112574
|
-
const entryPath = join$
|
|
112531
|
+
const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
|
|
112575
112532
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112576
112533
|
defaultRules,
|
|
112577
112534
|
"package.json",
|
|
@@ -112631,7 +112588,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112631
112588
|
if (file.endsWith("/*")) file += "*";
|
|
112632
112589
|
const inverse = `!${file}`;
|
|
112633
112590
|
try {
|
|
112634
|
-
const stat = lstat$1(join$
|
|
112591
|
+
const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112635
112592
|
if (stat.isFile()) {
|
|
112636
112593
|
strict.unshift(inverse);
|
|
112637
112594
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112666,10 +112623,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112666
112623
|
if (!edge || edge.peer || edge.dev) continue;
|
|
112667
112624
|
const node = this.tree.edgesOut.get(dep).to;
|
|
112668
112625
|
if (!node) continue;
|
|
112669
|
-
const path$
|
|
112626
|
+
const path$50 = node.path;
|
|
112670
112627
|
const tree = node.target;
|
|
112671
112628
|
const walkerOpts = {
|
|
112672
|
-
path: path$
|
|
112629
|
+
path: path$50,
|
|
112673
112630
|
isPackage: true,
|
|
112674
112631
|
ignoreFiles: [],
|
|
112675
112632
|
seen: this.seen
|
|
@@ -112688,7 +112645,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112688
112645
|
walker.start();
|
|
112689
112646
|
});
|
|
112690
112647
|
const relativeFrom = relative(this.root, walker.path);
|
|
112691
|
-
for (const file of bundled) this.result.add(join$
|
|
112648
|
+
for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
|
|
112692
112649
|
}
|
|
112693
112650
|
}
|
|
112694
112651
|
};
|
|
@@ -112746,7 +112703,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112746
112703
|
const { resolve: resolve$4 } = require("path");
|
|
112747
112704
|
let npm_config_node_gyp;
|
|
112748
112705
|
const makeSpawnArgs = (options) => {
|
|
112749
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
112706
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$47, scriptShell = true, stdio, stdioString } = options;
|
|
112750
112707
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
112751
112708
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
112752
112709
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -112754,17 +112711,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112754
112711
|
cmd,
|
|
112755
112712
|
args,
|
|
112756
112713
|
{
|
|
112757
|
-
env: setPATH(path$
|
|
112714
|
+
env: setPATH(path$47, binPaths, {
|
|
112758
112715
|
...process.env,
|
|
112759
112716
|
...env,
|
|
112760
|
-
npm_package_json: resolve$4(path$
|
|
112717
|
+
npm_package_json: resolve$4(path$47, "package.json"),
|
|
112761
112718
|
npm_lifecycle_event: event,
|
|
112762
112719
|
npm_lifecycle_script: cmd,
|
|
112763
112720
|
npm_config_node_gyp
|
|
112764
112721
|
}),
|
|
112765
112722
|
stdioString,
|
|
112766
112723
|
stdio,
|
|
112767
|
-
cwd: path$
|
|
112724
|
+
cwd: path$47,
|
|
112768
112725
|
shell: scriptShell
|
|
112769
112726
|
}
|
|
112770
112727
|
];
|
|
@@ -142082,7 +142039,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142082
142039
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142083
142040
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142084
142041
|
const { basename: basename$2, dirname: dirname$4 } = require("node:path");
|
|
142085
|
-
const { rm: rm$
|
|
142042
|
+
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
142086
142043
|
const PackageJson = require_lib$18();
|
|
142087
142044
|
const cacache = require_lib$14();
|
|
142088
142045
|
const fsm = require_lib$13();
|
|
@@ -142259,7 +142216,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142259
142216
|
return getContents({
|
|
142260
142217
|
path,
|
|
142261
142218
|
depth: 1
|
|
142262
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
142219
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
|
|
142263
142220
|
recursive: true,
|
|
142264
142221
|
force: true
|
|
142265
142222
|
}))));
|
|
@@ -150056,9 +150013,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
150056
150013
|
* @param {string} path
|
|
150057
150014
|
* @return {boolean|string}
|
|
150058
150015
|
*/
|
|
150059
|
-
function lookup(path$
|
|
150060
|
-
if (!path$
|
|
150061
|
-
var extension = extname("x." + path$
|
|
150016
|
+
function lookup(path$46) {
|
|
150017
|
+
if (!path$46 || typeof path$46 !== "string") return false;
|
|
150018
|
+
var extension = extname("x." + path$46).toLowerCase().substr(1);
|
|
150062
150019
|
if (!extension) return false;
|
|
150063
150020
|
return exports.types[extension] || false;
|
|
150064
150021
|
}
|
|
@@ -151262,7 +151219,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151262
151219
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151263
151220
|
} else throw new Error(`Offline and no local fallback version available for ${packageName}`);
|
|
151264
151221
|
} else try {
|
|
151265
|
-
const cachePath =
|
|
151222
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151266
151223
|
let packumentPromise = packumentRequests.get(packageName);
|
|
151267
151224
|
if (!packumentPromise) {
|
|
151268
151225
|
packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
|
|
@@ -151293,7 +151250,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151293
151250
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151294
151251
|
} else throw error;
|
|
151295
151252
|
}
|
|
151296
|
-
const cachePath =
|
|
151253
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151297
151254
|
const packageDir = (0, node_path.join)(baseDir, resolvedVersion);
|
|
151298
151255
|
const checkStart = Date.now();
|
|
151299
151256
|
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
@@ -151370,7 +151327,7 @@ async function runPnpm(cwd, options) {
|
|
|
151370
151327
|
...process.env,
|
|
151371
151328
|
NODE_ENV: "production",
|
|
151372
151329
|
PATH: nodePath ? `${(0, node_path.dirname)(nodePath)}${node_path.delimiter}${process.env.PATH}` : process.env.PATH,
|
|
151373
|
-
PNPM_HOME:
|
|
151330
|
+
PNPM_HOME: ctx.getPnpmPath(),
|
|
151374
151331
|
PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
|
|
151375
151332
|
...extraEnv
|
|
151376
151333
|
}
|
|
@@ -151605,7 +151562,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151605
151562
|
}
|
|
151606
151563
|
//#endregion
|
|
151607
151564
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151608
|
-
const { join: join$
|
|
151565
|
+
const { join: join$5 } = node_path.default;
|
|
151609
151566
|
//#endregion
|
|
151610
151567
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151611
151568
|
const localPluginsMap = /* @__PURE__ */ new Map();
|