@pipelab/plugin-filesystem 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 +449 -497
- package/dist/index.mjs +45 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2102,7 +2102,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2102
2102
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2103
2103
|
locale: "en-US",
|
|
2104
2104
|
theme: "light",
|
|
2105
|
-
version: "
|
|
2105
|
+
version: "7.0.0",
|
|
2106
2106
|
autosave: true,
|
|
2107
2107
|
agents: [],
|
|
2108
2108
|
tours: {
|
|
@@ -2115,11 +2115,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2115
2115
|
completed: false
|
|
2116
2116
|
}
|
|
2117
2117
|
},
|
|
2118
|
-
buildHistory: { retentionPolicy: {
|
|
2119
|
-
enabled: false,
|
|
2120
|
-
maxEntries: 50,
|
|
2121
|
-
maxAge: 30
|
|
2122
|
-
} },
|
|
2123
2118
|
plugins: DEFAULT_PLUGINS,
|
|
2124
2119
|
isInternalMigrationBannerClosed: false
|
|
2125
2120
|
});
|
|
@@ -2176,18 +2171,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2176
2171
|
return {
|
|
2177
2172
|
...rest,
|
|
2178
2173
|
agents: [],
|
|
2179
|
-
buildHistory: { retentionPolicy: {
|
|
2180
|
-
enabled: false,
|
|
2181
|
-
maxEntries: 50,
|
|
2182
|
-
maxAge: 30
|
|
2183
|
-
} },
|
|
2184
2174
|
plugins: DEFAULT_PLUGINS,
|
|
2185
2175
|
isInternalMigrationBannerClosed: false
|
|
2186
2176
|
};
|
|
2187
2177
|
}
|
|
2188
2178
|
}),
|
|
2189
2179
|
createMigration({
|
|
2190
|
-
version: "
|
|
2180
|
+
version: "7.0.0",
|
|
2191
2181
|
up: finalVersion
|
|
2192
2182
|
})
|
|
2193
2183
|
]
|
|
@@ -2206,7 +2196,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2206
2196
|
});
|
|
2207
2197
|
const fileRepoMigratorInternal = createMigrator();
|
|
2208
2198
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2209
|
-
version: "
|
|
2199
|
+
version: "3.0.0",
|
|
2210
2200
|
projects: [{
|
|
2211
2201
|
id: "main",
|
|
2212
2202
|
name: "Default project",
|
|
@@ -2216,30 +2206,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2216
2206
|
});
|
|
2217
2207
|
fileRepoMigratorInternal.createMigrations({
|
|
2218
2208
|
defaultValue: defaultFileRepo,
|
|
2219
|
-
migrations: [
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2209
|
+
migrations: [
|
|
2210
|
+
createMigration({
|
|
2211
|
+
version: "1.0.0",
|
|
2212
|
+
up: (state) => {
|
|
2213
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2214
|
+
return {
|
|
2215
|
+
...file,
|
|
2216
|
+
id,
|
|
2217
|
+
project: "main"
|
|
2218
|
+
};
|
|
2219
|
+
});
|
|
2223
2220
|
return {
|
|
2224
|
-
...
|
|
2225
|
-
|
|
2226
|
-
|
|
2221
|
+
...state,
|
|
2222
|
+
projects: [{
|
|
2223
|
+
id: "main",
|
|
2224
|
+
name: "Default project",
|
|
2225
|
+
description: "The initial default project"
|
|
2226
|
+
}],
|
|
2227
|
+
pipelines
|
|
2227
2228
|
};
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
up: finalVersion
|
|
2242
|
-
})]
|
|
2229
|
+
}
|
|
2230
|
+
}),
|
|
2231
|
+
createMigration({
|
|
2232
|
+
version: "2.0.0",
|
|
2233
|
+
up: (state) => {
|
|
2234
|
+
return { ...state };
|
|
2235
|
+
}
|
|
2236
|
+
}),
|
|
2237
|
+
createMigration({
|
|
2238
|
+
version: "3.0.0",
|
|
2239
|
+
up: finalVersion
|
|
2240
|
+
})
|
|
2241
|
+
]
|
|
2243
2242
|
});
|
|
2244
2243
|
const savedFileMigratorInternal = createMigrator();
|
|
2245
2244
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2400,14 +2399,19 @@ object({
|
|
|
2400
2399
|
version: literal("1.0.0"),
|
|
2401
2400
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2402
2401
|
});
|
|
2403
|
-
const FileRepoProjectValidatorV2
|
|
2402
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2404
2403
|
id: string(),
|
|
2405
2404
|
name: string(),
|
|
2406
2405
|
description: string()
|
|
2407
2406
|
});
|
|
2408
2407
|
object({
|
|
2409
2408
|
version: literal("2.0.0"),
|
|
2410
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2409
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2410
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2411
|
+
});
|
|
2412
|
+
object({
|
|
2413
|
+
version: literal("3.0.0"),
|
|
2414
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2411
2415
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2412
2416
|
});
|
|
2413
2417
|
object({
|
|
@@ -2516,44 +2520,6 @@ object({
|
|
|
2516
2520
|
name: string(),
|
|
2517
2521
|
url: string()
|
|
2518
2522
|
})),
|
|
2519
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2520
|
-
enabled: boolean(),
|
|
2521
|
-
maxEntries: number(),
|
|
2522
|
-
maxAge: number()
|
|
2523
|
-
}) })
|
|
2524
|
-
});
|
|
2525
|
-
object({
|
|
2526
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2527
|
-
version: literal("8.0.0"),
|
|
2528
|
-
locale: union([
|
|
2529
|
-
literal("en-US"),
|
|
2530
|
-
literal("fr-FR"),
|
|
2531
|
-
literal("pt-BR"),
|
|
2532
|
-
literal("zh-CN"),
|
|
2533
|
-
literal("es-ES"),
|
|
2534
|
-
literal("de-DE")
|
|
2535
|
-
]),
|
|
2536
|
-
tours: object({
|
|
2537
|
-
dashboard: object({
|
|
2538
|
-
step: number(),
|
|
2539
|
-
completed: boolean()
|
|
2540
|
-
}),
|
|
2541
|
-
editor: object({
|
|
2542
|
-
step: number(),
|
|
2543
|
-
completed: boolean()
|
|
2544
|
-
})
|
|
2545
|
-
}),
|
|
2546
|
-
autosave: boolean(),
|
|
2547
|
-
agents: array(object({
|
|
2548
|
-
id: string(),
|
|
2549
|
-
name: string(),
|
|
2550
|
-
url: string()
|
|
2551
|
-
})),
|
|
2552
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2553
|
-
enabled: boolean(),
|
|
2554
|
-
maxEntries: number(),
|
|
2555
|
-
maxAge: number()
|
|
2556
|
-
}) }),
|
|
2557
2523
|
plugins: array(object({
|
|
2558
2524
|
name: string(),
|
|
2559
2525
|
enabled: boolean(),
|
|
@@ -45417,20 +45383,6 @@ var WebSocketError = class extends Error {
|
|
|
45417
45383
|
const isWebSocketRequestMessage = (message) => {
|
|
45418
45384
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45419
45385
|
};
|
|
45420
|
-
object({
|
|
45421
|
-
version: literal("1.0.0"),
|
|
45422
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45423
|
-
});
|
|
45424
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45425
|
-
id: string(),
|
|
45426
|
-
name: string(),
|
|
45427
|
-
description: string()
|
|
45428
|
-
});
|
|
45429
|
-
object({
|
|
45430
|
-
version: literal("2.0.0"),
|
|
45431
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45432
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45433
|
-
});
|
|
45434
45386
|
//#endregion
|
|
45435
45387
|
//#region ../../packages/constants/src/index.ts
|
|
45436
45388
|
const websocketPort = 33753;
|
|
@@ -49970,7 +49922,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49970
49922
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49971
49923
|
module.exports = isexe;
|
|
49972
49924
|
isexe.sync = sync;
|
|
49973
|
-
var fs$
|
|
49925
|
+
var fs$38 = require("fs");
|
|
49974
49926
|
function checkPathExt(path, options) {
|
|
49975
49927
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49976
49928
|
if (!pathext) return true;
|
|
@@ -49987,12 +49939,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49987
49939
|
return checkPathExt(path, options);
|
|
49988
49940
|
}
|
|
49989
49941
|
function isexe(path, options, cb) {
|
|
49990
|
-
fs$
|
|
49942
|
+
fs$38.stat(path, function(er, stat) {
|
|
49991
49943
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49992
49944
|
});
|
|
49993
49945
|
}
|
|
49994
49946
|
function sync(path, options) {
|
|
49995
|
-
return checkStat(fs$
|
|
49947
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49996
49948
|
}
|
|
49997
49949
|
}));
|
|
49998
49950
|
//#endregion
|
|
@@ -50000,14 +49952,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50000
49952
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50001
49953
|
module.exports = isexe;
|
|
50002
49954
|
isexe.sync = sync;
|
|
50003
|
-
var fs$
|
|
49955
|
+
var fs$37 = require("fs");
|
|
50004
49956
|
function isexe(path, options, cb) {
|
|
50005
|
-
fs$
|
|
49957
|
+
fs$37.stat(path, function(er, stat) {
|
|
50006
49958
|
cb(er, er ? false : checkStat(stat, options));
|
|
50007
49959
|
});
|
|
50008
49960
|
}
|
|
50009
49961
|
function sync(path, options) {
|
|
50010
|
-
return checkStat(fs$
|
|
49962
|
+
return checkStat(fs$37.statSync(path), options);
|
|
50011
49963
|
}
|
|
50012
49964
|
function checkStat(stat, options) {
|
|
50013
49965
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50071,7 +50023,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
50071
50023
|
//#region ../../node_modules/which/which.js
|
|
50072
50024
|
var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50073
50025
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50074
|
-
const path$
|
|
50026
|
+
const path$43 = require("path");
|
|
50075
50027
|
const COLON = isWindows ? ";" : ":";
|
|
50076
50028
|
const isexe = require_isexe();
|
|
50077
50029
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -50101,7 +50053,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50101
50053
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50102
50054
|
const ppRaw = pathEnv[i];
|
|
50103
50055
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50104
|
-
const pCmd = path$
|
|
50056
|
+
const pCmd = path$43.join(pathPart, cmd);
|
|
50105
50057
|
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
50106
50058
|
});
|
|
50107
50059
|
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
@@ -50122,7 +50074,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50122
50074
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
50123
50075
|
const ppRaw = pathEnv[i];
|
|
50124
50076
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50125
|
-
const pCmd = path$
|
|
50077
|
+
const pCmd = path$43.join(pathPart, cmd);
|
|
50126
50078
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50127
50079
|
for (let j = 0; j < pathExt.length; j++) {
|
|
50128
50080
|
const cur = p + pathExt[j];
|
|
@@ -50153,7 +50105,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
50153
50105
|
//#endregion
|
|
50154
50106
|
//#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50155
50107
|
var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50156
|
-
const path$
|
|
50108
|
+
const path$42 = require("path");
|
|
50157
50109
|
const which = require_which$1();
|
|
50158
50110
|
const getPathKey = require_path_key();
|
|
50159
50111
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -50168,12 +50120,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
50168
50120
|
try {
|
|
50169
50121
|
resolved = which.sync(parsed.command, {
|
|
50170
50122
|
path: env[getPathKey({ env })],
|
|
50171
|
-
pathExt: withoutPathExt ? path$
|
|
50123
|
+
pathExt: withoutPathExt ? path$42.delimiter : void 0
|
|
50172
50124
|
});
|
|
50173
50125
|
} catch (e) {} finally {
|
|
50174
50126
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
50175
50127
|
}
|
|
50176
|
-
if (resolved) resolved = path$
|
|
50128
|
+
if (resolved) resolved = path$42.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50177
50129
|
return resolved;
|
|
50178
50130
|
}
|
|
50179
50131
|
function resolveCommand(parsed) {
|
|
@@ -50222,16 +50174,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50222
50174
|
//#endregion
|
|
50223
50175
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50224
50176
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50225
|
-
const fs$
|
|
50177
|
+
const fs$36 = require("fs");
|
|
50226
50178
|
const shebangCommand = require_shebang_command();
|
|
50227
50179
|
function readShebang(command) {
|
|
50228
50180
|
const size = 150;
|
|
50229
50181
|
const buffer = Buffer.alloc(size);
|
|
50230
50182
|
let fd;
|
|
50231
50183
|
try {
|
|
50232
|
-
fd = fs$
|
|
50233
|
-
fs$
|
|
50234
|
-
fs$
|
|
50184
|
+
fd = fs$36.openSync(command, "r");
|
|
50185
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50186
|
+
fs$36.closeSync(fd);
|
|
50235
50187
|
} catch (e) {}
|
|
50236
50188
|
return shebangCommand(buffer.toString());
|
|
50237
50189
|
}
|
|
@@ -50240,7 +50192,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
50240
50192
|
//#endregion
|
|
50241
50193
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50242
50194
|
var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50243
|
-
const path$
|
|
50195
|
+
const path$41 = require("path");
|
|
50244
50196
|
const resolveCommand = require_resolveCommand();
|
|
50245
50197
|
const escape = require_escape$4();
|
|
50246
50198
|
const readShebang = require_readShebang();
|
|
@@ -50263,7 +50215,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50263
50215
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50264
50216
|
if (parsed.options.forceShell || needsShell) {
|
|
50265
50217
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50266
|
-
parsed.command = path$
|
|
50218
|
+
parsed.command = path$41.normalize(parsed.command);
|
|
50267
50219
|
parsed.command = escape.command(parsed.command);
|
|
50268
50220
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50269
50221
|
parsed.args = [
|
|
@@ -56919,10 +56871,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56919
56871
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
56920
56872
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
56921
56873
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
56922
|
-
const path$
|
|
56874
|
+
const path$94 = split[0];
|
|
56923
56875
|
const prefix = split[1];
|
|
56924
56876
|
this.needPax = split[2];
|
|
56925
|
-
this.needPax = encString(buf, off, 100, path$
|
|
56877
|
+
this.needPax = encString(buf, off, 100, path$94) || this.needPax;
|
|
56926
56878
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
56927
56879
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
56928
56880
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -57025,7 +56977,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57025
56977
|
//#region ../../node_modules/tar/lib/pax.js
|
|
57026
56978
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57027
56979
|
const Header = require_header();
|
|
57028
|
-
const path$
|
|
56980
|
+
const path$35 = require("path");
|
|
57029
56981
|
var Pax = class {
|
|
57030
56982
|
constructor(obj, global) {
|
|
57031
56983
|
this.atime = obj.atime || null;
|
|
@@ -57053,7 +57005,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
57053
57005
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
57054
57006
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
57055
57007
|
new Header({
|
|
57056
|
-
path: ("PaxHeader/" + path$
|
|
57008
|
+
path: ("PaxHeader/" + path$35.basename(this.path)).slice(0, 99),
|
|
57057
57009
|
mode: this.mode || 420,
|
|
57058
57010
|
uid: this.uid || null,
|
|
57059
57011
|
gid: this.gid || null,
|
|
@@ -57156,16 +57108,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
57156
57108
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
57157
57109
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57158
57110
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
57159
|
-
module.exports = (path$
|
|
57111
|
+
module.exports = (path$93) => {
|
|
57160
57112
|
let r = "";
|
|
57161
|
-
let parsed = parse$3(path$
|
|
57162
|
-
while (isAbsolute$3(path$
|
|
57163
|
-
const root = path$
|
|
57164
|
-
path$
|
|
57113
|
+
let parsed = parse$3(path$93);
|
|
57114
|
+
while (isAbsolute$3(path$93) || parsed.root) {
|
|
57115
|
+
const root = path$93.charAt(0) === "/" && path$93.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
57116
|
+
path$93 = path$93.slice(root.length);
|
|
57165
57117
|
r += root;
|
|
57166
|
-
parsed = parse$3(path$
|
|
57118
|
+
parsed = parse$3(path$93);
|
|
57167
57119
|
}
|
|
57168
|
-
return [r, path$
|
|
57120
|
+
return [r, path$93];
|
|
57169
57121
|
};
|
|
57170
57122
|
}));
|
|
57171
57123
|
//#endregion
|
|
@@ -57188,14 +57140,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57188
57140
|
const { Minipass } = require_minipass$4();
|
|
57189
57141
|
const Pax = require_pax();
|
|
57190
57142
|
const Header = require_header();
|
|
57191
|
-
const fs$
|
|
57192
|
-
const path$
|
|
57143
|
+
const fs$35 = require("fs");
|
|
57144
|
+
const path$34 = require("path");
|
|
57193
57145
|
const normPath = require_normalize_windows_path();
|
|
57194
57146
|
const stripSlash = require_strip_trailing_slashes();
|
|
57195
|
-
const prefixPath = (path$
|
|
57196
|
-
if (!prefix) return normPath(path$
|
|
57197
|
-
path$
|
|
57198
|
-
return stripSlash(prefix) + "/" + path$
|
|
57147
|
+
const prefixPath = (path$90, prefix) => {
|
|
57148
|
+
if (!prefix) return normPath(path$90);
|
|
57149
|
+
path$90 = normPath(path$90).replace(/^\.(\/|$)/, "");
|
|
57150
|
+
return stripSlash(prefix) + "/" + path$90;
|
|
57199
57151
|
};
|
|
57200
57152
|
const maxReadSize = 16 * 1024 * 1024;
|
|
57201
57153
|
const PROCESS = Symbol("process");
|
|
@@ -57262,7 +57214,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57262
57214
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
57263
57215
|
p = p.replace(/\\/g, "/");
|
|
57264
57216
|
}
|
|
57265
|
-
this.absolute = normPath(opt.absolute || path$
|
|
57217
|
+
this.absolute = normPath(opt.absolute || path$34.resolve(this.cwd, p));
|
|
57266
57218
|
if (this.path === "") this.path = "./";
|
|
57267
57219
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
57268
57220
|
entry: this,
|
|
@@ -57276,7 +57228,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57276
57228
|
return super.emit(ev, ...data);
|
|
57277
57229
|
}
|
|
57278
57230
|
[LSTAT]() {
|
|
57279
|
-
fs$
|
|
57231
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57280
57232
|
if (er) return this.emit("error", er);
|
|
57281
57233
|
this[ONLSTAT](stat);
|
|
57282
57234
|
});
|
|
@@ -57300,8 +57252,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57300
57252
|
[MODE](mode) {
|
|
57301
57253
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
57302
57254
|
}
|
|
57303
|
-
[PREFIX](path$
|
|
57304
|
-
return prefixPath(path$
|
|
57255
|
+
[PREFIX](path$91) {
|
|
57256
|
+
return prefixPath(path$91, this.prefix);
|
|
57305
57257
|
}
|
|
57306
57258
|
[HEADER]() {
|
|
57307
57259
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -57341,7 +57293,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57341
57293
|
this.end();
|
|
57342
57294
|
}
|
|
57343
57295
|
[SYMLINK]() {
|
|
57344
|
-
fs$
|
|
57296
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57345
57297
|
if (er) return this.emit("error", er);
|
|
57346
57298
|
this[ONREADLINK](linkpath);
|
|
57347
57299
|
});
|
|
@@ -57353,7 +57305,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57353
57305
|
}
|
|
57354
57306
|
[HARDLINK](linkpath) {
|
|
57355
57307
|
this.type = "Link";
|
|
57356
|
-
this.linkpath = normPath(path$
|
|
57308
|
+
this.linkpath = normPath(path$34.relative(this.cwd, linkpath));
|
|
57357
57309
|
this.stat.size = 0;
|
|
57358
57310
|
this[HEADER]();
|
|
57359
57311
|
this.end();
|
|
@@ -57372,7 +57324,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57372
57324
|
this[OPENFILE]();
|
|
57373
57325
|
}
|
|
57374
57326
|
[OPENFILE]() {
|
|
57375
|
-
fs$
|
|
57327
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57376
57328
|
if (er) return this.emit("error", er);
|
|
57377
57329
|
this[ONOPENFILE](fd);
|
|
57378
57330
|
});
|
|
@@ -57392,13 +57344,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57392
57344
|
}
|
|
57393
57345
|
[READ]() {
|
|
57394
57346
|
const { fd, buf, offset, length, pos } = this;
|
|
57395
|
-
fs$
|
|
57347
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57396
57348
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57397
57349
|
this[ONREAD](bytesRead);
|
|
57398
57350
|
});
|
|
57399
57351
|
}
|
|
57400
57352
|
[CLOSE](cb) {
|
|
57401
|
-
fs$
|
|
57353
|
+
fs$35.close(this.fd, cb);
|
|
57402
57354
|
}
|
|
57403
57355
|
[ONREAD](bytesRead) {
|
|
57404
57356
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57454,19 +57406,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57454
57406
|
});
|
|
57455
57407
|
var WriteEntrySync = class extends WriteEntry {
|
|
57456
57408
|
[LSTAT]() {
|
|
57457
|
-
this[ONLSTAT](fs$
|
|
57409
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57458
57410
|
}
|
|
57459
57411
|
[SYMLINK]() {
|
|
57460
|
-
this[ONREADLINK](fs$
|
|
57412
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57461
57413
|
}
|
|
57462
57414
|
[OPENFILE]() {
|
|
57463
|
-
this[ONOPENFILE](fs$
|
|
57415
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57464
57416
|
}
|
|
57465
57417
|
[READ]() {
|
|
57466
57418
|
let threw = true;
|
|
57467
57419
|
try {
|
|
57468
57420
|
const { fd, buf, offset, length, pos } = this;
|
|
57469
|
-
const bytesRead = fs$
|
|
57421
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57470
57422
|
this[ONREAD](bytesRead);
|
|
57471
57423
|
threw = false;
|
|
57472
57424
|
} finally {
|
|
@@ -57479,7 +57431,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57479
57431
|
cb();
|
|
57480
57432
|
}
|
|
57481
57433
|
[CLOSE](cb) {
|
|
57482
|
-
fs$
|
|
57434
|
+
fs$35.closeSync(this.fd);
|
|
57483
57435
|
cb();
|
|
57484
57436
|
}
|
|
57485
57437
|
};
|
|
@@ -57552,8 +57504,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57552
57504
|
super.write(this.header.block);
|
|
57553
57505
|
readEntry.pipe(this);
|
|
57554
57506
|
}
|
|
57555
|
-
[PREFIX](path$
|
|
57556
|
-
return prefixPath(path$
|
|
57507
|
+
[PREFIX](path$92) {
|
|
57508
|
+
return prefixPath(path$92, this.prefix);
|
|
57557
57509
|
}
|
|
57558
57510
|
[MODE](mode) {
|
|
57559
57511
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -57837,8 +57789,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
57837
57789
|
//#region ../../node_modules/tar/lib/pack.js
|
|
57838
57790
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57839
57791
|
var PackJob = class {
|
|
57840
|
-
constructor(path$
|
|
57841
|
-
this.path = path$
|
|
57792
|
+
constructor(path$86, absolute) {
|
|
57793
|
+
this.path = path$86 || "./";
|
|
57842
57794
|
this.absolute = absolute;
|
|
57843
57795
|
this.entry = null;
|
|
57844
57796
|
this.stat = null;
|
|
@@ -57876,8 +57828,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57876
57828
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57877
57829
|
const WRITE = Symbol("write");
|
|
57878
57830
|
const ONDRAIN = Symbol("ondrain");
|
|
57879
|
-
const fs$
|
|
57880
|
-
const path$
|
|
57831
|
+
const fs$34 = require("fs");
|
|
57832
|
+
const path$33 = require("path");
|
|
57881
57833
|
const warner = require_warn_mixin();
|
|
57882
57834
|
const normPath = require_normalize_windows_path();
|
|
57883
57835
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -57929,24 +57881,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57929
57881
|
[WRITE](chunk) {
|
|
57930
57882
|
return super.write(chunk);
|
|
57931
57883
|
}
|
|
57932
|
-
add(path$
|
|
57933
|
-
this.write(path$
|
|
57884
|
+
add(path$87) {
|
|
57885
|
+
this.write(path$87);
|
|
57934
57886
|
return this;
|
|
57935
57887
|
}
|
|
57936
|
-
end(path$
|
|
57937
|
-
if (path$
|
|
57888
|
+
end(path$88) {
|
|
57889
|
+
if (path$88) this.write(path$88);
|
|
57938
57890
|
this[ENDED] = true;
|
|
57939
57891
|
this[PROCESS]();
|
|
57940
57892
|
return this;
|
|
57941
57893
|
}
|
|
57942
|
-
write(path$
|
|
57894
|
+
write(path$89) {
|
|
57943
57895
|
if (this[ENDED]) throw new Error("write after end");
|
|
57944
|
-
if (path$
|
|
57945
|
-
else this[ADDFSENTRY](path$
|
|
57896
|
+
if (path$89 instanceof ReadEntry) this[ADDTARENTRY](path$89);
|
|
57897
|
+
else this[ADDFSENTRY](path$89);
|
|
57946
57898
|
return this.flowing;
|
|
57947
57899
|
}
|
|
57948
57900
|
[ADDTARENTRY](p) {
|
|
57949
|
-
const absolute = normPath(path$
|
|
57901
|
+
const absolute = normPath(path$33.resolve(this.cwd, p.path));
|
|
57950
57902
|
if (!this.filter(p.path, p)) p.resume();
|
|
57951
57903
|
else {
|
|
57952
57904
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -57958,14 +57910,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57958
57910
|
this[PROCESS]();
|
|
57959
57911
|
}
|
|
57960
57912
|
[ADDFSENTRY](p) {
|
|
57961
|
-
const absolute = normPath(path$
|
|
57913
|
+
const absolute = normPath(path$33.resolve(this.cwd, p));
|
|
57962
57914
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
57963
57915
|
this[PROCESS]();
|
|
57964
57916
|
}
|
|
57965
57917
|
[STAT](job) {
|
|
57966
57918
|
job.pending = true;
|
|
57967
57919
|
this[JOBS] += 1;
|
|
57968
|
-
fs$
|
|
57920
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57969
57921
|
job.pending = false;
|
|
57970
57922
|
this[JOBS] -= 1;
|
|
57971
57923
|
if (er) this.emit("error", er);
|
|
@@ -57981,7 +57933,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57981
57933
|
[READDIR](job) {
|
|
57982
57934
|
job.pending = true;
|
|
57983
57935
|
this[JOBS] += 1;
|
|
57984
|
-
fs$
|
|
57936
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57985
57937
|
job.pending = false;
|
|
57986
57938
|
this[JOBS] -= 1;
|
|
57987
57939
|
if (er) return this.emit("error", er);
|
|
@@ -58099,10 +58051,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58099
58051
|
resume() {}
|
|
58100
58052
|
[STAT](job) {
|
|
58101
58053
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58102
|
-
this[ONSTAT](job, fs$
|
|
58054
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58103
58055
|
}
|
|
58104
58056
|
[READDIR](job, stat) {
|
|
58105
|
-
this[ONREADDIR](job, fs$
|
|
58057
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58106
58058
|
}
|
|
58107
58059
|
[PIPE](job) {
|
|
58108
58060
|
const source = job.entry;
|
|
@@ -58558,8 +58510,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58558
58510
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58559
58511
|
const MiniPass = require_minipass$2();
|
|
58560
58512
|
const EE$11 = require("events").EventEmitter;
|
|
58561
|
-
const fs$
|
|
58562
|
-
let writev = fs$
|
|
58513
|
+
const fs$33 = require("fs");
|
|
58514
|
+
let writev = fs$33.writev;
|
|
58563
58515
|
/* istanbul ignore next */
|
|
58564
58516
|
if (!writev) {
|
|
58565
58517
|
const binding = process.binding("fs");
|
|
@@ -58630,7 +58582,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58630
58582
|
throw new TypeError("this is a readable stream");
|
|
58631
58583
|
}
|
|
58632
58584
|
[_open]() {
|
|
58633
|
-
fs$
|
|
58585
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58634
58586
|
}
|
|
58635
58587
|
[_onopen](er, fd) {
|
|
58636
58588
|
if (er) this[_onerror](er);
|
|
@@ -58649,7 +58601,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58649
58601
|
const buf = this[_makeBuf]();
|
|
58650
58602
|
/* istanbul ignore if */
|
|
58651
58603
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58652
|
-
fs$
|
|
58604
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58653
58605
|
}
|
|
58654
58606
|
}
|
|
58655
58607
|
[_onread](er, br, buf) {
|
|
@@ -58661,7 +58613,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58661
58613
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58662
58614
|
const fd = this[_fd];
|
|
58663
58615
|
this[_fd] = null;
|
|
58664
|
-
fs$
|
|
58616
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58665
58617
|
}
|
|
58666
58618
|
}
|
|
58667
58619
|
[_onerror](er) {
|
|
@@ -58699,7 +58651,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58699
58651
|
[_open]() {
|
|
58700
58652
|
let threw = true;
|
|
58701
58653
|
try {
|
|
58702
|
-
this[_onopen](null, fs$
|
|
58654
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58703
58655
|
threw = false;
|
|
58704
58656
|
} finally {
|
|
58705
58657
|
if (threw) this[_close]();
|
|
@@ -58713,7 +58665,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58713
58665
|
do {
|
|
58714
58666
|
const buf = this[_makeBuf]();
|
|
58715
58667
|
/* istanbul ignore next */
|
|
58716
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58668
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58717
58669
|
if (!this[_handleChunk](br, buf)) break;
|
|
58718
58670
|
} while (true);
|
|
58719
58671
|
this[_reading] = false;
|
|
@@ -58727,7 +58679,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58727
58679
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58728
58680
|
const fd = this[_fd];
|
|
58729
58681
|
this[_fd] = null;
|
|
58730
|
-
fs$
|
|
58682
|
+
fs$33.closeSync(fd);
|
|
58731
58683
|
this.emit("close");
|
|
58732
58684
|
}
|
|
58733
58685
|
}
|
|
@@ -58772,7 +58724,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58772
58724
|
this.emit("error", er);
|
|
58773
58725
|
}
|
|
58774
58726
|
[_open]() {
|
|
58775
|
-
fs$
|
|
58727
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58776
58728
|
}
|
|
58777
58729
|
[_onopen](er, fd) {
|
|
58778
58730
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58807,7 +58759,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58807
58759
|
return true;
|
|
58808
58760
|
}
|
|
58809
58761
|
[_write](buf) {
|
|
58810
|
-
fs$
|
|
58762
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58811
58763
|
}
|
|
58812
58764
|
[_onwrite](er, bw) {
|
|
58813
58765
|
if (er) this[_onerror](er);
|
|
@@ -58841,7 +58793,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58841
58793
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58842
58794
|
const fd = this[_fd];
|
|
58843
58795
|
this[_fd] = null;
|
|
58844
|
-
fs$
|
|
58796
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58845
58797
|
}
|
|
58846
58798
|
}
|
|
58847
58799
|
};
|
|
@@ -58849,28 +58801,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58849
58801
|
[_open]() {
|
|
58850
58802
|
let fd;
|
|
58851
58803
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58852
|
-
fd = fs$
|
|
58804
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58853
58805
|
} catch (er) {
|
|
58854
58806
|
if (er.code === "ENOENT") {
|
|
58855
58807
|
this[_flags] = "w";
|
|
58856
58808
|
return this[_open]();
|
|
58857
58809
|
} else throw er;
|
|
58858
58810
|
}
|
|
58859
|
-
else fd = fs$
|
|
58811
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58860
58812
|
this[_onopen](null, fd);
|
|
58861
58813
|
}
|
|
58862
58814
|
[_close]() {
|
|
58863
58815
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58864
58816
|
const fd = this[_fd];
|
|
58865
58817
|
this[_fd] = null;
|
|
58866
|
-
fs$
|
|
58818
|
+
fs$33.closeSync(fd);
|
|
58867
58819
|
this.emit("close");
|
|
58868
58820
|
}
|
|
58869
58821
|
}
|
|
58870
58822
|
[_write](buf) {
|
|
58871
58823
|
let threw = true;
|
|
58872
58824
|
try {
|
|
58873
|
-
this[_onwrite](null, fs$
|
|
58825
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58874
58826
|
threw = false;
|
|
58875
58827
|
} finally {
|
|
58876
58828
|
if (threw) try {
|
|
@@ -59235,9 +59187,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59235
59187
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59236
59188
|
const hlo = require_high_level_opt();
|
|
59237
59189
|
const Parser = require_parse$4();
|
|
59238
|
-
const fs$
|
|
59190
|
+
const fs$32 = require("fs");
|
|
59239
59191
|
const fsm = require_fs_minipass();
|
|
59240
|
-
const path$
|
|
59192
|
+
const path$32 = require("path");
|
|
59241
59193
|
const stripSlash = require_strip_trailing_slashes();
|
|
59242
59194
|
module.exports = (opt_, files, cb) => {
|
|
59243
59195
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -59263,8 +59215,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59263
59215
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
59264
59216
|
const filter = opt.filter;
|
|
59265
59217
|
const mapHas = (file, r) => {
|
|
59266
|
-
const root = r || path$
|
|
59267
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
59218
|
+
const root = r || path$32.parse(file).root || ".";
|
|
59219
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$32.dirname(file), root);
|
|
59268
59220
|
map.set(file, ret);
|
|
59269
59221
|
return ret;
|
|
59270
59222
|
};
|
|
@@ -59276,15 +59228,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59276
59228
|
let threw = true;
|
|
59277
59229
|
let fd;
|
|
59278
59230
|
try {
|
|
59279
|
-
const stat = fs$
|
|
59231
|
+
const stat = fs$32.statSync(file);
|
|
59280
59232
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59281
|
-
if (stat.size < readSize) p.end(fs$
|
|
59233
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59282
59234
|
else {
|
|
59283
59235
|
let pos = 0;
|
|
59284
59236
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59285
|
-
fd = fs$
|
|
59237
|
+
fd = fs$32.openSync(file, "r");
|
|
59286
59238
|
while (pos < stat.size) {
|
|
59287
|
-
const bytesRead = fs$
|
|
59239
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59288
59240
|
pos += bytesRead;
|
|
59289
59241
|
p.write(buf.slice(0, bytesRead));
|
|
59290
59242
|
}
|
|
@@ -59293,7 +59245,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59293
59245
|
threw = false;
|
|
59294
59246
|
} finally {
|
|
59295
59247
|
if (threw && fd) try {
|
|
59296
|
-
fs$
|
|
59248
|
+
fs$32.closeSync(fd);
|
|
59297
59249
|
} catch (er) {}
|
|
59298
59250
|
}
|
|
59299
59251
|
};
|
|
@@ -59304,7 +59256,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59304
59256
|
const p = new Promise((resolve, reject) => {
|
|
59305
59257
|
parse.on("error", reject);
|
|
59306
59258
|
parse.on("end", resolve);
|
|
59307
|
-
fs$
|
|
59259
|
+
fs$32.stat(file, (er, stat) => {
|
|
59308
59260
|
if (er) reject(er);
|
|
59309
59261
|
else {
|
|
59310
59262
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59327,7 +59279,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59327
59279
|
const Pack = require_pack$1();
|
|
59328
59280
|
const fsm = require_fs_minipass();
|
|
59329
59281
|
const t = require_list();
|
|
59330
|
-
const path$
|
|
59282
|
+
const path$31 = require("path");
|
|
59331
59283
|
module.exports = (opt_, files, cb) => {
|
|
59332
59284
|
if (typeof files === "function") cb = files;
|
|
59333
59285
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -59359,7 +59311,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59359
59311
|
const addFilesSync = (p, files) => {
|
|
59360
59312
|
files.forEach((file) => {
|
|
59361
59313
|
if (file.charAt(0) === "@") t({
|
|
59362
|
-
file: path$
|
|
59314
|
+
file: path$31.resolve(p.cwd, file.slice(1)),
|
|
59363
59315
|
sync: true,
|
|
59364
59316
|
noResume: true,
|
|
59365
59317
|
onentry: (entry) => p.add(entry)
|
|
@@ -59372,7 +59324,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59372
59324
|
while (files.length) {
|
|
59373
59325
|
const file = files.shift();
|
|
59374
59326
|
if (file.charAt(0) === "@") return t({
|
|
59375
|
-
file: path$
|
|
59327
|
+
file: path$31.resolve(p.cwd, file.slice(1)),
|
|
59376
59328
|
noResume: true,
|
|
59377
59329
|
onentry: (entry) => p.add(entry)
|
|
59378
59330
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59396,10 +59348,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59396
59348
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59397
59349
|
const hlo = require_high_level_opt();
|
|
59398
59350
|
const Pack = require_pack$1();
|
|
59399
|
-
const fs$
|
|
59351
|
+
const fs$31 = require("fs");
|
|
59400
59352
|
const fsm = require_fs_minipass();
|
|
59401
59353
|
const t = require_list();
|
|
59402
|
-
const path$
|
|
59354
|
+
const path$30 = require("path");
|
|
59403
59355
|
const Header = require_header();
|
|
59404
59356
|
module.exports = (opt_, files, cb) => {
|
|
59405
59357
|
const opt = hlo(opt_);
|
|
@@ -59416,16 +59368,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59416
59368
|
let position;
|
|
59417
59369
|
try {
|
|
59418
59370
|
try {
|
|
59419
|
-
fd = fs$
|
|
59371
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59420
59372
|
} catch (er) {
|
|
59421
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59373
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59422
59374
|
else throw er;
|
|
59423
59375
|
}
|
|
59424
|
-
const st = fs$
|
|
59376
|
+
const st = fs$31.fstatSync(fd);
|
|
59425
59377
|
const headBuf = Buffer.alloc(512);
|
|
59426
59378
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59427
59379
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59428
|
-
bytes = fs$
|
|
59380
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59429
59381
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59430
59382
|
if (!bytes) break POSITION;
|
|
59431
59383
|
}
|
|
@@ -59440,7 +59392,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59440
59392
|
streamSync(opt, p, position, fd, files);
|
|
59441
59393
|
} finally {
|
|
59442
59394
|
if (threw) try {
|
|
59443
|
-
fs$
|
|
59395
|
+
fs$31.closeSync(fd);
|
|
59444
59396
|
} catch (er) {}
|
|
59445
59397
|
}
|
|
59446
59398
|
};
|
|
@@ -59457,7 +59409,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59457
59409
|
const p = new Pack(opt);
|
|
59458
59410
|
const getPos = (fd, size, cb_) => {
|
|
59459
59411
|
const cb = (er, pos) => {
|
|
59460
|
-
if (er) fs$
|
|
59412
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59461
59413
|
else cb_(null, pos);
|
|
59462
59414
|
};
|
|
59463
59415
|
let position = 0;
|
|
@@ -59467,7 +59419,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59467
59419
|
const onread = (er, bytes) => {
|
|
59468
59420
|
if (er) return cb(er);
|
|
59469
59421
|
bufPos += bytes;
|
|
59470
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59422
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59471
59423
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59472
59424
|
if (bufPos < 512) return cb(null, position);
|
|
59473
59425
|
const h = new Header(headBuf);
|
|
@@ -59478,9 +59430,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59478
59430
|
if (position >= size) return cb(null, position);
|
|
59479
59431
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59480
59432
|
bufPos = 0;
|
|
59481
|
-
fs$
|
|
59433
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59482
59434
|
};
|
|
59483
|
-
fs$
|
|
59435
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59484
59436
|
};
|
|
59485
59437
|
const promise = new Promise((resolve, reject) => {
|
|
59486
59438
|
p.on("error", reject);
|
|
@@ -59488,11 +59440,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59488
59440
|
const onopen = (er, fd) => {
|
|
59489
59441
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59490
59442
|
flag = "w+";
|
|
59491
|
-
return fs$
|
|
59443
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59492
59444
|
}
|
|
59493
59445
|
if (er) return reject(er);
|
|
59494
|
-
fs$
|
|
59495
|
-
if (er) return fs$
|
|
59446
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59447
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59496
59448
|
getPos(fd, st.size, (er, position) => {
|
|
59497
59449
|
if (er) return reject(er);
|
|
59498
59450
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59506,14 +59458,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59506
59458
|
});
|
|
59507
59459
|
});
|
|
59508
59460
|
};
|
|
59509
|
-
fs$
|
|
59461
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59510
59462
|
});
|
|
59511
59463
|
return cb ? promise.then(cb, cb) : promise;
|
|
59512
59464
|
};
|
|
59513
59465
|
const addFilesSync = (p, files) => {
|
|
59514
59466
|
files.forEach((file) => {
|
|
59515
59467
|
if (file.charAt(0) === "@") t({
|
|
59516
|
-
file: path$
|
|
59468
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59517
59469
|
sync: true,
|
|
59518
59470
|
noResume: true,
|
|
59519
59471
|
onentry: (entry) => p.add(entry)
|
|
@@ -59526,7 +59478,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59526
59478
|
while (files.length) {
|
|
59527
59479
|
const file = files.shift();
|
|
59528
59480
|
if (file.charAt(0) === "@") return t({
|
|
59529
|
-
file: path$
|
|
59481
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59530
59482
|
noResume: true,
|
|
59531
59483
|
onentry: (entry) => p.add(entry)
|
|
59532
59484
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59559,32 +59511,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59559
59511
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59560
59512
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59561
59513
|
const { promisify: promisify$1 } = require("util");
|
|
59562
|
-
const fs$
|
|
59514
|
+
const fs$30 = require("fs");
|
|
59563
59515
|
const optsArg = (opts) => {
|
|
59564
59516
|
if (!opts) opts = {
|
|
59565
59517
|
mode: 511,
|
|
59566
|
-
fs: fs$
|
|
59518
|
+
fs: fs$30
|
|
59567
59519
|
};
|
|
59568
59520
|
else if (typeof opts === "object") opts = {
|
|
59569
59521
|
mode: 511,
|
|
59570
|
-
fs: fs$
|
|
59522
|
+
fs: fs$30,
|
|
59571
59523
|
...opts
|
|
59572
59524
|
};
|
|
59573
59525
|
else if (typeof opts === "number") opts = {
|
|
59574
59526
|
mode: opts,
|
|
59575
|
-
fs: fs$
|
|
59527
|
+
fs: fs$30
|
|
59576
59528
|
};
|
|
59577
59529
|
else if (typeof opts === "string") opts = {
|
|
59578
59530
|
mode: parseInt(opts, 8),
|
|
59579
|
-
fs: fs$
|
|
59531
|
+
fs: fs$30
|
|
59580
59532
|
};
|
|
59581
59533
|
else throw new TypeError("invalid options argument");
|
|
59582
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59534
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59583
59535
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59584
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59536
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59585
59537
|
opts.statAsync = promisify$1(opts.stat);
|
|
59586
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59587
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59538
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59539
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59588
59540
|
return opts;
|
|
59589
59541
|
};
|
|
59590
59542
|
module.exports = optsArg;
|
|
@@ -59594,21 +59546,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59594
59546
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59595
59547
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59596
59548
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
59597
|
-
const pathArg = (path$
|
|
59598
|
-
if (/\0/.test(path$
|
|
59599
|
-
path: path$
|
|
59549
|
+
const pathArg = (path$85) => {
|
|
59550
|
+
if (/\0/.test(path$85)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59551
|
+
path: path$85,
|
|
59600
59552
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59601
59553
|
});
|
|
59602
|
-
path$
|
|
59554
|
+
path$85 = resolve$13(path$85);
|
|
59603
59555
|
if (platform === "win32") {
|
|
59604
59556
|
const badWinChars = /[*|"<>?:]/;
|
|
59605
|
-
const { root } = parse$2(path$
|
|
59606
|
-
if (badWinChars.test(path$
|
|
59607
|
-
path: path$
|
|
59557
|
+
const { root } = parse$2(path$85);
|
|
59558
|
+
if (badWinChars.test(path$85.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
59559
|
+
path: path$85,
|
|
59608
59560
|
code: "EINVAL"
|
|
59609
59561
|
});
|
|
59610
59562
|
}
|
|
59611
|
-
return path$
|
|
59563
|
+
return path$85;
|
|
59612
59564
|
};
|
|
59613
59565
|
module.exports = pathArg;
|
|
59614
59566
|
}));
|
|
@@ -59616,14 +59568,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59616
59568
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59617
59569
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59618
59570
|
const { dirname: dirname$14 } = require("path");
|
|
59619
|
-
const findMade = (opts, parent, path$
|
|
59620
|
-
if (path$
|
|
59621
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
59571
|
+
const findMade = (opts, parent, path$83 = void 0) => {
|
|
59572
|
+
if (path$83 === parent) return Promise.resolve();
|
|
59573
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59622
59574
|
};
|
|
59623
|
-
const findMadeSync = (opts, parent, path$
|
|
59624
|
-
if (path$
|
|
59575
|
+
const findMadeSync = (opts, parent, path$84 = void 0) => {
|
|
59576
|
+
if (path$84 === parent) return void 0;
|
|
59625
59577
|
try {
|
|
59626
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
59578
|
+
return opts.statSync(parent).isDirectory() ? path$84 : void 0;
|
|
59627
59579
|
} catch (er) {
|
|
59628
59580
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59629
59581
|
}
|
|
@@ -59637,16 +59589,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59637
59589
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59638
59590
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59639
59591
|
const { dirname: dirname$13 } = require("path");
|
|
59640
|
-
const mkdirpManual = (path$
|
|
59592
|
+
const mkdirpManual = (path$81, opts, made) => {
|
|
59641
59593
|
opts.recursive = false;
|
|
59642
|
-
const parent = dirname$13(path$
|
|
59643
|
-
if (parent === path$
|
|
59594
|
+
const parent = dirname$13(path$81);
|
|
59595
|
+
if (parent === path$81) return opts.mkdirAsync(path$81, opts).catch((er) => {
|
|
59644
59596
|
if (er.code !== "EISDIR") throw er;
|
|
59645
59597
|
});
|
|
59646
|
-
return opts.mkdirAsync(path$
|
|
59647
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
59598
|
+
return opts.mkdirAsync(path$81, opts).then(() => made || path$81, (er) => {
|
|
59599
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$81, opts, made));
|
|
59648
59600
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59649
|
-
return opts.statAsync(path$
|
|
59601
|
+
return opts.statAsync(path$81).then((st) => {
|
|
59650
59602
|
if (st.isDirectory()) return made;
|
|
59651
59603
|
else throw er;
|
|
59652
59604
|
}, () => {
|
|
@@ -59654,23 +59606,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59654
59606
|
});
|
|
59655
59607
|
});
|
|
59656
59608
|
};
|
|
59657
|
-
const mkdirpManualSync = (path$
|
|
59658
|
-
const parent = dirname$13(path$
|
|
59609
|
+
const mkdirpManualSync = (path$82, opts, made) => {
|
|
59610
|
+
const parent = dirname$13(path$82);
|
|
59659
59611
|
opts.recursive = false;
|
|
59660
|
-
if (parent === path$
|
|
59661
|
-
return opts.mkdirSync(path$
|
|
59612
|
+
if (parent === path$82) try {
|
|
59613
|
+
return opts.mkdirSync(path$82, opts);
|
|
59662
59614
|
} catch (er) {
|
|
59663
59615
|
if (er.code !== "EISDIR") throw er;
|
|
59664
59616
|
else return;
|
|
59665
59617
|
}
|
|
59666
59618
|
try {
|
|
59667
|
-
opts.mkdirSync(path$
|
|
59668
|
-
return made || path$
|
|
59619
|
+
opts.mkdirSync(path$82, opts);
|
|
59620
|
+
return made || path$82;
|
|
59669
59621
|
} catch (er) {
|
|
59670
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59622
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$82, opts, mkdirpManualSync(parent, opts, made));
|
|
59671
59623
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59672
59624
|
try {
|
|
59673
|
-
if (!opts.statSync(path$
|
|
59625
|
+
if (!opts.statSync(path$82).isDirectory()) throw er;
|
|
59674
59626
|
} catch (_) {
|
|
59675
59627
|
throw er;
|
|
59676
59628
|
}
|
|
@@ -59687,23 +59639,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59687
59639
|
const { dirname: dirname$12 } = require("path");
|
|
59688
59640
|
const { findMade, findMadeSync } = require_find_made();
|
|
59689
59641
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59690
|
-
const mkdirpNative = (path$
|
|
59642
|
+
const mkdirpNative = (path$79, opts) => {
|
|
59691
59643
|
opts.recursive = true;
|
|
59692
|
-
if (dirname$12(path$
|
|
59693
|
-
return findMade(opts, path$
|
|
59694
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
59644
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirAsync(path$79, opts);
|
|
59645
|
+
return findMade(opts, path$79).then((made) => opts.mkdirAsync(path$79, opts).then(() => made).catch((er) => {
|
|
59646
|
+
if (er.code === "ENOENT") return mkdirpManual(path$79, opts);
|
|
59695
59647
|
else throw er;
|
|
59696
59648
|
}));
|
|
59697
59649
|
};
|
|
59698
|
-
const mkdirpNativeSync = (path$
|
|
59650
|
+
const mkdirpNativeSync = (path$80, opts) => {
|
|
59699
59651
|
opts.recursive = true;
|
|
59700
|
-
if (dirname$12(path$
|
|
59701
|
-
const made = findMadeSync(opts, path$
|
|
59652
|
+
if (dirname$12(path$80) === path$80) return opts.mkdirSync(path$80, opts);
|
|
59653
|
+
const made = findMadeSync(opts, path$80);
|
|
59702
59654
|
try {
|
|
59703
|
-
opts.mkdirSync(path$
|
|
59655
|
+
opts.mkdirSync(path$80, opts);
|
|
59704
59656
|
return made;
|
|
59705
59657
|
} catch (er) {
|
|
59706
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59658
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$80, opts);
|
|
59707
59659
|
else throw er;
|
|
59708
59660
|
}
|
|
59709
59661
|
};
|
|
@@ -59715,12 +59667,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59715
59667
|
//#endregion
|
|
59716
59668
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59717
59669
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59718
|
-
const fs$
|
|
59670
|
+
const fs$29 = require("fs");
|
|
59719
59671
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59720
59672
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59721
59673
|
module.exports = {
|
|
59722
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59723
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59674
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59675
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59724
59676
|
};
|
|
59725
59677
|
}));
|
|
59726
59678
|
//#endregion
|
|
@@ -59751,64 +59703,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59751
59703
|
//#endregion
|
|
59752
59704
|
//#region ../../node_modules/chownr/chownr.js
|
|
59753
59705
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59754
|
-
const fs$
|
|
59755
|
-
const path$
|
|
59706
|
+
const fs$28 = require("fs");
|
|
59707
|
+
const path$29 = require("path");
|
|
59756
59708
|
/* istanbul ignore next */
|
|
59757
|
-
const LCHOWN = fs$
|
|
59709
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59758
59710
|
/* istanbul ignore next */
|
|
59759
|
-
const LCHOWNSYNC = fs$
|
|
59711
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59760
59712
|
/* istanbul ignore next */
|
|
59761
|
-
const needEISDIRHandled = fs$
|
|
59762
|
-
const lchownSync = (path$
|
|
59713
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59714
|
+
const lchownSync = (path$71, uid, gid) => {
|
|
59763
59715
|
try {
|
|
59764
|
-
return fs$
|
|
59716
|
+
return fs$28[LCHOWNSYNC](path$71, uid, gid);
|
|
59765
59717
|
} catch (er) {
|
|
59766
59718
|
if (er.code !== "ENOENT") throw er;
|
|
59767
59719
|
}
|
|
59768
59720
|
};
|
|
59769
59721
|
/* istanbul ignore next */
|
|
59770
|
-
const chownSync = (path$
|
|
59722
|
+
const chownSync = (path$72, uid, gid) => {
|
|
59771
59723
|
try {
|
|
59772
|
-
return fs$
|
|
59724
|
+
return fs$28.chownSync(path$72, uid, gid);
|
|
59773
59725
|
} catch (er) {
|
|
59774
59726
|
if (er.code !== "ENOENT") throw er;
|
|
59775
59727
|
}
|
|
59776
59728
|
};
|
|
59777
59729
|
/* istanbul ignore next */
|
|
59778
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
59730
|
+
const handleEISDIR = needEISDIRHandled ? (path$73, uid, gid, cb) => (er) => {
|
|
59779
59731
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59780
|
-
else fs$
|
|
59732
|
+
else fs$28.chown(path$73, uid, gid, cb);
|
|
59781
59733
|
} : (_, __, ___, cb) => cb;
|
|
59782
59734
|
/* istanbul ignore next */
|
|
59783
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
59735
|
+
const handleEISDirSync = needEISDIRHandled ? (path$74, uid, gid) => {
|
|
59784
59736
|
try {
|
|
59785
|
-
return lchownSync(path$
|
|
59737
|
+
return lchownSync(path$74, uid, gid);
|
|
59786
59738
|
} catch (er) {
|
|
59787
59739
|
if (er.code !== "EISDIR") throw er;
|
|
59788
|
-
chownSync(path$
|
|
59740
|
+
chownSync(path$74, uid, gid);
|
|
59789
59741
|
}
|
|
59790
|
-
} : (path$
|
|
59742
|
+
} : (path$75, uid, gid) => lchownSync(path$75, uid, gid);
|
|
59791
59743
|
const nodeVersion = process.version;
|
|
59792
|
-
let readdir = (path$
|
|
59793
|
-
let readdirSync = (path$
|
|
59744
|
+
let readdir = (path$76, options, cb) => fs$28.readdir(path$76, options, cb);
|
|
59745
|
+
let readdirSync = (path$77, options) => fs$28.readdirSync(path$77, options);
|
|
59794
59746
|
/* istanbul ignore next */
|
|
59795
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
59747
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$78, options, cb) => fs$28.readdir(path$78, cb);
|
|
59796
59748
|
const chown = (cpath, uid, gid, cb) => {
|
|
59797
|
-
fs$
|
|
59749
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59798
59750
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59799
59751
|
}));
|
|
59800
59752
|
};
|
|
59801
59753
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59802
|
-
if (typeof child === "string") return fs$
|
|
59754
|
+
if (typeof child === "string") return fs$28.lstat(path$29.resolve(p, child), (er, stats) => {
|
|
59803
59755
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59804
59756
|
stats.name = child;
|
|
59805
59757
|
chownrKid(p, stats, uid, gid, cb);
|
|
59806
59758
|
});
|
|
59807
|
-
if (child.isDirectory()) chownr(path$
|
|
59759
|
+
if (child.isDirectory()) chownr(path$29.resolve(p, child.name), uid, gid, (er) => {
|
|
59808
59760
|
if (er) return cb(er);
|
|
59809
|
-
chown(path$
|
|
59761
|
+
chown(path$29.resolve(p, child.name), uid, gid, cb);
|
|
59810
59762
|
});
|
|
59811
|
-
else chown(path$
|
|
59763
|
+
else chown(path$29.resolve(p, child.name), uid, gid, cb);
|
|
59812
59764
|
};
|
|
59813
59765
|
const chownr = (p, uid, gid, cb) => {
|
|
59814
59766
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -59829,15 +59781,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59829
59781
|
};
|
|
59830
59782
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59831
59783
|
if (typeof child === "string") try {
|
|
59832
|
-
const stats = fs$
|
|
59784
|
+
const stats = fs$28.lstatSync(path$29.resolve(p, child));
|
|
59833
59785
|
stats.name = child;
|
|
59834
59786
|
child = stats;
|
|
59835
59787
|
} catch (er) {
|
|
59836
59788
|
if (er.code === "ENOENT") return;
|
|
59837
59789
|
else throw er;
|
|
59838
59790
|
}
|
|
59839
|
-
if (child.isDirectory()) chownrSync(path$
|
|
59840
|
-
handleEISDirSync(path$
|
|
59791
|
+
if (child.isDirectory()) chownrSync(path$29.resolve(p, child.name), uid, gid);
|
|
59792
|
+
handleEISDirSync(path$29.resolve(p, child.name), uid, gid);
|
|
59841
59793
|
};
|
|
59842
59794
|
const chownrSync = (p, uid, gid) => {
|
|
59843
59795
|
let children;
|
|
@@ -59858,14 +59810,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59858
59810
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59859
59811
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59860
59812
|
const mkdirp = require_mkdirp();
|
|
59861
|
-
const fs$
|
|
59862
|
-
const path$
|
|
59813
|
+
const fs$27 = require("fs");
|
|
59814
|
+
const path$28 = require("path");
|
|
59863
59815
|
const chownr = require_chownr();
|
|
59864
59816
|
const normPath = require_normalize_windows_path();
|
|
59865
59817
|
var SymlinkError = class extends Error {
|
|
59866
|
-
constructor(symlink, path$
|
|
59818
|
+
constructor(symlink, path$69) {
|
|
59867
59819
|
super("Cannot extract through symbolic link");
|
|
59868
|
-
this.path = path$
|
|
59820
|
+
this.path = path$69;
|
|
59869
59821
|
this.symlink = symlink;
|
|
59870
59822
|
}
|
|
59871
59823
|
get name() {
|
|
@@ -59873,9 +59825,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59873
59825
|
}
|
|
59874
59826
|
};
|
|
59875
59827
|
var CwdError = class extends Error {
|
|
59876
|
-
constructor(path$
|
|
59877
|
-
super(code + ": Cannot cd into '" + path$
|
|
59878
|
-
this.path = path$
|
|
59828
|
+
constructor(path$70, code) {
|
|
59829
|
+
super(code + ": Cannot cd into '" + path$70 + "'");
|
|
59830
|
+
this.path = path$70;
|
|
59879
59831
|
this.code = code;
|
|
59880
59832
|
}
|
|
59881
59833
|
get name() {
|
|
@@ -59885,7 +59837,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59885
59837
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59886
59838
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59887
59839
|
const checkCwd = (dir, cb) => {
|
|
59888
|
-
fs$
|
|
59840
|
+
fs$27.stat(dir, (er, st) => {
|
|
59889
59841
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59890
59842
|
cb(er);
|
|
59891
59843
|
});
|
|
@@ -59907,31 +59859,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59907
59859
|
else {
|
|
59908
59860
|
cSet(cache, dir, true);
|
|
59909
59861
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59910
|
-
else if (needChmod) fs$
|
|
59862
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59911
59863
|
else cb();
|
|
59912
59864
|
}
|
|
59913
59865
|
};
|
|
59914
59866
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59915
59867
|
if (dir === cwd) return checkCwd(dir, done);
|
|
59916
59868
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
59917
|
-
mkdir_(cwd, normPath(path$
|
|
59869
|
+
mkdir_(cwd, normPath(path$28.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
59918
59870
|
};
|
|
59919
59871
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
59920
59872
|
if (!parts.length) return cb(null, created);
|
|
59921
59873
|
const p = parts.shift();
|
|
59922
|
-
const part = normPath(path$
|
|
59874
|
+
const part = normPath(path$28.resolve(base + "/" + p));
|
|
59923
59875
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59924
|
-
fs$
|
|
59876
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59925
59877
|
};
|
|
59926
59878
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59927
|
-
if (er) fs$
|
|
59879
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59928
59880
|
if (statEr) {
|
|
59929
59881
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59930
59882
|
cb(statEr);
|
|
59931
59883
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59932
|
-
else if (unlink) fs$
|
|
59884
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59933
59885
|
if (er) return cb(er);
|
|
59934
|
-
fs$
|
|
59886
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59935
59887
|
});
|
|
59936
59888
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59937
59889
|
else cb(er);
|
|
@@ -59945,7 +59897,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59945
59897
|
let ok = false;
|
|
59946
59898
|
let code = "ENOTDIR";
|
|
59947
59899
|
try {
|
|
59948
|
-
ok = fs$
|
|
59900
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59949
59901
|
} catch (er) {
|
|
59950
59902
|
code = er.code;
|
|
59951
59903
|
} finally {
|
|
@@ -59967,7 +59919,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59967
59919
|
const done = (created) => {
|
|
59968
59920
|
cSet(cache, dir, true);
|
|
59969
59921
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59970
|
-
if (needChmod) fs$
|
|
59922
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59971
59923
|
};
|
|
59972
59924
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59973
59925
|
if (dir === cwd) {
|
|
@@ -59975,23 +59927,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59975
59927
|
return done();
|
|
59976
59928
|
}
|
|
59977
59929
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
59978
|
-
const parts = normPath(path$
|
|
59930
|
+
const parts = normPath(path$28.relative(cwd, dir)).split("/");
|
|
59979
59931
|
let created = null;
|
|
59980
59932
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
59981
|
-
part = normPath(path$
|
|
59933
|
+
part = normPath(path$28.resolve(part));
|
|
59982
59934
|
if (cGet(cache, part)) continue;
|
|
59983
59935
|
try {
|
|
59984
|
-
fs$
|
|
59936
|
+
fs$27.mkdirSync(part, mode);
|
|
59985
59937
|
created = created || part;
|
|
59986
59938
|
cSet(cache, part, true);
|
|
59987
59939
|
} catch (er) {
|
|
59988
|
-
const st = fs$
|
|
59940
|
+
const st = fs$27.lstatSync(part);
|
|
59989
59941
|
if (st.isDirectory()) {
|
|
59990
59942
|
cSet(cache, part, true);
|
|
59991
59943
|
continue;
|
|
59992
59944
|
} else if (unlink) {
|
|
59993
|
-
fs$
|
|
59994
|
-
fs$
|
|
59945
|
+
fs$27.unlinkSync(part);
|
|
59946
|
+
fs$27.mkdirSync(part, mode);
|
|
59995
59947
|
created = created || part;
|
|
59996
59948
|
cSet(cache, part, true);
|
|
59997
59949
|
continue;
|
|
@@ -60017,15 +59969,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60017
59969
|
const assert$1 = require("assert");
|
|
60018
59970
|
const normalize = require_normalize_unicode();
|
|
60019
59971
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60020
|
-
const { join: join$
|
|
59972
|
+
const { join: join$18 } = require("path");
|
|
60021
59973
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60022
59974
|
module.exports = () => {
|
|
60023
59975
|
const queues = /* @__PURE__ */ new Map();
|
|
60024
59976
|
const reservations = /* @__PURE__ */ new Map();
|
|
60025
|
-
const getDirs = (path$
|
|
60026
|
-
return path$
|
|
60027
|
-
if (set.length) path$
|
|
60028
|
-
set.push(path$
|
|
59977
|
+
const getDirs = (path$62) => {
|
|
59978
|
+
return path$62.split("/").slice(0, -1).reduce((set, path$63) => {
|
|
59979
|
+
if (set.length) path$63 = join$18(set[set.length - 1], path$63);
|
|
59980
|
+
set.push(path$63 || "/");
|
|
60029
59981
|
return set;
|
|
60030
59982
|
}, []);
|
|
60031
59983
|
};
|
|
@@ -60035,8 +59987,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60035
59987
|
/* istanbul ignore if - unpossible */
|
|
60036
59988
|
if (!res) throw new Error("function does not have any path reservations");
|
|
60037
59989
|
return {
|
|
60038
|
-
paths: res.paths.map((path$
|
|
60039
|
-
dirs: [...res.dirs].map((path$
|
|
59990
|
+
paths: res.paths.map((path$64) => queues.get(path$64)),
|
|
59991
|
+
dirs: [...res.dirs].map((path$65) => queues.get(path$65))
|
|
60040
59992
|
};
|
|
60041
59993
|
};
|
|
60042
59994
|
const check = (fn) => {
|
|
@@ -60053,10 +60005,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60053
60005
|
if (!running.has(fn)) return false;
|
|
60054
60006
|
const { paths, dirs } = reservations.get(fn);
|
|
60055
60007
|
const next = /* @__PURE__ */ new Set();
|
|
60056
|
-
paths.forEach((path$
|
|
60057
|
-
const q = queues.get(path$
|
|
60008
|
+
paths.forEach((path$66) => {
|
|
60009
|
+
const q = queues.get(path$66);
|
|
60058
60010
|
assert$1.equal(q[0], fn);
|
|
60059
|
-
if (q.length === 1) queues.delete(path$
|
|
60011
|
+
if (q.length === 1) queues.delete(path$66);
|
|
60060
60012
|
else {
|
|
60061
60013
|
q.shift();
|
|
60062
60014
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -60078,16 +60030,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60078
60030
|
};
|
|
60079
60031
|
const reserve = (paths, fn) => {
|
|
60080
60032
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60081
|
-
return stripSlashes(join$
|
|
60033
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60082
60034
|
});
|
|
60083
|
-
const dirs = new Set(paths.map((path$
|
|
60035
|
+
const dirs = new Set(paths.map((path$67) => getDirs(path$67)).reduce((a, b) => a.concat(b)));
|
|
60084
60036
|
reservations.set(fn, {
|
|
60085
60037
|
dirs,
|
|
60086
60038
|
paths
|
|
60087
60039
|
});
|
|
60088
|
-
paths.forEach((path$
|
|
60089
|
-
const q = queues.get(path$
|
|
60090
|
-
if (!q) queues.set(path$
|
|
60040
|
+
paths.forEach((path$68) => {
|
|
60041
|
+
const q = queues.get(path$68);
|
|
60042
|
+
if (!q) queues.set(path$68, [fn]);
|
|
60091
60043
|
else q.push(fn);
|
|
60092
60044
|
});
|
|
60093
60045
|
dirs.forEach((dir) => {
|
|
@@ -60120,9 +60072,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60120
60072
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60121
60073
|
const assert = require("assert");
|
|
60122
60074
|
const Parser = require_parse$4();
|
|
60123
|
-
const fs$
|
|
60075
|
+
const fs$26 = require("fs");
|
|
60124
60076
|
const fsm = require_fs_minipass();
|
|
60125
|
-
const path$
|
|
60077
|
+
const path$27 = require("path");
|
|
60126
60078
|
const mkdir = require_mkdir();
|
|
60127
60079
|
const wc = require_winchars();
|
|
60128
60080
|
const pathReservations = require_path_reservations();
|
|
@@ -60160,28 +60112,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60160
60112
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60161
60113
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60162
60114
|
/* istanbul ignore next */
|
|
60163
|
-
const unlinkFile = (path$
|
|
60164
|
-
if (!isWindows) return fs$
|
|
60165
|
-
const name = path$
|
|
60166
|
-
fs$
|
|
60115
|
+
const unlinkFile = (path$58, cb) => {
|
|
60116
|
+
if (!isWindows) return fs$26.unlink(path$58, cb);
|
|
60117
|
+
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60118
|
+
fs$26.rename(path$58, name, (er) => {
|
|
60167
60119
|
if (er) return cb(er);
|
|
60168
|
-
fs$
|
|
60120
|
+
fs$26.unlink(name, cb);
|
|
60169
60121
|
});
|
|
60170
60122
|
};
|
|
60171
60123
|
/* istanbul ignore next */
|
|
60172
|
-
const unlinkFileSync = (path$
|
|
60173
|
-
if (!isWindows) return fs$
|
|
60174
|
-
const name = path$
|
|
60175
|
-
fs$
|
|
60176
|
-
fs$
|
|
60124
|
+
const unlinkFileSync = (path$59) => {
|
|
60125
|
+
if (!isWindows) return fs$26.unlinkSync(path$59);
|
|
60126
|
+
const name = path$59 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60127
|
+
fs$26.renameSync(path$59, name);
|
|
60128
|
+
fs$26.unlinkSync(name);
|
|
60177
60129
|
};
|
|
60178
60130
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60179
|
-
const cacheKeyNormalize = (path$
|
|
60131
|
+
const cacheKeyNormalize = (path$60) => stripSlash(normPath(normalize(path$60))).toLowerCase();
|
|
60180
60132
|
const pruneCache = (cache, abs) => {
|
|
60181
60133
|
abs = cacheKeyNormalize(abs);
|
|
60182
|
-
for (const path$
|
|
60183
|
-
const pnorm = cacheKeyNormalize(path$
|
|
60184
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
60134
|
+
for (const path$61 of cache.keys()) {
|
|
60135
|
+
const pnorm = cacheKeyNormalize(path$61);
|
|
60136
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$61);
|
|
60185
60137
|
}
|
|
60186
60138
|
};
|
|
60187
60139
|
const dropCache = (cache) => {
|
|
@@ -60226,7 +60178,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60226
60178
|
this.noMtime = !!opt.noMtime;
|
|
60227
60179
|
this.preservePaths = !!opt.preservePaths;
|
|
60228
60180
|
this.unlink = !!opt.unlink;
|
|
60229
|
-
this.cwd = normPath(path$
|
|
60181
|
+
this.cwd = normPath(path$27.resolve(opt.cwd || process.cwd()));
|
|
60230
60182
|
this.strip = +opt.strip || 0;
|
|
60231
60183
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
60232
60184
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -60284,8 +60236,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60284
60236
|
});
|
|
60285
60237
|
}
|
|
60286
60238
|
}
|
|
60287
|
-
if (path$
|
|
60288
|
-
else entry.absolute = normPath(path$
|
|
60239
|
+
if (path$27.isAbsolute(entry.path)) entry.absolute = normPath(path$27.resolve(entry.path));
|
|
60240
|
+
else entry.absolute = normPath(path$27.resolve(this.cwd, entry.path));
|
|
60289
60241
|
/* istanbul ignore if - defense in depth */
|
|
60290
60242
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
60291
60243
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -60298,9 +60250,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60298
60250
|
}
|
|
60299
60251
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
60300
60252
|
if (this.win32) {
|
|
60301
|
-
const { root: aRoot } = path$
|
|
60253
|
+
const { root: aRoot } = path$27.win32.parse(entry.absolute);
|
|
60302
60254
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
60303
|
-
const { root: pRoot } = path$
|
|
60255
|
+
const { root: pRoot } = path$27.win32.parse(entry.path);
|
|
60304
60256
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
60305
60257
|
}
|
|
60306
60258
|
return true;
|
|
@@ -60359,7 +60311,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60359
60311
|
autoClose: false
|
|
60360
60312
|
});
|
|
60361
60313
|
stream.on("error", (er) => {
|
|
60362
|
-
if (stream.fd) fs$
|
|
60314
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60363
60315
|
stream.write = () => true;
|
|
60364
60316
|
this[ONERROR](er, entry);
|
|
60365
60317
|
fullyDone();
|
|
@@ -60368,12 +60320,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60368
60320
|
const done = (er) => {
|
|
60369
60321
|
if (er) {
|
|
60370
60322
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60371
|
-
if (stream.fd) fs$
|
|
60323
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60372
60324
|
this[ONERROR](er, entry);
|
|
60373
60325
|
fullyDone();
|
|
60374
60326
|
return;
|
|
60375
60327
|
}
|
|
60376
|
-
if (--actions === 0) fs$
|
|
60328
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60377
60329
|
if (er) this[ONERROR](er, entry);
|
|
60378
60330
|
else this[UNPEND]();
|
|
60379
60331
|
fullyDone();
|
|
@@ -60386,13 +60338,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60386
60338
|
actions++;
|
|
60387
60339
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60388
60340
|
const mtime = entry.mtime;
|
|
60389
|
-
fs$
|
|
60341
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60390
60342
|
}
|
|
60391
60343
|
if (this[DOCHOWN](entry)) {
|
|
60392
60344
|
actions++;
|
|
60393
60345
|
const uid = this[UID](entry);
|
|
60394
60346
|
const gid = this[GID](entry);
|
|
60395
|
-
fs$
|
|
60347
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60396
60348
|
}
|
|
60397
60349
|
done();
|
|
60398
60350
|
});
|
|
@@ -60424,11 +60376,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60424
60376
|
};
|
|
60425
60377
|
if (entry.mtime && !this.noMtime) {
|
|
60426
60378
|
actions++;
|
|
60427
|
-
fs$
|
|
60379
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60428
60380
|
}
|
|
60429
60381
|
if (this[DOCHOWN](entry)) {
|
|
60430
60382
|
actions++;
|
|
60431
|
-
fs$
|
|
60383
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60432
60384
|
}
|
|
60433
60385
|
done();
|
|
60434
60386
|
});
|
|
@@ -60442,7 +60394,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60442
60394
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
60443
60395
|
}
|
|
60444
60396
|
[HARDLINK](entry, done) {
|
|
60445
|
-
const linkpath = normPath(path$
|
|
60397
|
+
const linkpath = normPath(path$27.resolve(this.cwd, entry.linkpath));
|
|
60446
60398
|
this[LINK](entry, linkpath, "link", done);
|
|
60447
60399
|
}
|
|
60448
60400
|
[PEND]() {
|
|
@@ -60488,7 +60440,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60488
60440
|
};
|
|
60489
60441
|
const start = () => {
|
|
60490
60442
|
if (entry.absolute !== this.cwd) {
|
|
60491
|
-
const parent = normPath(path$
|
|
60443
|
+
const parent = normPath(path$27.dirname(entry.absolute));
|
|
60492
60444
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
60493
60445
|
if (er) {
|
|
60494
60446
|
this[ONERROR](er, entry);
|
|
@@ -60501,7 +60453,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60501
60453
|
afterMakeParent();
|
|
60502
60454
|
};
|
|
60503
60455
|
const afterMakeParent = () => {
|
|
60504
|
-
fs$
|
|
60456
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60505
60457
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60506
60458
|
this[SKIP](entry);
|
|
60507
60459
|
done();
|
|
@@ -60513,9 +60465,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60513
60465
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60514
60466
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60515
60467
|
if (!needChmod) return afterChmod();
|
|
60516
|
-
return fs$
|
|
60468
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60517
60469
|
}
|
|
60518
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60470
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60519
60471
|
}
|
|
60520
60472
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60521
60473
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60541,7 +60493,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60541
60493
|
}
|
|
60542
60494
|
}
|
|
60543
60495
|
[LINK](entry, linkpath, link, done) {
|
|
60544
|
-
fs$
|
|
60496
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60545
60497
|
if (er) this[ONERROR](er, entry);
|
|
60546
60498
|
else {
|
|
60547
60499
|
this[UNPEND]();
|
|
@@ -60570,23 +60522,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60570
60522
|
this[CHECKED_CWD] = true;
|
|
60571
60523
|
}
|
|
60572
60524
|
if (entry.absolute !== this.cwd) {
|
|
60573
|
-
const parent = normPath(path$
|
|
60525
|
+
const parent = normPath(path$27.dirname(entry.absolute));
|
|
60574
60526
|
if (parent !== this.cwd) {
|
|
60575
60527
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
60576
60528
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60577
60529
|
}
|
|
60578
60530
|
}
|
|
60579
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60531
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60580
60532
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60581
60533
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60582
60534
|
if (st.isDirectory()) {
|
|
60583
60535
|
if (entry.type === "Directory") {
|
|
60584
60536
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60585
|
-
fs$
|
|
60537
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60586
60538
|
}) : [];
|
|
60587
60539
|
return this[MAKEFS](er, entry);
|
|
60588
60540
|
}
|
|
60589
|
-
const [er] = callSync(() => fs$
|
|
60541
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60590
60542
|
this[MAKEFS](er, entry);
|
|
60591
60543
|
}
|
|
60592
60544
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60597,7 +60549,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60597
60549
|
const oner = (er) => {
|
|
60598
60550
|
let closeError;
|
|
60599
60551
|
try {
|
|
60600
|
-
fs$
|
|
60552
|
+
fs$26.closeSync(fd);
|
|
60601
60553
|
} catch (e) {
|
|
60602
60554
|
closeError = e;
|
|
60603
60555
|
}
|
|
@@ -60606,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60606
60558
|
};
|
|
60607
60559
|
let fd;
|
|
60608
60560
|
try {
|
|
60609
|
-
fd = fs$
|
|
60561
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60610
60562
|
} catch (er) {
|
|
60611
60563
|
return oner(er);
|
|
60612
60564
|
}
|
|
@@ -60617,7 +60569,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60617
60569
|
}
|
|
60618
60570
|
tx.on("data", (chunk) => {
|
|
60619
60571
|
try {
|
|
60620
|
-
fs$
|
|
60572
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60621
60573
|
} catch (er) {
|
|
60622
60574
|
oner(er);
|
|
60623
60575
|
}
|
|
@@ -60628,10 +60580,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60628
60580
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60629
60581
|
const mtime = entry.mtime;
|
|
60630
60582
|
try {
|
|
60631
|
-
fs$
|
|
60583
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60632
60584
|
} catch (futimeser) {
|
|
60633
60585
|
try {
|
|
60634
|
-
fs$
|
|
60586
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60635
60587
|
} catch (utimeser) {
|
|
60636
60588
|
er = futimeser;
|
|
60637
60589
|
}
|
|
@@ -60641,10 +60593,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60641
60593
|
const uid = this[UID](entry);
|
|
60642
60594
|
const gid = this[GID](entry);
|
|
60643
60595
|
try {
|
|
60644
|
-
fs$
|
|
60596
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60645
60597
|
} catch (fchowner) {
|
|
60646
60598
|
try {
|
|
60647
|
-
fs$
|
|
60599
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60648
60600
|
} catch (chowner) {
|
|
60649
60601
|
er = er || fchowner;
|
|
60650
60602
|
}
|
|
@@ -60662,10 +60614,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60662
60614
|
return;
|
|
60663
60615
|
}
|
|
60664
60616
|
if (entry.mtime && !this.noMtime) try {
|
|
60665
|
-
fs$
|
|
60617
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60666
60618
|
} catch (er) {}
|
|
60667
60619
|
if (this[DOCHOWN](entry)) try {
|
|
60668
|
-
fs$
|
|
60620
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60669
60621
|
} catch (er) {}
|
|
60670
60622
|
done();
|
|
60671
60623
|
entry.resume();
|
|
@@ -60690,7 +60642,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60690
60642
|
}
|
|
60691
60643
|
[LINK](entry, linkpath, link, done) {
|
|
60692
60644
|
try {
|
|
60693
|
-
fs$
|
|
60645
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60694
60646
|
done();
|
|
60695
60647
|
entry.resume();
|
|
60696
60648
|
} catch (er) {
|
|
@@ -60706,9 +60658,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60706
60658
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60707
60659
|
const hlo = require_high_level_opt();
|
|
60708
60660
|
const Unpack = require_unpack();
|
|
60709
|
-
const fs$
|
|
60661
|
+
const fs$25 = require("fs");
|
|
60710
60662
|
const fsm = require_fs_minipass();
|
|
60711
|
-
const path$
|
|
60663
|
+
const path$26 = require("path");
|
|
60712
60664
|
const stripSlash = require_strip_trailing_slashes();
|
|
60713
60665
|
module.exports = (opt_, files, cb) => {
|
|
60714
60666
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -60726,8 +60678,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60726
60678
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
60727
60679
|
const filter = opt.filter;
|
|
60728
60680
|
const mapHas = (file, r) => {
|
|
60729
|
-
const root = r || path$
|
|
60730
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
60681
|
+
const root = r || path$26.parse(file).root || ".";
|
|
60682
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$26.dirname(file), root);
|
|
60731
60683
|
map.set(file, ret);
|
|
60732
60684
|
return ret;
|
|
60733
60685
|
};
|
|
@@ -60736,7 +60688,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60736
60688
|
const extractFileSync = (opt) => {
|
|
60737
60689
|
const u = new Unpack.Sync(opt);
|
|
60738
60690
|
const file = opt.file;
|
|
60739
|
-
const stat = fs$
|
|
60691
|
+
const stat = fs$25.statSync(file);
|
|
60740
60692
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60741
60693
|
new fsm.ReadStreamSync(file, {
|
|
60742
60694
|
readSize,
|
|
@@ -60750,7 +60702,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60750
60702
|
const p = new Promise((resolve, reject) => {
|
|
60751
60703
|
u.on("error", reject);
|
|
60752
60704
|
u.on("close", resolve);
|
|
60753
|
-
fs$
|
|
60705
|
+
fs$25.stat(file, (er, stat) => {
|
|
60754
60706
|
if (er) reject(er);
|
|
60755
60707
|
else {
|
|
60756
60708
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60833,7 +60785,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60833
60785
|
//#endregion
|
|
60834
60786
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60835
60787
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60836
|
-
var fs$
|
|
60788
|
+
var fs$24 = require("fs");
|
|
60837
60789
|
var util$10 = require("util");
|
|
60838
60790
|
var stream$2 = require("stream");
|
|
60839
60791
|
var Readable = stream$2.Readable;
|
|
@@ -60858,7 +60810,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60858
60810
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60859
60811
|
var self = this;
|
|
60860
60812
|
self.pend.go(function(cb) {
|
|
60861
|
-
fs$
|
|
60813
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60862
60814
|
cb();
|
|
60863
60815
|
callback(err, bytesRead, buffer);
|
|
60864
60816
|
});
|
|
@@ -60867,7 +60819,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60867
60819
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60868
60820
|
var self = this;
|
|
60869
60821
|
self.pend.go(function(cb) {
|
|
60870
|
-
fs$
|
|
60822
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60871
60823
|
cb();
|
|
60872
60824
|
callback(err, written, buffer);
|
|
60873
60825
|
});
|
|
@@ -60887,7 +60839,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60887
60839
|
self.refCount -= 1;
|
|
60888
60840
|
if (self.refCount > 0) return;
|
|
60889
60841
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60890
|
-
if (self.autoClose) fs$
|
|
60842
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60891
60843
|
function onCloseDone(err) {
|
|
60892
60844
|
if (err) self.emit("error", err);
|
|
60893
60845
|
else self.emit("close");
|
|
@@ -60918,7 +60870,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60918
60870
|
self.context.pend.go(function(cb) {
|
|
60919
60871
|
if (self.destroyed) return cb();
|
|
60920
60872
|
var buffer = new Buffer(toRead);
|
|
60921
|
-
fs$
|
|
60873
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60922
60874
|
if (err) self.destroy(err);
|
|
60923
60875
|
else if (bytesRead === 0) {
|
|
60924
60876
|
self.destroyed = true;
|
|
@@ -60964,7 +60916,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60964
60916
|
}
|
|
60965
60917
|
self.context.pend.go(function(cb) {
|
|
60966
60918
|
if (self.destroyed) return cb();
|
|
60967
|
-
fs$
|
|
60919
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60968
60920
|
if (err) {
|
|
60969
60921
|
self.destroy();
|
|
60970
60922
|
cb();
|
|
@@ -62546,13 +62498,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62546
62498
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62547
62499
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62548
62500
|
module.exports = readdirGlob;
|
|
62549
|
-
const fs$
|
|
62501
|
+
const fs$22 = require("fs");
|
|
62550
62502
|
const { EventEmitter } = require("events");
|
|
62551
62503
|
const { Minimatch } = require_minimatch$1();
|
|
62552
62504
|
const { resolve: resolve$12 } = require("path");
|
|
62553
62505
|
function readdir(dir, strict) {
|
|
62554
62506
|
return new Promise((resolve, reject) => {
|
|
62555
|
-
fs$
|
|
62507
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62556
62508
|
if (err) switch (err.code) {
|
|
62557
62509
|
case "ENOTDIR":
|
|
62558
62510
|
if (strict) reject(err);
|
|
@@ -62574,7 +62526,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62574
62526
|
}
|
|
62575
62527
|
function stat(file, followSymlinks) {
|
|
62576
62528
|
return new Promise((resolve, reject) => {
|
|
62577
|
-
(followSymlinks ? fs$
|
|
62529
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62578
62530
|
if (err) switch (err.code) {
|
|
62579
62531
|
case "ENOENT":
|
|
62580
62532
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -62588,8 +62540,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62588
62540
|
});
|
|
62589
62541
|
});
|
|
62590
62542
|
}
|
|
62591
|
-
async function* exploreWalkAsync(dir, path$
|
|
62592
|
-
let files = await readdir(path$
|
|
62543
|
+
async function* exploreWalkAsync(dir, path$56, followSymlinks, useStat, shouldSkip, strict) {
|
|
62544
|
+
let files = await readdir(path$56 + dir, strict);
|
|
62593
62545
|
for (const file of files) {
|
|
62594
62546
|
let name = file.name;
|
|
62595
62547
|
if (name === void 0) {
|
|
@@ -62598,7 +62550,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62598
62550
|
}
|
|
62599
62551
|
const filename = dir + "/" + name;
|
|
62600
62552
|
const relative = filename.slice(1);
|
|
62601
|
-
const absolute = path$
|
|
62553
|
+
const absolute = path$56 + "/" + relative;
|
|
62602
62554
|
let stats = null;
|
|
62603
62555
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
62604
62556
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -62610,7 +62562,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62610
62562
|
absolute,
|
|
62611
62563
|
stats
|
|
62612
62564
|
};
|
|
62613
|
-
yield* exploreWalkAsync(filename, path$
|
|
62565
|
+
yield* exploreWalkAsync(filename, path$56, followSymlinks, useStat, shouldSkip, false);
|
|
62614
62566
|
}
|
|
62615
62567
|
} else yield {
|
|
62616
62568
|
relative,
|
|
@@ -62619,8 +62571,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62619
62571
|
};
|
|
62620
62572
|
}
|
|
62621
62573
|
}
|
|
62622
|
-
async function* explore(path$
|
|
62623
|
-
yield* exploreWalkAsync("", path$
|
|
62574
|
+
async function* explore(path$57, followSymlinks, useStat, shouldSkip) {
|
|
62575
|
+
yield* exploreWalkAsync("", path$57, followSymlinks, useStat, shouldSkip, true);
|
|
62624
62576
|
}
|
|
62625
62577
|
function readOptions(options) {
|
|
62626
62578
|
return {
|
|
@@ -68613,7 +68565,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68613
68565
|
//#endregion
|
|
68614
68566
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68615
68567
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68616
|
-
var fs$
|
|
68568
|
+
var fs$21 = require("fs");
|
|
68617
68569
|
var polyfills = require_polyfills();
|
|
68618
68570
|
var legacy = require_legacy_streams();
|
|
68619
68571
|
var clone = require_clone$1();
|
|
@@ -68642,36 +68594,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68642
68594
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68643
68595
|
console.error(m);
|
|
68644
68596
|
};
|
|
68645
|
-
if (!fs$
|
|
68646
|
-
publishQueue(fs$
|
|
68647
|
-
fs$
|
|
68597
|
+
if (!fs$21[gracefulQueue]) {
|
|
68598
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68599
|
+
fs$21.close = (function(fs$close) {
|
|
68648
68600
|
function close(fd, cb) {
|
|
68649
|
-
return fs$close.call(fs$
|
|
68601
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68650
68602
|
if (!err) resetQueue();
|
|
68651
68603
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68652
68604
|
});
|
|
68653
68605
|
}
|
|
68654
68606
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68655
68607
|
return close;
|
|
68656
|
-
})(fs$
|
|
68657
|
-
fs$
|
|
68608
|
+
})(fs$21.close);
|
|
68609
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68658
68610
|
function closeSync(fd) {
|
|
68659
|
-
fs$closeSync.apply(fs$
|
|
68611
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68660
68612
|
resetQueue();
|
|
68661
68613
|
}
|
|
68662
68614
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68663
68615
|
return closeSync;
|
|
68664
|
-
})(fs$
|
|
68616
|
+
})(fs$21.closeSync);
|
|
68665
68617
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68666
|
-
debug(fs$
|
|
68667
|
-
require("assert").equal(fs$
|
|
68618
|
+
debug(fs$21[gracefulQueue]);
|
|
68619
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68668
68620
|
});
|
|
68669
68621
|
}
|
|
68670
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68671
|
-
module.exports = patch(clone(fs$
|
|
68672
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68673
|
-
module.exports = patch(fs$
|
|
68674
|
-
fs$
|
|
68622
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68623
|
+
module.exports = patch(clone(fs$21));
|
|
68624
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68625
|
+
module.exports = patch(fs$21);
|
|
68626
|
+
fs$21.__patched = true;
|
|
68675
68627
|
}
|
|
68676
68628
|
function patch(fs) {
|
|
68677
68629
|
polyfills(fs);
|
|
@@ -68926,23 +68878,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68926
68878
|
}
|
|
68927
68879
|
function enqueue(elem) {
|
|
68928
68880
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68929
|
-
fs$
|
|
68881
|
+
fs$21[gracefulQueue].push(elem);
|
|
68930
68882
|
retry();
|
|
68931
68883
|
}
|
|
68932
68884
|
var retryTimer;
|
|
68933
68885
|
function resetQueue() {
|
|
68934
68886
|
var now = Date.now();
|
|
68935
|
-
for (var i = 0; i < fs$
|
|
68936
|
-
fs$
|
|
68937
|
-
fs$
|
|
68887
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
68888
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
68889
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
68938
68890
|
}
|
|
68939
68891
|
retry();
|
|
68940
68892
|
}
|
|
68941
68893
|
function retry() {
|
|
68942
68894
|
clearTimeout(retryTimer);
|
|
68943
68895
|
retryTimer = void 0;
|
|
68944
|
-
if (fs$
|
|
68945
|
-
var elem = fs$
|
|
68896
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
68897
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
68946
68898
|
var fn = elem[0];
|
|
68947
68899
|
var args = elem[1];
|
|
68948
68900
|
var err = elem[2];
|
|
@@ -68961,7 +68913,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68961
68913
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
68962
68914
|
debug("RETRY", fn.name, args);
|
|
68963
68915
|
fn.apply(null, args.concat([startTime]));
|
|
68964
|
-
} else fs$
|
|
68916
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
68965
68917
|
}
|
|
68966
68918
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
68967
68919
|
}
|
|
@@ -84087,7 +84039,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84087
84039
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
84088
84040
|
*/
|
|
84089
84041
|
var fs = require_graceful_fs();
|
|
84090
|
-
var path$
|
|
84042
|
+
var path$25 = require("path");
|
|
84091
84043
|
var flatten = require_flatten();
|
|
84092
84044
|
var difference = require_difference();
|
|
84093
84045
|
var union = require_union();
|
|
@@ -84107,7 +84059,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84107
84059
|
return result;
|
|
84108
84060
|
};
|
|
84109
84061
|
file.exists = function() {
|
|
84110
|
-
var filepath = path$
|
|
84062
|
+
var filepath = path$25.join.apply(path$25, arguments);
|
|
84111
84063
|
return fs.existsSync(filepath);
|
|
84112
84064
|
};
|
|
84113
84065
|
file.expand = function(...args) {
|
|
@@ -84118,7 +84070,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84118
84070
|
return glob.sync(pattern, options);
|
|
84119
84071
|
});
|
|
84120
84072
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
84121
|
-
filepath = path$
|
|
84073
|
+
filepath = path$25.join(options.cwd || "", filepath);
|
|
84122
84074
|
try {
|
|
84123
84075
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
84124
84076
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -84130,16 +84082,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84130
84082
|
};
|
|
84131
84083
|
file.expandMapping = function(patterns, destBase, options) {
|
|
84132
84084
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
84133
|
-
return path$
|
|
84085
|
+
return path$25.join(destBase || "", destPath);
|
|
84134
84086
|
} }, options);
|
|
84135
84087
|
var files = [];
|
|
84136
84088
|
var fileByDest = {};
|
|
84137
84089
|
file.expand(options, patterns).forEach(function(src) {
|
|
84138
84090
|
var destPath = src;
|
|
84139
|
-
if (options.flatten) destPath = path$
|
|
84091
|
+
if (options.flatten) destPath = path$25.basename(destPath);
|
|
84140
84092
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
84141
84093
|
var dest = options.rename(destBase, destPath, options);
|
|
84142
|
-
if (options.cwd) src = path$
|
|
84094
|
+
if (options.cwd) src = path$25.join(options.cwd, src);
|
|
84143
84095
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
84144
84096
|
src = src.replace(pathSeparatorRe, "/");
|
|
84145
84097
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -84214,7 +84166,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84214
84166
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
84215
84167
|
*/
|
|
84216
84168
|
var fs = require_graceful_fs();
|
|
84217
|
-
var path$
|
|
84169
|
+
var path$24 = require("path");
|
|
84218
84170
|
var isStream = require_is_stream$1();
|
|
84219
84171
|
var lazystream = require_lazystream();
|
|
84220
84172
|
var normalizePath = require_normalize_path();
|
|
@@ -84290,11 +84242,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84290
84242
|
(function next() {
|
|
84291
84243
|
file = list[i++];
|
|
84292
84244
|
if (!file) return callback(null, results);
|
|
84293
|
-
filepath = path$
|
|
84245
|
+
filepath = path$24.join(dirpath, file);
|
|
84294
84246
|
fs.stat(filepath, function(err, stats) {
|
|
84295
84247
|
results.push({
|
|
84296
84248
|
path: filepath,
|
|
84297
|
-
relative: path$
|
|
84249
|
+
relative: path$24.relative(base, filepath).replace(/\\/g, "/"),
|
|
84298
84250
|
stats
|
|
84299
84251
|
});
|
|
84300
84252
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -84358,10 +84310,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84358
84310
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84359
84311
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84360
84312
|
*/
|
|
84361
|
-
var fs$
|
|
84313
|
+
var fs$20 = require("fs");
|
|
84362
84314
|
var glob = require_readdir_glob();
|
|
84363
84315
|
var async = require_async();
|
|
84364
|
-
var path$
|
|
84316
|
+
var path$23 = require("path");
|
|
84365
84317
|
var util = require_archiver_utils();
|
|
84366
84318
|
var inherits$5 = require("util").inherits;
|
|
84367
84319
|
var ArchiverError = require_error$10();
|
|
@@ -84435,7 +84387,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84435
84387
|
data.sourcePath = filepath;
|
|
84436
84388
|
task.data = data;
|
|
84437
84389
|
this._entriesCount++;
|
|
84438
|
-
if (data.stats && data.stats instanceof fs$
|
|
84390
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84439
84391
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84440
84392
|
if (task) {
|
|
84441
84393
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84665,7 +84617,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84665
84617
|
callback();
|
|
84666
84618
|
return;
|
|
84667
84619
|
}
|
|
84668
|
-
fs$
|
|
84620
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84669
84621
|
if (this._state.aborted) {
|
|
84670
84622
|
setImmediate(callback);
|
|
84671
84623
|
return;
|
|
@@ -84731,10 +84683,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84731
84683
|
task.data.sourceType = "buffer";
|
|
84732
84684
|
task.source = Buffer.concat([]);
|
|
84733
84685
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84734
|
-
var linkPath = fs$
|
|
84735
|
-
var dirName = path$
|
|
84686
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84687
|
+
var dirName = path$23.dirname(task.filepath);
|
|
84736
84688
|
task.data.type = "symlink";
|
|
84737
|
-
task.data.linkname = path$
|
|
84689
|
+
task.data.linkname = path$23.relative(dirName, path$23.resolve(dirName, linkPath));
|
|
84738
84690
|
task.data.sourceType = "buffer";
|
|
84739
84691
|
task.source = Buffer.concat([]);
|
|
84740
84692
|
} else {
|
|
@@ -95759,7 +95711,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95759
95711
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95760
95712
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95761
95713
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95762
|
-
const { join: join$
|
|
95714
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
95763
95715
|
const isWindows = process.platform === "win32";
|
|
95764
95716
|
/* istanbul ignore next */
|
|
95765
95717
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95789,7 +95741,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95789
95741
|
};
|
|
95790
95742
|
const getPathPart = (raw, cmd) => {
|
|
95791
95743
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95792
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95744
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95793
95745
|
};
|
|
95794
95746
|
const which = async (cmd, opt = {}) => {
|
|
95795
95747
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96538,7 +96490,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96538
96490
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96539
96491
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96540
96492
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96541
|
-
const { join: join$
|
|
96493
|
+
const { join: join$14, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
96542
96494
|
const isWindows = process.platform === "win32";
|
|
96543
96495
|
/* istanbul ignore next */
|
|
96544
96496
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96568,7 +96520,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96568
96520
|
};
|
|
96569
96521
|
const getPathPart = (raw, cmd) => {
|
|
96570
96522
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96571
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96523
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96572
96524
|
};
|
|
96573
96525
|
const which = async (cmd, opt = {}) => {
|
|
96574
96526
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98466,7 +98418,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98466
98418
|
//#endregion
|
|
98467
98419
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98468
98420
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98469
|
-
const { join: join$
|
|
98421
|
+
const { join: join$13, basename: basename$5 } = require("path");
|
|
98470
98422
|
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);
|
|
98471
98423
|
const normalizeString = (pkg) => {
|
|
98472
98424
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98489,9 +98441,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98489
98441
|
const clean = {};
|
|
98490
98442
|
let hasBins = false;
|
|
98491
98443
|
Object.keys(orig).forEach((binKey) => {
|
|
98492
|
-
const base = join$
|
|
98444
|
+
const base = join$13("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98493
98445
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98494
|
-
const binTarget = join$
|
|
98446
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98495
98447
|
if (!binTarget) return;
|
|
98496
98448
|
clean[base] = binTarget;
|
|
98497
98449
|
hasBins = true;
|
|
@@ -100564,7 +100516,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100564
100516
|
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();
|
|
100565
100517
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100566
100518
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$6, symlink, unlink, utimes } = require("fs/promises");
|
|
100567
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100519
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100568
100520
|
const { fileURLToPath } = require("url");
|
|
100569
100521
|
const defaultOptions = {
|
|
100570
100522
|
dereference: false,
|
|
@@ -100671,7 +100623,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100671
100623
|
});
|
|
100672
100624
|
return checkParentPaths(src, srcStat, destParent);
|
|
100673
100625
|
}
|
|
100674
|
-
const normalizePathToArray = (path$
|
|
100626
|
+
const normalizePathToArray = (path$55) => resolve$10(path$55).split(sep$2).filter(Boolean);
|
|
100675
100627
|
function isSrcSubdir(src, dest) {
|
|
100676
100628
|
const srcArr = normalizePathToArray(src);
|
|
100677
100629
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100773,8 +100725,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100773
100725
|
const dir = await readdir$6(src);
|
|
100774
100726
|
for (let i = 0; i < dir.length; i++) {
|
|
100775
100727
|
const item = dir[i];
|
|
100776
|
-
const srcItem = join$
|
|
100777
|
-
const destItem = join$
|
|
100728
|
+
const srcItem = join$12(src, item);
|
|
100729
|
+
const destItem = join$12(dest, item);
|
|
100778
100730
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100779
100731
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100780
100732
|
}
|
|
@@ -100838,13 +100790,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100838
100790
|
//#endregion
|
|
100839
100791
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100840
100792
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100841
|
-
const { join: join$
|
|
100793
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
100842
100794
|
const getOptions = require_get_options();
|
|
100843
|
-
const { mkdir: mkdir$7, mkdtemp, rm: rm$
|
|
100795
|
+
const { mkdir: mkdir$7, mkdtemp, rm: rm$10 } = require("fs/promises");
|
|
100844
100796
|
const withTempDir = async (root, fn, opts) => {
|
|
100845
100797
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100846
100798
|
await mkdir$7(root, { recursive: true });
|
|
100847
|
-
const target = await mkdtemp(join$
|
|
100799
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100848
100800
|
let err;
|
|
100849
100801
|
let result;
|
|
100850
100802
|
try {
|
|
@@ -100853,7 +100805,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100853
100805
|
err = _err;
|
|
100854
100806
|
}
|
|
100855
100807
|
try {
|
|
100856
|
-
await rm$
|
|
100808
|
+
await rm$10(target, {
|
|
100857
100809
|
force: true,
|
|
100858
100810
|
recursive: true
|
|
100859
100811
|
});
|
|
@@ -100867,10 +100819,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100867
100819
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100868
100820
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100869
100821
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100870
|
-
const { join: join$
|
|
100822
|
+
const { join: join$10 } = require("path");
|
|
100871
100823
|
const readdirScoped = async (dir) => {
|
|
100872
100824
|
const results = [];
|
|
100873
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100825
|
+
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));
|
|
100874
100826
|
else results.push(item);
|
|
100875
100827
|
return results;
|
|
100876
100828
|
};
|
|
@@ -100879,11 +100831,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100879
100831
|
//#endregion
|
|
100880
100832
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100881
100833
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100882
|
-
const { dirname: dirname$8, join: join$
|
|
100834
|
+
const { dirname: dirname$8, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100883
100835
|
const fs$13 = require("fs/promises");
|
|
100884
|
-
const pathExists = async (path$
|
|
100836
|
+
const pathExists = async (path$54) => {
|
|
100885
100837
|
try {
|
|
100886
|
-
await fs$13.access(path$
|
|
100838
|
+
await fs$13.access(path$54);
|
|
100887
100839
|
return true;
|
|
100888
100840
|
} catch (er) {
|
|
100889
100841
|
return er.code !== "ENOENT";
|
|
@@ -100904,7 +100856,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100904
100856
|
const sourceStat = await fs$13.lstat(source);
|
|
100905
100857
|
if (sourceStat.isDirectory()) {
|
|
100906
100858
|
const files = await fs$13.readdir(source);
|
|
100907
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100859
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
100908
100860
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100909
100861
|
source,
|
|
100910
100862
|
destination
|
|
@@ -101080,7 +101032,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101080
101032
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101081
101033
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101082
101034
|
const crypto$1 = require("crypto");
|
|
101083
|
-
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$
|
|
101035
|
+
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$9, writeFile: writeFile$2 } = require("fs/promises");
|
|
101084
101036
|
const { Minipass } = require_commonjs$10();
|
|
101085
101037
|
const path$15 = require("path");
|
|
101086
101038
|
const ssri = require_lib$17();
|
|
@@ -101121,7 +101073,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101121
101073
|
};
|
|
101122
101074
|
};
|
|
101123
101075
|
const teardown = async (tmp) => {
|
|
101124
|
-
if (!tmp.moved) return rm$
|
|
101076
|
+
if (!tmp.moved) return rm$9(tmp.target, {
|
|
101125
101077
|
recursive: true,
|
|
101126
101078
|
force: true
|
|
101127
101079
|
});
|
|
@@ -101177,7 +101129,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101177
101129
|
module.exports.delete = del;
|
|
101178
101130
|
function del(cache, key, opts = {}) {
|
|
101179
101131
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
101180
|
-
return rm$
|
|
101132
|
+
return rm$9(bucketPath(cache, key), {
|
|
101181
101133
|
recursive: true,
|
|
101182
101134
|
force: true
|
|
101183
101135
|
});
|
|
@@ -105939,7 +105891,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105939
105891
|
const { glob } = require_index_min$1();
|
|
105940
105892
|
const path$13 = require("path");
|
|
105941
105893
|
const globify = (pattern) => pattern.split(path$13.win32.sep).join(path$13.posix.sep);
|
|
105942
|
-
module.exports = (path$
|
|
105894
|
+
module.exports = (path$53, options) => glob(globify(path$53), options);
|
|
105943
105895
|
}));
|
|
105944
105896
|
//#endregion
|
|
105945
105897
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -105962,7 +105914,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105962
105914
|
//#endregion
|
|
105963
105915
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
105964
105916
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105965
|
-
const { rm: rm$
|
|
105917
|
+
const { rm: rm$8 } = require("fs/promises");
|
|
105966
105918
|
const glob = require_glob();
|
|
105967
105919
|
const index = require_entry_index();
|
|
105968
105920
|
const memo = require_memoization();
|
|
@@ -105986,7 +105938,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
105986
105938
|
silent: true,
|
|
105987
105939
|
nosort: true
|
|
105988
105940
|
});
|
|
105989
|
-
return Promise.all(paths.map((p) => rm$
|
|
105941
|
+
return Promise.all(paths.map((p) => rm$8(p, {
|
|
105990
105942
|
recursive: true,
|
|
105991
105943
|
force: true
|
|
105992
105944
|
})));
|
|
@@ -105995,7 +105947,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
105995
105947
|
//#endregion
|
|
105996
105948
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
105997
105949
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105998
|
-
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$
|
|
105950
|
+
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$7, stat: stat$5, truncate, writeFile: writeFile$1 } = require("fs/promises");
|
|
105999
105951
|
const contentPath = require_path();
|
|
106000
105952
|
const fsm = require_lib$15();
|
|
106001
105953
|
const glob = require_glob();
|
|
@@ -106092,7 +106044,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106092
106044
|
} else {
|
|
106093
106045
|
stats.reclaimedCount++;
|
|
106094
106046
|
const s = await stat$5(f);
|
|
106095
|
-
await rm$
|
|
106047
|
+
await rm$7(f, {
|
|
106096
106048
|
recursive: true,
|
|
106097
106049
|
force: true
|
|
106098
106050
|
});
|
|
@@ -106115,7 +106067,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106115
106067
|
valid: false
|
|
106116
106068
|
};
|
|
106117
106069
|
if (err.code !== "EINTEGRITY") throw err;
|
|
106118
|
-
await rm$
|
|
106070
|
+
await rm$7(filepath, {
|
|
106119
106071
|
recursive: true,
|
|
106120
106072
|
force: true
|
|
106121
106073
|
});
|
|
@@ -106176,7 +106128,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106176
106128
|
}
|
|
106177
106129
|
function cleanTmp(cache, opts) {
|
|
106178
106130
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
106179
|
-
return rm$
|
|
106131
|
+
return rm$7(path$11.join(cache, "tmp"), {
|
|
106180
106132
|
recursive: true,
|
|
106181
106133
|
force: true
|
|
106182
106134
|
});
|
|
@@ -106737,14 +106689,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106737
106689
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$4 } = require("fs/promises");
|
|
106738
106690
|
const { resolve: resolve$8, basename: basename$4, dirname: dirname$7 } = require("path");
|
|
106739
106691
|
const normalizePackageBin = require_lib$21();
|
|
106740
|
-
const readPackage = ({ path: path$
|
|
106692
|
+
const readPackage = ({ path: path$49, packageJsonCache }) => packageJsonCache.has(path$49) ? Promise.resolve(packageJsonCache.get(path$49)) : readFile$5(path$49).then((json) => {
|
|
106741
106693
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
106742
|
-
packageJsonCache.set(path$
|
|
106694
|
+
packageJsonCache.set(path$49, pkg);
|
|
106743
106695
|
return pkg;
|
|
106744
106696
|
}).catch(() => null);
|
|
106745
106697
|
const normalized = Symbol("package data has been normalized");
|
|
106746
|
-
const rpj = ({ path: path$
|
|
106747
|
-
path: path$
|
|
106698
|
+
const rpj = ({ path: path$50, packageJsonCache }) => readPackage({
|
|
106699
|
+
path: path$50,
|
|
106748
106700
|
packageJsonCache
|
|
106749
106701
|
}).then((pkg) => {
|
|
106750
106702
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -106758,14 +106710,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106758
106710
|
pkg[normalized] = true;
|
|
106759
106711
|
return pkg;
|
|
106760
106712
|
});
|
|
106761
|
-
const pkgContents = async ({ path: path$
|
|
106713
|
+
const pkgContents = async ({ path: path$51, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
106762
106714
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
106763
106715
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
106764
106716
|
if (pkg === true) return rpj({
|
|
106765
|
-
path: path$
|
|
106717
|
+
path: path$51 + "/package.json",
|
|
106766
106718
|
packageJsonCache
|
|
106767
106719
|
}).then((p) => pkgContents({
|
|
106768
|
-
path: path$
|
|
106720
|
+
path: path$51,
|
|
106769
106721
|
depth,
|
|
106770
106722
|
currentDepth,
|
|
106771
106723
|
pkg: p,
|
|
@@ -106774,7 +106726,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106774
106726
|
}));
|
|
106775
106727
|
if (pkg) {
|
|
106776
106728
|
if (pkg.bin) {
|
|
106777
|
-
const dir = dirname$7(path$
|
|
106729
|
+
const dir = dirname$7(path$51);
|
|
106778
106730
|
const scope = basename$4(dir);
|
|
106779
106731
|
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106780
106732
|
const binFiles = [];
|
|
@@ -106786,21 +106738,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106786
106738
|
}
|
|
106787
106739
|
}
|
|
106788
106740
|
if (currentDepth >= depth) {
|
|
106789
|
-
result.add(path$
|
|
106741
|
+
result.add(path$51);
|
|
106790
106742
|
return result;
|
|
106791
106743
|
}
|
|
106792
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$
|
|
106793
|
-
path: path$
|
|
106744
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$51, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106745
|
+
path: path$51,
|
|
106794
106746
|
packageJsonCache
|
|
106795
106747
|
}) : null]).catch(() => []);
|
|
106796
106748
|
if (!dirEntries) return result;
|
|
106797
106749
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
106798
|
-
result.add(path$
|
|
106750
|
+
result.add(path$51);
|
|
106799
106751
|
return result;
|
|
106800
106752
|
}
|
|
106801
106753
|
const recursePromises = [];
|
|
106802
106754
|
for (const entry of dirEntries) {
|
|
106803
|
-
const p = resolve$8(path$
|
|
106755
|
+
const p = resolve$8(path$51, entry.name);
|
|
106804
106756
|
if (entry.isDirectory() === false) {
|
|
106805
106757
|
result.add(p);
|
|
106806
106758
|
continue;
|
|
@@ -106819,7 +106771,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106819
106771
|
}
|
|
106820
106772
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106821
106773
|
return pkgContents({
|
|
106822
|
-
path: resolve$8(path$
|
|
106774
|
+
path: resolve$8(path$51, "node_modules", dep),
|
|
106823
106775
|
packageJsonCache,
|
|
106824
106776
|
pkg: true,
|
|
106825
106777
|
depth,
|
|
@@ -106830,8 +106782,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106830
106782
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
106831
106783
|
return result;
|
|
106832
106784
|
};
|
|
106833
|
-
module.exports = ({ path: path$
|
|
106834
|
-
path: resolve$8(path$
|
|
106785
|
+
module.exports = ({ path: path$52, ...opts }) => pkgContents({
|
|
106786
|
+
path: resolve$8(path$52),
|
|
106835
106787
|
...opts,
|
|
106836
106788
|
pkg: true
|
|
106837
106789
|
}).then((results) => [...results]);
|
|
@@ -112267,7 +112219,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112267
112219
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112268
112220
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112269
112221
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112270
|
-
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$
|
|
112222
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
112271
112223
|
const { log } = require_lib$29();
|
|
112272
112224
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112273
112225
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112297,10 +112249,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112297
112249
|
"/archived-packages/**"
|
|
112298
112250
|
];
|
|
112299
112251
|
const strictDefaults = ["/.git"];
|
|
112300
|
-
const normalizePath = (path$
|
|
112252
|
+
const normalizePath = (path$46) => path$46.split("\\").join("/");
|
|
112301
112253
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112302
112254
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112303
|
-
const ignoreContent = readFile$4(join$
|
|
112255
|
+
const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
|
|
112304
112256
|
result.push(ignoreContent);
|
|
112305
112257
|
break;
|
|
112306
112258
|
} catch (err) {
|
|
@@ -112309,8 +112261,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112309
112261
|
}
|
|
112310
112262
|
if (!rel) return result;
|
|
112311
112263
|
const firstRel = rel.split(sep, 1)[0];
|
|
112312
|
-
const newRoot = join$
|
|
112313
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112264
|
+
const newRoot = join$8(root, firstRel);
|
|
112265
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112314
112266
|
};
|
|
112315
112267
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112316
112268
|
constructor(tree, opts) {
|
|
@@ -112334,14 +112286,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112334
112286
|
this.requiredFiles = options.requiredFiles || [];
|
|
112335
112287
|
const additionalDefaults = [];
|
|
112336
112288
|
if (options.prefix && options.workspaces) {
|
|
112337
|
-
const path$
|
|
112289
|
+
const path$47 = normalizePath(options.path);
|
|
112338
112290
|
const prefix = normalizePath(options.prefix);
|
|
112339
112291
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112340
112292
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112341
|
-
if (path$
|
|
112293
|
+
if (path$47 !== prefix && workspaces.includes(path$47)) {
|
|
112342
112294
|
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112343
112295
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112344
|
-
} else if (path$
|
|
112296
|
+
} else if (path$47 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112345
112297
|
}
|
|
112346
112298
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
112347
112299
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -112377,7 +112329,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112377
112329
|
let ignoreFiles = null;
|
|
112378
112330
|
if (this.tree.workspaces) {
|
|
112379
112331
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112380
|
-
const entryPath = join$
|
|
112332
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112381
112333
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112382
112334
|
defaultRules,
|
|
112383
112335
|
"package.json",
|
|
@@ -112437,7 +112389,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112437
112389
|
if (file.endsWith("/*")) file += "*";
|
|
112438
112390
|
const inverse = `!${file}`;
|
|
112439
112391
|
try {
|
|
112440
|
-
const stat = lstat$1(join$
|
|
112392
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112441
112393
|
if (stat.isFile()) {
|
|
112442
112394
|
strict.unshift(inverse);
|
|
112443
112395
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112472,10 +112424,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112472
112424
|
if (!edge || edge.peer || edge.dev) continue;
|
|
112473
112425
|
const node = this.tree.edgesOut.get(dep).to;
|
|
112474
112426
|
if (!node) continue;
|
|
112475
|
-
const path$
|
|
112427
|
+
const path$48 = node.path;
|
|
112476
112428
|
const tree = node.target;
|
|
112477
112429
|
const walkerOpts = {
|
|
112478
|
-
path: path$
|
|
112430
|
+
path: path$48,
|
|
112479
112431
|
isPackage: true,
|
|
112480
112432
|
ignoreFiles: [],
|
|
112481
112433
|
seen: this.seen
|
|
@@ -112494,7 +112446,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112494
112446
|
walker.start();
|
|
112495
112447
|
});
|
|
112496
112448
|
const relativeFrom = relative(this.root, walker.path);
|
|
112497
|
-
for (const file of bundled) this.result.add(join$
|
|
112449
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112498
112450
|
}
|
|
112499
112451
|
}
|
|
112500
112452
|
};
|
|
@@ -112552,7 +112504,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112552
112504
|
const { resolve: resolve$4 } = require("path");
|
|
112553
112505
|
let npm_config_node_gyp;
|
|
112554
112506
|
const makeSpawnArgs = (options) => {
|
|
112555
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
112507
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$45, scriptShell = true, stdio, stdioString } = options;
|
|
112556
112508
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
112557
112509
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
112558
112510
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -112560,17 +112512,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112560
112512
|
cmd,
|
|
112561
112513
|
args,
|
|
112562
112514
|
{
|
|
112563
|
-
env: setPATH(path$
|
|
112515
|
+
env: setPATH(path$45, binPaths, {
|
|
112564
112516
|
...process.env,
|
|
112565
112517
|
...env,
|
|
112566
|
-
npm_package_json: resolve$4(path$
|
|
112518
|
+
npm_package_json: resolve$4(path$45, "package.json"),
|
|
112567
112519
|
npm_lifecycle_event: event,
|
|
112568
112520
|
npm_lifecycle_script: cmd,
|
|
112569
112521
|
npm_config_node_gyp
|
|
112570
112522
|
}),
|
|
112571
112523
|
stdioString,
|
|
112572
112524
|
stdio,
|
|
112573
|
-
cwd: path$
|
|
112525
|
+
cwd: path$45,
|
|
112574
112526
|
shell: scriptShell
|
|
112575
112527
|
}
|
|
112576
112528
|
];
|
|
@@ -141888,7 +141840,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141888
141840
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141889
141841
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141890
141842
|
const { basename: basename$2, dirname: dirname$4 } = require("node:path");
|
|
141891
|
-
const { rm: rm$
|
|
141843
|
+
const { rm: rm$6, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
141892
141844
|
const PackageJson = require_lib$18();
|
|
141893
141845
|
const cacache = require_lib$14();
|
|
141894
141846
|
const fsm = require_lib$13();
|
|
@@ -142065,7 +142017,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142065
142017
|
return getContents({
|
|
142066
142018
|
path,
|
|
142067
142019
|
depth: 1
|
|
142068
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
142020
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$6(entry, {
|
|
142069
142021
|
recursive: true,
|
|
142070
142022
|
force: true
|
|
142071
142023
|
}))));
|
|
@@ -149862,9 +149814,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
149862
149814
|
* @param {string} path
|
|
149863
149815
|
* @return {boolean|string}
|
|
149864
149816
|
*/
|
|
149865
|
-
function lookup(path$
|
|
149866
|
-
if (!path$
|
|
149867
|
-
var extension = extname("x." + path$
|
|
149817
|
+
function lookup(path$44) {
|
|
149818
|
+
if (!path$44 || typeof path$44 !== "string") return false;
|
|
149819
|
+
var extension = extname("x." + path$44).toLowerCase().substr(1);
|
|
149868
149820
|
if (!extension) return false;
|
|
149869
149821
|
return exports.types[extension] || false;
|
|
149870
149822
|
}
|
|
@@ -150970,7 +150922,7 @@ require_semver();
|
|
|
150970
150922
|
require_lib();
|
|
150971
150923
|
//#endregion
|
|
150972
150924
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
150973
|
-
const { join: join$
|
|
150925
|
+
const { join: join$6 } = node_path.default;
|
|
150974
150926
|
//#endregion
|
|
150975
150927
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
150976
150928
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -152174,8 +152126,8 @@ const removeRunner = createActionRunner(async ({ log, inputs }) => {
|
|
|
152174
152126
|
});
|
|
152175
152127
|
const run = createAction({
|
|
152176
152128
|
id: "fs:run",
|
|
152177
|
-
name: "
|
|
152178
|
-
displayString: "`
|
|
152129
|
+
name: "Run Command",
|
|
152130
|
+
displayString: "`Run command ${fmt.param(params.command, 'primary')} ${(params.parameters ?? []).map(x => fmt.param(x)).join(' ')}`",
|
|
152179
152131
|
params: {
|
|
152180
152132
|
command: createStringParam("", {
|
|
152181
152133
|
required: true,
|
|
@@ -152194,7 +152146,7 @@ const run = createAction({
|
|
|
152194
152146
|
},
|
|
152195
152147
|
workingDirectory: createPathParam("", {
|
|
152196
152148
|
required: false,
|
|
152197
|
-
description: "The
|
|
152149
|
+
description: "The local folder where the command should execute.",
|
|
152198
152150
|
label: "Working directory",
|
|
152199
152151
|
control: {
|
|
152200
152152
|
type: "path",
|
|
@@ -152228,7 +152180,7 @@ const run = createAction({
|
|
|
152228
152180
|
value: 0
|
|
152229
152181
|
}
|
|
152230
152182
|
},
|
|
152231
|
-
description: "
|
|
152183
|
+
description: "Run a custom system command or executable.",
|
|
152232
152184
|
icon: "",
|
|
152233
152185
|
meta: {}
|
|
152234
152186
|
});
|