@pipelab/plugin-construct 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 +459 -502
- package/dist/index.mjs +51 -94
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2104,7 +2104,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2104
2104
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2105
2105
|
locale: "en-US",
|
|
2106
2106
|
theme: "light",
|
|
2107
|
-
version: "
|
|
2107
|
+
version: "7.0.0",
|
|
2108
2108
|
autosave: true,
|
|
2109
2109
|
agents: [],
|
|
2110
2110
|
tours: {
|
|
@@ -2117,11 +2117,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2117
2117
|
completed: false
|
|
2118
2118
|
}
|
|
2119
2119
|
},
|
|
2120
|
-
buildHistory: { retentionPolicy: {
|
|
2121
|
-
enabled: false,
|
|
2122
|
-
maxEntries: 50,
|
|
2123
|
-
maxAge: 30
|
|
2124
|
-
} },
|
|
2125
2120
|
plugins: DEFAULT_PLUGINS,
|
|
2126
2121
|
isInternalMigrationBannerClosed: false
|
|
2127
2122
|
});
|
|
@@ -2178,18 +2173,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2178
2173
|
return {
|
|
2179
2174
|
...rest,
|
|
2180
2175
|
agents: [],
|
|
2181
|
-
buildHistory: { retentionPolicy: {
|
|
2182
|
-
enabled: false,
|
|
2183
|
-
maxEntries: 50,
|
|
2184
|
-
maxAge: 30
|
|
2185
|
-
} },
|
|
2186
2176
|
plugins: DEFAULT_PLUGINS,
|
|
2187
2177
|
isInternalMigrationBannerClosed: false
|
|
2188
2178
|
};
|
|
2189
2179
|
}
|
|
2190
2180
|
}),
|
|
2191
2181
|
createMigration({
|
|
2192
|
-
version: "
|
|
2182
|
+
version: "7.0.0",
|
|
2193
2183
|
up: finalVersion
|
|
2194
2184
|
})
|
|
2195
2185
|
]
|
|
@@ -2208,7 +2198,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2208
2198
|
});
|
|
2209
2199
|
const fileRepoMigratorInternal = createMigrator();
|
|
2210
2200
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2211
|
-
version: "
|
|
2201
|
+
version: "3.0.0",
|
|
2212
2202
|
projects: [{
|
|
2213
2203
|
id: "main",
|
|
2214
2204
|
name: "Default project",
|
|
@@ -2218,30 +2208,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2218
2208
|
});
|
|
2219
2209
|
fileRepoMigratorInternal.createMigrations({
|
|
2220
2210
|
defaultValue: defaultFileRepo,
|
|
2221
|
-
migrations: [
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2211
|
+
migrations: [
|
|
2212
|
+
createMigration({
|
|
2213
|
+
version: "1.0.0",
|
|
2214
|
+
up: (state) => {
|
|
2215
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2216
|
+
return {
|
|
2217
|
+
...file,
|
|
2218
|
+
id,
|
|
2219
|
+
project: "main"
|
|
2220
|
+
};
|
|
2221
|
+
});
|
|
2225
2222
|
return {
|
|
2226
|
-
...
|
|
2227
|
-
|
|
2228
|
-
|
|
2223
|
+
...state,
|
|
2224
|
+
projects: [{
|
|
2225
|
+
id: "main",
|
|
2226
|
+
name: "Default project",
|
|
2227
|
+
description: "The initial default project"
|
|
2228
|
+
}],
|
|
2229
|
+
pipelines
|
|
2229
2230
|
};
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
up: finalVersion
|
|
2244
|
-
})]
|
|
2231
|
+
}
|
|
2232
|
+
}),
|
|
2233
|
+
createMigration({
|
|
2234
|
+
version: "2.0.0",
|
|
2235
|
+
up: (state) => {
|
|
2236
|
+
return { ...state };
|
|
2237
|
+
}
|
|
2238
|
+
}),
|
|
2239
|
+
createMigration({
|
|
2240
|
+
version: "3.0.0",
|
|
2241
|
+
up: finalVersion
|
|
2242
|
+
})
|
|
2243
|
+
]
|
|
2245
2244
|
});
|
|
2246
2245
|
const savedFileMigratorInternal = createMigrator();
|
|
2247
2246
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2402,14 +2401,19 @@ object({
|
|
|
2402
2401
|
version: literal("1.0.0"),
|
|
2403
2402
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2404
2403
|
});
|
|
2405
|
-
const FileRepoProjectValidatorV2
|
|
2404
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2406
2405
|
id: string(),
|
|
2407
2406
|
name: string(),
|
|
2408
2407
|
description: string()
|
|
2409
2408
|
});
|
|
2410
2409
|
object({
|
|
2411
2410
|
version: literal("2.0.0"),
|
|
2412
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2411
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2412
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2413
|
+
});
|
|
2414
|
+
object({
|
|
2415
|
+
version: literal("3.0.0"),
|
|
2416
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2413
2417
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2414
2418
|
});
|
|
2415
2419
|
object({
|
|
@@ -2518,44 +2522,6 @@ object({
|
|
|
2518
2522
|
name: string(),
|
|
2519
2523
|
url: string()
|
|
2520
2524
|
})),
|
|
2521
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2522
|
-
enabled: boolean(),
|
|
2523
|
-
maxEntries: number(),
|
|
2524
|
-
maxAge: number()
|
|
2525
|
-
}) })
|
|
2526
|
-
});
|
|
2527
|
-
object({
|
|
2528
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2529
|
-
version: literal("8.0.0"),
|
|
2530
|
-
locale: union([
|
|
2531
|
-
literal("en-US"),
|
|
2532
|
-
literal("fr-FR"),
|
|
2533
|
-
literal("pt-BR"),
|
|
2534
|
-
literal("zh-CN"),
|
|
2535
|
-
literal("es-ES"),
|
|
2536
|
-
literal("de-DE")
|
|
2537
|
-
]),
|
|
2538
|
-
tours: object({
|
|
2539
|
-
dashboard: object({
|
|
2540
|
-
step: number(),
|
|
2541
|
-
completed: boolean()
|
|
2542
|
-
}),
|
|
2543
|
-
editor: object({
|
|
2544
|
-
step: number(),
|
|
2545
|
-
completed: boolean()
|
|
2546
|
-
})
|
|
2547
|
-
}),
|
|
2548
|
-
autosave: boolean(),
|
|
2549
|
-
agents: array(object({
|
|
2550
|
-
id: string(),
|
|
2551
|
-
name: string(),
|
|
2552
|
-
url: string()
|
|
2553
|
-
})),
|
|
2554
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2555
|
-
enabled: boolean(),
|
|
2556
|
-
maxEntries: number(),
|
|
2557
|
-
maxAge: number()
|
|
2558
|
-
}) }),
|
|
2559
2525
|
plugins: array(object({
|
|
2560
2526
|
name: string(),
|
|
2561
2527
|
enabled: boolean(),
|
|
@@ -45442,20 +45408,6 @@ var WebSocketError = class extends Error {
|
|
|
45442
45408
|
const isWebSocketRequestMessage = (message) => {
|
|
45443
45409
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45444
45410
|
};
|
|
45445
|
-
object({
|
|
45446
|
-
version: literal("1.0.0"),
|
|
45447
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45448
|
-
});
|
|
45449
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45450
|
-
id: string(),
|
|
45451
|
-
name: string(),
|
|
45452
|
-
description: string()
|
|
45453
|
-
});
|
|
45454
|
-
object({
|
|
45455
|
-
version: literal("2.0.0"),
|
|
45456
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45457
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45458
|
-
});
|
|
45459
45411
|
//#endregion
|
|
45460
45412
|
//#region ../../packages/constants/src/index.ts
|
|
45461
45413
|
const websocketPort = 33753;
|
|
@@ -45478,6 +45430,11 @@ function findProjectRoot(startDir) {
|
|
|
45478
45430
|
return null;
|
|
45479
45431
|
}
|
|
45480
45432
|
const projectRoot = findProjectRoot(_dirname);
|
|
45433
|
+
const CacheFolder = {
|
|
45434
|
+
Actions: "actions",
|
|
45435
|
+
Pipelines: "pipelines",
|
|
45436
|
+
Pacote: "pacote"
|
|
45437
|
+
};
|
|
45481
45438
|
//#endregion
|
|
45482
45439
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45483
45440
|
var require_constants$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -49997,7 +49954,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49997
49954
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49998
49955
|
module.exports = isexe;
|
|
49999
49956
|
isexe.sync = sync;
|
|
50000
|
-
var fs$
|
|
49957
|
+
var fs$37 = require("fs");
|
|
50001
49958
|
function checkPathExt(path, options) {
|
|
50002
49959
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
50003
49960
|
if (!pathext) return true;
|
|
@@ -50014,12 +49971,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50014
49971
|
return checkPathExt(path, options);
|
|
50015
49972
|
}
|
|
50016
49973
|
function isexe(path, options, cb) {
|
|
50017
|
-
fs$
|
|
49974
|
+
fs$37.stat(path, function(er, stat) {
|
|
50018
49975
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
50019
49976
|
});
|
|
50020
49977
|
}
|
|
50021
49978
|
function sync(path, options) {
|
|
50022
|
-
return checkStat(fs$
|
|
49979
|
+
return checkStat(fs$37.statSync(path), path, options);
|
|
50023
49980
|
}
|
|
50024
49981
|
}));
|
|
50025
49982
|
//#endregion
|
|
@@ -50027,14 +49984,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50027
49984
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50028
49985
|
module.exports = isexe;
|
|
50029
49986
|
isexe.sync = sync;
|
|
50030
|
-
var fs$
|
|
49987
|
+
var fs$36 = require("fs");
|
|
50031
49988
|
function isexe(path, options, cb) {
|
|
50032
|
-
fs$
|
|
49989
|
+
fs$36.stat(path, function(er, stat) {
|
|
50033
49990
|
cb(er, er ? false : checkStat(stat, options));
|
|
50034
49991
|
});
|
|
50035
49992
|
}
|
|
50036
49993
|
function sync(path, options) {
|
|
50037
|
-
return checkStat(fs$
|
|
49994
|
+
return checkStat(fs$36.statSync(path), options);
|
|
50038
49995
|
}
|
|
50039
49996
|
function checkStat(stat, options) {
|
|
50040
49997
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50098,7 +50055,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
50098
50055
|
//#region ../../node_modules/which/which.js
|
|
50099
50056
|
var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50100
50057
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50101
|
-
const path$
|
|
50058
|
+
const path$42 = require("path");
|
|
50102
50059
|
const COLON = isWindows ? ";" : ":";
|
|
50103
50060
|
const isexe = require_isexe();
|
|
50104
50061
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -50128,7 +50085,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50128
50085
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50129
50086
|
const ppRaw = pathEnv[i];
|
|
50130
50087
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50131
|
-
const pCmd = path$
|
|
50088
|
+
const pCmd = path$42.join(pathPart, cmd);
|
|
50132
50089
|
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
50133
50090
|
});
|
|
50134
50091
|
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
@@ -50149,7 +50106,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50149
50106
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
50150
50107
|
const ppRaw = pathEnv[i];
|
|
50151
50108
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50152
|
-
const pCmd = path$
|
|
50109
|
+
const pCmd = path$42.join(pathPart, cmd);
|
|
50153
50110
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50154
50111
|
for (let j = 0; j < pathExt.length; j++) {
|
|
50155
50112
|
const cur = p + pathExt[j];
|
|
@@ -50180,7 +50137,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
50180
50137
|
//#endregion
|
|
50181
50138
|
//#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50182
50139
|
var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50183
|
-
const path$
|
|
50140
|
+
const path$41 = require("path");
|
|
50184
50141
|
const which = require_which$1();
|
|
50185
50142
|
const getPathKey = require_path_key();
|
|
50186
50143
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -50195,12 +50152,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
50195
50152
|
try {
|
|
50196
50153
|
resolved = which.sync(parsed.command, {
|
|
50197
50154
|
path: env[getPathKey({ env })],
|
|
50198
|
-
pathExt: withoutPathExt ? path$
|
|
50155
|
+
pathExt: withoutPathExt ? path$41.delimiter : void 0
|
|
50199
50156
|
});
|
|
50200
50157
|
} catch (e) {} finally {
|
|
50201
50158
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
50202
50159
|
}
|
|
50203
|
-
if (resolved) resolved = path$
|
|
50160
|
+
if (resolved) resolved = path$41.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50204
50161
|
return resolved;
|
|
50205
50162
|
}
|
|
50206
50163
|
function resolveCommand(parsed) {
|
|
@@ -50249,16 +50206,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50249
50206
|
//#endregion
|
|
50250
50207
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50251
50208
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50252
|
-
const fs$
|
|
50209
|
+
const fs$35 = require("fs");
|
|
50253
50210
|
const shebangCommand = require_shebang_command();
|
|
50254
50211
|
function readShebang(command) {
|
|
50255
50212
|
const size = 150;
|
|
50256
50213
|
const buffer = Buffer.alloc(size);
|
|
50257
50214
|
let fd;
|
|
50258
50215
|
try {
|
|
50259
|
-
fd = fs$
|
|
50260
|
-
fs$
|
|
50261
|
-
fs$
|
|
50216
|
+
fd = fs$35.openSync(command, "r");
|
|
50217
|
+
fs$35.readSync(fd, buffer, 0, size, 0);
|
|
50218
|
+
fs$35.closeSync(fd);
|
|
50262
50219
|
} catch (e) {}
|
|
50263
50220
|
return shebangCommand(buffer.toString());
|
|
50264
50221
|
}
|
|
@@ -50267,7 +50224,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
50267
50224
|
//#endregion
|
|
50268
50225
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50269
50226
|
var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50270
|
-
const path$
|
|
50227
|
+
const path$40 = require("path");
|
|
50271
50228
|
const resolveCommand = require_resolveCommand();
|
|
50272
50229
|
const escape = require_escape$4();
|
|
50273
50230
|
const readShebang = require_readShebang();
|
|
@@ -50290,7 +50247,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50290
50247
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50291
50248
|
if (parsed.options.forceShell || needsShell) {
|
|
50292
50249
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50293
|
-
parsed.command = path$
|
|
50250
|
+
parsed.command = path$40.normalize(parsed.command);
|
|
50294
50251
|
parsed.command = escape.command(parsed.command);
|
|
50295
50252
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50296
50253
|
parsed.args = [
|
|
@@ -56946,10 +56903,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56946
56903
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
56947
56904
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
56948
56905
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
56949
|
-
const path$
|
|
56906
|
+
const path$93 = split[0];
|
|
56950
56907
|
const prefix = split[1];
|
|
56951
56908
|
this.needPax = split[2];
|
|
56952
|
-
this.needPax = encString(buf, off, 100, path$
|
|
56909
|
+
this.needPax = encString(buf, off, 100, path$93) || this.needPax;
|
|
56953
56910
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
56954
56911
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
56955
56912
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -57052,7 +57009,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57052
57009
|
//#region ../../node_modules/tar/lib/pax.js
|
|
57053
57010
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57054
57011
|
const Header = require_header();
|
|
57055
|
-
const path$
|
|
57012
|
+
const path$34 = require("path");
|
|
57056
57013
|
var Pax = class {
|
|
57057
57014
|
constructor(obj, global) {
|
|
57058
57015
|
this.atime = obj.atime || null;
|
|
@@ -57080,7 +57037,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
57080
57037
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
57081
57038
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
57082
57039
|
new Header({
|
|
57083
|
-
path: ("PaxHeader/" + path$
|
|
57040
|
+
path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
|
|
57084
57041
|
mode: this.mode || 420,
|
|
57085
57042
|
uid: this.uid || null,
|
|
57086
57043
|
gid: this.gid || null,
|
|
@@ -57183,16 +57140,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
57183
57140
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
57184
57141
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57185
57142
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
57186
|
-
module.exports = (path$
|
|
57143
|
+
module.exports = (path$92) => {
|
|
57187
57144
|
let r = "";
|
|
57188
|
-
let parsed = parse$3(path$
|
|
57189
|
-
while (isAbsolute$3(path$
|
|
57190
|
-
const root = path$
|
|
57191
|
-
path$
|
|
57145
|
+
let parsed = parse$3(path$92);
|
|
57146
|
+
while (isAbsolute$3(path$92) || parsed.root) {
|
|
57147
|
+
const root = path$92.charAt(0) === "/" && path$92.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
57148
|
+
path$92 = path$92.slice(root.length);
|
|
57192
57149
|
r += root;
|
|
57193
|
-
parsed = parse$3(path$
|
|
57150
|
+
parsed = parse$3(path$92);
|
|
57194
57151
|
}
|
|
57195
|
-
return [r, path$
|
|
57152
|
+
return [r, path$92];
|
|
57196
57153
|
};
|
|
57197
57154
|
}));
|
|
57198
57155
|
//#endregion
|
|
@@ -57215,14 +57172,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57215
57172
|
const { Minipass } = require_minipass$4();
|
|
57216
57173
|
const Pax = require_pax();
|
|
57217
57174
|
const Header = require_header();
|
|
57218
|
-
const fs$
|
|
57219
|
-
const path$
|
|
57175
|
+
const fs$34 = require("fs");
|
|
57176
|
+
const path$33 = require("path");
|
|
57220
57177
|
const normPath = require_normalize_windows_path();
|
|
57221
57178
|
const stripSlash = require_strip_trailing_slashes();
|
|
57222
|
-
const prefixPath = (path$
|
|
57223
|
-
if (!prefix) return normPath(path$
|
|
57224
|
-
path$
|
|
57225
|
-
return stripSlash(prefix) + "/" + path$
|
|
57179
|
+
const prefixPath = (path$89, prefix) => {
|
|
57180
|
+
if (!prefix) return normPath(path$89);
|
|
57181
|
+
path$89 = normPath(path$89).replace(/^\.(\/|$)/, "");
|
|
57182
|
+
return stripSlash(prefix) + "/" + path$89;
|
|
57226
57183
|
};
|
|
57227
57184
|
const maxReadSize = 16 * 1024 * 1024;
|
|
57228
57185
|
const PROCESS = Symbol("process");
|
|
@@ -57289,7 +57246,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57289
57246
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
57290
57247
|
p = p.replace(/\\/g, "/");
|
|
57291
57248
|
}
|
|
57292
|
-
this.absolute = normPath(opt.absolute || path$
|
|
57249
|
+
this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
|
|
57293
57250
|
if (this.path === "") this.path = "./";
|
|
57294
57251
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
57295
57252
|
entry: this,
|
|
@@ -57303,7 +57260,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57303
57260
|
return super.emit(ev, ...data);
|
|
57304
57261
|
}
|
|
57305
57262
|
[LSTAT]() {
|
|
57306
|
-
fs$
|
|
57263
|
+
fs$34.lstat(this.absolute, (er, stat) => {
|
|
57307
57264
|
if (er) return this.emit("error", er);
|
|
57308
57265
|
this[ONLSTAT](stat);
|
|
57309
57266
|
});
|
|
@@ -57327,8 +57284,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57327
57284
|
[MODE](mode) {
|
|
57328
57285
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
57329
57286
|
}
|
|
57330
|
-
[PREFIX](path$
|
|
57331
|
-
return prefixPath(path$
|
|
57287
|
+
[PREFIX](path$90) {
|
|
57288
|
+
return prefixPath(path$90, this.prefix);
|
|
57332
57289
|
}
|
|
57333
57290
|
[HEADER]() {
|
|
57334
57291
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -57368,7 +57325,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57368
57325
|
this.end();
|
|
57369
57326
|
}
|
|
57370
57327
|
[SYMLINK]() {
|
|
57371
|
-
fs$
|
|
57328
|
+
fs$34.readlink(this.absolute, (er, linkpath) => {
|
|
57372
57329
|
if (er) return this.emit("error", er);
|
|
57373
57330
|
this[ONREADLINK](linkpath);
|
|
57374
57331
|
});
|
|
@@ -57380,7 +57337,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57380
57337
|
}
|
|
57381
57338
|
[HARDLINK](linkpath) {
|
|
57382
57339
|
this.type = "Link";
|
|
57383
|
-
this.linkpath = normPath(path$
|
|
57340
|
+
this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
|
|
57384
57341
|
this.stat.size = 0;
|
|
57385
57342
|
this[HEADER]();
|
|
57386
57343
|
this.end();
|
|
@@ -57399,7 +57356,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57399
57356
|
this[OPENFILE]();
|
|
57400
57357
|
}
|
|
57401
57358
|
[OPENFILE]() {
|
|
57402
|
-
fs$
|
|
57359
|
+
fs$34.open(this.absolute, "r", (er, fd) => {
|
|
57403
57360
|
if (er) return this.emit("error", er);
|
|
57404
57361
|
this[ONOPENFILE](fd);
|
|
57405
57362
|
});
|
|
@@ -57419,13 +57376,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57419
57376
|
}
|
|
57420
57377
|
[READ]() {
|
|
57421
57378
|
const { fd, buf, offset, length, pos } = this;
|
|
57422
|
-
fs$
|
|
57379
|
+
fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57423
57380
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57424
57381
|
this[ONREAD](bytesRead);
|
|
57425
57382
|
});
|
|
57426
57383
|
}
|
|
57427
57384
|
[CLOSE](cb) {
|
|
57428
|
-
fs$
|
|
57385
|
+
fs$34.close(this.fd, cb);
|
|
57429
57386
|
}
|
|
57430
57387
|
[ONREAD](bytesRead) {
|
|
57431
57388
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57481,19 +57438,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57481
57438
|
});
|
|
57482
57439
|
var WriteEntrySync = class extends WriteEntry {
|
|
57483
57440
|
[LSTAT]() {
|
|
57484
|
-
this[ONLSTAT](fs$
|
|
57441
|
+
this[ONLSTAT](fs$34.lstatSync(this.absolute));
|
|
57485
57442
|
}
|
|
57486
57443
|
[SYMLINK]() {
|
|
57487
|
-
this[ONREADLINK](fs$
|
|
57444
|
+
this[ONREADLINK](fs$34.readlinkSync(this.absolute));
|
|
57488
57445
|
}
|
|
57489
57446
|
[OPENFILE]() {
|
|
57490
|
-
this[ONOPENFILE](fs$
|
|
57447
|
+
this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
|
|
57491
57448
|
}
|
|
57492
57449
|
[READ]() {
|
|
57493
57450
|
let threw = true;
|
|
57494
57451
|
try {
|
|
57495
57452
|
const { fd, buf, offset, length, pos } = this;
|
|
57496
|
-
const bytesRead = fs$
|
|
57453
|
+
const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
|
|
57497
57454
|
this[ONREAD](bytesRead);
|
|
57498
57455
|
threw = false;
|
|
57499
57456
|
} finally {
|
|
@@ -57506,7 +57463,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57506
57463
|
cb();
|
|
57507
57464
|
}
|
|
57508
57465
|
[CLOSE](cb) {
|
|
57509
|
-
fs$
|
|
57466
|
+
fs$34.closeSync(this.fd);
|
|
57510
57467
|
cb();
|
|
57511
57468
|
}
|
|
57512
57469
|
};
|
|
@@ -57579,8 +57536,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57579
57536
|
super.write(this.header.block);
|
|
57580
57537
|
readEntry.pipe(this);
|
|
57581
57538
|
}
|
|
57582
|
-
[PREFIX](path$
|
|
57583
|
-
return prefixPath(path$
|
|
57539
|
+
[PREFIX](path$91) {
|
|
57540
|
+
return prefixPath(path$91, this.prefix);
|
|
57584
57541
|
}
|
|
57585
57542
|
[MODE](mode) {
|
|
57586
57543
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -57864,8 +57821,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
57864
57821
|
//#region ../../node_modules/tar/lib/pack.js
|
|
57865
57822
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57866
57823
|
var PackJob = class {
|
|
57867
|
-
constructor(path$
|
|
57868
|
-
this.path = path$
|
|
57824
|
+
constructor(path$85, absolute) {
|
|
57825
|
+
this.path = path$85 || "./";
|
|
57869
57826
|
this.absolute = absolute;
|
|
57870
57827
|
this.entry = null;
|
|
57871
57828
|
this.stat = null;
|
|
@@ -57903,8 +57860,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57903
57860
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57904
57861
|
const WRITE = Symbol("write");
|
|
57905
57862
|
const ONDRAIN = Symbol("ondrain");
|
|
57906
|
-
const fs$
|
|
57907
|
-
const path$
|
|
57863
|
+
const fs$33 = require("fs");
|
|
57864
|
+
const path$32 = require("path");
|
|
57908
57865
|
const warner = require_warn_mixin();
|
|
57909
57866
|
const normPath = require_normalize_windows_path();
|
|
57910
57867
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -57956,24 +57913,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57956
57913
|
[WRITE](chunk) {
|
|
57957
57914
|
return super.write(chunk);
|
|
57958
57915
|
}
|
|
57959
|
-
add(path$
|
|
57960
|
-
this.write(path$
|
|
57916
|
+
add(path$86) {
|
|
57917
|
+
this.write(path$86);
|
|
57961
57918
|
return this;
|
|
57962
57919
|
}
|
|
57963
|
-
end(path$
|
|
57964
|
-
if (path$
|
|
57920
|
+
end(path$87) {
|
|
57921
|
+
if (path$87) this.write(path$87);
|
|
57965
57922
|
this[ENDED] = true;
|
|
57966
57923
|
this[PROCESS]();
|
|
57967
57924
|
return this;
|
|
57968
57925
|
}
|
|
57969
|
-
write(path$
|
|
57926
|
+
write(path$88) {
|
|
57970
57927
|
if (this[ENDED]) throw new Error("write after end");
|
|
57971
|
-
if (path$
|
|
57972
|
-
else this[ADDFSENTRY](path$
|
|
57928
|
+
if (path$88 instanceof ReadEntry) this[ADDTARENTRY](path$88);
|
|
57929
|
+
else this[ADDFSENTRY](path$88);
|
|
57973
57930
|
return this.flowing;
|
|
57974
57931
|
}
|
|
57975
57932
|
[ADDTARENTRY](p) {
|
|
57976
|
-
const absolute = normPath(path$
|
|
57933
|
+
const absolute = normPath(path$32.resolve(this.cwd, p.path));
|
|
57977
57934
|
if (!this.filter(p.path, p)) p.resume();
|
|
57978
57935
|
else {
|
|
57979
57936
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -57985,14 +57942,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57985
57942
|
this[PROCESS]();
|
|
57986
57943
|
}
|
|
57987
57944
|
[ADDFSENTRY](p) {
|
|
57988
|
-
const absolute = normPath(path$
|
|
57945
|
+
const absolute = normPath(path$32.resolve(this.cwd, p));
|
|
57989
57946
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
57990
57947
|
this[PROCESS]();
|
|
57991
57948
|
}
|
|
57992
57949
|
[STAT](job) {
|
|
57993
57950
|
job.pending = true;
|
|
57994
57951
|
this[JOBS] += 1;
|
|
57995
|
-
fs$
|
|
57952
|
+
fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57996
57953
|
job.pending = false;
|
|
57997
57954
|
this[JOBS] -= 1;
|
|
57998
57955
|
if (er) this.emit("error", er);
|
|
@@ -58008,7 +57965,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58008
57965
|
[READDIR](job) {
|
|
58009
57966
|
job.pending = true;
|
|
58010
57967
|
this[JOBS] += 1;
|
|
58011
|
-
fs$
|
|
57968
|
+
fs$33.readdir(job.absolute, (er, entries) => {
|
|
58012
57969
|
job.pending = false;
|
|
58013
57970
|
this[JOBS] -= 1;
|
|
58014
57971
|
if (er) return this.emit("error", er);
|
|
@@ -58126,10 +58083,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58126
58083
|
resume() {}
|
|
58127
58084
|
[STAT](job) {
|
|
58128
58085
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58129
|
-
this[ONSTAT](job, fs$
|
|
58086
|
+
this[ONSTAT](job, fs$33[stat](job.absolute));
|
|
58130
58087
|
}
|
|
58131
58088
|
[READDIR](job, stat) {
|
|
58132
|
-
this[ONREADDIR](job, fs$
|
|
58089
|
+
this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
|
|
58133
58090
|
}
|
|
58134
58091
|
[PIPE](job) {
|
|
58135
58092
|
const source = job.entry;
|
|
@@ -58585,8 +58542,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58585
58542
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58586
58543
|
const MiniPass = require_minipass$2();
|
|
58587
58544
|
const EE$11 = require("events").EventEmitter;
|
|
58588
|
-
const fs$
|
|
58589
|
-
let writev = fs$
|
|
58545
|
+
const fs$32 = require("fs");
|
|
58546
|
+
let writev = fs$32.writev;
|
|
58590
58547
|
/* istanbul ignore next */
|
|
58591
58548
|
if (!writev) {
|
|
58592
58549
|
const binding = process.binding("fs");
|
|
@@ -58657,7 +58614,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58657
58614
|
throw new TypeError("this is a readable stream");
|
|
58658
58615
|
}
|
|
58659
58616
|
[_open]() {
|
|
58660
|
-
fs$
|
|
58617
|
+
fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58661
58618
|
}
|
|
58662
58619
|
[_onopen](er, fd) {
|
|
58663
58620
|
if (er) this[_onerror](er);
|
|
@@ -58676,7 +58633,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58676
58633
|
const buf = this[_makeBuf]();
|
|
58677
58634
|
/* istanbul ignore if */
|
|
58678
58635
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58679
|
-
fs$
|
|
58636
|
+
fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58680
58637
|
}
|
|
58681
58638
|
}
|
|
58682
58639
|
[_onread](er, br, buf) {
|
|
@@ -58688,7 +58645,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58688
58645
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58689
58646
|
const fd = this[_fd];
|
|
58690
58647
|
this[_fd] = null;
|
|
58691
|
-
fs$
|
|
58648
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58692
58649
|
}
|
|
58693
58650
|
}
|
|
58694
58651
|
[_onerror](er) {
|
|
@@ -58726,7 +58683,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58726
58683
|
[_open]() {
|
|
58727
58684
|
let threw = true;
|
|
58728
58685
|
try {
|
|
58729
|
-
this[_onopen](null, fs$
|
|
58686
|
+
this[_onopen](null, fs$32.openSync(this[_path], "r"));
|
|
58730
58687
|
threw = false;
|
|
58731
58688
|
} finally {
|
|
58732
58689
|
if (threw) this[_close]();
|
|
@@ -58740,7 +58697,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58740
58697
|
do {
|
|
58741
58698
|
const buf = this[_makeBuf]();
|
|
58742
58699
|
/* istanbul ignore next */
|
|
58743
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58700
|
+
const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58744
58701
|
if (!this[_handleChunk](br, buf)) break;
|
|
58745
58702
|
} while (true);
|
|
58746
58703
|
this[_reading] = false;
|
|
@@ -58754,7 +58711,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58754
58711
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58755
58712
|
const fd = this[_fd];
|
|
58756
58713
|
this[_fd] = null;
|
|
58757
|
-
fs$
|
|
58714
|
+
fs$32.closeSync(fd);
|
|
58758
58715
|
this.emit("close");
|
|
58759
58716
|
}
|
|
58760
58717
|
}
|
|
@@ -58799,7 +58756,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58799
58756
|
this.emit("error", er);
|
|
58800
58757
|
}
|
|
58801
58758
|
[_open]() {
|
|
58802
|
-
fs$
|
|
58759
|
+
fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58803
58760
|
}
|
|
58804
58761
|
[_onopen](er, fd) {
|
|
58805
58762
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58834,7 +58791,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58834
58791
|
return true;
|
|
58835
58792
|
}
|
|
58836
58793
|
[_write](buf) {
|
|
58837
|
-
fs$
|
|
58794
|
+
fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58838
58795
|
}
|
|
58839
58796
|
[_onwrite](er, bw) {
|
|
58840
58797
|
if (er) this[_onerror](er);
|
|
@@ -58868,7 +58825,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58868
58825
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58869
58826
|
const fd = this[_fd];
|
|
58870
58827
|
this[_fd] = null;
|
|
58871
|
-
fs$
|
|
58828
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58872
58829
|
}
|
|
58873
58830
|
}
|
|
58874
58831
|
};
|
|
@@ -58876,28 +58833,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58876
58833
|
[_open]() {
|
|
58877
58834
|
let fd;
|
|
58878
58835
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58879
|
-
fd = fs$
|
|
58836
|
+
fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58880
58837
|
} catch (er) {
|
|
58881
58838
|
if (er.code === "ENOENT") {
|
|
58882
58839
|
this[_flags] = "w";
|
|
58883
58840
|
return this[_open]();
|
|
58884
58841
|
} else throw er;
|
|
58885
58842
|
}
|
|
58886
|
-
else fd = fs$
|
|
58843
|
+
else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58887
58844
|
this[_onopen](null, fd);
|
|
58888
58845
|
}
|
|
58889
58846
|
[_close]() {
|
|
58890
58847
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58891
58848
|
const fd = this[_fd];
|
|
58892
58849
|
this[_fd] = null;
|
|
58893
|
-
fs$
|
|
58850
|
+
fs$32.closeSync(fd);
|
|
58894
58851
|
this.emit("close");
|
|
58895
58852
|
}
|
|
58896
58853
|
}
|
|
58897
58854
|
[_write](buf) {
|
|
58898
58855
|
let threw = true;
|
|
58899
58856
|
try {
|
|
58900
|
-
this[_onwrite](null, fs$
|
|
58857
|
+
this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58901
58858
|
threw = false;
|
|
58902
58859
|
} finally {
|
|
58903
58860
|
if (threw) try {
|
|
@@ -59262,9 +59219,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59262
59219
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59263
59220
|
const hlo = require_high_level_opt();
|
|
59264
59221
|
const Parser = require_parse$4();
|
|
59265
|
-
const fs$
|
|
59222
|
+
const fs$31 = require("fs");
|
|
59266
59223
|
const fsm = require_fs_minipass();
|
|
59267
|
-
const path$
|
|
59224
|
+
const path$31 = require("path");
|
|
59268
59225
|
const stripSlash = require_strip_trailing_slashes();
|
|
59269
59226
|
module.exports = (opt_, files, cb) => {
|
|
59270
59227
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -59290,8 +59247,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59290
59247
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
59291
59248
|
const filter = opt.filter;
|
|
59292
59249
|
const mapHas = (file, r) => {
|
|
59293
|
-
const root = r || path$
|
|
59294
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
59250
|
+
const root = r || path$31.parse(file).root || ".";
|
|
59251
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
|
|
59295
59252
|
map.set(file, ret);
|
|
59296
59253
|
return ret;
|
|
59297
59254
|
};
|
|
@@ -59303,15 +59260,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59303
59260
|
let threw = true;
|
|
59304
59261
|
let fd;
|
|
59305
59262
|
try {
|
|
59306
|
-
const stat = fs$
|
|
59263
|
+
const stat = fs$31.statSync(file);
|
|
59307
59264
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59308
|
-
if (stat.size < readSize) p.end(fs$
|
|
59265
|
+
if (stat.size < readSize) p.end(fs$31.readFileSync(file));
|
|
59309
59266
|
else {
|
|
59310
59267
|
let pos = 0;
|
|
59311
59268
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59312
|
-
fd = fs$
|
|
59269
|
+
fd = fs$31.openSync(file, "r");
|
|
59313
59270
|
while (pos < stat.size) {
|
|
59314
|
-
const bytesRead = fs$
|
|
59271
|
+
const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
|
|
59315
59272
|
pos += bytesRead;
|
|
59316
59273
|
p.write(buf.slice(0, bytesRead));
|
|
59317
59274
|
}
|
|
@@ -59320,7 +59277,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59320
59277
|
threw = false;
|
|
59321
59278
|
} finally {
|
|
59322
59279
|
if (threw && fd) try {
|
|
59323
|
-
fs$
|
|
59280
|
+
fs$31.closeSync(fd);
|
|
59324
59281
|
} catch (er) {}
|
|
59325
59282
|
}
|
|
59326
59283
|
};
|
|
@@ -59331,7 +59288,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59331
59288
|
const p = new Promise((resolve, reject) => {
|
|
59332
59289
|
parse.on("error", reject);
|
|
59333
59290
|
parse.on("end", resolve);
|
|
59334
|
-
fs$
|
|
59291
|
+
fs$31.stat(file, (er, stat) => {
|
|
59335
59292
|
if (er) reject(er);
|
|
59336
59293
|
else {
|
|
59337
59294
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59354,7 +59311,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59354
59311
|
const Pack = require_pack$1();
|
|
59355
59312
|
const fsm = require_fs_minipass();
|
|
59356
59313
|
const t = require_list();
|
|
59357
|
-
const path$
|
|
59314
|
+
const path$30 = require("path");
|
|
59358
59315
|
module.exports = (opt_, files, cb) => {
|
|
59359
59316
|
if (typeof files === "function") cb = files;
|
|
59360
59317
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -59386,7 +59343,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59386
59343
|
const addFilesSync = (p, files) => {
|
|
59387
59344
|
files.forEach((file) => {
|
|
59388
59345
|
if (file.charAt(0) === "@") t({
|
|
59389
|
-
file: path$
|
|
59346
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59390
59347
|
sync: true,
|
|
59391
59348
|
noResume: true,
|
|
59392
59349
|
onentry: (entry) => p.add(entry)
|
|
@@ -59399,7 +59356,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59399
59356
|
while (files.length) {
|
|
59400
59357
|
const file = files.shift();
|
|
59401
59358
|
if (file.charAt(0) === "@") return t({
|
|
59402
|
-
file: path$
|
|
59359
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59403
59360
|
noResume: true,
|
|
59404
59361
|
onentry: (entry) => p.add(entry)
|
|
59405
59362
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59423,10 +59380,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59423
59380
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59424
59381
|
const hlo = require_high_level_opt();
|
|
59425
59382
|
const Pack = require_pack$1();
|
|
59426
|
-
const fs$
|
|
59383
|
+
const fs$30 = require("fs");
|
|
59427
59384
|
const fsm = require_fs_minipass();
|
|
59428
59385
|
const t = require_list();
|
|
59429
|
-
const path$
|
|
59386
|
+
const path$29 = require("path");
|
|
59430
59387
|
const Header = require_header();
|
|
59431
59388
|
module.exports = (opt_, files, cb) => {
|
|
59432
59389
|
const opt = hlo(opt_);
|
|
@@ -59443,16 +59400,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59443
59400
|
let position;
|
|
59444
59401
|
try {
|
|
59445
59402
|
try {
|
|
59446
|
-
fd = fs$
|
|
59403
|
+
fd = fs$30.openSync(opt.file, "r+");
|
|
59447
59404
|
} catch (er) {
|
|
59448
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59405
|
+
if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
|
|
59449
59406
|
else throw er;
|
|
59450
59407
|
}
|
|
59451
|
-
const st = fs$
|
|
59408
|
+
const st = fs$30.fstatSync(fd);
|
|
59452
59409
|
const headBuf = Buffer.alloc(512);
|
|
59453
59410
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59454
59411
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59455
|
-
bytes = fs$
|
|
59412
|
+
bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59456
59413
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59457
59414
|
if (!bytes) break POSITION;
|
|
59458
59415
|
}
|
|
@@ -59467,7 +59424,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59467
59424
|
streamSync(opt, p, position, fd, files);
|
|
59468
59425
|
} finally {
|
|
59469
59426
|
if (threw) try {
|
|
59470
|
-
fs$
|
|
59427
|
+
fs$30.closeSync(fd);
|
|
59471
59428
|
} catch (er) {}
|
|
59472
59429
|
}
|
|
59473
59430
|
};
|
|
@@ -59484,7 +59441,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59484
59441
|
const p = new Pack(opt);
|
|
59485
59442
|
const getPos = (fd, size, cb_) => {
|
|
59486
59443
|
const cb = (er, pos) => {
|
|
59487
|
-
if (er) fs$
|
|
59444
|
+
if (er) fs$30.close(fd, (_) => cb_(er));
|
|
59488
59445
|
else cb_(null, pos);
|
|
59489
59446
|
};
|
|
59490
59447
|
let position = 0;
|
|
@@ -59494,7 +59451,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59494
59451
|
const onread = (er, bytes) => {
|
|
59495
59452
|
if (er) return cb(er);
|
|
59496
59453
|
bufPos += bytes;
|
|
59497
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59454
|
+
if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59498
59455
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59499
59456
|
if (bufPos < 512) return cb(null, position);
|
|
59500
59457
|
const h = new Header(headBuf);
|
|
@@ -59505,9 +59462,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59505
59462
|
if (position >= size) return cb(null, position);
|
|
59506
59463
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59507
59464
|
bufPos = 0;
|
|
59508
|
-
fs$
|
|
59465
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59509
59466
|
};
|
|
59510
|
-
fs$
|
|
59467
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59511
59468
|
};
|
|
59512
59469
|
const promise = new Promise((resolve, reject) => {
|
|
59513
59470
|
p.on("error", reject);
|
|
@@ -59515,11 +59472,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59515
59472
|
const onopen = (er, fd) => {
|
|
59516
59473
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59517
59474
|
flag = "w+";
|
|
59518
|
-
return fs$
|
|
59475
|
+
return fs$30.open(opt.file, flag, onopen);
|
|
59519
59476
|
}
|
|
59520
59477
|
if (er) return reject(er);
|
|
59521
|
-
fs$
|
|
59522
|
-
if (er) return fs$
|
|
59478
|
+
fs$30.fstat(fd, (er, st) => {
|
|
59479
|
+
if (er) return fs$30.close(fd, () => reject(er));
|
|
59523
59480
|
getPos(fd, st.size, (er, position) => {
|
|
59524
59481
|
if (er) return reject(er);
|
|
59525
59482
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59533,14 +59490,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59533
59490
|
});
|
|
59534
59491
|
});
|
|
59535
59492
|
};
|
|
59536
|
-
fs$
|
|
59493
|
+
fs$30.open(opt.file, flag, onopen);
|
|
59537
59494
|
});
|
|
59538
59495
|
return cb ? promise.then(cb, cb) : promise;
|
|
59539
59496
|
};
|
|
59540
59497
|
const addFilesSync = (p, files) => {
|
|
59541
59498
|
files.forEach((file) => {
|
|
59542
59499
|
if (file.charAt(0) === "@") t({
|
|
59543
|
-
file: path$
|
|
59500
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
59544
59501
|
sync: true,
|
|
59545
59502
|
noResume: true,
|
|
59546
59503
|
onentry: (entry) => p.add(entry)
|
|
@@ -59553,7 +59510,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59553
59510
|
while (files.length) {
|
|
59554
59511
|
const file = files.shift();
|
|
59555
59512
|
if (file.charAt(0) === "@") return t({
|
|
59556
|
-
file: path$
|
|
59513
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
59557
59514
|
noResume: true,
|
|
59558
59515
|
onentry: (entry) => p.add(entry)
|
|
59559
59516
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59586,32 +59543,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59586
59543
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59587
59544
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59588
59545
|
const { promisify: promisify$1 } = require("util");
|
|
59589
|
-
const fs$
|
|
59546
|
+
const fs$29 = require("fs");
|
|
59590
59547
|
const optsArg = (opts) => {
|
|
59591
59548
|
if (!opts) opts = {
|
|
59592
59549
|
mode: 511,
|
|
59593
|
-
fs: fs$
|
|
59550
|
+
fs: fs$29
|
|
59594
59551
|
};
|
|
59595
59552
|
else if (typeof opts === "object") opts = {
|
|
59596
59553
|
mode: 511,
|
|
59597
|
-
fs: fs$
|
|
59554
|
+
fs: fs$29,
|
|
59598
59555
|
...opts
|
|
59599
59556
|
};
|
|
59600
59557
|
else if (typeof opts === "number") opts = {
|
|
59601
59558
|
mode: opts,
|
|
59602
|
-
fs: fs$
|
|
59559
|
+
fs: fs$29
|
|
59603
59560
|
};
|
|
59604
59561
|
else if (typeof opts === "string") opts = {
|
|
59605
59562
|
mode: parseInt(opts, 8),
|
|
59606
|
-
fs: fs$
|
|
59563
|
+
fs: fs$29
|
|
59607
59564
|
};
|
|
59608
59565
|
else throw new TypeError("invalid options argument");
|
|
59609
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59566
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
|
|
59610
59567
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59611
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59568
|
+
opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
|
|
59612
59569
|
opts.statAsync = promisify$1(opts.stat);
|
|
59613
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59614
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59570
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
|
|
59571
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
|
|
59615
59572
|
return opts;
|
|
59616
59573
|
};
|
|
59617
59574
|
module.exports = optsArg;
|
|
@@ -59621,21 +59578,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59621
59578
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59622
59579
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59623
59580
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
59624
|
-
const pathArg = (path$
|
|
59625
|
-
if (/\0/.test(path$
|
|
59626
|
-
path: path$
|
|
59581
|
+
const pathArg = (path$84) => {
|
|
59582
|
+
if (/\0/.test(path$84)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59583
|
+
path: path$84,
|
|
59627
59584
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59628
59585
|
});
|
|
59629
|
-
path$
|
|
59586
|
+
path$84 = resolve$13(path$84);
|
|
59630
59587
|
if (platform === "win32") {
|
|
59631
59588
|
const badWinChars = /[*|"<>?:]/;
|
|
59632
|
-
const { root } = parse$2(path$
|
|
59633
|
-
if (badWinChars.test(path$
|
|
59634
|
-
path: path$
|
|
59589
|
+
const { root } = parse$2(path$84);
|
|
59590
|
+
if (badWinChars.test(path$84.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
59591
|
+
path: path$84,
|
|
59635
59592
|
code: "EINVAL"
|
|
59636
59593
|
});
|
|
59637
59594
|
}
|
|
59638
|
-
return path$
|
|
59595
|
+
return path$84;
|
|
59639
59596
|
};
|
|
59640
59597
|
module.exports = pathArg;
|
|
59641
59598
|
}));
|
|
@@ -59643,14 +59600,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59643
59600
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59644
59601
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59645
59602
|
const { dirname: dirname$14 } = require("path");
|
|
59646
|
-
const findMade = (opts, parent, path$
|
|
59647
|
-
if (path$
|
|
59648
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
59603
|
+
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59604
|
+
if (path$82 === parent) return Promise.resolve();
|
|
59605
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59649
59606
|
};
|
|
59650
|
-
const findMadeSync = (opts, parent, path$
|
|
59651
|
-
if (path$
|
|
59607
|
+
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59608
|
+
if (path$83 === parent) return void 0;
|
|
59652
59609
|
try {
|
|
59653
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
59610
|
+
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59654
59611
|
} catch (er) {
|
|
59655
59612
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59656
59613
|
}
|
|
@@ -59664,16 +59621,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59664
59621
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59665
59622
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59666
59623
|
const { dirname: dirname$13 } = require("path");
|
|
59667
|
-
const mkdirpManual = (path$
|
|
59624
|
+
const mkdirpManual = (path$80, opts, made) => {
|
|
59668
59625
|
opts.recursive = false;
|
|
59669
|
-
const parent = dirname$13(path$
|
|
59670
|
-
if (parent === path$
|
|
59626
|
+
const parent = dirname$13(path$80);
|
|
59627
|
+
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59671
59628
|
if (er.code !== "EISDIR") throw er;
|
|
59672
59629
|
});
|
|
59673
|
-
return opts.mkdirAsync(path$
|
|
59674
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
59630
|
+
return opts.mkdirAsync(path$80, opts).then(() => made || path$80, (er) => {
|
|
59631
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$80, opts, made));
|
|
59675
59632
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59676
|
-
return opts.statAsync(path$
|
|
59633
|
+
return opts.statAsync(path$80).then((st) => {
|
|
59677
59634
|
if (st.isDirectory()) return made;
|
|
59678
59635
|
else throw er;
|
|
59679
59636
|
}, () => {
|
|
@@ -59681,23 +59638,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59681
59638
|
});
|
|
59682
59639
|
});
|
|
59683
59640
|
};
|
|
59684
|
-
const mkdirpManualSync = (path$
|
|
59685
|
-
const parent = dirname$13(path$
|
|
59641
|
+
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59642
|
+
const parent = dirname$13(path$81);
|
|
59686
59643
|
opts.recursive = false;
|
|
59687
|
-
if (parent === path$
|
|
59688
|
-
return opts.mkdirSync(path$
|
|
59644
|
+
if (parent === path$81) try {
|
|
59645
|
+
return opts.mkdirSync(path$81, opts);
|
|
59689
59646
|
} catch (er) {
|
|
59690
59647
|
if (er.code !== "EISDIR") throw er;
|
|
59691
59648
|
else return;
|
|
59692
59649
|
}
|
|
59693
59650
|
try {
|
|
59694
|
-
opts.mkdirSync(path$
|
|
59695
|
-
return made || path$
|
|
59651
|
+
opts.mkdirSync(path$81, opts);
|
|
59652
|
+
return made || path$81;
|
|
59696
59653
|
} catch (er) {
|
|
59697
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59654
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$81, opts, mkdirpManualSync(parent, opts, made));
|
|
59698
59655
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59699
59656
|
try {
|
|
59700
|
-
if (!opts.statSync(path$
|
|
59657
|
+
if (!opts.statSync(path$81).isDirectory()) throw er;
|
|
59701
59658
|
} catch (_) {
|
|
59702
59659
|
throw er;
|
|
59703
59660
|
}
|
|
@@ -59714,23 +59671,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59714
59671
|
const { dirname: dirname$12 } = require("path");
|
|
59715
59672
|
const { findMade, findMadeSync } = require_find_made();
|
|
59716
59673
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59717
|
-
const mkdirpNative = (path$
|
|
59674
|
+
const mkdirpNative = (path$78, opts) => {
|
|
59718
59675
|
opts.recursive = true;
|
|
59719
|
-
if (dirname$12(path$
|
|
59720
|
-
return findMade(opts, path$
|
|
59721
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
59676
|
+
if (dirname$12(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59677
|
+
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59678
|
+
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59722
59679
|
else throw er;
|
|
59723
59680
|
}));
|
|
59724
59681
|
};
|
|
59725
|
-
const mkdirpNativeSync = (path$
|
|
59682
|
+
const mkdirpNativeSync = (path$79, opts) => {
|
|
59726
59683
|
opts.recursive = true;
|
|
59727
|
-
if (dirname$12(path$
|
|
59728
|
-
const made = findMadeSync(opts, path$
|
|
59684
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59685
|
+
const made = findMadeSync(opts, path$79);
|
|
59729
59686
|
try {
|
|
59730
|
-
opts.mkdirSync(path$
|
|
59687
|
+
opts.mkdirSync(path$79, opts);
|
|
59731
59688
|
return made;
|
|
59732
59689
|
} catch (er) {
|
|
59733
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59690
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$79, opts);
|
|
59734
59691
|
else throw er;
|
|
59735
59692
|
}
|
|
59736
59693
|
};
|
|
@@ -59742,12 +59699,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59742
59699
|
//#endregion
|
|
59743
59700
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59744
59701
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59745
|
-
const fs$
|
|
59702
|
+
const fs$28 = require("fs");
|
|
59746
59703
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59747
59704
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59748
59705
|
module.exports = {
|
|
59749
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59750
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59706
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
|
|
59707
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
|
|
59751
59708
|
};
|
|
59752
59709
|
}));
|
|
59753
59710
|
//#endregion
|
|
@@ -59778,64 +59735,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59778
59735
|
//#endregion
|
|
59779
59736
|
//#region ../../node_modules/chownr/chownr.js
|
|
59780
59737
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59781
|
-
const fs$
|
|
59782
|
-
const path$
|
|
59738
|
+
const fs$27 = require("fs");
|
|
59739
|
+
const path$28 = require("path");
|
|
59783
59740
|
/* istanbul ignore next */
|
|
59784
|
-
const LCHOWN = fs$
|
|
59741
|
+
const LCHOWN = fs$27.lchown ? "lchown" : "chown";
|
|
59785
59742
|
/* istanbul ignore next */
|
|
59786
|
-
const LCHOWNSYNC = fs$
|
|
59743
|
+
const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
|
|
59787
59744
|
/* istanbul ignore next */
|
|
59788
|
-
const needEISDIRHandled = fs$
|
|
59789
|
-
const lchownSync = (path$
|
|
59745
|
+
const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59746
|
+
const lchownSync = (path$70, uid, gid) => {
|
|
59790
59747
|
try {
|
|
59791
|
-
return fs$
|
|
59748
|
+
return fs$27[LCHOWNSYNC](path$70, uid, gid);
|
|
59792
59749
|
} catch (er) {
|
|
59793
59750
|
if (er.code !== "ENOENT") throw er;
|
|
59794
59751
|
}
|
|
59795
59752
|
};
|
|
59796
59753
|
/* istanbul ignore next */
|
|
59797
|
-
const chownSync = (path$
|
|
59754
|
+
const chownSync = (path$71, uid, gid) => {
|
|
59798
59755
|
try {
|
|
59799
|
-
return fs$
|
|
59756
|
+
return fs$27.chownSync(path$71, uid, gid);
|
|
59800
59757
|
} catch (er) {
|
|
59801
59758
|
if (er.code !== "ENOENT") throw er;
|
|
59802
59759
|
}
|
|
59803
59760
|
};
|
|
59804
59761
|
/* istanbul ignore next */
|
|
59805
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
59762
|
+
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59806
59763
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59807
|
-
else fs$
|
|
59764
|
+
else fs$27.chown(path$72, uid, gid, cb);
|
|
59808
59765
|
} : (_, __, ___, cb) => cb;
|
|
59809
59766
|
/* istanbul ignore next */
|
|
59810
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
59767
|
+
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
59811
59768
|
try {
|
|
59812
|
-
return lchownSync(path$
|
|
59769
|
+
return lchownSync(path$73, uid, gid);
|
|
59813
59770
|
} catch (er) {
|
|
59814
59771
|
if (er.code !== "EISDIR") throw er;
|
|
59815
|
-
chownSync(path$
|
|
59772
|
+
chownSync(path$73, uid, gid);
|
|
59816
59773
|
}
|
|
59817
|
-
} : (path$
|
|
59774
|
+
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59818
59775
|
const nodeVersion = process.version;
|
|
59819
|
-
let readdir = (path$
|
|
59820
|
-
let readdirSync = (path$
|
|
59776
|
+
let readdir = (path$75, options, cb) => fs$27.readdir(path$75, options, cb);
|
|
59777
|
+
let readdirSync = (path$76, options) => fs$27.readdirSync(path$76, options);
|
|
59821
59778
|
/* istanbul ignore next */
|
|
59822
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
59779
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$27.readdir(path$77, cb);
|
|
59823
59780
|
const chown = (cpath, uid, gid, cb) => {
|
|
59824
|
-
fs$
|
|
59781
|
+
fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59825
59782
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59826
59783
|
}));
|
|
59827
59784
|
};
|
|
59828
59785
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59829
|
-
if (typeof child === "string") return fs$
|
|
59786
|
+
if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59830
59787
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59831
59788
|
stats.name = child;
|
|
59832
59789
|
chownrKid(p, stats, uid, gid, cb);
|
|
59833
59790
|
});
|
|
59834
|
-
if (child.isDirectory()) chownr(path$
|
|
59791
|
+
if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
|
|
59835
59792
|
if (er) return cb(er);
|
|
59836
|
-
chown(path$
|
|
59793
|
+
chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
59837
59794
|
});
|
|
59838
|
-
else chown(path$
|
|
59795
|
+
else chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
59839
59796
|
};
|
|
59840
59797
|
const chownr = (p, uid, gid, cb) => {
|
|
59841
59798
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -59856,15 +59813,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59856
59813
|
};
|
|
59857
59814
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59858
59815
|
if (typeof child === "string") try {
|
|
59859
|
-
const stats = fs$
|
|
59816
|
+
const stats = fs$27.lstatSync(path$28.resolve(p, child));
|
|
59860
59817
|
stats.name = child;
|
|
59861
59818
|
child = stats;
|
|
59862
59819
|
} catch (er) {
|
|
59863
59820
|
if (er.code === "ENOENT") return;
|
|
59864
59821
|
else throw er;
|
|
59865
59822
|
}
|
|
59866
|
-
if (child.isDirectory()) chownrSync(path$
|
|
59867
|
-
handleEISDirSync(path$
|
|
59823
|
+
if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
|
|
59824
|
+
handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
|
|
59868
59825
|
};
|
|
59869
59826
|
const chownrSync = (p, uid, gid) => {
|
|
59870
59827
|
let children;
|
|
@@ -59885,14 +59842,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59885
59842
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59886
59843
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59887
59844
|
const mkdirp = require_mkdirp();
|
|
59888
|
-
const fs$
|
|
59889
|
-
const path$
|
|
59845
|
+
const fs$26 = require("fs");
|
|
59846
|
+
const path$27 = require("path");
|
|
59890
59847
|
const chownr = require_chownr();
|
|
59891
59848
|
const normPath = require_normalize_windows_path();
|
|
59892
59849
|
var SymlinkError = class extends Error {
|
|
59893
|
-
constructor(symlink, path$
|
|
59850
|
+
constructor(symlink, path$68) {
|
|
59894
59851
|
super("Cannot extract through symbolic link");
|
|
59895
|
-
this.path = path$
|
|
59852
|
+
this.path = path$68;
|
|
59896
59853
|
this.symlink = symlink;
|
|
59897
59854
|
}
|
|
59898
59855
|
get name() {
|
|
@@ -59900,9 +59857,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59900
59857
|
}
|
|
59901
59858
|
};
|
|
59902
59859
|
var CwdError = class extends Error {
|
|
59903
|
-
constructor(path$
|
|
59904
|
-
super(code + ": Cannot cd into '" + path$
|
|
59905
|
-
this.path = path$
|
|
59860
|
+
constructor(path$69, code) {
|
|
59861
|
+
super(code + ": Cannot cd into '" + path$69 + "'");
|
|
59862
|
+
this.path = path$69;
|
|
59906
59863
|
this.code = code;
|
|
59907
59864
|
}
|
|
59908
59865
|
get name() {
|
|
@@ -59912,7 +59869,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59912
59869
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59913
59870
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59914
59871
|
const checkCwd = (dir, cb) => {
|
|
59915
|
-
fs$
|
|
59872
|
+
fs$26.stat(dir, (er, st) => {
|
|
59916
59873
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59917
59874
|
cb(er);
|
|
59918
59875
|
});
|
|
@@ -59934,31 +59891,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59934
59891
|
else {
|
|
59935
59892
|
cSet(cache, dir, true);
|
|
59936
59893
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59937
|
-
else if (needChmod) fs$
|
|
59894
|
+
else if (needChmod) fs$26.chmod(dir, mode, cb);
|
|
59938
59895
|
else cb();
|
|
59939
59896
|
}
|
|
59940
59897
|
};
|
|
59941
59898
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59942
59899
|
if (dir === cwd) return checkCwd(dir, done);
|
|
59943
59900
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
59944
|
-
mkdir_(cwd, normPath(path$
|
|
59901
|
+
mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
59945
59902
|
};
|
|
59946
59903
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
59947
59904
|
if (!parts.length) return cb(null, created);
|
|
59948
59905
|
const p = parts.shift();
|
|
59949
|
-
const part = normPath(path$
|
|
59906
|
+
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59950
59907
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59951
|
-
fs$
|
|
59908
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59952
59909
|
};
|
|
59953
59910
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59954
|
-
if (er) fs$
|
|
59911
|
+
if (er) fs$26.lstat(part, (statEr, st) => {
|
|
59955
59912
|
if (statEr) {
|
|
59956
59913
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59957
59914
|
cb(statEr);
|
|
59958
59915
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59959
|
-
else if (unlink) fs$
|
|
59916
|
+
else if (unlink) fs$26.unlink(part, (er) => {
|
|
59960
59917
|
if (er) return cb(er);
|
|
59961
|
-
fs$
|
|
59918
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59962
59919
|
});
|
|
59963
59920
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59964
59921
|
else cb(er);
|
|
@@ -59972,7 +59929,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59972
59929
|
let ok = false;
|
|
59973
59930
|
let code = "ENOTDIR";
|
|
59974
59931
|
try {
|
|
59975
|
-
ok = fs$
|
|
59932
|
+
ok = fs$26.statSync(dir).isDirectory();
|
|
59976
59933
|
} catch (er) {
|
|
59977
59934
|
code = er.code;
|
|
59978
59935
|
} finally {
|
|
@@ -59994,7 +59951,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59994
59951
|
const done = (created) => {
|
|
59995
59952
|
cSet(cache, dir, true);
|
|
59996
59953
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59997
|
-
if (needChmod) fs$
|
|
59954
|
+
if (needChmod) fs$26.chmodSync(dir, mode);
|
|
59998
59955
|
};
|
|
59999
59956
|
if (cache && cGet(cache, dir) === true) return done();
|
|
60000
59957
|
if (dir === cwd) {
|
|
@@ -60002,23 +59959,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
60002
59959
|
return done();
|
|
60003
59960
|
}
|
|
60004
59961
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
60005
|
-
const parts = normPath(path$
|
|
59962
|
+
const parts = normPath(path$27.relative(cwd, dir)).split("/");
|
|
60006
59963
|
let created = null;
|
|
60007
59964
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
60008
|
-
part = normPath(path$
|
|
59965
|
+
part = normPath(path$27.resolve(part));
|
|
60009
59966
|
if (cGet(cache, part)) continue;
|
|
60010
59967
|
try {
|
|
60011
|
-
fs$
|
|
59968
|
+
fs$26.mkdirSync(part, mode);
|
|
60012
59969
|
created = created || part;
|
|
60013
59970
|
cSet(cache, part, true);
|
|
60014
59971
|
} catch (er) {
|
|
60015
|
-
const st = fs$
|
|
59972
|
+
const st = fs$26.lstatSync(part);
|
|
60016
59973
|
if (st.isDirectory()) {
|
|
60017
59974
|
cSet(cache, part, true);
|
|
60018
59975
|
continue;
|
|
60019
59976
|
} else if (unlink) {
|
|
60020
|
-
fs$
|
|
60021
|
-
fs$
|
|
59977
|
+
fs$26.unlinkSync(part);
|
|
59978
|
+
fs$26.mkdirSync(part, mode);
|
|
60022
59979
|
created = created || part;
|
|
60023
59980
|
cSet(cache, part, true);
|
|
60024
59981
|
continue;
|
|
@@ -60044,15 +60001,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60044
60001
|
const assert$1 = require("assert");
|
|
60045
60002
|
const normalize = require_normalize_unicode();
|
|
60046
60003
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60047
|
-
const { join: join$
|
|
60004
|
+
const { join: join$18 } = require("path");
|
|
60048
60005
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60049
60006
|
module.exports = () => {
|
|
60050
60007
|
const queues = /* @__PURE__ */ new Map();
|
|
60051
60008
|
const reservations = /* @__PURE__ */ new Map();
|
|
60052
|
-
const getDirs = (path$
|
|
60053
|
-
return path$
|
|
60054
|
-
if (set.length) path$
|
|
60055
|
-
set.push(path$
|
|
60009
|
+
const getDirs = (path$61) => {
|
|
60010
|
+
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
60011
|
+
if (set.length) path$62 = join$18(set[set.length - 1], path$62);
|
|
60012
|
+
set.push(path$62 || "/");
|
|
60056
60013
|
return set;
|
|
60057
60014
|
}, []);
|
|
60058
60015
|
};
|
|
@@ -60062,8 +60019,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60062
60019
|
/* istanbul ignore if - unpossible */
|
|
60063
60020
|
if (!res) throw new Error("function does not have any path reservations");
|
|
60064
60021
|
return {
|
|
60065
|
-
paths: res.paths.map((path$
|
|
60066
|
-
dirs: [...res.dirs].map((path$
|
|
60022
|
+
paths: res.paths.map((path$63) => queues.get(path$63)),
|
|
60023
|
+
dirs: [...res.dirs].map((path$64) => queues.get(path$64))
|
|
60067
60024
|
};
|
|
60068
60025
|
};
|
|
60069
60026
|
const check = (fn) => {
|
|
@@ -60080,10 +60037,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60080
60037
|
if (!running.has(fn)) return false;
|
|
60081
60038
|
const { paths, dirs } = reservations.get(fn);
|
|
60082
60039
|
const next = /* @__PURE__ */ new Set();
|
|
60083
|
-
paths.forEach((path$
|
|
60084
|
-
const q = queues.get(path$
|
|
60040
|
+
paths.forEach((path$65) => {
|
|
60041
|
+
const q = queues.get(path$65);
|
|
60085
60042
|
assert$1.equal(q[0], fn);
|
|
60086
|
-
if (q.length === 1) queues.delete(path$
|
|
60043
|
+
if (q.length === 1) queues.delete(path$65);
|
|
60087
60044
|
else {
|
|
60088
60045
|
q.shift();
|
|
60089
60046
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -60105,16 +60062,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60105
60062
|
};
|
|
60106
60063
|
const reserve = (paths, fn) => {
|
|
60107
60064
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60108
|
-
return stripSlashes(join$
|
|
60065
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60109
60066
|
});
|
|
60110
|
-
const dirs = new Set(paths.map((path$
|
|
60067
|
+
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60111
60068
|
reservations.set(fn, {
|
|
60112
60069
|
dirs,
|
|
60113
60070
|
paths
|
|
60114
60071
|
});
|
|
60115
|
-
paths.forEach((path$
|
|
60116
|
-
const q = queues.get(path$
|
|
60117
|
-
if (!q) queues.set(path$
|
|
60072
|
+
paths.forEach((path$67) => {
|
|
60073
|
+
const q = queues.get(path$67);
|
|
60074
|
+
if (!q) queues.set(path$67, [fn]);
|
|
60118
60075
|
else q.push(fn);
|
|
60119
60076
|
});
|
|
60120
60077
|
dirs.forEach((dir) => {
|
|
@@ -60147,9 +60104,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60147
60104
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60148
60105
|
const assert = require("assert");
|
|
60149
60106
|
const Parser = require_parse$4();
|
|
60150
|
-
const fs$
|
|
60107
|
+
const fs$25 = require("fs");
|
|
60151
60108
|
const fsm = require_fs_minipass();
|
|
60152
|
-
const path$
|
|
60109
|
+
const path$26 = require("path");
|
|
60153
60110
|
const mkdir = require_mkdir();
|
|
60154
60111
|
const wc = require_winchars();
|
|
60155
60112
|
const pathReservations = require_path_reservations();
|
|
@@ -60187,28 +60144,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60187
60144
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60188
60145
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60189
60146
|
/* istanbul ignore next */
|
|
60190
|
-
const unlinkFile = (path$
|
|
60191
|
-
if (!isWindows) return fs$
|
|
60192
|
-
const name = path$
|
|
60193
|
-
fs$
|
|
60147
|
+
const unlinkFile = (path$57, cb) => {
|
|
60148
|
+
if (!isWindows) return fs$25.unlink(path$57, cb);
|
|
60149
|
+
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60150
|
+
fs$25.rename(path$57, name, (er) => {
|
|
60194
60151
|
if (er) return cb(er);
|
|
60195
|
-
fs$
|
|
60152
|
+
fs$25.unlink(name, cb);
|
|
60196
60153
|
});
|
|
60197
60154
|
};
|
|
60198
60155
|
/* istanbul ignore next */
|
|
60199
|
-
const unlinkFileSync = (path$
|
|
60200
|
-
if (!isWindows) return fs$
|
|
60201
|
-
const name = path$
|
|
60202
|
-
fs$
|
|
60203
|
-
fs$
|
|
60156
|
+
const unlinkFileSync = (path$58) => {
|
|
60157
|
+
if (!isWindows) return fs$25.unlinkSync(path$58);
|
|
60158
|
+
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60159
|
+
fs$25.renameSync(path$58, name);
|
|
60160
|
+
fs$25.unlinkSync(name);
|
|
60204
60161
|
};
|
|
60205
60162
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60206
|
-
const cacheKeyNormalize = (path$
|
|
60163
|
+
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
60207
60164
|
const pruneCache = (cache, abs) => {
|
|
60208
60165
|
abs = cacheKeyNormalize(abs);
|
|
60209
|
-
for (const path$
|
|
60210
|
-
const pnorm = cacheKeyNormalize(path$
|
|
60211
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
60166
|
+
for (const path$60 of cache.keys()) {
|
|
60167
|
+
const pnorm = cacheKeyNormalize(path$60);
|
|
60168
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$60);
|
|
60212
60169
|
}
|
|
60213
60170
|
};
|
|
60214
60171
|
const dropCache = (cache) => {
|
|
@@ -60253,7 +60210,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60253
60210
|
this.noMtime = !!opt.noMtime;
|
|
60254
60211
|
this.preservePaths = !!opt.preservePaths;
|
|
60255
60212
|
this.unlink = !!opt.unlink;
|
|
60256
|
-
this.cwd = normPath(path$
|
|
60213
|
+
this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
|
|
60257
60214
|
this.strip = +opt.strip || 0;
|
|
60258
60215
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
60259
60216
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -60311,8 +60268,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60311
60268
|
});
|
|
60312
60269
|
}
|
|
60313
60270
|
}
|
|
60314
|
-
if (path$
|
|
60315
|
-
else entry.absolute = normPath(path$
|
|
60271
|
+
if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
|
|
60272
|
+
else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
|
|
60316
60273
|
/* istanbul ignore if - defense in depth */
|
|
60317
60274
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
60318
60275
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -60325,9 +60282,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60325
60282
|
}
|
|
60326
60283
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
60327
60284
|
if (this.win32) {
|
|
60328
|
-
const { root: aRoot } = path$
|
|
60285
|
+
const { root: aRoot } = path$26.win32.parse(entry.absolute);
|
|
60329
60286
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
60330
|
-
const { root: pRoot } = path$
|
|
60287
|
+
const { root: pRoot } = path$26.win32.parse(entry.path);
|
|
60331
60288
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
60332
60289
|
}
|
|
60333
60290
|
return true;
|
|
@@ -60386,7 +60343,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60386
60343
|
autoClose: false
|
|
60387
60344
|
});
|
|
60388
60345
|
stream.on("error", (er) => {
|
|
60389
|
-
if (stream.fd) fs$
|
|
60346
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60390
60347
|
stream.write = () => true;
|
|
60391
60348
|
this[ONERROR](er, entry);
|
|
60392
60349
|
fullyDone();
|
|
@@ -60395,12 +60352,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60395
60352
|
const done = (er) => {
|
|
60396
60353
|
if (er) {
|
|
60397
60354
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60398
|
-
if (stream.fd) fs$
|
|
60355
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60399
60356
|
this[ONERROR](er, entry);
|
|
60400
60357
|
fullyDone();
|
|
60401
60358
|
return;
|
|
60402
60359
|
}
|
|
60403
|
-
if (--actions === 0) fs$
|
|
60360
|
+
if (--actions === 0) fs$25.close(stream.fd, (er) => {
|
|
60404
60361
|
if (er) this[ONERROR](er, entry);
|
|
60405
60362
|
else this[UNPEND]();
|
|
60406
60363
|
fullyDone();
|
|
@@ -60413,13 +60370,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60413
60370
|
actions++;
|
|
60414
60371
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60415
60372
|
const mtime = entry.mtime;
|
|
60416
|
-
fs$
|
|
60373
|
+
fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60417
60374
|
}
|
|
60418
60375
|
if (this[DOCHOWN](entry)) {
|
|
60419
60376
|
actions++;
|
|
60420
60377
|
const uid = this[UID](entry);
|
|
60421
60378
|
const gid = this[GID](entry);
|
|
60422
|
-
fs$
|
|
60379
|
+
fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60423
60380
|
}
|
|
60424
60381
|
done();
|
|
60425
60382
|
});
|
|
@@ -60451,11 +60408,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60451
60408
|
};
|
|
60452
60409
|
if (entry.mtime && !this.noMtime) {
|
|
60453
60410
|
actions++;
|
|
60454
|
-
fs$
|
|
60411
|
+
fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60455
60412
|
}
|
|
60456
60413
|
if (this[DOCHOWN](entry)) {
|
|
60457
60414
|
actions++;
|
|
60458
|
-
fs$
|
|
60415
|
+
fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60459
60416
|
}
|
|
60460
60417
|
done();
|
|
60461
60418
|
});
|
|
@@ -60469,7 +60426,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60469
60426
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
60470
60427
|
}
|
|
60471
60428
|
[HARDLINK](entry, done) {
|
|
60472
|
-
const linkpath = normPath(path$
|
|
60429
|
+
const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
|
|
60473
60430
|
this[LINK](entry, linkpath, "link", done);
|
|
60474
60431
|
}
|
|
60475
60432
|
[PEND]() {
|
|
@@ -60515,7 +60472,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60515
60472
|
};
|
|
60516
60473
|
const start = () => {
|
|
60517
60474
|
if (entry.absolute !== this.cwd) {
|
|
60518
|
-
const parent = normPath(path$
|
|
60475
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
60519
60476
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
60520
60477
|
if (er) {
|
|
60521
60478
|
this[ONERROR](er, entry);
|
|
@@ -60528,7 +60485,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60528
60485
|
afterMakeParent();
|
|
60529
60486
|
};
|
|
60530
60487
|
const afterMakeParent = () => {
|
|
60531
|
-
fs$
|
|
60488
|
+
fs$25.lstat(entry.absolute, (lstatEr, st) => {
|
|
60532
60489
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60533
60490
|
this[SKIP](entry);
|
|
60534
60491
|
done();
|
|
@@ -60540,9 +60497,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60540
60497
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60541
60498
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60542
60499
|
if (!needChmod) return afterChmod();
|
|
60543
|
-
return fs$
|
|
60500
|
+
return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60544
60501
|
}
|
|
60545
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60502
|
+
if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60546
60503
|
}
|
|
60547
60504
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60548
60505
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60568,7 +60525,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60568
60525
|
}
|
|
60569
60526
|
}
|
|
60570
60527
|
[LINK](entry, linkpath, link, done) {
|
|
60571
|
-
fs$
|
|
60528
|
+
fs$25[link](linkpath, entry.absolute, (er) => {
|
|
60572
60529
|
if (er) this[ONERROR](er, entry);
|
|
60573
60530
|
else {
|
|
60574
60531
|
this[UNPEND]();
|
|
@@ -60597,23 +60554,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60597
60554
|
this[CHECKED_CWD] = true;
|
|
60598
60555
|
}
|
|
60599
60556
|
if (entry.absolute !== this.cwd) {
|
|
60600
|
-
const parent = normPath(path$
|
|
60557
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
60601
60558
|
if (parent !== this.cwd) {
|
|
60602
60559
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
60603
60560
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60604
60561
|
}
|
|
60605
60562
|
}
|
|
60606
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60563
|
+
const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
|
|
60607
60564
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60608
60565
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60609
60566
|
if (st.isDirectory()) {
|
|
60610
60567
|
if (entry.type === "Directory") {
|
|
60611
60568
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60612
|
-
fs$
|
|
60569
|
+
fs$25.chmodSync(entry.absolute, entry.mode);
|
|
60613
60570
|
}) : [];
|
|
60614
60571
|
return this[MAKEFS](er, entry);
|
|
60615
60572
|
}
|
|
60616
|
-
const [er] = callSync(() => fs$
|
|
60573
|
+
const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
|
|
60617
60574
|
this[MAKEFS](er, entry);
|
|
60618
60575
|
}
|
|
60619
60576
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60624,7 +60581,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60624
60581
|
const oner = (er) => {
|
|
60625
60582
|
let closeError;
|
|
60626
60583
|
try {
|
|
60627
|
-
fs$
|
|
60584
|
+
fs$25.closeSync(fd);
|
|
60628
60585
|
} catch (e) {
|
|
60629
60586
|
closeError = e;
|
|
60630
60587
|
}
|
|
@@ -60633,7 +60590,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60633
60590
|
};
|
|
60634
60591
|
let fd;
|
|
60635
60592
|
try {
|
|
60636
|
-
fd = fs$
|
|
60593
|
+
fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60637
60594
|
} catch (er) {
|
|
60638
60595
|
return oner(er);
|
|
60639
60596
|
}
|
|
@@ -60644,7 +60601,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60644
60601
|
}
|
|
60645
60602
|
tx.on("data", (chunk) => {
|
|
60646
60603
|
try {
|
|
60647
|
-
fs$
|
|
60604
|
+
fs$25.writeSync(fd, chunk, 0, chunk.length);
|
|
60648
60605
|
} catch (er) {
|
|
60649
60606
|
oner(er);
|
|
60650
60607
|
}
|
|
@@ -60655,10 +60612,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60655
60612
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60656
60613
|
const mtime = entry.mtime;
|
|
60657
60614
|
try {
|
|
60658
|
-
fs$
|
|
60615
|
+
fs$25.futimesSync(fd, atime, mtime);
|
|
60659
60616
|
} catch (futimeser) {
|
|
60660
60617
|
try {
|
|
60661
|
-
fs$
|
|
60618
|
+
fs$25.utimesSync(entry.absolute, atime, mtime);
|
|
60662
60619
|
} catch (utimeser) {
|
|
60663
60620
|
er = futimeser;
|
|
60664
60621
|
}
|
|
@@ -60668,10 +60625,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60668
60625
|
const uid = this[UID](entry);
|
|
60669
60626
|
const gid = this[GID](entry);
|
|
60670
60627
|
try {
|
|
60671
|
-
fs$
|
|
60628
|
+
fs$25.fchownSync(fd, uid, gid);
|
|
60672
60629
|
} catch (fchowner) {
|
|
60673
60630
|
try {
|
|
60674
|
-
fs$
|
|
60631
|
+
fs$25.chownSync(entry.absolute, uid, gid);
|
|
60675
60632
|
} catch (chowner) {
|
|
60676
60633
|
er = er || fchowner;
|
|
60677
60634
|
}
|
|
@@ -60689,10 +60646,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60689
60646
|
return;
|
|
60690
60647
|
}
|
|
60691
60648
|
if (entry.mtime && !this.noMtime) try {
|
|
60692
|
-
fs$
|
|
60649
|
+
fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60693
60650
|
} catch (er) {}
|
|
60694
60651
|
if (this[DOCHOWN](entry)) try {
|
|
60695
|
-
fs$
|
|
60652
|
+
fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60696
60653
|
} catch (er) {}
|
|
60697
60654
|
done();
|
|
60698
60655
|
entry.resume();
|
|
@@ -60717,7 +60674,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60717
60674
|
}
|
|
60718
60675
|
[LINK](entry, linkpath, link, done) {
|
|
60719
60676
|
try {
|
|
60720
|
-
fs$
|
|
60677
|
+
fs$25[link + "Sync"](linkpath, entry.absolute);
|
|
60721
60678
|
done();
|
|
60722
60679
|
entry.resume();
|
|
60723
60680
|
} catch (er) {
|
|
@@ -60733,9 +60690,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60733
60690
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60734
60691
|
const hlo = require_high_level_opt();
|
|
60735
60692
|
const Unpack = require_unpack();
|
|
60736
|
-
const fs$
|
|
60693
|
+
const fs$24 = require("fs");
|
|
60737
60694
|
const fsm = require_fs_minipass();
|
|
60738
|
-
const path$
|
|
60695
|
+
const path$25 = require("path");
|
|
60739
60696
|
const stripSlash = require_strip_trailing_slashes();
|
|
60740
60697
|
module.exports = (opt_, files, cb) => {
|
|
60741
60698
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -60753,8 +60710,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60753
60710
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
60754
60711
|
const filter = opt.filter;
|
|
60755
60712
|
const mapHas = (file, r) => {
|
|
60756
|
-
const root = r || path$
|
|
60757
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
60713
|
+
const root = r || path$25.parse(file).root || ".";
|
|
60714
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
|
|
60758
60715
|
map.set(file, ret);
|
|
60759
60716
|
return ret;
|
|
60760
60717
|
};
|
|
@@ -60763,7 +60720,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60763
60720
|
const extractFileSync = (opt) => {
|
|
60764
60721
|
const u = new Unpack.Sync(opt);
|
|
60765
60722
|
const file = opt.file;
|
|
60766
|
-
const stat = fs$
|
|
60723
|
+
const stat = fs$24.statSync(file);
|
|
60767
60724
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60768
60725
|
new fsm.ReadStreamSync(file, {
|
|
60769
60726
|
readSize,
|
|
@@ -60777,7 +60734,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60777
60734
|
const p = new Promise((resolve, reject) => {
|
|
60778
60735
|
u.on("error", reject);
|
|
60779
60736
|
u.on("close", resolve);
|
|
60780
|
-
fs$
|
|
60737
|
+
fs$24.stat(file, (er, stat) => {
|
|
60781
60738
|
if (er) reject(er);
|
|
60782
60739
|
else {
|
|
60783
60740
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60860,7 +60817,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60860
60817
|
//#endregion
|
|
60861
60818
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60862
60819
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60863
|
-
var fs$
|
|
60820
|
+
var fs$23 = require("fs");
|
|
60864
60821
|
var util$9 = require("util");
|
|
60865
60822
|
var stream$1 = require("stream");
|
|
60866
60823
|
var Readable = stream$1.Readable;
|
|
@@ -60885,7 +60842,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60885
60842
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60886
60843
|
var self = this;
|
|
60887
60844
|
self.pend.go(function(cb) {
|
|
60888
|
-
fs$
|
|
60845
|
+
fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60889
60846
|
cb();
|
|
60890
60847
|
callback(err, bytesRead, buffer);
|
|
60891
60848
|
});
|
|
@@ -60894,7 +60851,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60894
60851
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60895
60852
|
var self = this;
|
|
60896
60853
|
self.pend.go(function(cb) {
|
|
60897
|
-
fs$
|
|
60854
|
+
fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60898
60855
|
cb();
|
|
60899
60856
|
callback(err, written, buffer);
|
|
60900
60857
|
});
|
|
@@ -60914,7 +60871,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60914
60871
|
self.refCount -= 1;
|
|
60915
60872
|
if (self.refCount > 0) return;
|
|
60916
60873
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60917
|
-
if (self.autoClose) fs$
|
|
60874
|
+
if (self.autoClose) fs$23.close(self.fd, onCloseDone);
|
|
60918
60875
|
function onCloseDone(err) {
|
|
60919
60876
|
if (err) self.emit("error", err);
|
|
60920
60877
|
else self.emit("close");
|
|
@@ -60945,7 +60902,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60945
60902
|
self.context.pend.go(function(cb) {
|
|
60946
60903
|
if (self.destroyed) return cb();
|
|
60947
60904
|
var buffer = new Buffer(toRead);
|
|
60948
|
-
fs$
|
|
60905
|
+
fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60949
60906
|
if (err) self.destroy(err);
|
|
60950
60907
|
else if (bytesRead === 0) {
|
|
60951
60908
|
self.destroyed = true;
|
|
@@ -60991,7 +60948,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60991
60948
|
}
|
|
60992
60949
|
self.context.pend.go(function(cb) {
|
|
60993
60950
|
if (self.destroyed) return cb();
|
|
60994
|
-
fs$
|
|
60951
|
+
fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60995
60952
|
if (err) {
|
|
60996
60953
|
self.destroy();
|
|
60997
60954
|
cb();
|
|
@@ -61398,7 +61355,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61398
61355
|
//#endregion
|
|
61399
61356
|
//#region ../../node_modules/yauzl/index.js
|
|
61400
61357
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61401
|
-
var fs$
|
|
61358
|
+
var fs$22 = require("fs");
|
|
61402
61359
|
var zlib$1 = require("zlib");
|
|
61403
61360
|
var fd_slicer = require_fd_slicer();
|
|
61404
61361
|
var crc32 = require_buffer_crc32();
|
|
@@ -61420,10 +61377,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61420
61377
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61421
61378
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61422
61379
|
if (callback == null) callback = defaultCallback;
|
|
61423
|
-
fs$
|
|
61380
|
+
fs$22.open(path, "r", function(err, fd) {
|
|
61424
61381
|
if (err) return callback(err);
|
|
61425
61382
|
fromFd(fd, options, function(err, zipfile) {
|
|
61426
|
-
if (err) fs$
|
|
61383
|
+
if (err) fs$22.close(fd, defaultCallback);
|
|
61427
61384
|
callback(err, zipfile);
|
|
61428
61385
|
});
|
|
61429
61386
|
});
|
|
@@ -61440,7 +61397,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61440
61397
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61441
61398
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61442
61399
|
if (callback == null) callback = defaultCallback;
|
|
61443
|
-
fs$
|
|
61400
|
+
fs$22.fstat(fd, function(err, stats) {
|
|
61444
61401
|
if (err) return callback(err);
|
|
61445
61402
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61446
61403
|
});
|
|
@@ -62668,13 +62625,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62668
62625
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62669
62626
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62670
62627
|
module.exports = readdirGlob;
|
|
62671
|
-
const fs$
|
|
62628
|
+
const fs$21 = require("fs");
|
|
62672
62629
|
const { EventEmitter } = require("events");
|
|
62673
62630
|
const { Minimatch } = require_minimatch$1();
|
|
62674
62631
|
const { resolve: resolve$12 } = require("path");
|
|
62675
62632
|
function readdir(dir, strict) {
|
|
62676
62633
|
return new Promise((resolve, reject) => {
|
|
62677
|
-
fs$
|
|
62634
|
+
fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62678
62635
|
if (err) switch (err.code) {
|
|
62679
62636
|
case "ENOTDIR":
|
|
62680
62637
|
if (strict) reject(err);
|
|
@@ -62696,7 +62653,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62696
62653
|
}
|
|
62697
62654
|
function stat(file, followSymlinks) {
|
|
62698
62655
|
return new Promise((resolve, reject) => {
|
|
62699
|
-
(followSymlinks ? fs$
|
|
62656
|
+
(followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
|
|
62700
62657
|
if (err) switch (err.code) {
|
|
62701
62658
|
case "ENOENT":
|
|
62702
62659
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -62710,8 +62667,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62710
62667
|
});
|
|
62711
62668
|
});
|
|
62712
62669
|
}
|
|
62713
|
-
async function* exploreWalkAsync(dir, path$
|
|
62714
|
-
let files = await readdir(path$
|
|
62670
|
+
async function* exploreWalkAsync(dir, path$55, followSymlinks, useStat, shouldSkip, strict) {
|
|
62671
|
+
let files = await readdir(path$55 + dir, strict);
|
|
62715
62672
|
for (const file of files) {
|
|
62716
62673
|
let name = file.name;
|
|
62717
62674
|
if (name === void 0) {
|
|
@@ -62720,7 +62677,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62720
62677
|
}
|
|
62721
62678
|
const filename = dir + "/" + name;
|
|
62722
62679
|
const relative = filename.slice(1);
|
|
62723
|
-
const absolute = path$
|
|
62680
|
+
const absolute = path$55 + "/" + relative;
|
|
62724
62681
|
let stats = null;
|
|
62725
62682
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
62726
62683
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -62732,7 +62689,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62732
62689
|
absolute,
|
|
62733
62690
|
stats
|
|
62734
62691
|
};
|
|
62735
|
-
yield* exploreWalkAsync(filename, path$
|
|
62692
|
+
yield* exploreWalkAsync(filename, path$55, followSymlinks, useStat, shouldSkip, false);
|
|
62736
62693
|
}
|
|
62737
62694
|
} else yield {
|
|
62738
62695
|
relative,
|
|
@@ -62741,8 +62698,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62741
62698
|
};
|
|
62742
62699
|
}
|
|
62743
62700
|
}
|
|
62744
|
-
async function* explore(path$
|
|
62745
|
-
yield* exploreWalkAsync("", path$
|
|
62701
|
+
async function* explore(path$56, followSymlinks, useStat, shouldSkip) {
|
|
62702
|
+
yield* exploreWalkAsync("", path$56, followSymlinks, useStat, shouldSkip, true);
|
|
62746
62703
|
}
|
|
62747
62704
|
function readOptions(options) {
|
|
62748
62705
|
return {
|
|
@@ -68735,7 +68692,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68735
68692
|
//#endregion
|
|
68736
68693
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68737
68694
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68738
|
-
var fs$
|
|
68695
|
+
var fs$20 = require("fs");
|
|
68739
68696
|
var polyfills = require_polyfills();
|
|
68740
68697
|
var legacy = require_legacy_streams();
|
|
68741
68698
|
var clone = require_clone$1();
|
|
@@ -68764,36 +68721,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68764
68721
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68765
68722
|
console.error(m);
|
|
68766
68723
|
};
|
|
68767
|
-
if (!fs$
|
|
68768
|
-
publishQueue(fs$
|
|
68769
|
-
fs$
|
|
68724
|
+
if (!fs$20[gracefulQueue]) {
|
|
68725
|
+
publishQueue(fs$20, global[gracefulQueue] || []);
|
|
68726
|
+
fs$20.close = (function(fs$close) {
|
|
68770
68727
|
function close(fd, cb) {
|
|
68771
|
-
return fs$close.call(fs$
|
|
68728
|
+
return fs$close.call(fs$20, fd, function(err) {
|
|
68772
68729
|
if (!err) resetQueue();
|
|
68773
68730
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68774
68731
|
});
|
|
68775
68732
|
}
|
|
68776
68733
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68777
68734
|
return close;
|
|
68778
|
-
})(fs$
|
|
68779
|
-
fs$
|
|
68735
|
+
})(fs$20.close);
|
|
68736
|
+
fs$20.closeSync = (function(fs$closeSync) {
|
|
68780
68737
|
function closeSync(fd) {
|
|
68781
|
-
fs$closeSync.apply(fs$
|
|
68738
|
+
fs$closeSync.apply(fs$20, arguments);
|
|
68782
68739
|
resetQueue();
|
|
68783
68740
|
}
|
|
68784
68741
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68785
68742
|
return closeSync;
|
|
68786
|
-
})(fs$
|
|
68743
|
+
})(fs$20.closeSync);
|
|
68787
68744
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68788
|
-
debug(fs$
|
|
68789
|
-
require("assert").equal(fs$
|
|
68745
|
+
debug(fs$20[gracefulQueue]);
|
|
68746
|
+
require("assert").equal(fs$20[gracefulQueue].length, 0);
|
|
68790
68747
|
});
|
|
68791
68748
|
}
|
|
68792
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68793
|
-
module.exports = patch(clone(fs$
|
|
68794
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68795
|
-
module.exports = patch(fs$
|
|
68796
|
-
fs$
|
|
68749
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
|
|
68750
|
+
module.exports = patch(clone(fs$20));
|
|
68751
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
|
|
68752
|
+
module.exports = patch(fs$20);
|
|
68753
|
+
fs$20.__patched = true;
|
|
68797
68754
|
}
|
|
68798
68755
|
function patch(fs) {
|
|
68799
68756
|
polyfills(fs);
|
|
@@ -69048,23 +69005,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69048
69005
|
}
|
|
69049
69006
|
function enqueue(elem) {
|
|
69050
69007
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69051
|
-
fs$
|
|
69008
|
+
fs$20[gracefulQueue].push(elem);
|
|
69052
69009
|
retry();
|
|
69053
69010
|
}
|
|
69054
69011
|
var retryTimer;
|
|
69055
69012
|
function resetQueue() {
|
|
69056
69013
|
var now = Date.now();
|
|
69057
|
-
for (var i = 0; i < fs$
|
|
69058
|
-
fs$
|
|
69059
|
-
fs$
|
|
69014
|
+
for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
|
|
69015
|
+
fs$20[gracefulQueue][i][3] = now;
|
|
69016
|
+
fs$20[gracefulQueue][i][4] = now;
|
|
69060
69017
|
}
|
|
69061
69018
|
retry();
|
|
69062
69019
|
}
|
|
69063
69020
|
function retry() {
|
|
69064
69021
|
clearTimeout(retryTimer);
|
|
69065
69022
|
retryTimer = void 0;
|
|
69066
|
-
if (fs$
|
|
69067
|
-
var elem = fs$
|
|
69023
|
+
if (fs$20[gracefulQueue].length === 0) return;
|
|
69024
|
+
var elem = fs$20[gracefulQueue].shift();
|
|
69068
69025
|
var fn = elem[0];
|
|
69069
69026
|
var args = elem[1];
|
|
69070
69027
|
var err = elem[2];
|
|
@@ -69083,7 +69040,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69083
69040
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69084
69041
|
debug("RETRY", fn.name, args);
|
|
69085
69042
|
fn.apply(null, args.concat([startTime]));
|
|
69086
|
-
} else fs$
|
|
69043
|
+
} else fs$20[gracefulQueue].push(elem);
|
|
69087
69044
|
}
|
|
69088
69045
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69089
69046
|
}
|
|
@@ -84209,7 +84166,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84209
84166
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
84210
84167
|
*/
|
|
84211
84168
|
var fs = require_graceful_fs();
|
|
84212
|
-
var path$
|
|
84169
|
+
var path$24 = require("path");
|
|
84213
84170
|
var flatten = require_flatten();
|
|
84214
84171
|
var difference = require_difference();
|
|
84215
84172
|
var union = require_union();
|
|
@@ -84229,7 +84186,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84229
84186
|
return result;
|
|
84230
84187
|
};
|
|
84231
84188
|
file.exists = function() {
|
|
84232
|
-
var filepath = path$
|
|
84189
|
+
var filepath = path$24.join.apply(path$24, arguments);
|
|
84233
84190
|
return fs.existsSync(filepath);
|
|
84234
84191
|
};
|
|
84235
84192
|
file.expand = function(...args) {
|
|
@@ -84240,7 +84197,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84240
84197
|
return glob.sync(pattern, options);
|
|
84241
84198
|
});
|
|
84242
84199
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
84243
|
-
filepath = path$
|
|
84200
|
+
filepath = path$24.join(options.cwd || "", filepath);
|
|
84244
84201
|
try {
|
|
84245
84202
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
84246
84203
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -84252,16 +84209,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84252
84209
|
};
|
|
84253
84210
|
file.expandMapping = function(patterns, destBase, options) {
|
|
84254
84211
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
84255
|
-
return path$
|
|
84212
|
+
return path$24.join(destBase || "", destPath);
|
|
84256
84213
|
} }, options);
|
|
84257
84214
|
var files = [];
|
|
84258
84215
|
var fileByDest = {};
|
|
84259
84216
|
file.expand(options, patterns).forEach(function(src) {
|
|
84260
84217
|
var destPath = src;
|
|
84261
|
-
if (options.flatten) destPath = path$
|
|
84218
|
+
if (options.flatten) destPath = path$24.basename(destPath);
|
|
84262
84219
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
84263
84220
|
var dest = options.rename(destBase, destPath, options);
|
|
84264
|
-
if (options.cwd) src = path$
|
|
84221
|
+
if (options.cwd) src = path$24.join(options.cwd, src);
|
|
84265
84222
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
84266
84223
|
src = src.replace(pathSeparatorRe, "/");
|
|
84267
84224
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -84336,7 +84293,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84336
84293
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
84337
84294
|
*/
|
|
84338
84295
|
var fs = require_graceful_fs();
|
|
84339
|
-
var path$
|
|
84296
|
+
var path$23 = require("path");
|
|
84340
84297
|
var isStream = require_is_stream$1();
|
|
84341
84298
|
var lazystream = require_lazystream();
|
|
84342
84299
|
var normalizePath = require_normalize_path();
|
|
@@ -84412,11 +84369,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84412
84369
|
(function next() {
|
|
84413
84370
|
file = list[i++];
|
|
84414
84371
|
if (!file) return callback(null, results);
|
|
84415
|
-
filepath = path$
|
|
84372
|
+
filepath = path$23.join(dirpath, file);
|
|
84416
84373
|
fs.stat(filepath, function(err, stats) {
|
|
84417
84374
|
results.push({
|
|
84418
84375
|
path: filepath,
|
|
84419
|
-
relative: path$
|
|
84376
|
+
relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
|
|
84420
84377
|
stats
|
|
84421
84378
|
});
|
|
84422
84379
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -84480,10 +84437,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84480
84437
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84481
84438
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84482
84439
|
*/
|
|
84483
|
-
var fs$
|
|
84440
|
+
var fs$19 = require("fs");
|
|
84484
84441
|
var glob = require_readdir_glob();
|
|
84485
84442
|
var async = require_async();
|
|
84486
|
-
var path$
|
|
84443
|
+
var path$22 = require("path");
|
|
84487
84444
|
var util = require_archiver_utils();
|
|
84488
84445
|
var inherits$5 = require("util").inherits;
|
|
84489
84446
|
var ArchiverError = require_error$10();
|
|
@@ -84557,7 +84514,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84557
84514
|
data.sourcePath = filepath;
|
|
84558
84515
|
task.data = data;
|
|
84559
84516
|
this._entriesCount++;
|
|
84560
|
-
if (data.stats && data.stats instanceof fs$
|
|
84517
|
+
if (data.stats && data.stats instanceof fs$19.Stats) {
|
|
84561
84518
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84562
84519
|
if (task) {
|
|
84563
84520
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84787,7 +84744,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84787
84744
|
callback();
|
|
84788
84745
|
return;
|
|
84789
84746
|
}
|
|
84790
|
-
fs$
|
|
84747
|
+
fs$19.lstat(task.filepath, function(err, stats) {
|
|
84791
84748
|
if (this._state.aborted) {
|
|
84792
84749
|
setImmediate(callback);
|
|
84793
84750
|
return;
|
|
@@ -84853,10 +84810,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84853
84810
|
task.data.sourceType = "buffer";
|
|
84854
84811
|
task.source = Buffer.concat([]);
|
|
84855
84812
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84856
|
-
var linkPath = fs$
|
|
84857
|
-
var dirName = path$
|
|
84813
|
+
var linkPath = fs$19.readlinkSync(task.filepath);
|
|
84814
|
+
var dirName = path$22.dirname(task.filepath);
|
|
84858
84815
|
task.data.type = "symlink";
|
|
84859
|
-
task.data.linkname = path$
|
|
84816
|
+
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
84860
84817
|
task.data.sourceType = "buffer";
|
|
84861
84818
|
task.source = Buffer.concat([]);
|
|
84862
84819
|
} else {
|
|
@@ -95942,7 +95899,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95942
95899
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95943
95900
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95944
95901
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95945
|
-
const { join: join$
|
|
95902
|
+
const { join: join$15, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95946
95903
|
const isWindows = process.platform === "win32";
|
|
95947
95904
|
/* istanbul ignore next */
|
|
95948
95905
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95972,7 +95929,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95972
95929
|
};
|
|
95973
95930
|
const getPathPart = (raw, cmd) => {
|
|
95974
95931
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95975
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95932
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95976
95933
|
};
|
|
95977
95934
|
const which = async (cmd, opt = {}) => {
|
|
95978
95935
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96721,7 +96678,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96721
96678
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96722
96679
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96723
96680
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96724
|
-
const { join: join$
|
|
96681
|
+
const { join: join$14, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96725
96682
|
const isWindows = process.platform === "win32";
|
|
96726
96683
|
/* istanbul ignore next */
|
|
96727
96684
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96751,7 +96708,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96751
96708
|
};
|
|
96752
96709
|
const getPathPart = (raw, cmd) => {
|
|
96753
96710
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96754
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96711
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96755
96712
|
};
|
|
96756
96713
|
const which = async (cmd, opt = {}) => {
|
|
96757
96714
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98649,7 +98606,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98649
98606
|
//#endregion
|
|
98650
98607
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98651
98608
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98652
|
-
const { join: join$
|
|
98609
|
+
const { join: join$13, basename: basename$4 } = require("path");
|
|
98653
98610
|
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);
|
|
98654
98611
|
const normalizeString = (pkg) => {
|
|
98655
98612
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98672,9 +98629,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98672
98629
|
const clean = {};
|
|
98673
98630
|
let hasBins = false;
|
|
98674
98631
|
Object.keys(orig).forEach((binKey) => {
|
|
98675
|
-
const base = join$
|
|
98632
|
+
const base = join$13("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98676
98633
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98677
|
-
const binTarget = join$
|
|
98634
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98678
98635
|
if (!binTarget) return;
|
|
98679
98636
|
clean[base] = binTarget;
|
|
98680
98637
|
hasBins = true;
|
|
@@ -100747,7 +100704,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100747
100704
|
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();
|
|
100748
100705
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100749
100706
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100750
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100707
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100751
100708
|
const { fileURLToPath } = require("url");
|
|
100752
100709
|
const defaultOptions = {
|
|
100753
100710
|
dereference: false,
|
|
@@ -100854,7 +100811,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100854
100811
|
});
|
|
100855
100812
|
return checkParentPaths(src, srcStat, destParent);
|
|
100856
100813
|
}
|
|
100857
|
-
const normalizePathToArray = (path$
|
|
100814
|
+
const normalizePathToArray = (path$54) => resolve$10(path$54).split(sep$2).filter(Boolean);
|
|
100858
100815
|
function isSrcSubdir(src, dest) {
|
|
100859
100816
|
const srcArr = normalizePathToArray(src);
|
|
100860
100817
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100956,8 +100913,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100956
100913
|
const dir = await readdir$6(src);
|
|
100957
100914
|
for (let i = 0; i < dir.length; i++) {
|
|
100958
100915
|
const item = dir[i];
|
|
100959
|
-
const srcItem = join$
|
|
100960
|
-
const destItem = join$
|
|
100916
|
+
const srcItem = join$12(src, item);
|
|
100917
|
+
const destItem = join$12(dest, item);
|
|
100961
100918
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100962
100919
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100963
100920
|
}
|
|
@@ -101021,13 +100978,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101021
100978
|
//#endregion
|
|
101022
100979
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
101023
100980
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101024
|
-
const { join: join$
|
|
100981
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
101025
100982
|
const getOptions = require_get_options();
|
|
101026
|
-
const { mkdir: mkdir$7, mkdtemp, rm: rm$
|
|
100983
|
+
const { mkdir: mkdir$7, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
101027
100984
|
const withTempDir = async (root, fn, opts) => {
|
|
101028
100985
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
101029
100986
|
await mkdir$7(root, { recursive: true });
|
|
101030
|
-
const target = await mkdtemp(join$
|
|
100987
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
101031
100988
|
let err;
|
|
101032
100989
|
let result;
|
|
101033
100990
|
try {
|
|
@@ -101036,7 +100993,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101036
100993
|
err = _err;
|
|
101037
100994
|
}
|
|
101038
100995
|
try {
|
|
101039
|
-
await rm$
|
|
100996
|
+
await rm$8(target, {
|
|
101040
100997
|
force: true,
|
|
101041
100998
|
recursive: true
|
|
101042
100999
|
});
|
|
@@ -101050,10 +101007,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101050
101007
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101051
101008
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101052
101009
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
101053
|
-
const { join: join$
|
|
101010
|
+
const { join: join$10 } = require("path");
|
|
101054
101011
|
const readdirScoped = async (dir) => {
|
|
101055
101012
|
const results = [];
|
|
101056
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101013
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
101057
101014
|
else results.push(item);
|
|
101058
101015
|
return results;
|
|
101059
101016
|
};
|
|
@@ -101062,11 +101019,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101062
101019
|
//#endregion
|
|
101063
101020
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101064
101021
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101065
|
-
const { dirname: dirname$8, join: join$
|
|
101022
|
+
const { dirname: dirname$8, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101066
101023
|
const fs$12 = require("fs/promises");
|
|
101067
|
-
const pathExists = async (path$
|
|
101024
|
+
const pathExists = async (path$53) => {
|
|
101068
101025
|
try {
|
|
101069
|
-
await fs$12.access(path$
|
|
101026
|
+
await fs$12.access(path$53);
|
|
101070
101027
|
return true;
|
|
101071
101028
|
} catch (er) {
|
|
101072
101029
|
return er.code !== "ENOENT";
|
|
@@ -101087,7 +101044,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101087
101044
|
const sourceStat = await fs$12.lstat(source);
|
|
101088
101045
|
if (sourceStat.isDirectory()) {
|
|
101089
101046
|
const files = await fs$12.readdir(source);
|
|
101090
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101047
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
101091
101048
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101092
101049
|
source,
|
|
101093
101050
|
destination
|
|
@@ -101263,7 +101220,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101263
101220
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101264
101221
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101265
101222
|
const crypto$1 = require("crypto");
|
|
101266
|
-
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$
|
|
101223
|
+
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$7, writeFile: writeFile$2 } = require("fs/promises");
|
|
101267
101224
|
const { Minipass } = require_commonjs$10();
|
|
101268
101225
|
const path$14 = require("path");
|
|
101269
101226
|
const ssri = require_lib$17();
|
|
@@ -101304,7 +101261,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101304
101261
|
};
|
|
101305
101262
|
};
|
|
101306
101263
|
const teardown = async (tmp) => {
|
|
101307
|
-
if (!tmp.moved) return rm$
|
|
101264
|
+
if (!tmp.moved) return rm$7(tmp.target, {
|
|
101308
101265
|
recursive: true,
|
|
101309
101266
|
force: true
|
|
101310
101267
|
});
|
|
@@ -101360,7 +101317,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101360
101317
|
module.exports.delete = del;
|
|
101361
101318
|
function del(cache, key, opts = {}) {
|
|
101362
101319
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
101363
|
-
return rm$
|
|
101320
|
+
return rm$7(bucketPath(cache, key), {
|
|
101364
101321
|
recursive: true,
|
|
101365
101322
|
force: true
|
|
101366
101323
|
});
|
|
@@ -106122,7 +106079,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106122
106079
|
const { glob } = require_index_min$1();
|
|
106123
106080
|
const path$12 = require("path");
|
|
106124
106081
|
const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
|
|
106125
|
-
module.exports = (path$
|
|
106082
|
+
module.exports = (path$52, options) => glob(globify(path$52), options);
|
|
106126
106083
|
}));
|
|
106127
106084
|
//#endregion
|
|
106128
106085
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -106145,7 +106102,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106145
106102
|
//#endregion
|
|
106146
106103
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
106147
106104
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106148
|
-
const { rm: rm$
|
|
106105
|
+
const { rm: rm$6 } = require("fs/promises");
|
|
106149
106106
|
const glob = require_glob();
|
|
106150
106107
|
const index = require_entry_index();
|
|
106151
106108
|
const memo = require_memoization();
|
|
@@ -106169,7 +106126,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106169
106126
|
silent: true,
|
|
106170
106127
|
nosort: true
|
|
106171
106128
|
});
|
|
106172
|
-
return Promise.all(paths.map((p) => rm$
|
|
106129
|
+
return Promise.all(paths.map((p) => rm$6(p, {
|
|
106173
106130
|
recursive: true,
|
|
106174
106131
|
force: true
|
|
106175
106132
|
})));
|
|
@@ -106178,7 +106135,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106178
106135
|
//#endregion
|
|
106179
106136
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
106180
106137
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106181
|
-
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$
|
|
106138
|
+
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$1 } = require("fs/promises");
|
|
106182
106139
|
const contentPath = require_path();
|
|
106183
106140
|
const fsm = require_lib$15();
|
|
106184
106141
|
const glob = require_glob();
|
|
@@ -106275,7 +106232,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106275
106232
|
} else {
|
|
106276
106233
|
stats.reclaimedCount++;
|
|
106277
106234
|
const s = await stat$4(f);
|
|
106278
|
-
await rm$
|
|
106235
|
+
await rm$5(f, {
|
|
106279
106236
|
recursive: true,
|
|
106280
106237
|
force: true
|
|
106281
106238
|
});
|
|
@@ -106298,7 +106255,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106298
106255
|
valid: false
|
|
106299
106256
|
};
|
|
106300
106257
|
if (err.code !== "EINTEGRITY") throw err;
|
|
106301
|
-
await rm$
|
|
106258
|
+
await rm$5(filepath, {
|
|
106302
106259
|
recursive: true,
|
|
106303
106260
|
force: true
|
|
106304
106261
|
});
|
|
@@ -106359,7 +106316,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106359
106316
|
}
|
|
106360
106317
|
function cleanTmp(cache, opts) {
|
|
106361
106318
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
106362
|
-
return rm$
|
|
106319
|
+
return rm$5(path$10.join(cache, "tmp"), {
|
|
106363
106320
|
recursive: true,
|
|
106364
106321
|
force: true
|
|
106365
106322
|
});
|
|
@@ -106920,14 +106877,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106920
106877
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106921
106878
|
const { resolve: resolve$8, basename: basename$3, dirname: dirname$7 } = require("path");
|
|
106922
106879
|
const normalizePackageBin = require_lib$21();
|
|
106923
|
-
const readPackage = ({ path: path$
|
|
106880
|
+
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106924
106881
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
106925
|
-
packageJsonCache.set(path$
|
|
106882
|
+
packageJsonCache.set(path$48, pkg);
|
|
106926
106883
|
return pkg;
|
|
106927
106884
|
}).catch(() => null);
|
|
106928
106885
|
const normalized = Symbol("package data has been normalized");
|
|
106929
|
-
const rpj = ({ path: path$
|
|
106930
|
-
path: path$
|
|
106886
|
+
const rpj = ({ path: path$49, packageJsonCache }) => readPackage({
|
|
106887
|
+
path: path$49,
|
|
106931
106888
|
packageJsonCache
|
|
106932
106889
|
}).then((pkg) => {
|
|
106933
106890
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -106941,14 +106898,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106941
106898
|
pkg[normalized] = true;
|
|
106942
106899
|
return pkg;
|
|
106943
106900
|
});
|
|
106944
|
-
const pkgContents = async ({ path: path$
|
|
106901
|
+
const pkgContents = async ({ path: path$50, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
106945
106902
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
106946
106903
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
106947
106904
|
if (pkg === true) return rpj({
|
|
106948
|
-
path: path$
|
|
106905
|
+
path: path$50 + "/package.json",
|
|
106949
106906
|
packageJsonCache
|
|
106950
106907
|
}).then((p) => pkgContents({
|
|
106951
|
-
path: path$
|
|
106908
|
+
path: path$50,
|
|
106952
106909
|
depth,
|
|
106953
106910
|
currentDepth,
|
|
106954
106911
|
pkg: p,
|
|
@@ -106957,7 +106914,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106957
106914
|
}));
|
|
106958
106915
|
if (pkg) {
|
|
106959
106916
|
if (pkg.bin) {
|
|
106960
|
-
const dir = dirname$7(path$
|
|
106917
|
+
const dir = dirname$7(path$50);
|
|
106961
106918
|
const scope = basename$3(dir);
|
|
106962
106919
|
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106963
106920
|
const binFiles = [];
|
|
@@ -106969,21 +106926,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106969
106926
|
}
|
|
106970
106927
|
}
|
|
106971
106928
|
if (currentDepth >= depth) {
|
|
106972
|
-
result.add(path$
|
|
106929
|
+
result.add(path$50);
|
|
106973
106930
|
return result;
|
|
106974
106931
|
}
|
|
106975
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$
|
|
106976
|
-
path: path$
|
|
106932
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$50, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106933
|
+
path: path$50,
|
|
106977
106934
|
packageJsonCache
|
|
106978
106935
|
}) : null]).catch(() => []);
|
|
106979
106936
|
if (!dirEntries) return result;
|
|
106980
106937
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
106981
|
-
result.add(path$
|
|
106938
|
+
result.add(path$50);
|
|
106982
106939
|
return result;
|
|
106983
106940
|
}
|
|
106984
106941
|
const recursePromises = [];
|
|
106985
106942
|
for (const entry of dirEntries) {
|
|
106986
|
-
const p = resolve$8(path$
|
|
106943
|
+
const p = resolve$8(path$50, entry.name);
|
|
106987
106944
|
if (entry.isDirectory() === false) {
|
|
106988
106945
|
result.add(p);
|
|
106989
106946
|
continue;
|
|
@@ -107002,7 +106959,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
107002
106959
|
}
|
|
107003
106960
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
107004
106961
|
return pkgContents({
|
|
107005
|
-
path: resolve$8(path$
|
|
106962
|
+
path: resolve$8(path$50, "node_modules", dep),
|
|
107006
106963
|
packageJsonCache,
|
|
107007
106964
|
pkg: true,
|
|
107008
106965
|
depth,
|
|
@@ -107013,8 +106970,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
107013
106970
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
107014
106971
|
return result;
|
|
107015
106972
|
};
|
|
107016
|
-
module.exports = ({ path: path$
|
|
107017
|
-
path: resolve$8(path$
|
|
106973
|
+
module.exports = ({ path: path$51, ...opts }) => pkgContents({
|
|
106974
|
+
path: resolve$8(path$51),
|
|
107018
106975
|
...opts,
|
|
107019
106976
|
pkg: true
|
|
107020
106977
|
}).then((results) => [...results]);
|
|
@@ -112450,7 +112407,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112450
112407
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112451
112408
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112452
112409
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112453
|
-
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$
|
|
112410
|
+
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
112454
112411
|
const { log } = require_lib$29();
|
|
112455
112412
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112456
112413
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112480,10 +112437,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112480
112437
|
"/archived-packages/**"
|
|
112481
112438
|
];
|
|
112482
112439
|
const strictDefaults = ["/.git"];
|
|
112483
|
-
const normalizePath = (path$
|
|
112440
|
+
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112484
112441
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112485
112442
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112486
|
-
const ignoreContent = readFile$4(join$
|
|
112443
|
+
const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
|
|
112487
112444
|
result.push(ignoreContent);
|
|
112488
112445
|
break;
|
|
112489
112446
|
} catch (err) {
|
|
@@ -112492,8 +112449,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112492
112449
|
}
|
|
112493
112450
|
if (!rel) return result;
|
|
112494
112451
|
const firstRel = rel.split(sep, 1)[0];
|
|
112495
|
-
const newRoot = join$
|
|
112496
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112452
|
+
const newRoot = join$8(root, firstRel);
|
|
112453
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112497
112454
|
};
|
|
112498
112455
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112499
112456
|
constructor(tree, opts) {
|
|
@@ -112517,14 +112474,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112517
112474
|
this.requiredFiles = options.requiredFiles || [];
|
|
112518
112475
|
const additionalDefaults = [];
|
|
112519
112476
|
if (options.prefix && options.workspaces) {
|
|
112520
|
-
const path$
|
|
112477
|
+
const path$46 = normalizePath(options.path);
|
|
112521
112478
|
const prefix = normalizePath(options.prefix);
|
|
112522
112479
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112523
112480
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112524
|
-
if (path$
|
|
112481
|
+
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112525
112482
|
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112526
112483
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112527
|
-
} else if (path$
|
|
112484
|
+
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112528
112485
|
}
|
|
112529
112486
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
112530
112487
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -112560,7 +112517,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112560
112517
|
let ignoreFiles = null;
|
|
112561
112518
|
if (this.tree.workspaces) {
|
|
112562
112519
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112563
|
-
const entryPath = join$
|
|
112520
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112564
112521
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112565
112522
|
defaultRules,
|
|
112566
112523
|
"package.json",
|
|
@@ -112620,7 +112577,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112620
112577
|
if (file.endsWith("/*")) file += "*";
|
|
112621
112578
|
const inverse = `!${file}`;
|
|
112622
112579
|
try {
|
|
112623
|
-
const stat = lstat$1(join$
|
|
112580
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112624
112581
|
if (stat.isFile()) {
|
|
112625
112582
|
strict.unshift(inverse);
|
|
112626
112583
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112655,10 +112612,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112655
112612
|
if (!edge || edge.peer || edge.dev) continue;
|
|
112656
112613
|
const node = this.tree.edgesOut.get(dep).to;
|
|
112657
112614
|
if (!node) continue;
|
|
112658
|
-
const path$
|
|
112615
|
+
const path$47 = node.path;
|
|
112659
112616
|
const tree = node.target;
|
|
112660
112617
|
const walkerOpts = {
|
|
112661
|
-
path: path$
|
|
112618
|
+
path: path$47,
|
|
112662
112619
|
isPackage: true,
|
|
112663
112620
|
ignoreFiles: [],
|
|
112664
112621
|
seen: this.seen
|
|
@@ -112677,7 +112634,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112677
112634
|
walker.start();
|
|
112678
112635
|
});
|
|
112679
112636
|
const relativeFrom = relative(this.root, walker.path);
|
|
112680
|
-
for (const file of bundled) this.result.add(join$
|
|
112637
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112681
112638
|
}
|
|
112682
112639
|
}
|
|
112683
112640
|
};
|
|
@@ -112735,7 +112692,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112735
112692
|
const { resolve: resolve$4 } = require("path");
|
|
112736
112693
|
let npm_config_node_gyp;
|
|
112737
112694
|
const makeSpawnArgs = (options) => {
|
|
112738
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
112695
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$44, scriptShell = true, stdio, stdioString } = options;
|
|
112739
112696
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
112740
112697
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
112741
112698
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -112743,17 +112700,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112743
112700
|
cmd,
|
|
112744
112701
|
args,
|
|
112745
112702
|
{
|
|
112746
|
-
env: setPATH(path$
|
|
112703
|
+
env: setPATH(path$44, binPaths, {
|
|
112747
112704
|
...process.env,
|
|
112748
112705
|
...env,
|
|
112749
|
-
npm_package_json: resolve$4(path$
|
|
112706
|
+
npm_package_json: resolve$4(path$44, "package.json"),
|
|
112750
112707
|
npm_lifecycle_event: event,
|
|
112751
112708
|
npm_lifecycle_script: cmd,
|
|
112752
112709
|
npm_config_node_gyp
|
|
112753
112710
|
}),
|
|
112754
112711
|
stdioString,
|
|
112755
112712
|
stdio,
|
|
112756
|
-
cwd: path$
|
|
112713
|
+
cwd: path$44,
|
|
112757
112714
|
shell: scriptShell
|
|
112758
112715
|
}
|
|
112759
112716
|
];
|
|
@@ -142071,7 +142028,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142071
142028
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142072
142029
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142073
142030
|
const { basename: basename$1, dirname: dirname$4 } = require("node:path");
|
|
142074
|
-
const { rm: rm$
|
|
142031
|
+
const { rm: rm$4, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
142075
142032
|
const PackageJson = require_lib$18();
|
|
142076
142033
|
const cacache = require_lib$14();
|
|
142077
142034
|
const fsm = require_lib$13();
|
|
@@ -142248,7 +142205,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142248
142205
|
return getContents({
|
|
142249
142206
|
path,
|
|
142250
142207
|
depth: 1
|
|
142251
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
142208
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
|
|
142252
142209
|
recursive: true,
|
|
142253
142210
|
force: true
|
|
142254
142211
|
}))));
|
|
@@ -150045,9 +150002,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
150045
150002
|
* @param {string} path
|
|
150046
150003
|
* @return {boolean|string}
|
|
150047
150004
|
*/
|
|
150048
|
-
function lookup(path$
|
|
150049
|
-
if (!path$
|
|
150050
|
-
var extension = extname("x." + path$
|
|
150005
|
+
function lookup(path$43) {
|
|
150006
|
+
if (!path$43 || typeof path$43 !== "string") return false;
|
|
150007
|
+
var extension = extname("x." + path$43).toLowerCase().substr(1);
|
|
150051
150008
|
if (!extension) return false;
|
|
150052
150009
|
return exports.types[extension] || false;
|
|
150053
150010
|
}
|
|
@@ -151251,7 +151208,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151251
151208
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151252
151209
|
} else throw new Error(`Offline and no local fallback version available for ${packageName}`);
|
|
151253
151210
|
} else try {
|
|
151254
|
-
const cachePath =
|
|
151211
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151255
151212
|
let packumentPromise = packumentRequests.get(packageName);
|
|
151256
151213
|
if (!packumentPromise) {
|
|
151257
151214
|
packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
|
|
@@ -151282,7 +151239,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151282
151239
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151283
151240
|
} else throw error;
|
|
151284
151241
|
}
|
|
151285
|
-
const cachePath =
|
|
151242
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151286
151243
|
const packageDir = (0, node_path.join)(baseDir, resolvedVersion);
|
|
151287
151244
|
const checkStart = Date.now();
|
|
151288
151245
|
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
@@ -151359,7 +151316,7 @@ async function runPnpm(cwd, options) {
|
|
|
151359
151316
|
...process.env,
|
|
151360
151317
|
NODE_ENV: "production",
|
|
151361
151318
|
PATH: nodePath ? `${(0, node_path.dirname)(nodePath)}${node_path.delimiter}${process.env.PATH}` : process.env.PATH,
|
|
151362
|
-
PNPM_HOME:
|
|
151319
|
+
PNPM_HOME: ctx.getPnpmPath(),
|
|
151363
151320
|
PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
|
|
151364
151321
|
...extraEnv
|
|
151365
151322
|
}
|
|
@@ -151586,7 +151543,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151586
151543
|
}
|
|
151587
151544
|
//#endregion
|
|
151588
151545
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151589
|
-
const { join: join$
|
|
151546
|
+
const { join: join$6 } = node_path.default;
|
|
151590
151547
|
//#endregion
|
|
151591
151548
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151592
151549
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -151844,7 +151801,7 @@ const sharedParams = {
|
|
|
151844
151801
|
}),
|
|
151845
151802
|
customProfile: createPathParam(void 0, {
|
|
151846
151803
|
required: false,
|
|
151847
|
-
description: "Use your own profile (X:\\Users\\XXX\\AppData\\Local\\Google\\Chrome\\User Data).
|
|
151804
|
+
description: "Use your own profile (X:\\Users\\XXX\\AppData\\Local\\Google\\Chrome\\User Data). Useful if you want to reuse plugins installed in your current browser",
|
|
151848
151805
|
control: {
|
|
151849
151806
|
type: "path",
|
|
151850
151807
|
options: {
|
|
@@ -152054,7 +152011,7 @@ var src_default = createNodeDefinition({
|
|
|
152054
152011
|
}],
|
|
152055
152012
|
validators: [],
|
|
152056
152013
|
integrations: [{
|
|
152057
|
-
name: "Browser Executable
|
|
152014
|
+
name: "Browser Executable",
|
|
152058
152015
|
fields: [{
|
|
152059
152016
|
key: "path",
|
|
152060
152017
|
label: "Browser Executable Path",
|