@pipelab/plugin-itch 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 +454 -502
- package/dist/index.mjs +46 -94
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2101,7 +2101,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2101
2101
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2102
2102
|
locale: "en-US",
|
|
2103
2103
|
theme: "light",
|
|
2104
|
-
version: "
|
|
2104
|
+
version: "7.0.0",
|
|
2105
2105
|
autosave: true,
|
|
2106
2106
|
agents: [],
|
|
2107
2107
|
tours: {
|
|
@@ -2114,11 +2114,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2114
2114
|
completed: false
|
|
2115
2115
|
}
|
|
2116
2116
|
},
|
|
2117
|
-
buildHistory: { retentionPolicy: {
|
|
2118
|
-
enabled: false,
|
|
2119
|
-
maxEntries: 50,
|
|
2120
|
-
maxAge: 30
|
|
2121
|
-
} },
|
|
2122
2117
|
plugins: DEFAULT_PLUGINS,
|
|
2123
2118
|
isInternalMigrationBannerClosed: false
|
|
2124
2119
|
});
|
|
@@ -2175,18 +2170,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2175
2170
|
return {
|
|
2176
2171
|
...rest,
|
|
2177
2172
|
agents: [],
|
|
2178
|
-
buildHistory: { retentionPolicy: {
|
|
2179
|
-
enabled: false,
|
|
2180
|
-
maxEntries: 50,
|
|
2181
|
-
maxAge: 30
|
|
2182
|
-
} },
|
|
2183
2173
|
plugins: DEFAULT_PLUGINS,
|
|
2184
2174
|
isInternalMigrationBannerClosed: false
|
|
2185
2175
|
};
|
|
2186
2176
|
}
|
|
2187
2177
|
}),
|
|
2188
2178
|
createMigration({
|
|
2189
|
-
version: "
|
|
2179
|
+
version: "7.0.0",
|
|
2190
2180
|
up: finalVersion
|
|
2191
2181
|
})
|
|
2192
2182
|
]
|
|
@@ -2205,7 +2195,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2205
2195
|
});
|
|
2206
2196
|
const fileRepoMigratorInternal = createMigrator();
|
|
2207
2197
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2208
|
-
version: "
|
|
2198
|
+
version: "3.0.0",
|
|
2209
2199
|
projects: [{
|
|
2210
2200
|
id: "main",
|
|
2211
2201
|
name: "Default project",
|
|
@@ -2215,30 +2205,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2215
2205
|
});
|
|
2216
2206
|
fileRepoMigratorInternal.createMigrations({
|
|
2217
2207
|
defaultValue: defaultFileRepo,
|
|
2218
|
-
migrations: [
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2208
|
+
migrations: [
|
|
2209
|
+
createMigration({
|
|
2210
|
+
version: "1.0.0",
|
|
2211
|
+
up: (state) => {
|
|
2212
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2213
|
+
return {
|
|
2214
|
+
...file,
|
|
2215
|
+
id,
|
|
2216
|
+
project: "main"
|
|
2217
|
+
};
|
|
2218
|
+
});
|
|
2222
2219
|
return {
|
|
2223
|
-
...
|
|
2224
|
-
|
|
2225
|
-
|
|
2220
|
+
...state,
|
|
2221
|
+
projects: [{
|
|
2222
|
+
id: "main",
|
|
2223
|
+
name: "Default project",
|
|
2224
|
+
description: "The initial default project"
|
|
2225
|
+
}],
|
|
2226
|
+
pipelines
|
|
2226
2227
|
};
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
up: finalVersion
|
|
2241
|
-
})]
|
|
2228
|
+
}
|
|
2229
|
+
}),
|
|
2230
|
+
createMigration({
|
|
2231
|
+
version: "2.0.0",
|
|
2232
|
+
up: (state) => {
|
|
2233
|
+
return { ...state };
|
|
2234
|
+
}
|
|
2235
|
+
}),
|
|
2236
|
+
createMigration({
|
|
2237
|
+
version: "3.0.0",
|
|
2238
|
+
up: finalVersion
|
|
2239
|
+
})
|
|
2240
|
+
]
|
|
2242
2241
|
});
|
|
2243
2242
|
const savedFileMigratorInternal = createMigrator();
|
|
2244
2243
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2399,14 +2398,19 @@ object({
|
|
|
2399
2398
|
version: literal("1.0.0"),
|
|
2400
2399
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2401
2400
|
});
|
|
2402
|
-
const FileRepoProjectValidatorV2
|
|
2401
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2403
2402
|
id: string(),
|
|
2404
2403
|
name: string(),
|
|
2405
2404
|
description: string()
|
|
2406
2405
|
});
|
|
2407
2406
|
object({
|
|
2408
2407
|
version: literal("2.0.0"),
|
|
2409
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2408
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2409
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2410
|
+
});
|
|
2411
|
+
object({
|
|
2412
|
+
version: literal("3.0.0"),
|
|
2413
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2410
2414
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2411
2415
|
});
|
|
2412
2416
|
object({
|
|
@@ -2515,44 +2519,6 @@ object({
|
|
|
2515
2519
|
name: string(),
|
|
2516
2520
|
url: string()
|
|
2517
2521
|
})),
|
|
2518
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2519
|
-
enabled: boolean(),
|
|
2520
|
-
maxEntries: number(),
|
|
2521
|
-
maxAge: number()
|
|
2522
|
-
}) })
|
|
2523
|
-
});
|
|
2524
|
-
object({
|
|
2525
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2526
|
-
version: literal("8.0.0"),
|
|
2527
|
-
locale: union([
|
|
2528
|
-
literal("en-US"),
|
|
2529
|
-
literal("fr-FR"),
|
|
2530
|
-
literal("pt-BR"),
|
|
2531
|
-
literal("zh-CN"),
|
|
2532
|
-
literal("es-ES"),
|
|
2533
|
-
literal("de-DE")
|
|
2534
|
-
]),
|
|
2535
|
-
tours: object({
|
|
2536
|
-
dashboard: object({
|
|
2537
|
-
step: number(),
|
|
2538
|
-
completed: boolean()
|
|
2539
|
-
}),
|
|
2540
|
-
editor: object({
|
|
2541
|
-
step: number(),
|
|
2542
|
-
completed: boolean()
|
|
2543
|
-
})
|
|
2544
|
-
}),
|
|
2545
|
-
autosave: boolean(),
|
|
2546
|
-
agents: array(object({
|
|
2547
|
-
id: string(),
|
|
2548
|
-
name: string(),
|
|
2549
|
-
url: string()
|
|
2550
|
-
})),
|
|
2551
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2552
|
-
enabled: boolean(),
|
|
2553
|
-
maxEntries: number(),
|
|
2554
|
-
maxAge: number()
|
|
2555
|
-
}) }),
|
|
2556
2522
|
plugins: array(object({
|
|
2557
2523
|
name: string(),
|
|
2558
2524
|
enabled: boolean(),
|
|
@@ -45416,20 +45382,6 @@ var WebSocketError = class extends Error {
|
|
|
45416
45382
|
const isWebSocketRequestMessage = (message) => {
|
|
45417
45383
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45418
45384
|
};
|
|
45419
|
-
object({
|
|
45420
|
-
version: literal("1.0.0"),
|
|
45421
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45422
|
-
});
|
|
45423
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45424
|
-
id: string(),
|
|
45425
|
-
name: string(),
|
|
45426
|
-
description: string()
|
|
45427
|
-
});
|
|
45428
|
-
object({
|
|
45429
|
-
version: literal("2.0.0"),
|
|
45430
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45431
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45432
|
-
});
|
|
45433
45385
|
//#endregion
|
|
45434
45386
|
//#region ../../packages/constants/src/index.ts
|
|
45435
45387
|
const websocketPort = 33753;
|
|
@@ -49969,7 +49921,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49969
49921
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49970
49922
|
module.exports = isexe;
|
|
49971
49923
|
isexe.sync = sync;
|
|
49972
|
-
var fs$
|
|
49924
|
+
var fs$37 = require("fs");
|
|
49973
49925
|
function checkPathExt(path, options) {
|
|
49974
49926
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49975
49927
|
if (!pathext) return true;
|
|
@@ -49986,12 +49938,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49986
49938
|
return checkPathExt(path, options);
|
|
49987
49939
|
}
|
|
49988
49940
|
function isexe(path, options, cb) {
|
|
49989
|
-
fs$
|
|
49941
|
+
fs$37.stat(path, function(er, stat) {
|
|
49990
49942
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49991
49943
|
});
|
|
49992
49944
|
}
|
|
49993
49945
|
function sync(path, options) {
|
|
49994
|
-
return checkStat(fs$
|
|
49946
|
+
return checkStat(fs$37.statSync(path), path, options);
|
|
49995
49947
|
}
|
|
49996
49948
|
}));
|
|
49997
49949
|
//#endregion
|
|
@@ -49999,14 +49951,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49999
49951
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50000
49952
|
module.exports = isexe;
|
|
50001
49953
|
isexe.sync = sync;
|
|
50002
|
-
var fs$
|
|
49954
|
+
var fs$36 = require("fs");
|
|
50003
49955
|
function isexe(path, options, cb) {
|
|
50004
|
-
fs$
|
|
49956
|
+
fs$36.stat(path, function(er, stat) {
|
|
50005
49957
|
cb(er, er ? false : checkStat(stat, options));
|
|
50006
49958
|
});
|
|
50007
49959
|
}
|
|
50008
49960
|
function sync(path, options) {
|
|
50009
|
-
return checkStat(fs$
|
|
49961
|
+
return checkStat(fs$36.statSync(path), options);
|
|
50010
49962
|
}
|
|
50011
49963
|
function checkStat(stat, options) {
|
|
50012
49964
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50070,7 +50022,7 @@ var require_isexe = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
50070
50022
|
//#region ../../node_modules/which/which.js
|
|
50071
50023
|
var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50072
50024
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50073
|
-
const path$
|
|
50025
|
+
const path$42 = require("path");
|
|
50074
50026
|
const COLON = isWindows ? ";" : ":";
|
|
50075
50027
|
const isexe = require_isexe();
|
|
50076
50028
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -50100,7 +50052,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50100
50052
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50101
50053
|
const ppRaw = pathEnv[i];
|
|
50102
50054
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50103
|
-
const pCmd = path$
|
|
50055
|
+
const pCmd = path$42.join(pathPart, cmd);
|
|
50104
50056
|
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
50105
50057
|
});
|
|
50106
50058
|
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
@@ -50121,7 +50073,7 @@ var require_which$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50121
50073
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
50122
50074
|
const ppRaw = pathEnv[i];
|
|
50123
50075
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50124
|
-
const pCmd = path$
|
|
50076
|
+
const pCmd = path$42.join(pathPart, cmd);
|
|
50125
50077
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50126
50078
|
for (let j = 0; j < pathExt.length; j++) {
|
|
50127
50079
|
const cur = p + pathExt[j];
|
|
@@ -50152,7 +50104,7 @@ var require_path_key = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
50152
50104
|
//#endregion
|
|
50153
50105
|
//#region ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50154
50106
|
var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50155
|
-
const path$
|
|
50107
|
+
const path$41 = require("path");
|
|
50156
50108
|
const which = require_which$1();
|
|
50157
50109
|
const getPathKey = require_path_key();
|
|
50158
50110
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -50167,12 +50119,12 @@ var require_resolveCommand = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
50167
50119
|
try {
|
|
50168
50120
|
resolved = which.sync(parsed.command, {
|
|
50169
50121
|
path: env[getPathKey({ env })],
|
|
50170
|
-
pathExt: withoutPathExt ? path$
|
|
50122
|
+
pathExt: withoutPathExt ? path$41.delimiter : void 0
|
|
50171
50123
|
});
|
|
50172
50124
|
} catch (e) {} finally {
|
|
50173
50125
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
50174
50126
|
}
|
|
50175
|
-
if (resolved) resolved = path$
|
|
50127
|
+
if (resolved) resolved = path$41.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50176
50128
|
return resolved;
|
|
50177
50129
|
}
|
|
50178
50130
|
function resolveCommand(parsed) {
|
|
@@ -50221,16 +50173,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50221
50173
|
//#endregion
|
|
50222
50174
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50223
50175
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50224
|
-
const fs$
|
|
50176
|
+
const fs$35 = require("fs");
|
|
50225
50177
|
const shebangCommand = require_shebang_command();
|
|
50226
50178
|
function readShebang(command) {
|
|
50227
50179
|
const size = 150;
|
|
50228
50180
|
const buffer = Buffer.alloc(size);
|
|
50229
50181
|
let fd;
|
|
50230
50182
|
try {
|
|
50231
|
-
fd = fs$
|
|
50232
|
-
fs$
|
|
50233
|
-
fs$
|
|
50183
|
+
fd = fs$35.openSync(command, "r");
|
|
50184
|
+
fs$35.readSync(fd, buffer, 0, size, 0);
|
|
50185
|
+
fs$35.closeSync(fd);
|
|
50234
50186
|
} catch (e) {}
|
|
50235
50187
|
return shebangCommand(buffer.toString());
|
|
50236
50188
|
}
|
|
@@ -50239,7 +50191,7 @@ var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
50239
50191
|
//#endregion
|
|
50240
50192
|
//#region ../../node_modules/cross-spawn/lib/parse.js
|
|
50241
50193
|
var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50242
|
-
const path$
|
|
50194
|
+
const path$40 = require("path");
|
|
50243
50195
|
const resolveCommand = require_resolveCommand();
|
|
50244
50196
|
const escape = require_escape$4();
|
|
50245
50197
|
const readShebang = require_readShebang();
|
|
@@ -50262,7 +50214,7 @@ var require_parse$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50262
50214
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50263
50215
|
if (parsed.options.forceShell || needsShell) {
|
|
50264
50216
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50265
|
-
parsed.command = path$
|
|
50217
|
+
parsed.command = path$40.normalize(parsed.command);
|
|
50266
50218
|
parsed.command = escape.command(parsed.command);
|
|
50267
50219
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50268
50220
|
parsed.args = [
|
|
@@ -56918,10 +56870,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56918
56870
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
56919
56871
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
56920
56872
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
56921
|
-
const path$
|
|
56873
|
+
const path$93 = split[0];
|
|
56922
56874
|
const prefix = split[1];
|
|
56923
56875
|
this.needPax = split[2];
|
|
56924
|
-
this.needPax = encString(buf, off, 100, path$
|
|
56876
|
+
this.needPax = encString(buf, off, 100, path$93) || this.needPax;
|
|
56925
56877
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
56926
56878
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
56927
56879
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -57024,7 +56976,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57024
56976
|
//#region ../../node_modules/tar/lib/pax.js
|
|
57025
56977
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57026
56978
|
const Header = require_header();
|
|
57027
|
-
const path$
|
|
56979
|
+
const path$34 = require("path");
|
|
57028
56980
|
var Pax = class {
|
|
57029
56981
|
constructor(obj, global) {
|
|
57030
56982
|
this.atime = obj.atime || null;
|
|
@@ -57052,7 +57004,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
57052
57004
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
57053
57005
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
57054
57006
|
new Header({
|
|
57055
|
-
path: ("PaxHeader/" + path$
|
|
57007
|
+
path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
|
|
57056
57008
|
mode: this.mode || 420,
|
|
57057
57009
|
uid: this.uid || null,
|
|
57058
57010
|
gid: this.gid || null,
|
|
@@ -57155,16 +57107,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
57155
57107
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
57156
57108
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57157
57109
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
57158
|
-
module.exports = (path$
|
|
57110
|
+
module.exports = (path$92) => {
|
|
57159
57111
|
let r = "";
|
|
57160
|
-
let parsed = parse$3(path$
|
|
57161
|
-
while (isAbsolute$3(path$
|
|
57162
|
-
const root = path$
|
|
57163
|
-
path$
|
|
57112
|
+
let parsed = parse$3(path$92);
|
|
57113
|
+
while (isAbsolute$3(path$92) || parsed.root) {
|
|
57114
|
+
const root = path$92.charAt(0) === "/" && path$92.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
57115
|
+
path$92 = path$92.slice(root.length);
|
|
57164
57116
|
r += root;
|
|
57165
|
-
parsed = parse$3(path$
|
|
57117
|
+
parsed = parse$3(path$92);
|
|
57166
57118
|
}
|
|
57167
|
-
return [r, path$
|
|
57119
|
+
return [r, path$92];
|
|
57168
57120
|
};
|
|
57169
57121
|
}));
|
|
57170
57122
|
//#endregion
|
|
@@ -57187,14 +57139,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57187
57139
|
const { Minipass } = require_minipass$4();
|
|
57188
57140
|
const Pax = require_pax();
|
|
57189
57141
|
const Header = require_header();
|
|
57190
|
-
const fs$
|
|
57191
|
-
const path$
|
|
57142
|
+
const fs$34 = require("fs");
|
|
57143
|
+
const path$33 = require("path");
|
|
57192
57144
|
const normPath = require_normalize_windows_path();
|
|
57193
57145
|
const stripSlash = require_strip_trailing_slashes();
|
|
57194
|
-
const prefixPath = (path$
|
|
57195
|
-
if (!prefix) return normPath(path$
|
|
57196
|
-
path$
|
|
57197
|
-
return stripSlash(prefix) + "/" + path$
|
|
57146
|
+
const prefixPath = (path$89, prefix) => {
|
|
57147
|
+
if (!prefix) return normPath(path$89);
|
|
57148
|
+
path$89 = normPath(path$89).replace(/^\.(\/|$)/, "");
|
|
57149
|
+
return stripSlash(prefix) + "/" + path$89;
|
|
57198
57150
|
};
|
|
57199
57151
|
const maxReadSize = 16 * 1024 * 1024;
|
|
57200
57152
|
const PROCESS = Symbol("process");
|
|
@@ -57261,7 +57213,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57261
57213
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
57262
57214
|
p = p.replace(/\\/g, "/");
|
|
57263
57215
|
}
|
|
57264
|
-
this.absolute = normPath(opt.absolute || path$
|
|
57216
|
+
this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
|
|
57265
57217
|
if (this.path === "") this.path = "./";
|
|
57266
57218
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
57267
57219
|
entry: this,
|
|
@@ -57275,7 +57227,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57275
57227
|
return super.emit(ev, ...data);
|
|
57276
57228
|
}
|
|
57277
57229
|
[LSTAT]() {
|
|
57278
|
-
fs$
|
|
57230
|
+
fs$34.lstat(this.absolute, (er, stat) => {
|
|
57279
57231
|
if (er) return this.emit("error", er);
|
|
57280
57232
|
this[ONLSTAT](stat);
|
|
57281
57233
|
});
|
|
@@ -57299,8 +57251,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57299
57251
|
[MODE](mode) {
|
|
57300
57252
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
57301
57253
|
}
|
|
57302
|
-
[PREFIX](path$
|
|
57303
|
-
return prefixPath(path$
|
|
57254
|
+
[PREFIX](path$90) {
|
|
57255
|
+
return prefixPath(path$90, this.prefix);
|
|
57304
57256
|
}
|
|
57305
57257
|
[HEADER]() {
|
|
57306
57258
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -57340,7 +57292,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57340
57292
|
this.end();
|
|
57341
57293
|
}
|
|
57342
57294
|
[SYMLINK]() {
|
|
57343
|
-
fs$
|
|
57295
|
+
fs$34.readlink(this.absolute, (er, linkpath) => {
|
|
57344
57296
|
if (er) return this.emit("error", er);
|
|
57345
57297
|
this[ONREADLINK](linkpath);
|
|
57346
57298
|
});
|
|
@@ -57352,7 +57304,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57352
57304
|
}
|
|
57353
57305
|
[HARDLINK](linkpath) {
|
|
57354
57306
|
this.type = "Link";
|
|
57355
|
-
this.linkpath = normPath(path$
|
|
57307
|
+
this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
|
|
57356
57308
|
this.stat.size = 0;
|
|
57357
57309
|
this[HEADER]();
|
|
57358
57310
|
this.end();
|
|
@@ -57371,7 +57323,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57371
57323
|
this[OPENFILE]();
|
|
57372
57324
|
}
|
|
57373
57325
|
[OPENFILE]() {
|
|
57374
|
-
fs$
|
|
57326
|
+
fs$34.open(this.absolute, "r", (er, fd) => {
|
|
57375
57327
|
if (er) return this.emit("error", er);
|
|
57376
57328
|
this[ONOPENFILE](fd);
|
|
57377
57329
|
});
|
|
@@ -57391,13 +57343,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57391
57343
|
}
|
|
57392
57344
|
[READ]() {
|
|
57393
57345
|
const { fd, buf, offset, length, pos } = this;
|
|
57394
|
-
fs$
|
|
57346
|
+
fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57395
57347
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57396
57348
|
this[ONREAD](bytesRead);
|
|
57397
57349
|
});
|
|
57398
57350
|
}
|
|
57399
57351
|
[CLOSE](cb) {
|
|
57400
|
-
fs$
|
|
57352
|
+
fs$34.close(this.fd, cb);
|
|
57401
57353
|
}
|
|
57402
57354
|
[ONREAD](bytesRead) {
|
|
57403
57355
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57453,19 +57405,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57453
57405
|
});
|
|
57454
57406
|
var WriteEntrySync = class extends WriteEntry {
|
|
57455
57407
|
[LSTAT]() {
|
|
57456
|
-
this[ONLSTAT](fs$
|
|
57408
|
+
this[ONLSTAT](fs$34.lstatSync(this.absolute));
|
|
57457
57409
|
}
|
|
57458
57410
|
[SYMLINK]() {
|
|
57459
|
-
this[ONREADLINK](fs$
|
|
57411
|
+
this[ONREADLINK](fs$34.readlinkSync(this.absolute));
|
|
57460
57412
|
}
|
|
57461
57413
|
[OPENFILE]() {
|
|
57462
|
-
this[ONOPENFILE](fs$
|
|
57414
|
+
this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
|
|
57463
57415
|
}
|
|
57464
57416
|
[READ]() {
|
|
57465
57417
|
let threw = true;
|
|
57466
57418
|
try {
|
|
57467
57419
|
const { fd, buf, offset, length, pos } = this;
|
|
57468
|
-
const bytesRead = fs$
|
|
57420
|
+
const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
|
|
57469
57421
|
this[ONREAD](bytesRead);
|
|
57470
57422
|
threw = false;
|
|
57471
57423
|
} finally {
|
|
@@ -57478,7 +57430,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57478
57430
|
cb();
|
|
57479
57431
|
}
|
|
57480
57432
|
[CLOSE](cb) {
|
|
57481
|
-
fs$
|
|
57433
|
+
fs$34.closeSync(this.fd);
|
|
57482
57434
|
cb();
|
|
57483
57435
|
}
|
|
57484
57436
|
};
|
|
@@ -57551,8 +57503,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57551
57503
|
super.write(this.header.block);
|
|
57552
57504
|
readEntry.pipe(this);
|
|
57553
57505
|
}
|
|
57554
|
-
[PREFIX](path$
|
|
57555
|
-
return prefixPath(path$
|
|
57506
|
+
[PREFIX](path$91) {
|
|
57507
|
+
return prefixPath(path$91, this.prefix);
|
|
57556
57508
|
}
|
|
57557
57509
|
[MODE](mode) {
|
|
57558
57510
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -57836,8 +57788,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
57836
57788
|
//#region ../../node_modules/tar/lib/pack.js
|
|
57837
57789
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
57838
57790
|
var PackJob = class {
|
|
57839
|
-
constructor(path$
|
|
57840
|
-
this.path = path$
|
|
57791
|
+
constructor(path$85, absolute) {
|
|
57792
|
+
this.path = path$85 || "./";
|
|
57841
57793
|
this.absolute = absolute;
|
|
57842
57794
|
this.entry = null;
|
|
57843
57795
|
this.stat = null;
|
|
@@ -57875,8 +57827,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57875
57827
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57876
57828
|
const WRITE = Symbol("write");
|
|
57877
57829
|
const ONDRAIN = Symbol("ondrain");
|
|
57878
|
-
const fs$
|
|
57879
|
-
const path$
|
|
57830
|
+
const fs$33 = require("fs");
|
|
57831
|
+
const path$32 = require("path");
|
|
57880
57832
|
const warner = require_warn_mixin();
|
|
57881
57833
|
const normPath = require_normalize_windows_path();
|
|
57882
57834
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -57928,24 +57880,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57928
57880
|
[WRITE](chunk) {
|
|
57929
57881
|
return super.write(chunk);
|
|
57930
57882
|
}
|
|
57931
|
-
add(path$
|
|
57932
|
-
this.write(path$
|
|
57883
|
+
add(path$86) {
|
|
57884
|
+
this.write(path$86);
|
|
57933
57885
|
return this;
|
|
57934
57886
|
}
|
|
57935
|
-
end(path$
|
|
57936
|
-
if (path$
|
|
57887
|
+
end(path$87) {
|
|
57888
|
+
if (path$87) this.write(path$87);
|
|
57937
57889
|
this[ENDED] = true;
|
|
57938
57890
|
this[PROCESS]();
|
|
57939
57891
|
return this;
|
|
57940
57892
|
}
|
|
57941
|
-
write(path$
|
|
57893
|
+
write(path$88) {
|
|
57942
57894
|
if (this[ENDED]) throw new Error("write after end");
|
|
57943
|
-
if (path$
|
|
57944
|
-
else this[ADDFSENTRY](path$
|
|
57895
|
+
if (path$88 instanceof ReadEntry) this[ADDTARENTRY](path$88);
|
|
57896
|
+
else this[ADDFSENTRY](path$88);
|
|
57945
57897
|
return this.flowing;
|
|
57946
57898
|
}
|
|
57947
57899
|
[ADDTARENTRY](p) {
|
|
57948
|
-
const absolute = normPath(path$
|
|
57900
|
+
const absolute = normPath(path$32.resolve(this.cwd, p.path));
|
|
57949
57901
|
if (!this.filter(p.path, p)) p.resume();
|
|
57950
57902
|
else {
|
|
57951
57903
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -57957,14 +57909,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57957
57909
|
this[PROCESS]();
|
|
57958
57910
|
}
|
|
57959
57911
|
[ADDFSENTRY](p) {
|
|
57960
|
-
const absolute = normPath(path$
|
|
57912
|
+
const absolute = normPath(path$32.resolve(this.cwd, p));
|
|
57961
57913
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
57962
57914
|
this[PROCESS]();
|
|
57963
57915
|
}
|
|
57964
57916
|
[STAT](job) {
|
|
57965
57917
|
job.pending = true;
|
|
57966
57918
|
this[JOBS] += 1;
|
|
57967
|
-
fs$
|
|
57919
|
+
fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57968
57920
|
job.pending = false;
|
|
57969
57921
|
this[JOBS] -= 1;
|
|
57970
57922
|
if (er) this.emit("error", er);
|
|
@@ -57980,7 +57932,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57980
57932
|
[READDIR](job) {
|
|
57981
57933
|
job.pending = true;
|
|
57982
57934
|
this[JOBS] += 1;
|
|
57983
|
-
fs$
|
|
57935
|
+
fs$33.readdir(job.absolute, (er, entries) => {
|
|
57984
57936
|
job.pending = false;
|
|
57985
57937
|
this[JOBS] -= 1;
|
|
57986
57938
|
if (er) return this.emit("error", er);
|
|
@@ -58098,10 +58050,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58098
58050
|
resume() {}
|
|
58099
58051
|
[STAT](job) {
|
|
58100
58052
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58101
|
-
this[ONSTAT](job, fs$
|
|
58053
|
+
this[ONSTAT](job, fs$33[stat](job.absolute));
|
|
58102
58054
|
}
|
|
58103
58055
|
[READDIR](job, stat) {
|
|
58104
|
-
this[ONREADDIR](job, fs$
|
|
58056
|
+
this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
|
|
58105
58057
|
}
|
|
58106
58058
|
[PIPE](job) {
|
|
58107
58059
|
const source = job.entry;
|
|
@@ -58557,8 +58509,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58557
58509
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58558
58510
|
const MiniPass = require_minipass$2();
|
|
58559
58511
|
const EE$11 = require("events").EventEmitter;
|
|
58560
|
-
const fs$
|
|
58561
|
-
let writev = fs$
|
|
58512
|
+
const fs$32 = require("fs");
|
|
58513
|
+
let writev = fs$32.writev;
|
|
58562
58514
|
/* istanbul ignore next */
|
|
58563
58515
|
if (!writev) {
|
|
58564
58516
|
const binding = process.binding("fs");
|
|
@@ -58629,7 +58581,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58629
58581
|
throw new TypeError("this is a readable stream");
|
|
58630
58582
|
}
|
|
58631
58583
|
[_open]() {
|
|
58632
|
-
fs$
|
|
58584
|
+
fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58633
58585
|
}
|
|
58634
58586
|
[_onopen](er, fd) {
|
|
58635
58587
|
if (er) this[_onerror](er);
|
|
@@ -58648,7 +58600,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58648
58600
|
const buf = this[_makeBuf]();
|
|
58649
58601
|
/* istanbul ignore if */
|
|
58650
58602
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58651
|
-
fs$
|
|
58603
|
+
fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58652
58604
|
}
|
|
58653
58605
|
}
|
|
58654
58606
|
[_onread](er, br, buf) {
|
|
@@ -58660,7 +58612,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58660
58612
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58661
58613
|
const fd = this[_fd];
|
|
58662
58614
|
this[_fd] = null;
|
|
58663
|
-
fs$
|
|
58615
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58664
58616
|
}
|
|
58665
58617
|
}
|
|
58666
58618
|
[_onerror](er) {
|
|
@@ -58698,7 +58650,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58698
58650
|
[_open]() {
|
|
58699
58651
|
let threw = true;
|
|
58700
58652
|
try {
|
|
58701
|
-
this[_onopen](null, fs$
|
|
58653
|
+
this[_onopen](null, fs$32.openSync(this[_path], "r"));
|
|
58702
58654
|
threw = false;
|
|
58703
58655
|
} finally {
|
|
58704
58656
|
if (threw) this[_close]();
|
|
@@ -58712,7 +58664,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58712
58664
|
do {
|
|
58713
58665
|
const buf = this[_makeBuf]();
|
|
58714
58666
|
/* istanbul ignore next */
|
|
58715
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58667
|
+
const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58716
58668
|
if (!this[_handleChunk](br, buf)) break;
|
|
58717
58669
|
} while (true);
|
|
58718
58670
|
this[_reading] = false;
|
|
@@ -58726,7 +58678,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58726
58678
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58727
58679
|
const fd = this[_fd];
|
|
58728
58680
|
this[_fd] = null;
|
|
58729
|
-
fs$
|
|
58681
|
+
fs$32.closeSync(fd);
|
|
58730
58682
|
this.emit("close");
|
|
58731
58683
|
}
|
|
58732
58684
|
}
|
|
@@ -58771,7 +58723,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58771
58723
|
this.emit("error", er);
|
|
58772
58724
|
}
|
|
58773
58725
|
[_open]() {
|
|
58774
|
-
fs$
|
|
58726
|
+
fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58775
58727
|
}
|
|
58776
58728
|
[_onopen](er, fd) {
|
|
58777
58729
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58806,7 +58758,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58806
58758
|
return true;
|
|
58807
58759
|
}
|
|
58808
58760
|
[_write](buf) {
|
|
58809
|
-
fs$
|
|
58761
|
+
fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58810
58762
|
}
|
|
58811
58763
|
[_onwrite](er, bw) {
|
|
58812
58764
|
if (er) this[_onerror](er);
|
|
@@ -58840,7 +58792,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58840
58792
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58841
58793
|
const fd = this[_fd];
|
|
58842
58794
|
this[_fd] = null;
|
|
58843
|
-
fs$
|
|
58795
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58844
58796
|
}
|
|
58845
58797
|
}
|
|
58846
58798
|
};
|
|
@@ -58848,28 +58800,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58848
58800
|
[_open]() {
|
|
58849
58801
|
let fd;
|
|
58850
58802
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58851
|
-
fd = fs$
|
|
58803
|
+
fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58852
58804
|
} catch (er) {
|
|
58853
58805
|
if (er.code === "ENOENT") {
|
|
58854
58806
|
this[_flags] = "w";
|
|
58855
58807
|
return this[_open]();
|
|
58856
58808
|
} else throw er;
|
|
58857
58809
|
}
|
|
58858
|
-
else fd = fs$
|
|
58810
|
+
else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
58859
58811
|
this[_onopen](null, fd);
|
|
58860
58812
|
}
|
|
58861
58813
|
[_close]() {
|
|
58862
58814
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58863
58815
|
const fd = this[_fd];
|
|
58864
58816
|
this[_fd] = null;
|
|
58865
|
-
fs$
|
|
58817
|
+
fs$32.closeSync(fd);
|
|
58866
58818
|
this.emit("close");
|
|
58867
58819
|
}
|
|
58868
58820
|
}
|
|
58869
58821
|
[_write](buf) {
|
|
58870
58822
|
let threw = true;
|
|
58871
58823
|
try {
|
|
58872
|
-
this[_onwrite](null, fs$
|
|
58824
|
+
this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58873
58825
|
threw = false;
|
|
58874
58826
|
} finally {
|
|
58875
58827
|
if (threw) try {
|
|
@@ -59234,9 +59186,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59234
59186
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59235
59187
|
const hlo = require_high_level_opt();
|
|
59236
59188
|
const Parser = require_parse$4();
|
|
59237
|
-
const fs$
|
|
59189
|
+
const fs$31 = require("fs");
|
|
59238
59190
|
const fsm = require_fs_minipass();
|
|
59239
|
-
const path$
|
|
59191
|
+
const path$31 = require("path");
|
|
59240
59192
|
const stripSlash = require_strip_trailing_slashes();
|
|
59241
59193
|
module.exports = (opt_, files, cb) => {
|
|
59242
59194
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -59262,8 +59214,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59262
59214
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
59263
59215
|
const filter = opt.filter;
|
|
59264
59216
|
const mapHas = (file, r) => {
|
|
59265
|
-
const root = r || path$
|
|
59266
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
59217
|
+
const root = r || path$31.parse(file).root || ".";
|
|
59218
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
|
|
59267
59219
|
map.set(file, ret);
|
|
59268
59220
|
return ret;
|
|
59269
59221
|
};
|
|
@@ -59275,15 +59227,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59275
59227
|
let threw = true;
|
|
59276
59228
|
let fd;
|
|
59277
59229
|
try {
|
|
59278
|
-
const stat = fs$
|
|
59230
|
+
const stat = fs$31.statSync(file);
|
|
59279
59231
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59280
|
-
if (stat.size < readSize) p.end(fs$
|
|
59232
|
+
if (stat.size < readSize) p.end(fs$31.readFileSync(file));
|
|
59281
59233
|
else {
|
|
59282
59234
|
let pos = 0;
|
|
59283
59235
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59284
|
-
fd = fs$
|
|
59236
|
+
fd = fs$31.openSync(file, "r");
|
|
59285
59237
|
while (pos < stat.size) {
|
|
59286
|
-
const bytesRead = fs$
|
|
59238
|
+
const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
|
|
59287
59239
|
pos += bytesRead;
|
|
59288
59240
|
p.write(buf.slice(0, bytesRead));
|
|
59289
59241
|
}
|
|
@@ -59292,7 +59244,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59292
59244
|
threw = false;
|
|
59293
59245
|
} finally {
|
|
59294
59246
|
if (threw && fd) try {
|
|
59295
|
-
fs$
|
|
59247
|
+
fs$31.closeSync(fd);
|
|
59296
59248
|
} catch (er) {}
|
|
59297
59249
|
}
|
|
59298
59250
|
};
|
|
@@ -59303,7 +59255,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59303
59255
|
const p = new Promise((resolve, reject) => {
|
|
59304
59256
|
parse.on("error", reject);
|
|
59305
59257
|
parse.on("end", resolve);
|
|
59306
|
-
fs$
|
|
59258
|
+
fs$31.stat(file, (er, stat) => {
|
|
59307
59259
|
if (er) reject(er);
|
|
59308
59260
|
else {
|
|
59309
59261
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59326,7 +59278,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59326
59278
|
const Pack = require_pack$1();
|
|
59327
59279
|
const fsm = require_fs_minipass();
|
|
59328
59280
|
const t = require_list();
|
|
59329
|
-
const path$
|
|
59281
|
+
const path$30 = require("path");
|
|
59330
59282
|
module.exports = (opt_, files, cb) => {
|
|
59331
59283
|
if (typeof files === "function") cb = files;
|
|
59332
59284
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -59358,7 +59310,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59358
59310
|
const addFilesSync = (p, files) => {
|
|
59359
59311
|
files.forEach((file) => {
|
|
59360
59312
|
if (file.charAt(0) === "@") t({
|
|
59361
|
-
file: path$
|
|
59313
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59362
59314
|
sync: true,
|
|
59363
59315
|
noResume: true,
|
|
59364
59316
|
onentry: (entry) => p.add(entry)
|
|
@@ -59371,7 +59323,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59371
59323
|
while (files.length) {
|
|
59372
59324
|
const file = files.shift();
|
|
59373
59325
|
if (file.charAt(0) === "@") return t({
|
|
59374
|
-
file: path$
|
|
59326
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
59375
59327
|
noResume: true,
|
|
59376
59328
|
onentry: (entry) => p.add(entry)
|
|
59377
59329
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59395,10 +59347,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59395
59347
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59396
59348
|
const hlo = require_high_level_opt();
|
|
59397
59349
|
const Pack = require_pack$1();
|
|
59398
|
-
const fs$
|
|
59350
|
+
const fs$30 = require("fs");
|
|
59399
59351
|
const fsm = require_fs_minipass();
|
|
59400
59352
|
const t = require_list();
|
|
59401
|
-
const path$
|
|
59353
|
+
const path$29 = require("path");
|
|
59402
59354
|
const Header = require_header();
|
|
59403
59355
|
module.exports = (opt_, files, cb) => {
|
|
59404
59356
|
const opt = hlo(opt_);
|
|
@@ -59415,16 +59367,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59415
59367
|
let position;
|
|
59416
59368
|
try {
|
|
59417
59369
|
try {
|
|
59418
|
-
fd = fs$
|
|
59370
|
+
fd = fs$30.openSync(opt.file, "r+");
|
|
59419
59371
|
} catch (er) {
|
|
59420
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59372
|
+
if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
|
|
59421
59373
|
else throw er;
|
|
59422
59374
|
}
|
|
59423
|
-
const st = fs$
|
|
59375
|
+
const st = fs$30.fstatSync(fd);
|
|
59424
59376
|
const headBuf = Buffer.alloc(512);
|
|
59425
59377
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59426
59378
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59427
|
-
bytes = fs$
|
|
59379
|
+
bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59428
59380
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59429
59381
|
if (!bytes) break POSITION;
|
|
59430
59382
|
}
|
|
@@ -59439,7 +59391,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59439
59391
|
streamSync(opt, p, position, fd, files);
|
|
59440
59392
|
} finally {
|
|
59441
59393
|
if (threw) try {
|
|
59442
|
-
fs$
|
|
59394
|
+
fs$30.closeSync(fd);
|
|
59443
59395
|
} catch (er) {}
|
|
59444
59396
|
}
|
|
59445
59397
|
};
|
|
@@ -59456,7 +59408,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59456
59408
|
const p = new Pack(opt);
|
|
59457
59409
|
const getPos = (fd, size, cb_) => {
|
|
59458
59410
|
const cb = (er, pos) => {
|
|
59459
|
-
if (er) fs$
|
|
59411
|
+
if (er) fs$30.close(fd, (_) => cb_(er));
|
|
59460
59412
|
else cb_(null, pos);
|
|
59461
59413
|
};
|
|
59462
59414
|
let position = 0;
|
|
@@ -59466,7 +59418,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59466
59418
|
const onread = (er, bytes) => {
|
|
59467
59419
|
if (er) return cb(er);
|
|
59468
59420
|
bufPos += bytes;
|
|
59469
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59421
|
+
if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59470
59422
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59471
59423
|
if (bufPos < 512) return cb(null, position);
|
|
59472
59424
|
const h = new Header(headBuf);
|
|
@@ -59477,9 +59429,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59477
59429
|
if (position >= size) return cb(null, position);
|
|
59478
59430
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59479
59431
|
bufPos = 0;
|
|
59480
|
-
fs$
|
|
59432
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59481
59433
|
};
|
|
59482
|
-
fs$
|
|
59434
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
59483
59435
|
};
|
|
59484
59436
|
const promise = new Promise((resolve, reject) => {
|
|
59485
59437
|
p.on("error", reject);
|
|
@@ -59487,11 +59439,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59487
59439
|
const onopen = (er, fd) => {
|
|
59488
59440
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59489
59441
|
flag = "w+";
|
|
59490
|
-
return fs$
|
|
59442
|
+
return fs$30.open(opt.file, flag, onopen);
|
|
59491
59443
|
}
|
|
59492
59444
|
if (er) return reject(er);
|
|
59493
|
-
fs$
|
|
59494
|
-
if (er) return fs$
|
|
59445
|
+
fs$30.fstat(fd, (er, st) => {
|
|
59446
|
+
if (er) return fs$30.close(fd, () => reject(er));
|
|
59495
59447
|
getPos(fd, st.size, (er, position) => {
|
|
59496
59448
|
if (er) return reject(er);
|
|
59497
59449
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59505,14 +59457,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59505
59457
|
});
|
|
59506
59458
|
});
|
|
59507
59459
|
};
|
|
59508
|
-
fs$
|
|
59460
|
+
fs$30.open(opt.file, flag, onopen);
|
|
59509
59461
|
});
|
|
59510
59462
|
return cb ? promise.then(cb, cb) : promise;
|
|
59511
59463
|
};
|
|
59512
59464
|
const addFilesSync = (p, files) => {
|
|
59513
59465
|
files.forEach((file) => {
|
|
59514
59466
|
if (file.charAt(0) === "@") t({
|
|
59515
|
-
file: path$
|
|
59467
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
59516
59468
|
sync: true,
|
|
59517
59469
|
noResume: true,
|
|
59518
59470
|
onentry: (entry) => p.add(entry)
|
|
@@ -59525,7 +59477,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59525
59477
|
while (files.length) {
|
|
59526
59478
|
const file = files.shift();
|
|
59527
59479
|
if (file.charAt(0) === "@") return t({
|
|
59528
|
-
file: path$
|
|
59480
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
59529
59481
|
noResume: true,
|
|
59530
59482
|
onentry: (entry) => p.add(entry)
|
|
59531
59483
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -59558,32 +59510,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59558
59510
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59559
59511
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59560
59512
|
const { promisify: promisify$1 } = require("util");
|
|
59561
|
-
const fs$
|
|
59513
|
+
const fs$29 = require("fs");
|
|
59562
59514
|
const optsArg = (opts) => {
|
|
59563
59515
|
if (!opts) opts = {
|
|
59564
59516
|
mode: 511,
|
|
59565
|
-
fs: fs$
|
|
59517
|
+
fs: fs$29
|
|
59566
59518
|
};
|
|
59567
59519
|
else if (typeof opts === "object") opts = {
|
|
59568
59520
|
mode: 511,
|
|
59569
|
-
fs: fs$
|
|
59521
|
+
fs: fs$29,
|
|
59570
59522
|
...opts
|
|
59571
59523
|
};
|
|
59572
59524
|
else if (typeof opts === "number") opts = {
|
|
59573
59525
|
mode: opts,
|
|
59574
|
-
fs: fs$
|
|
59526
|
+
fs: fs$29
|
|
59575
59527
|
};
|
|
59576
59528
|
else if (typeof opts === "string") opts = {
|
|
59577
59529
|
mode: parseInt(opts, 8),
|
|
59578
|
-
fs: fs$
|
|
59530
|
+
fs: fs$29
|
|
59579
59531
|
};
|
|
59580
59532
|
else throw new TypeError("invalid options argument");
|
|
59581
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59533
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
|
|
59582
59534
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59583
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59535
|
+
opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
|
|
59584
59536
|
opts.statAsync = promisify$1(opts.stat);
|
|
59585
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59586
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59537
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
|
|
59538
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
|
|
59587
59539
|
return opts;
|
|
59588
59540
|
};
|
|
59589
59541
|
module.exports = optsArg;
|
|
@@ -59593,21 +59545,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59593
59545
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59594
59546
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59595
59547
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
59596
|
-
const pathArg = (path$
|
|
59597
|
-
if (/\0/.test(path$
|
|
59598
|
-
path: path$
|
|
59548
|
+
const pathArg = (path$84) => {
|
|
59549
|
+
if (/\0/.test(path$84)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59550
|
+
path: path$84,
|
|
59599
59551
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59600
59552
|
});
|
|
59601
|
-
path$
|
|
59553
|
+
path$84 = resolve$13(path$84);
|
|
59602
59554
|
if (platform === "win32") {
|
|
59603
59555
|
const badWinChars = /[*|"<>?:]/;
|
|
59604
|
-
const { root } = parse$2(path$
|
|
59605
|
-
if (badWinChars.test(path$
|
|
59606
|
-
path: path$
|
|
59556
|
+
const { root } = parse$2(path$84);
|
|
59557
|
+
if (badWinChars.test(path$84.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
59558
|
+
path: path$84,
|
|
59607
59559
|
code: "EINVAL"
|
|
59608
59560
|
});
|
|
59609
59561
|
}
|
|
59610
|
-
return path$
|
|
59562
|
+
return path$84;
|
|
59611
59563
|
};
|
|
59612
59564
|
module.exports = pathArg;
|
|
59613
59565
|
}));
|
|
@@ -59615,14 +59567,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59615
59567
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59616
59568
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59617
59569
|
const { dirname: dirname$14 } = require("path");
|
|
59618
|
-
const findMade = (opts, parent, path$
|
|
59619
|
-
if (path$
|
|
59620
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
59570
|
+
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59571
|
+
if (path$82 === parent) return Promise.resolve();
|
|
59572
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59621
59573
|
};
|
|
59622
|
-
const findMadeSync = (opts, parent, path$
|
|
59623
|
-
if (path$
|
|
59574
|
+
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59575
|
+
if (path$83 === parent) return void 0;
|
|
59624
59576
|
try {
|
|
59625
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
59577
|
+
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59626
59578
|
} catch (er) {
|
|
59627
59579
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59628
59580
|
}
|
|
@@ -59636,16 +59588,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59636
59588
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59637
59589
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59638
59590
|
const { dirname: dirname$13 } = require("path");
|
|
59639
|
-
const mkdirpManual = (path$
|
|
59591
|
+
const mkdirpManual = (path$80, opts, made) => {
|
|
59640
59592
|
opts.recursive = false;
|
|
59641
|
-
const parent = dirname$13(path$
|
|
59642
|
-
if (parent === path$
|
|
59593
|
+
const parent = dirname$13(path$80);
|
|
59594
|
+
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59643
59595
|
if (er.code !== "EISDIR") throw er;
|
|
59644
59596
|
});
|
|
59645
|
-
return opts.mkdirAsync(path$
|
|
59646
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
59597
|
+
return opts.mkdirAsync(path$80, opts).then(() => made || path$80, (er) => {
|
|
59598
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$80, opts, made));
|
|
59647
59599
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59648
|
-
return opts.statAsync(path$
|
|
59600
|
+
return opts.statAsync(path$80).then((st) => {
|
|
59649
59601
|
if (st.isDirectory()) return made;
|
|
59650
59602
|
else throw er;
|
|
59651
59603
|
}, () => {
|
|
@@ -59653,23 +59605,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59653
59605
|
});
|
|
59654
59606
|
});
|
|
59655
59607
|
};
|
|
59656
|
-
const mkdirpManualSync = (path$
|
|
59657
|
-
const parent = dirname$13(path$
|
|
59608
|
+
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59609
|
+
const parent = dirname$13(path$81);
|
|
59658
59610
|
opts.recursive = false;
|
|
59659
|
-
if (parent === path$
|
|
59660
|
-
return opts.mkdirSync(path$
|
|
59611
|
+
if (parent === path$81) try {
|
|
59612
|
+
return opts.mkdirSync(path$81, opts);
|
|
59661
59613
|
} catch (er) {
|
|
59662
59614
|
if (er.code !== "EISDIR") throw er;
|
|
59663
59615
|
else return;
|
|
59664
59616
|
}
|
|
59665
59617
|
try {
|
|
59666
|
-
opts.mkdirSync(path$
|
|
59667
|
-
return made || path$
|
|
59618
|
+
opts.mkdirSync(path$81, opts);
|
|
59619
|
+
return made || path$81;
|
|
59668
59620
|
} catch (er) {
|
|
59669
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59621
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$81, opts, mkdirpManualSync(parent, opts, made));
|
|
59670
59622
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
59671
59623
|
try {
|
|
59672
|
-
if (!opts.statSync(path$
|
|
59624
|
+
if (!opts.statSync(path$81).isDirectory()) throw er;
|
|
59673
59625
|
} catch (_) {
|
|
59674
59626
|
throw er;
|
|
59675
59627
|
}
|
|
@@ -59686,23 +59638,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59686
59638
|
const { dirname: dirname$12 } = require("path");
|
|
59687
59639
|
const { findMade, findMadeSync } = require_find_made();
|
|
59688
59640
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59689
|
-
const mkdirpNative = (path$
|
|
59641
|
+
const mkdirpNative = (path$78, opts) => {
|
|
59690
59642
|
opts.recursive = true;
|
|
59691
|
-
if (dirname$12(path$
|
|
59692
|
-
return findMade(opts, path$
|
|
59693
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
59643
|
+
if (dirname$12(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59644
|
+
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59645
|
+
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59694
59646
|
else throw er;
|
|
59695
59647
|
}));
|
|
59696
59648
|
};
|
|
59697
|
-
const mkdirpNativeSync = (path$
|
|
59649
|
+
const mkdirpNativeSync = (path$79, opts) => {
|
|
59698
59650
|
opts.recursive = true;
|
|
59699
|
-
if (dirname$12(path$
|
|
59700
|
-
const made = findMadeSync(opts, path$
|
|
59651
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59652
|
+
const made = findMadeSync(opts, path$79);
|
|
59701
59653
|
try {
|
|
59702
|
-
opts.mkdirSync(path$
|
|
59654
|
+
opts.mkdirSync(path$79, opts);
|
|
59703
59655
|
return made;
|
|
59704
59656
|
} catch (er) {
|
|
59705
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
59657
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$79, opts);
|
|
59706
59658
|
else throw er;
|
|
59707
59659
|
}
|
|
59708
59660
|
};
|
|
@@ -59714,12 +59666,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59714
59666
|
//#endregion
|
|
59715
59667
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59716
59668
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59717
|
-
const fs$
|
|
59669
|
+
const fs$28 = require("fs");
|
|
59718
59670
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59719
59671
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59720
59672
|
module.exports = {
|
|
59721
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59722
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59673
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
|
|
59674
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
|
|
59723
59675
|
};
|
|
59724
59676
|
}));
|
|
59725
59677
|
//#endregion
|
|
@@ -59750,64 +59702,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59750
59702
|
//#endregion
|
|
59751
59703
|
//#region ../../node_modules/chownr/chownr.js
|
|
59752
59704
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59753
|
-
const fs$
|
|
59754
|
-
const path$
|
|
59705
|
+
const fs$27 = require("fs");
|
|
59706
|
+
const path$28 = require("path");
|
|
59755
59707
|
/* istanbul ignore next */
|
|
59756
|
-
const LCHOWN = fs$
|
|
59708
|
+
const LCHOWN = fs$27.lchown ? "lchown" : "chown";
|
|
59757
59709
|
/* istanbul ignore next */
|
|
59758
|
-
const LCHOWNSYNC = fs$
|
|
59710
|
+
const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
|
|
59759
59711
|
/* istanbul ignore next */
|
|
59760
|
-
const needEISDIRHandled = fs$
|
|
59761
|
-
const lchownSync = (path$
|
|
59712
|
+
const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59713
|
+
const lchownSync = (path$70, uid, gid) => {
|
|
59762
59714
|
try {
|
|
59763
|
-
return fs$
|
|
59715
|
+
return fs$27[LCHOWNSYNC](path$70, uid, gid);
|
|
59764
59716
|
} catch (er) {
|
|
59765
59717
|
if (er.code !== "ENOENT") throw er;
|
|
59766
59718
|
}
|
|
59767
59719
|
};
|
|
59768
59720
|
/* istanbul ignore next */
|
|
59769
|
-
const chownSync = (path$
|
|
59721
|
+
const chownSync = (path$71, uid, gid) => {
|
|
59770
59722
|
try {
|
|
59771
|
-
return fs$
|
|
59723
|
+
return fs$27.chownSync(path$71, uid, gid);
|
|
59772
59724
|
} catch (er) {
|
|
59773
59725
|
if (er.code !== "ENOENT") throw er;
|
|
59774
59726
|
}
|
|
59775
59727
|
};
|
|
59776
59728
|
/* istanbul ignore next */
|
|
59777
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
59729
|
+
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59778
59730
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59779
|
-
else fs$
|
|
59731
|
+
else fs$27.chown(path$72, uid, gid, cb);
|
|
59780
59732
|
} : (_, __, ___, cb) => cb;
|
|
59781
59733
|
/* istanbul ignore next */
|
|
59782
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
59734
|
+
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
59783
59735
|
try {
|
|
59784
|
-
return lchownSync(path$
|
|
59736
|
+
return lchownSync(path$73, uid, gid);
|
|
59785
59737
|
} catch (er) {
|
|
59786
59738
|
if (er.code !== "EISDIR") throw er;
|
|
59787
|
-
chownSync(path$
|
|
59739
|
+
chownSync(path$73, uid, gid);
|
|
59788
59740
|
}
|
|
59789
|
-
} : (path$
|
|
59741
|
+
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59790
59742
|
const nodeVersion = process.version;
|
|
59791
|
-
let readdir = (path$
|
|
59792
|
-
let readdirSync = (path$
|
|
59743
|
+
let readdir = (path$75, options, cb) => fs$27.readdir(path$75, options, cb);
|
|
59744
|
+
let readdirSync = (path$76, options) => fs$27.readdirSync(path$76, options);
|
|
59793
59745
|
/* istanbul ignore next */
|
|
59794
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
59746
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$27.readdir(path$77, cb);
|
|
59795
59747
|
const chown = (cpath, uid, gid, cb) => {
|
|
59796
|
-
fs$
|
|
59748
|
+
fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59797
59749
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59798
59750
|
}));
|
|
59799
59751
|
};
|
|
59800
59752
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59801
|
-
if (typeof child === "string") return fs$
|
|
59753
|
+
if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59802
59754
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59803
59755
|
stats.name = child;
|
|
59804
59756
|
chownrKid(p, stats, uid, gid, cb);
|
|
59805
59757
|
});
|
|
59806
|
-
if (child.isDirectory()) chownr(path$
|
|
59758
|
+
if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
|
|
59807
59759
|
if (er) return cb(er);
|
|
59808
|
-
chown(path$
|
|
59760
|
+
chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
59809
59761
|
});
|
|
59810
|
-
else chown(path$
|
|
59762
|
+
else chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
59811
59763
|
};
|
|
59812
59764
|
const chownr = (p, uid, gid, cb) => {
|
|
59813
59765
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -59828,15 +59780,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59828
59780
|
};
|
|
59829
59781
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59830
59782
|
if (typeof child === "string") try {
|
|
59831
|
-
const stats = fs$
|
|
59783
|
+
const stats = fs$27.lstatSync(path$28.resolve(p, child));
|
|
59832
59784
|
stats.name = child;
|
|
59833
59785
|
child = stats;
|
|
59834
59786
|
} catch (er) {
|
|
59835
59787
|
if (er.code === "ENOENT") return;
|
|
59836
59788
|
else throw er;
|
|
59837
59789
|
}
|
|
59838
|
-
if (child.isDirectory()) chownrSync(path$
|
|
59839
|
-
handleEISDirSync(path$
|
|
59790
|
+
if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
|
|
59791
|
+
handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
|
|
59840
59792
|
};
|
|
59841
59793
|
const chownrSync = (p, uid, gid) => {
|
|
59842
59794
|
let children;
|
|
@@ -59857,14 +59809,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59857
59809
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59858
59810
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59859
59811
|
const mkdirp = require_mkdirp();
|
|
59860
|
-
const fs$
|
|
59861
|
-
const path$
|
|
59812
|
+
const fs$26 = require("fs");
|
|
59813
|
+
const path$27 = require("path");
|
|
59862
59814
|
const chownr = require_chownr();
|
|
59863
59815
|
const normPath = require_normalize_windows_path();
|
|
59864
59816
|
var SymlinkError = class extends Error {
|
|
59865
|
-
constructor(symlink, path$
|
|
59817
|
+
constructor(symlink, path$68) {
|
|
59866
59818
|
super("Cannot extract through symbolic link");
|
|
59867
|
-
this.path = path$
|
|
59819
|
+
this.path = path$68;
|
|
59868
59820
|
this.symlink = symlink;
|
|
59869
59821
|
}
|
|
59870
59822
|
get name() {
|
|
@@ -59872,9 +59824,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59872
59824
|
}
|
|
59873
59825
|
};
|
|
59874
59826
|
var CwdError = class extends Error {
|
|
59875
|
-
constructor(path$
|
|
59876
|
-
super(code + ": Cannot cd into '" + path$
|
|
59877
|
-
this.path = path$
|
|
59827
|
+
constructor(path$69, code) {
|
|
59828
|
+
super(code + ": Cannot cd into '" + path$69 + "'");
|
|
59829
|
+
this.path = path$69;
|
|
59878
59830
|
this.code = code;
|
|
59879
59831
|
}
|
|
59880
59832
|
get name() {
|
|
@@ -59884,7 +59836,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59884
59836
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59885
59837
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59886
59838
|
const checkCwd = (dir, cb) => {
|
|
59887
|
-
fs$
|
|
59839
|
+
fs$26.stat(dir, (er, st) => {
|
|
59888
59840
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59889
59841
|
cb(er);
|
|
59890
59842
|
});
|
|
@@ -59906,31 +59858,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59906
59858
|
else {
|
|
59907
59859
|
cSet(cache, dir, true);
|
|
59908
59860
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59909
|
-
else if (needChmod) fs$
|
|
59861
|
+
else if (needChmod) fs$26.chmod(dir, mode, cb);
|
|
59910
59862
|
else cb();
|
|
59911
59863
|
}
|
|
59912
59864
|
};
|
|
59913
59865
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59914
59866
|
if (dir === cwd) return checkCwd(dir, done);
|
|
59915
59867
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
59916
|
-
mkdir_(cwd, normPath(path$
|
|
59868
|
+
mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
59917
59869
|
};
|
|
59918
59870
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
59919
59871
|
if (!parts.length) return cb(null, created);
|
|
59920
59872
|
const p = parts.shift();
|
|
59921
|
-
const part = normPath(path$
|
|
59873
|
+
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59922
59874
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59923
|
-
fs$
|
|
59875
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59924
59876
|
};
|
|
59925
59877
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59926
|
-
if (er) fs$
|
|
59878
|
+
if (er) fs$26.lstat(part, (statEr, st) => {
|
|
59927
59879
|
if (statEr) {
|
|
59928
59880
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59929
59881
|
cb(statEr);
|
|
59930
59882
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59931
|
-
else if (unlink) fs$
|
|
59883
|
+
else if (unlink) fs$26.unlink(part, (er) => {
|
|
59932
59884
|
if (er) return cb(er);
|
|
59933
|
-
fs$
|
|
59885
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59934
59886
|
});
|
|
59935
59887
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59936
59888
|
else cb(er);
|
|
@@ -59944,7 +59896,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59944
59896
|
let ok = false;
|
|
59945
59897
|
let code = "ENOTDIR";
|
|
59946
59898
|
try {
|
|
59947
|
-
ok = fs$
|
|
59899
|
+
ok = fs$26.statSync(dir).isDirectory();
|
|
59948
59900
|
} catch (er) {
|
|
59949
59901
|
code = er.code;
|
|
59950
59902
|
} finally {
|
|
@@ -59966,7 +59918,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59966
59918
|
const done = (created) => {
|
|
59967
59919
|
cSet(cache, dir, true);
|
|
59968
59920
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59969
|
-
if (needChmod) fs$
|
|
59921
|
+
if (needChmod) fs$26.chmodSync(dir, mode);
|
|
59970
59922
|
};
|
|
59971
59923
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59972
59924
|
if (dir === cwd) {
|
|
@@ -59974,23 +59926,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59974
59926
|
return done();
|
|
59975
59927
|
}
|
|
59976
59928
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
59977
|
-
const parts = normPath(path$
|
|
59929
|
+
const parts = normPath(path$27.relative(cwd, dir)).split("/");
|
|
59978
59930
|
let created = null;
|
|
59979
59931
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
59980
|
-
part = normPath(path$
|
|
59932
|
+
part = normPath(path$27.resolve(part));
|
|
59981
59933
|
if (cGet(cache, part)) continue;
|
|
59982
59934
|
try {
|
|
59983
|
-
fs$
|
|
59935
|
+
fs$26.mkdirSync(part, mode);
|
|
59984
59936
|
created = created || part;
|
|
59985
59937
|
cSet(cache, part, true);
|
|
59986
59938
|
} catch (er) {
|
|
59987
|
-
const st = fs$
|
|
59939
|
+
const st = fs$26.lstatSync(part);
|
|
59988
59940
|
if (st.isDirectory()) {
|
|
59989
59941
|
cSet(cache, part, true);
|
|
59990
59942
|
continue;
|
|
59991
59943
|
} else if (unlink) {
|
|
59992
|
-
fs$
|
|
59993
|
-
fs$
|
|
59944
|
+
fs$26.unlinkSync(part);
|
|
59945
|
+
fs$26.mkdirSync(part, mode);
|
|
59994
59946
|
created = created || part;
|
|
59995
59947
|
cSet(cache, part, true);
|
|
59996
59948
|
continue;
|
|
@@ -60016,15 +59968,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60016
59968
|
const assert$1 = require("assert");
|
|
60017
59969
|
const normalize = require_normalize_unicode();
|
|
60018
59970
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60019
|
-
const { join: join$
|
|
59971
|
+
const { join: join$16 } = require("path");
|
|
60020
59972
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60021
59973
|
module.exports = () => {
|
|
60022
59974
|
const queues = /* @__PURE__ */ new Map();
|
|
60023
59975
|
const reservations = /* @__PURE__ */ new Map();
|
|
60024
|
-
const getDirs = (path$
|
|
60025
|
-
return path$
|
|
60026
|
-
if (set.length) path$
|
|
60027
|
-
set.push(path$
|
|
59976
|
+
const getDirs = (path$61) => {
|
|
59977
|
+
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
59978
|
+
if (set.length) path$62 = join$16(set[set.length - 1], path$62);
|
|
59979
|
+
set.push(path$62 || "/");
|
|
60028
59980
|
return set;
|
|
60029
59981
|
}, []);
|
|
60030
59982
|
};
|
|
@@ -60034,8 +59986,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60034
59986
|
/* istanbul ignore if - unpossible */
|
|
60035
59987
|
if (!res) throw new Error("function does not have any path reservations");
|
|
60036
59988
|
return {
|
|
60037
|
-
paths: res.paths.map((path$
|
|
60038
|
-
dirs: [...res.dirs].map((path$
|
|
59989
|
+
paths: res.paths.map((path$63) => queues.get(path$63)),
|
|
59990
|
+
dirs: [...res.dirs].map((path$64) => queues.get(path$64))
|
|
60039
59991
|
};
|
|
60040
59992
|
};
|
|
60041
59993
|
const check = (fn) => {
|
|
@@ -60052,10 +60004,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60052
60004
|
if (!running.has(fn)) return false;
|
|
60053
60005
|
const { paths, dirs } = reservations.get(fn);
|
|
60054
60006
|
const next = /* @__PURE__ */ new Set();
|
|
60055
|
-
paths.forEach((path$
|
|
60056
|
-
const q = queues.get(path$
|
|
60007
|
+
paths.forEach((path$65) => {
|
|
60008
|
+
const q = queues.get(path$65);
|
|
60057
60009
|
assert$1.equal(q[0], fn);
|
|
60058
|
-
if (q.length === 1) queues.delete(path$
|
|
60010
|
+
if (q.length === 1) queues.delete(path$65);
|
|
60059
60011
|
else {
|
|
60060
60012
|
q.shift();
|
|
60061
60013
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -60077,16 +60029,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60077
60029
|
};
|
|
60078
60030
|
const reserve = (paths, fn) => {
|
|
60079
60031
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60080
|
-
return stripSlashes(join$
|
|
60032
|
+
return stripSlashes(join$16(normalize(p))).toLowerCase();
|
|
60081
60033
|
});
|
|
60082
|
-
const dirs = new Set(paths.map((path$
|
|
60034
|
+
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60083
60035
|
reservations.set(fn, {
|
|
60084
60036
|
dirs,
|
|
60085
60037
|
paths
|
|
60086
60038
|
});
|
|
60087
|
-
paths.forEach((path$
|
|
60088
|
-
const q = queues.get(path$
|
|
60089
|
-
if (!q) queues.set(path$
|
|
60039
|
+
paths.forEach((path$67) => {
|
|
60040
|
+
const q = queues.get(path$67);
|
|
60041
|
+
if (!q) queues.set(path$67, [fn]);
|
|
60090
60042
|
else q.push(fn);
|
|
60091
60043
|
});
|
|
60092
60044
|
dirs.forEach((dir) => {
|
|
@@ -60119,9 +60071,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60119
60071
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60120
60072
|
const assert = require("assert");
|
|
60121
60073
|
const Parser = require_parse$4();
|
|
60122
|
-
const fs$
|
|
60074
|
+
const fs$25 = require("fs");
|
|
60123
60075
|
const fsm = require_fs_minipass();
|
|
60124
|
-
const path$
|
|
60076
|
+
const path$26 = require("path");
|
|
60125
60077
|
const mkdir = require_mkdir();
|
|
60126
60078
|
const wc = require_winchars();
|
|
60127
60079
|
const pathReservations = require_path_reservations();
|
|
@@ -60159,28 +60111,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60159
60111
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60160
60112
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60161
60113
|
/* istanbul ignore next */
|
|
60162
|
-
const unlinkFile = (path$
|
|
60163
|
-
if (!isWindows) return fs$
|
|
60164
|
-
const name = path$
|
|
60165
|
-
fs$
|
|
60114
|
+
const unlinkFile = (path$57, cb) => {
|
|
60115
|
+
if (!isWindows) return fs$25.unlink(path$57, cb);
|
|
60116
|
+
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60117
|
+
fs$25.rename(path$57, name, (er) => {
|
|
60166
60118
|
if (er) return cb(er);
|
|
60167
|
-
fs$
|
|
60119
|
+
fs$25.unlink(name, cb);
|
|
60168
60120
|
});
|
|
60169
60121
|
};
|
|
60170
60122
|
/* istanbul ignore next */
|
|
60171
|
-
const unlinkFileSync = (path$
|
|
60172
|
-
if (!isWindows) return fs$
|
|
60173
|
-
const name = path$
|
|
60174
|
-
fs$
|
|
60175
|
-
fs$
|
|
60123
|
+
const unlinkFileSync = (path$58) => {
|
|
60124
|
+
if (!isWindows) return fs$25.unlinkSync(path$58);
|
|
60125
|
+
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60126
|
+
fs$25.renameSync(path$58, name);
|
|
60127
|
+
fs$25.unlinkSync(name);
|
|
60176
60128
|
};
|
|
60177
60129
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60178
|
-
const cacheKeyNormalize = (path$
|
|
60130
|
+
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
60179
60131
|
const pruneCache = (cache, abs) => {
|
|
60180
60132
|
abs = cacheKeyNormalize(abs);
|
|
60181
|
-
for (const path$
|
|
60182
|
-
const pnorm = cacheKeyNormalize(path$
|
|
60183
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
60133
|
+
for (const path$60 of cache.keys()) {
|
|
60134
|
+
const pnorm = cacheKeyNormalize(path$60);
|
|
60135
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$60);
|
|
60184
60136
|
}
|
|
60185
60137
|
};
|
|
60186
60138
|
const dropCache = (cache) => {
|
|
@@ -60225,7 +60177,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60225
60177
|
this.noMtime = !!opt.noMtime;
|
|
60226
60178
|
this.preservePaths = !!opt.preservePaths;
|
|
60227
60179
|
this.unlink = !!opt.unlink;
|
|
60228
|
-
this.cwd = normPath(path$
|
|
60180
|
+
this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
|
|
60229
60181
|
this.strip = +opt.strip || 0;
|
|
60230
60182
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
60231
60183
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -60283,8 +60235,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60283
60235
|
});
|
|
60284
60236
|
}
|
|
60285
60237
|
}
|
|
60286
|
-
if (path$
|
|
60287
|
-
else entry.absolute = normPath(path$
|
|
60238
|
+
if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
|
|
60239
|
+
else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
|
|
60288
60240
|
/* istanbul ignore if - defense in depth */
|
|
60289
60241
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
60290
60242
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -60297,9 +60249,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60297
60249
|
}
|
|
60298
60250
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
60299
60251
|
if (this.win32) {
|
|
60300
|
-
const { root: aRoot } = path$
|
|
60252
|
+
const { root: aRoot } = path$26.win32.parse(entry.absolute);
|
|
60301
60253
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
60302
|
-
const { root: pRoot } = path$
|
|
60254
|
+
const { root: pRoot } = path$26.win32.parse(entry.path);
|
|
60303
60255
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
60304
60256
|
}
|
|
60305
60257
|
return true;
|
|
@@ -60358,7 +60310,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60358
60310
|
autoClose: false
|
|
60359
60311
|
});
|
|
60360
60312
|
stream.on("error", (er) => {
|
|
60361
|
-
if (stream.fd) fs$
|
|
60313
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60362
60314
|
stream.write = () => true;
|
|
60363
60315
|
this[ONERROR](er, entry);
|
|
60364
60316
|
fullyDone();
|
|
@@ -60367,12 +60319,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60367
60319
|
const done = (er) => {
|
|
60368
60320
|
if (er) {
|
|
60369
60321
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60370
|
-
if (stream.fd) fs$
|
|
60322
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
60371
60323
|
this[ONERROR](er, entry);
|
|
60372
60324
|
fullyDone();
|
|
60373
60325
|
return;
|
|
60374
60326
|
}
|
|
60375
|
-
if (--actions === 0) fs$
|
|
60327
|
+
if (--actions === 0) fs$25.close(stream.fd, (er) => {
|
|
60376
60328
|
if (er) this[ONERROR](er, entry);
|
|
60377
60329
|
else this[UNPEND]();
|
|
60378
60330
|
fullyDone();
|
|
@@ -60385,13 +60337,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60385
60337
|
actions++;
|
|
60386
60338
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60387
60339
|
const mtime = entry.mtime;
|
|
60388
|
-
fs$
|
|
60340
|
+
fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60389
60341
|
}
|
|
60390
60342
|
if (this[DOCHOWN](entry)) {
|
|
60391
60343
|
actions++;
|
|
60392
60344
|
const uid = this[UID](entry);
|
|
60393
60345
|
const gid = this[GID](entry);
|
|
60394
|
-
fs$
|
|
60346
|
+
fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60395
60347
|
}
|
|
60396
60348
|
done();
|
|
60397
60349
|
});
|
|
@@ -60423,11 +60375,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60423
60375
|
};
|
|
60424
60376
|
if (entry.mtime && !this.noMtime) {
|
|
60425
60377
|
actions++;
|
|
60426
|
-
fs$
|
|
60378
|
+
fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60427
60379
|
}
|
|
60428
60380
|
if (this[DOCHOWN](entry)) {
|
|
60429
60381
|
actions++;
|
|
60430
|
-
fs$
|
|
60382
|
+
fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60431
60383
|
}
|
|
60432
60384
|
done();
|
|
60433
60385
|
});
|
|
@@ -60441,7 +60393,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60441
60393
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
60442
60394
|
}
|
|
60443
60395
|
[HARDLINK](entry, done) {
|
|
60444
|
-
const linkpath = normPath(path$
|
|
60396
|
+
const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
|
|
60445
60397
|
this[LINK](entry, linkpath, "link", done);
|
|
60446
60398
|
}
|
|
60447
60399
|
[PEND]() {
|
|
@@ -60487,7 +60439,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60487
60439
|
};
|
|
60488
60440
|
const start = () => {
|
|
60489
60441
|
if (entry.absolute !== this.cwd) {
|
|
60490
|
-
const parent = normPath(path$
|
|
60442
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
60491
60443
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
60492
60444
|
if (er) {
|
|
60493
60445
|
this[ONERROR](er, entry);
|
|
@@ -60500,7 +60452,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60500
60452
|
afterMakeParent();
|
|
60501
60453
|
};
|
|
60502
60454
|
const afterMakeParent = () => {
|
|
60503
|
-
fs$
|
|
60455
|
+
fs$25.lstat(entry.absolute, (lstatEr, st) => {
|
|
60504
60456
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60505
60457
|
this[SKIP](entry);
|
|
60506
60458
|
done();
|
|
@@ -60512,9 +60464,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60512
60464
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60513
60465
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60514
60466
|
if (!needChmod) return afterChmod();
|
|
60515
|
-
return fs$
|
|
60467
|
+
return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60516
60468
|
}
|
|
60517
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60469
|
+
if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60518
60470
|
}
|
|
60519
60471
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60520
60472
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60540,7 +60492,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60540
60492
|
}
|
|
60541
60493
|
}
|
|
60542
60494
|
[LINK](entry, linkpath, link, done) {
|
|
60543
|
-
fs$
|
|
60495
|
+
fs$25[link](linkpath, entry.absolute, (er) => {
|
|
60544
60496
|
if (er) this[ONERROR](er, entry);
|
|
60545
60497
|
else {
|
|
60546
60498
|
this[UNPEND]();
|
|
@@ -60569,23 +60521,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60569
60521
|
this[CHECKED_CWD] = true;
|
|
60570
60522
|
}
|
|
60571
60523
|
if (entry.absolute !== this.cwd) {
|
|
60572
|
-
const parent = normPath(path$
|
|
60524
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
60573
60525
|
if (parent !== this.cwd) {
|
|
60574
60526
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
60575
60527
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60576
60528
|
}
|
|
60577
60529
|
}
|
|
60578
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60530
|
+
const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
|
|
60579
60531
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60580
60532
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60581
60533
|
if (st.isDirectory()) {
|
|
60582
60534
|
if (entry.type === "Directory") {
|
|
60583
60535
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60584
|
-
fs$
|
|
60536
|
+
fs$25.chmodSync(entry.absolute, entry.mode);
|
|
60585
60537
|
}) : [];
|
|
60586
60538
|
return this[MAKEFS](er, entry);
|
|
60587
60539
|
}
|
|
60588
|
-
const [er] = callSync(() => fs$
|
|
60540
|
+
const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
|
|
60589
60541
|
this[MAKEFS](er, entry);
|
|
60590
60542
|
}
|
|
60591
60543
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60596,7 +60548,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60596
60548
|
const oner = (er) => {
|
|
60597
60549
|
let closeError;
|
|
60598
60550
|
try {
|
|
60599
|
-
fs$
|
|
60551
|
+
fs$25.closeSync(fd);
|
|
60600
60552
|
} catch (e) {
|
|
60601
60553
|
closeError = e;
|
|
60602
60554
|
}
|
|
@@ -60605,7 +60557,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60605
60557
|
};
|
|
60606
60558
|
let fd;
|
|
60607
60559
|
try {
|
|
60608
|
-
fd = fs$
|
|
60560
|
+
fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60609
60561
|
} catch (er) {
|
|
60610
60562
|
return oner(er);
|
|
60611
60563
|
}
|
|
@@ -60616,7 +60568,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60616
60568
|
}
|
|
60617
60569
|
tx.on("data", (chunk) => {
|
|
60618
60570
|
try {
|
|
60619
|
-
fs$
|
|
60571
|
+
fs$25.writeSync(fd, chunk, 0, chunk.length);
|
|
60620
60572
|
} catch (er) {
|
|
60621
60573
|
oner(er);
|
|
60622
60574
|
}
|
|
@@ -60627,10 +60579,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60627
60579
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60628
60580
|
const mtime = entry.mtime;
|
|
60629
60581
|
try {
|
|
60630
|
-
fs$
|
|
60582
|
+
fs$25.futimesSync(fd, atime, mtime);
|
|
60631
60583
|
} catch (futimeser) {
|
|
60632
60584
|
try {
|
|
60633
|
-
fs$
|
|
60585
|
+
fs$25.utimesSync(entry.absolute, atime, mtime);
|
|
60634
60586
|
} catch (utimeser) {
|
|
60635
60587
|
er = futimeser;
|
|
60636
60588
|
}
|
|
@@ -60640,10 +60592,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60640
60592
|
const uid = this[UID](entry);
|
|
60641
60593
|
const gid = this[GID](entry);
|
|
60642
60594
|
try {
|
|
60643
|
-
fs$
|
|
60595
|
+
fs$25.fchownSync(fd, uid, gid);
|
|
60644
60596
|
} catch (fchowner) {
|
|
60645
60597
|
try {
|
|
60646
|
-
fs$
|
|
60598
|
+
fs$25.chownSync(entry.absolute, uid, gid);
|
|
60647
60599
|
} catch (chowner) {
|
|
60648
60600
|
er = er || fchowner;
|
|
60649
60601
|
}
|
|
@@ -60661,10 +60613,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60661
60613
|
return;
|
|
60662
60614
|
}
|
|
60663
60615
|
if (entry.mtime && !this.noMtime) try {
|
|
60664
|
-
fs$
|
|
60616
|
+
fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60665
60617
|
} catch (er) {}
|
|
60666
60618
|
if (this[DOCHOWN](entry)) try {
|
|
60667
|
-
fs$
|
|
60619
|
+
fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60668
60620
|
} catch (er) {}
|
|
60669
60621
|
done();
|
|
60670
60622
|
entry.resume();
|
|
@@ -60689,7 +60641,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60689
60641
|
}
|
|
60690
60642
|
[LINK](entry, linkpath, link, done) {
|
|
60691
60643
|
try {
|
|
60692
|
-
fs$
|
|
60644
|
+
fs$25[link + "Sync"](linkpath, entry.absolute);
|
|
60693
60645
|
done();
|
|
60694
60646
|
entry.resume();
|
|
60695
60647
|
} catch (er) {
|
|
@@ -60705,9 +60657,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60705
60657
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60706
60658
|
const hlo = require_high_level_opt();
|
|
60707
60659
|
const Unpack = require_unpack();
|
|
60708
|
-
const fs$
|
|
60660
|
+
const fs$24 = require("fs");
|
|
60709
60661
|
const fsm = require_fs_minipass();
|
|
60710
|
-
const path$
|
|
60662
|
+
const path$25 = require("path");
|
|
60711
60663
|
const stripSlash = require_strip_trailing_slashes();
|
|
60712
60664
|
module.exports = (opt_, files, cb) => {
|
|
60713
60665
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -60725,8 +60677,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60725
60677
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
60726
60678
|
const filter = opt.filter;
|
|
60727
60679
|
const mapHas = (file, r) => {
|
|
60728
|
-
const root = r || path$
|
|
60729
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
60680
|
+
const root = r || path$25.parse(file).root || ".";
|
|
60681
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
|
|
60730
60682
|
map.set(file, ret);
|
|
60731
60683
|
return ret;
|
|
60732
60684
|
};
|
|
@@ -60735,7 +60687,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60735
60687
|
const extractFileSync = (opt) => {
|
|
60736
60688
|
const u = new Unpack.Sync(opt);
|
|
60737
60689
|
const file = opt.file;
|
|
60738
|
-
const stat = fs$
|
|
60690
|
+
const stat = fs$24.statSync(file);
|
|
60739
60691
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60740
60692
|
new fsm.ReadStreamSync(file, {
|
|
60741
60693
|
readSize,
|
|
@@ -60749,7 +60701,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60749
60701
|
const p = new Promise((resolve, reject) => {
|
|
60750
60702
|
u.on("error", reject);
|
|
60751
60703
|
u.on("close", resolve);
|
|
60752
|
-
fs$
|
|
60704
|
+
fs$24.stat(file, (er, stat) => {
|
|
60753
60705
|
if (er) reject(er);
|
|
60754
60706
|
else {
|
|
60755
60707
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60832,7 +60784,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60832
60784
|
//#endregion
|
|
60833
60785
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60834
60786
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60835
|
-
var fs$
|
|
60787
|
+
var fs$23 = require("fs");
|
|
60836
60788
|
var util$9 = require("util");
|
|
60837
60789
|
var stream$1 = require("stream");
|
|
60838
60790
|
var Readable = stream$1.Readable;
|
|
@@ -60857,7 +60809,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60857
60809
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60858
60810
|
var self = this;
|
|
60859
60811
|
self.pend.go(function(cb) {
|
|
60860
|
-
fs$
|
|
60812
|
+
fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60861
60813
|
cb();
|
|
60862
60814
|
callback(err, bytesRead, buffer);
|
|
60863
60815
|
});
|
|
@@ -60866,7 +60818,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60866
60818
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60867
60819
|
var self = this;
|
|
60868
60820
|
self.pend.go(function(cb) {
|
|
60869
|
-
fs$
|
|
60821
|
+
fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60870
60822
|
cb();
|
|
60871
60823
|
callback(err, written, buffer);
|
|
60872
60824
|
});
|
|
@@ -60886,7 +60838,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60886
60838
|
self.refCount -= 1;
|
|
60887
60839
|
if (self.refCount > 0) return;
|
|
60888
60840
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60889
|
-
if (self.autoClose) fs$
|
|
60841
|
+
if (self.autoClose) fs$23.close(self.fd, onCloseDone);
|
|
60890
60842
|
function onCloseDone(err) {
|
|
60891
60843
|
if (err) self.emit("error", err);
|
|
60892
60844
|
else self.emit("close");
|
|
@@ -60917,7 +60869,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60917
60869
|
self.context.pend.go(function(cb) {
|
|
60918
60870
|
if (self.destroyed) return cb();
|
|
60919
60871
|
var buffer = new Buffer(toRead);
|
|
60920
|
-
fs$
|
|
60872
|
+
fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60921
60873
|
if (err) self.destroy(err);
|
|
60922
60874
|
else if (bytesRead === 0) {
|
|
60923
60875
|
self.destroyed = true;
|
|
@@ -60963,7 +60915,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60963
60915
|
}
|
|
60964
60916
|
self.context.pend.go(function(cb) {
|
|
60965
60917
|
if (self.destroyed) return cb();
|
|
60966
|
-
fs$
|
|
60918
|
+
fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60967
60919
|
if (err) {
|
|
60968
60920
|
self.destroy();
|
|
60969
60921
|
cb();
|
|
@@ -61370,7 +61322,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61370
61322
|
//#endregion
|
|
61371
61323
|
//#region ../../node_modules/yauzl/index.js
|
|
61372
61324
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61373
|
-
var fs$
|
|
61325
|
+
var fs$22 = require("fs");
|
|
61374
61326
|
var zlib$1 = require("zlib");
|
|
61375
61327
|
var fd_slicer = require_fd_slicer();
|
|
61376
61328
|
var crc32 = require_buffer_crc32();
|
|
@@ -61392,10 +61344,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61392
61344
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61393
61345
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61394
61346
|
if (callback == null) callback = defaultCallback;
|
|
61395
|
-
fs$
|
|
61347
|
+
fs$22.open(path, "r", function(err, fd) {
|
|
61396
61348
|
if (err) return callback(err);
|
|
61397
61349
|
fromFd(fd, options, function(err, zipfile) {
|
|
61398
|
-
if (err) fs$
|
|
61350
|
+
if (err) fs$22.close(fd, defaultCallback);
|
|
61399
61351
|
callback(err, zipfile);
|
|
61400
61352
|
});
|
|
61401
61353
|
});
|
|
@@ -61412,7 +61364,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61412
61364
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61413
61365
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61414
61366
|
if (callback == null) callback = defaultCallback;
|
|
61415
|
-
fs$
|
|
61367
|
+
fs$22.fstat(fd, function(err, stats) {
|
|
61416
61368
|
if (err) return callback(err);
|
|
61417
61369
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61418
61370
|
});
|
|
@@ -62640,13 +62592,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62640
62592
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62641
62593
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62642
62594
|
module.exports = readdirGlob;
|
|
62643
|
-
const fs$
|
|
62595
|
+
const fs$21 = require("fs");
|
|
62644
62596
|
const { EventEmitter } = require("events");
|
|
62645
62597
|
const { Minimatch } = require_minimatch$1();
|
|
62646
62598
|
const { resolve: resolve$12 } = require("path");
|
|
62647
62599
|
function readdir(dir, strict) {
|
|
62648
62600
|
return new Promise((resolve, reject) => {
|
|
62649
|
-
fs$
|
|
62601
|
+
fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62650
62602
|
if (err) switch (err.code) {
|
|
62651
62603
|
case "ENOTDIR":
|
|
62652
62604
|
if (strict) reject(err);
|
|
@@ -62668,7 +62620,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62668
62620
|
}
|
|
62669
62621
|
function stat(file, followSymlinks) {
|
|
62670
62622
|
return new Promise((resolve, reject) => {
|
|
62671
|
-
(followSymlinks ? fs$
|
|
62623
|
+
(followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
|
|
62672
62624
|
if (err) switch (err.code) {
|
|
62673
62625
|
case "ENOENT":
|
|
62674
62626
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -62682,8 +62634,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62682
62634
|
});
|
|
62683
62635
|
});
|
|
62684
62636
|
}
|
|
62685
|
-
async function* exploreWalkAsync(dir, path$
|
|
62686
|
-
let files = await readdir(path$
|
|
62637
|
+
async function* exploreWalkAsync(dir, path$55, followSymlinks, useStat, shouldSkip, strict) {
|
|
62638
|
+
let files = await readdir(path$55 + dir, strict);
|
|
62687
62639
|
for (const file of files) {
|
|
62688
62640
|
let name = file.name;
|
|
62689
62641
|
if (name === void 0) {
|
|
@@ -62692,7 +62644,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62692
62644
|
}
|
|
62693
62645
|
const filename = dir + "/" + name;
|
|
62694
62646
|
const relative = filename.slice(1);
|
|
62695
|
-
const absolute = path$
|
|
62647
|
+
const absolute = path$55 + "/" + relative;
|
|
62696
62648
|
let stats = null;
|
|
62697
62649
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
62698
62650
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -62704,7 +62656,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62704
62656
|
absolute,
|
|
62705
62657
|
stats
|
|
62706
62658
|
};
|
|
62707
|
-
yield* exploreWalkAsync(filename, path$
|
|
62659
|
+
yield* exploreWalkAsync(filename, path$55, followSymlinks, useStat, shouldSkip, false);
|
|
62708
62660
|
}
|
|
62709
62661
|
} else yield {
|
|
62710
62662
|
relative,
|
|
@@ -62713,8 +62665,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62713
62665
|
};
|
|
62714
62666
|
}
|
|
62715
62667
|
}
|
|
62716
|
-
async function* explore(path$
|
|
62717
|
-
yield* exploreWalkAsync("", path$
|
|
62668
|
+
async function* explore(path$56, followSymlinks, useStat, shouldSkip) {
|
|
62669
|
+
yield* exploreWalkAsync("", path$56, followSymlinks, useStat, shouldSkip, true);
|
|
62718
62670
|
}
|
|
62719
62671
|
function readOptions(options) {
|
|
62720
62672
|
return {
|
|
@@ -68707,7 +68659,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68707
68659
|
//#endregion
|
|
68708
68660
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68709
68661
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68710
|
-
var fs$
|
|
68662
|
+
var fs$20 = require("fs");
|
|
68711
68663
|
var polyfills = require_polyfills();
|
|
68712
68664
|
var legacy = require_legacy_streams();
|
|
68713
68665
|
var clone = require_clone$1();
|
|
@@ -68736,36 +68688,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68736
68688
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68737
68689
|
console.error(m);
|
|
68738
68690
|
};
|
|
68739
|
-
if (!fs$
|
|
68740
|
-
publishQueue(fs$
|
|
68741
|
-
fs$
|
|
68691
|
+
if (!fs$20[gracefulQueue]) {
|
|
68692
|
+
publishQueue(fs$20, global[gracefulQueue] || []);
|
|
68693
|
+
fs$20.close = (function(fs$close) {
|
|
68742
68694
|
function close(fd, cb) {
|
|
68743
|
-
return fs$close.call(fs$
|
|
68695
|
+
return fs$close.call(fs$20, fd, function(err) {
|
|
68744
68696
|
if (!err) resetQueue();
|
|
68745
68697
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68746
68698
|
});
|
|
68747
68699
|
}
|
|
68748
68700
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68749
68701
|
return close;
|
|
68750
|
-
})(fs$
|
|
68751
|
-
fs$
|
|
68702
|
+
})(fs$20.close);
|
|
68703
|
+
fs$20.closeSync = (function(fs$closeSync) {
|
|
68752
68704
|
function closeSync(fd) {
|
|
68753
|
-
fs$closeSync.apply(fs$
|
|
68705
|
+
fs$closeSync.apply(fs$20, arguments);
|
|
68754
68706
|
resetQueue();
|
|
68755
68707
|
}
|
|
68756
68708
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68757
68709
|
return closeSync;
|
|
68758
|
-
})(fs$
|
|
68710
|
+
})(fs$20.closeSync);
|
|
68759
68711
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68760
|
-
debug(fs$
|
|
68761
|
-
require("assert").equal(fs$
|
|
68712
|
+
debug(fs$20[gracefulQueue]);
|
|
68713
|
+
require("assert").equal(fs$20[gracefulQueue].length, 0);
|
|
68762
68714
|
});
|
|
68763
68715
|
}
|
|
68764
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68765
|
-
module.exports = patch(clone(fs$
|
|
68766
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68767
|
-
module.exports = patch(fs$
|
|
68768
|
-
fs$
|
|
68716
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
|
|
68717
|
+
module.exports = patch(clone(fs$20));
|
|
68718
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
|
|
68719
|
+
module.exports = patch(fs$20);
|
|
68720
|
+
fs$20.__patched = true;
|
|
68769
68721
|
}
|
|
68770
68722
|
function patch(fs) {
|
|
68771
68723
|
polyfills(fs);
|
|
@@ -69020,23 +68972,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69020
68972
|
}
|
|
69021
68973
|
function enqueue(elem) {
|
|
69022
68974
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69023
|
-
fs$
|
|
68975
|
+
fs$20[gracefulQueue].push(elem);
|
|
69024
68976
|
retry();
|
|
69025
68977
|
}
|
|
69026
68978
|
var retryTimer;
|
|
69027
68979
|
function resetQueue() {
|
|
69028
68980
|
var now = Date.now();
|
|
69029
|
-
for (var i = 0; i < fs$
|
|
69030
|
-
fs$
|
|
69031
|
-
fs$
|
|
68981
|
+
for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
|
|
68982
|
+
fs$20[gracefulQueue][i][3] = now;
|
|
68983
|
+
fs$20[gracefulQueue][i][4] = now;
|
|
69032
68984
|
}
|
|
69033
68985
|
retry();
|
|
69034
68986
|
}
|
|
69035
68987
|
function retry() {
|
|
69036
68988
|
clearTimeout(retryTimer);
|
|
69037
68989
|
retryTimer = void 0;
|
|
69038
|
-
if (fs$
|
|
69039
|
-
var elem = fs$
|
|
68990
|
+
if (fs$20[gracefulQueue].length === 0) return;
|
|
68991
|
+
var elem = fs$20[gracefulQueue].shift();
|
|
69040
68992
|
var fn = elem[0];
|
|
69041
68993
|
var args = elem[1];
|
|
69042
68994
|
var err = elem[2];
|
|
@@ -69055,7 +69007,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69055
69007
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69056
69008
|
debug("RETRY", fn.name, args);
|
|
69057
69009
|
fn.apply(null, args.concat([startTime]));
|
|
69058
|
-
} else fs$
|
|
69010
|
+
} else fs$20[gracefulQueue].push(elem);
|
|
69059
69011
|
}
|
|
69060
69012
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69061
69013
|
}
|
|
@@ -84181,7 +84133,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84181
84133
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
84182
84134
|
*/
|
|
84183
84135
|
var fs = require_graceful_fs();
|
|
84184
|
-
var path$
|
|
84136
|
+
var path$24 = require("path");
|
|
84185
84137
|
var flatten = require_flatten();
|
|
84186
84138
|
var difference = require_difference();
|
|
84187
84139
|
var union = require_union();
|
|
@@ -84201,7 +84153,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84201
84153
|
return result;
|
|
84202
84154
|
};
|
|
84203
84155
|
file.exists = function() {
|
|
84204
|
-
var filepath = path$
|
|
84156
|
+
var filepath = path$24.join.apply(path$24, arguments);
|
|
84205
84157
|
return fs.existsSync(filepath);
|
|
84206
84158
|
};
|
|
84207
84159
|
file.expand = function(...args) {
|
|
@@ -84212,7 +84164,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84212
84164
|
return glob.sync(pattern, options);
|
|
84213
84165
|
});
|
|
84214
84166
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
84215
|
-
filepath = path$
|
|
84167
|
+
filepath = path$24.join(options.cwd || "", filepath);
|
|
84216
84168
|
try {
|
|
84217
84169
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
84218
84170
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -84224,16 +84176,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
84224
84176
|
};
|
|
84225
84177
|
file.expandMapping = function(patterns, destBase, options) {
|
|
84226
84178
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
84227
|
-
return path$
|
|
84179
|
+
return path$24.join(destBase || "", destPath);
|
|
84228
84180
|
} }, options);
|
|
84229
84181
|
var files = [];
|
|
84230
84182
|
var fileByDest = {};
|
|
84231
84183
|
file.expand(options, patterns).forEach(function(src) {
|
|
84232
84184
|
var destPath = src;
|
|
84233
|
-
if (options.flatten) destPath = path$
|
|
84185
|
+
if (options.flatten) destPath = path$24.basename(destPath);
|
|
84234
84186
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
84235
84187
|
var dest = options.rename(destBase, destPath, options);
|
|
84236
|
-
if (options.cwd) src = path$
|
|
84188
|
+
if (options.cwd) src = path$24.join(options.cwd, src);
|
|
84237
84189
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
84238
84190
|
src = src.replace(pathSeparatorRe, "/");
|
|
84239
84191
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -84308,7 +84260,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84308
84260
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
84309
84261
|
*/
|
|
84310
84262
|
var fs = require_graceful_fs();
|
|
84311
|
-
var path$
|
|
84263
|
+
var path$23 = require("path");
|
|
84312
84264
|
var isStream = require_is_stream$1();
|
|
84313
84265
|
var lazystream = require_lazystream();
|
|
84314
84266
|
var normalizePath = require_normalize_path();
|
|
@@ -84384,11 +84336,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
84384
84336
|
(function next() {
|
|
84385
84337
|
file = list[i++];
|
|
84386
84338
|
if (!file) return callback(null, results);
|
|
84387
|
-
filepath = path$
|
|
84339
|
+
filepath = path$23.join(dirpath, file);
|
|
84388
84340
|
fs.stat(filepath, function(err, stats) {
|
|
84389
84341
|
results.push({
|
|
84390
84342
|
path: filepath,
|
|
84391
|
-
relative: path$
|
|
84343
|
+
relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
|
|
84392
84344
|
stats
|
|
84393
84345
|
});
|
|
84394
84346
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -84452,10 +84404,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84452
84404
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84453
84405
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84454
84406
|
*/
|
|
84455
|
-
var fs$
|
|
84407
|
+
var fs$19 = require("fs");
|
|
84456
84408
|
var glob = require_readdir_glob();
|
|
84457
84409
|
var async = require_async();
|
|
84458
|
-
var path$
|
|
84410
|
+
var path$22 = require("path");
|
|
84459
84411
|
var util = require_archiver_utils();
|
|
84460
84412
|
var inherits$5 = require("util").inherits;
|
|
84461
84413
|
var ArchiverError = require_error$10();
|
|
@@ -84529,7 +84481,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84529
84481
|
data.sourcePath = filepath;
|
|
84530
84482
|
task.data = data;
|
|
84531
84483
|
this._entriesCount++;
|
|
84532
|
-
if (data.stats && data.stats instanceof fs$
|
|
84484
|
+
if (data.stats && data.stats instanceof fs$19.Stats) {
|
|
84533
84485
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84534
84486
|
if (task) {
|
|
84535
84487
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84759,7 +84711,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84759
84711
|
callback();
|
|
84760
84712
|
return;
|
|
84761
84713
|
}
|
|
84762
|
-
fs$
|
|
84714
|
+
fs$19.lstat(task.filepath, function(err, stats) {
|
|
84763
84715
|
if (this._state.aborted) {
|
|
84764
84716
|
setImmediate(callback);
|
|
84765
84717
|
return;
|
|
@@ -84825,10 +84777,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84825
84777
|
task.data.sourceType = "buffer";
|
|
84826
84778
|
task.source = Buffer.concat([]);
|
|
84827
84779
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84828
|
-
var linkPath = fs$
|
|
84829
|
-
var dirName = path$
|
|
84780
|
+
var linkPath = fs$19.readlinkSync(task.filepath);
|
|
84781
|
+
var dirName = path$22.dirname(task.filepath);
|
|
84830
84782
|
task.data.type = "symlink";
|
|
84831
|
-
task.data.linkname = path$
|
|
84783
|
+
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
84832
84784
|
task.data.sourceType = "buffer";
|
|
84833
84785
|
task.source = Buffer.concat([]);
|
|
84834
84786
|
} else {
|
|
@@ -95874,7 +95826,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95874
95826
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95875
95827
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95876
95828
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95877
|
-
const { join: join$
|
|
95829
|
+
const { join: join$13, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95878
95830
|
const isWindows = process.platform === "win32";
|
|
95879
95831
|
/* istanbul ignore next */
|
|
95880
95832
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95904,7 +95856,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95904
95856
|
};
|
|
95905
95857
|
const getPathPart = (raw, cmd) => {
|
|
95906
95858
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95907
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95859
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
95908
95860
|
};
|
|
95909
95861
|
const which = async (cmd, opt = {}) => {
|
|
95910
95862
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96653,7 +96605,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96653
96605
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96654
96606
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96655
96607
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96656
|
-
const { join: join$
|
|
96608
|
+
const { join: join$12, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96657
96609
|
const isWindows = process.platform === "win32";
|
|
96658
96610
|
/* istanbul ignore next */
|
|
96659
96611
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96683,7 +96635,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96683
96635
|
};
|
|
96684
96636
|
const getPathPart = (raw, cmd) => {
|
|
96685
96637
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96686
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96638
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$12(pathPart, cmd);
|
|
96687
96639
|
};
|
|
96688
96640
|
const which = async (cmd, opt = {}) => {
|
|
96689
96641
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98581,7 +98533,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98581
98533
|
//#endregion
|
|
98582
98534
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98583
98535
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98584
|
-
const { join: join$
|
|
98536
|
+
const { join: join$11, basename: basename$4 } = require("path");
|
|
98585
98537
|
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);
|
|
98586
98538
|
const normalizeString = (pkg) => {
|
|
98587
98539
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98604,9 +98556,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98604
98556
|
const clean = {};
|
|
98605
98557
|
let hasBins = false;
|
|
98606
98558
|
Object.keys(orig).forEach((binKey) => {
|
|
98607
|
-
const base = join$
|
|
98559
|
+
const base = join$11("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98608
98560
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98609
|
-
const binTarget = join$
|
|
98561
|
+
const binTarget = join$11("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98610
98562
|
if (!binTarget) return;
|
|
98611
98563
|
clean[base] = binTarget;
|
|
98612
98564
|
hasBins = true;
|
|
@@ -100679,7 +100631,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100679
100631
|
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();
|
|
100680
100632
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100681
100633
|
const { chmod: chmod$3, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100682
|
-
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$
|
|
100634
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$10, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100683
100635
|
const { fileURLToPath } = require("url");
|
|
100684
100636
|
const defaultOptions = {
|
|
100685
100637
|
dereference: false,
|
|
@@ -100786,7 +100738,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100786
100738
|
});
|
|
100787
100739
|
return checkParentPaths(src, srcStat, destParent);
|
|
100788
100740
|
}
|
|
100789
|
-
const normalizePathToArray = (path$
|
|
100741
|
+
const normalizePathToArray = (path$54) => resolve$10(path$54).split(sep$2).filter(Boolean);
|
|
100790
100742
|
function isSrcSubdir(src, dest) {
|
|
100791
100743
|
const srcArr = normalizePathToArray(src);
|
|
100792
100744
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100888,8 +100840,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100888
100840
|
const dir = await readdir$6(src);
|
|
100889
100841
|
for (let i = 0; i < dir.length; i++) {
|
|
100890
100842
|
const item = dir[i];
|
|
100891
|
-
const srcItem = join$
|
|
100892
|
-
const destItem = join$
|
|
100843
|
+
const srcItem = join$10(src, item);
|
|
100844
|
+
const destItem = join$10(dest, item);
|
|
100893
100845
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100894
100846
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100895
100847
|
}
|
|
@@ -100953,13 +100905,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100953
100905
|
//#endregion
|
|
100954
100906
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100955
100907
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100956
|
-
const { join: join$
|
|
100908
|
+
const { join: join$9, sep: sep$1 } = require("path");
|
|
100957
100909
|
const getOptions = require_get_options();
|
|
100958
|
-
const { mkdir: mkdir$7, mkdtemp, rm: rm$
|
|
100910
|
+
const { mkdir: mkdir$7, mkdtemp, rm: rm$9 } = require("fs/promises");
|
|
100959
100911
|
const withTempDir = async (root, fn, opts) => {
|
|
100960
100912
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100961
100913
|
await mkdir$7(root, { recursive: true });
|
|
100962
|
-
const target = await mkdtemp(join$
|
|
100914
|
+
const target = await mkdtemp(join$9(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100963
100915
|
let err;
|
|
100964
100916
|
let result;
|
|
100965
100917
|
try {
|
|
@@ -100968,7 +100920,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100968
100920
|
err = _err;
|
|
100969
100921
|
}
|
|
100970
100922
|
try {
|
|
100971
|
-
await rm$
|
|
100923
|
+
await rm$9(target, {
|
|
100972
100924
|
force: true,
|
|
100973
100925
|
recursive: true
|
|
100974
100926
|
});
|
|
@@ -100982,10 +100934,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100982
100934
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100983
100935
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100984
100936
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100985
|
-
const { join: join$
|
|
100937
|
+
const { join: join$8 } = require("path");
|
|
100986
100938
|
const readdirScoped = async (dir) => {
|
|
100987
100939
|
const results = [];
|
|
100988
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100940
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$8(dir, item))) results.push(join$8(item, scopedItem));
|
|
100989
100941
|
else results.push(item);
|
|
100990
100942
|
return results;
|
|
100991
100943
|
};
|
|
@@ -100994,11 +100946,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100994
100946
|
//#endregion
|
|
100995
100947
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100996
100948
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100997
|
-
const { dirname: dirname$8, join: join$
|
|
100949
|
+
const { dirname: dirname$8, join: join$7, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100998
100950
|
const fs$12 = require("fs/promises");
|
|
100999
|
-
const pathExists = async (path$
|
|
100951
|
+
const pathExists = async (path$53) => {
|
|
101000
100952
|
try {
|
|
101001
|
-
await fs$12.access(path$
|
|
100953
|
+
await fs$12.access(path$53);
|
|
101002
100954
|
return true;
|
|
101003
100955
|
} catch (er) {
|
|
101004
100956
|
return er.code !== "ENOENT";
|
|
@@ -101019,7 +100971,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101019
100971
|
const sourceStat = await fs$12.lstat(source);
|
|
101020
100972
|
if (sourceStat.isDirectory()) {
|
|
101021
100973
|
const files = await fs$12.readdir(source);
|
|
101022
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100974
|
+
await Promise.all(files.map((file) => moveFile(join$7(source, file), join$7(destination, file), options, false, symlinks)));
|
|
101023
100975
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101024
100976
|
source,
|
|
101025
100977
|
destination
|
|
@@ -101195,7 +101147,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101195
101147
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
101196
101148
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101197
101149
|
const crypto$1 = require("crypto");
|
|
101198
|
-
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$
|
|
101150
|
+
const { appendFile, mkdir: mkdir$6, readFile: readFile$7, readdir: readdir$4, rm: rm$8, writeFile: writeFile$2 } = require("fs/promises");
|
|
101199
101151
|
const { Minipass } = require_commonjs$10();
|
|
101200
101152
|
const path$14 = require("path");
|
|
101201
101153
|
const ssri = require_lib$17();
|
|
@@ -101236,7 +101188,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101236
101188
|
};
|
|
101237
101189
|
};
|
|
101238
101190
|
const teardown = async (tmp) => {
|
|
101239
|
-
if (!tmp.moved) return rm$
|
|
101191
|
+
if (!tmp.moved) return rm$8(tmp.target, {
|
|
101240
101192
|
recursive: true,
|
|
101241
101193
|
force: true
|
|
101242
101194
|
});
|
|
@@ -101292,7 +101244,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101292
101244
|
module.exports.delete = del;
|
|
101293
101245
|
function del(cache, key, opts = {}) {
|
|
101294
101246
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
101295
|
-
return rm$
|
|
101247
|
+
return rm$8(bucketPath(cache, key), {
|
|
101296
101248
|
recursive: true,
|
|
101297
101249
|
force: true
|
|
101298
101250
|
});
|
|
@@ -106054,7 +106006,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106054
106006
|
const { glob } = require_index_min$1();
|
|
106055
106007
|
const path$12 = require("path");
|
|
106056
106008
|
const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
|
|
106057
|
-
module.exports = (path$
|
|
106009
|
+
module.exports = (path$52, options) => glob(globify(path$52), options);
|
|
106058
106010
|
}));
|
|
106059
106011
|
//#endregion
|
|
106060
106012
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -106077,7 +106029,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106077
106029
|
//#endregion
|
|
106078
106030
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
106079
106031
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106080
|
-
const { rm: rm$
|
|
106032
|
+
const { rm: rm$7 } = require("fs/promises");
|
|
106081
106033
|
const glob = require_glob();
|
|
106082
106034
|
const index = require_entry_index();
|
|
106083
106035
|
const memo = require_memoization();
|
|
@@ -106101,7 +106053,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106101
106053
|
silent: true,
|
|
106102
106054
|
nosort: true
|
|
106103
106055
|
});
|
|
106104
|
-
return Promise.all(paths.map((p) => rm$
|
|
106056
|
+
return Promise.all(paths.map((p) => rm$7(p, {
|
|
106105
106057
|
recursive: true,
|
|
106106
106058
|
force: true
|
|
106107
106059
|
})));
|
|
@@ -106110,7 +106062,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
106110
106062
|
//#endregion
|
|
106111
106063
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
106112
106064
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106113
|
-
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$
|
|
106065
|
+
const { mkdir: mkdir$5, readFile: readFile$6, rm: rm$6, stat: stat$4, truncate, writeFile: writeFile$1 } = require("fs/promises");
|
|
106114
106066
|
const contentPath = require_path();
|
|
106115
106067
|
const fsm = require_lib$15();
|
|
106116
106068
|
const glob = require_glob();
|
|
@@ -106207,7 +106159,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106207
106159
|
} else {
|
|
106208
106160
|
stats.reclaimedCount++;
|
|
106209
106161
|
const s = await stat$4(f);
|
|
106210
|
-
await rm$
|
|
106162
|
+
await rm$6(f, {
|
|
106211
106163
|
recursive: true,
|
|
106212
106164
|
force: true
|
|
106213
106165
|
});
|
|
@@ -106230,7 +106182,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106230
106182
|
valid: false
|
|
106231
106183
|
};
|
|
106232
106184
|
if (err.code !== "EINTEGRITY") throw err;
|
|
106233
|
-
await rm$
|
|
106185
|
+
await rm$6(filepath, {
|
|
106234
106186
|
recursive: true,
|
|
106235
106187
|
force: true
|
|
106236
106188
|
});
|
|
@@ -106291,7 +106243,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106291
106243
|
}
|
|
106292
106244
|
function cleanTmp(cache, opts) {
|
|
106293
106245
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
106294
|
-
return rm$
|
|
106246
|
+
return rm$6(path$10.join(cache, "tmp"), {
|
|
106295
106247
|
recursive: true,
|
|
106296
106248
|
force: true
|
|
106297
106249
|
});
|
|
@@ -106852,14 +106804,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106852
106804
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106853
106805
|
const { resolve: resolve$8, basename: basename$3, dirname: dirname$7 } = require("path");
|
|
106854
106806
|
const normalizePackageBin = require_lib$21();
|
|
106855
|
-
const readPackage = ({ path: path$
|
|
106807
|
+
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106856
106808
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
106857
|
-
packageJsonCache.set(path$
|
|
106809
|
+
packageJsonCache.set(path$48, pkg);
|
|
106858
106810
|
return pkg;
|
|
106859
106811
|
}).catch(() => null);
|
|
106860
106812
|
const normalized = Symbol("package data has been normalized");
|
|
106861
|
-
const rpj = ({ path: path$
|
|
106862
|
-
path: path$
|
|
106813
|
+
const rpj = ({ path: path$49, packageJsonCache }) => readPackage({
|
|
106814
|
+
path: path$49,
|
|
106863
106815
|
packageJsonCache
|
|
106864
106816
|
}).then((pkg) => {
|
|
106865
106817
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -106873,14 +106825,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106873
106825
|
pkg[normalized] = true;
|
|
106874
106826
|
return pkg;
|
|
106875
106827
|
});
|
|
106876
|
-
const pkgContents = async ({ path: path$
|
|
106828
|
+
const pkgContents = async ({ path: path$50, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
106877
106829
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
106878
106830
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
106879
106831
|
if (pkg === true) return rpj({
|
|
106880
|
-
path: path$
|
|
106832
|
+
path: path$50 + "/package.json",
|
|
106881
106833
|
packageJsonCache
|
|
106882
106834
|
}).then((p) => pkgContents({
|
|
106883
|
-
path: path$
|
|
106835
|
+
path: path$50,
|
|
106884
106836
|
depth,
|
|
106885
106837
|
currentDepth,
|
|
106886
106838
|
pkg: p,
|
|
@@ -106889,7 +106841,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106889
106841
|
}));
|
|
106890
106842
|
if (pkg) {
|
|
106891
106843
|
if (pkg.bin) {
|
|
106892
|
-
const dir = dirname$7(path$
|
|
106844
|
+
const dir = dirname$7(path$50);
|
|
106893
106845
|
const scope = basename$3(dir);
|
|
106894
106846
|
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106895
106847
|
const binFiles = [];
|
|
@@ -106901,21 +106853,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106901
106853
|
}
|
|
106902
106854
|
}
|
|
106903
106855
|
if (currentDepth >= depth) {
|
|
106904
|
-
result.add(path$
|
|
106856
|
+
result.add(path$50);
|
|
106905
106857
|
return result;
|
|
106906
106858
|
}
|
|
106907
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$
|
|
106908
|
-
path: path$
|
|
106859
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$50, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
106860
|
+
path: path$50,
|
|
106909
106861
|
packageJsonCache
|
|
106910
106862
|
}) : null]).catch(() => []);
|
|
106911
106863
|
if (!dirEntries) return result;
|
|
106912
106864
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
106913
|
-
result.add(path$
|
|
106865
|
+
result.add(path$50);
|
|
106914
106866
|
return result;
|
|
106915
106867
|
}
|
|
106916
106868
|
const recursePromises = [];
|
|
106917
106869
|
for (const entry of dirEntries) {
|
|
106918
|
-
const p = resolve$8(path$
|
|
106870
|
+
const p = resolve$8(path$50, entry.name);
|
|
106919
106871
|
if (entry.isDirectory() === false) {
|
|
106920
106872
|
result.add(p);
|
|
106921
106873
|
continue;
|
|
@@ -106934,7 +106886,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106934
106886
|
}
|
|
106935
106887
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106936
106888
|
return pkgContents({
|
|
106937
|
-
path: resolve$8(path$
|
|
106889
|
+
path: resolve$8(path$50, "node_modules", dep),
|
|
106938
106890
|
packageJsonCache,
|
|
106939
106891
|
pkg: true,
|
|
106940
106892
|
depth,
|
|
@@ -106945,8 +106897,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106945
106897
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
106946
106898
|
return result;
|
|
106947
106899
|
};
|
|
106948
|
-
module.exports = ({ path: path$
|
|
106949
|
-
path: resolve$8(path$
|
|
106900
|
+
module.exports = ({ path: path$51, ...opts }) => pkgContents({
|
|
106901
|
+
path: resolve$8(path$51),
|
|
106950
106902
|
...opts,
|
|
106951
106903
|
pkg: true
|
|
106952
106904
|
}).then((results) => [...results]);
|
|
@@ -112382,7 +112334,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112382
112334
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112383
112335
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112384
112336
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112385
|
-
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$
|
|
112337
|
+
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$6, relative, resolve: resolve$6, sep } = require("path");
|
|
112386
112338
|
const { log } = require_lib$29();
|
|
112387
112339
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112388
112340
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112412,10 +112364,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112412
112364
|
"/archived-packages/**"
|
|
112413
112365
|
];
|
|
112414
112366
|
const strictDefaults = ["/.git"];
|
|
112415
|
-
const normalizePath = (path$
|
|
112367
|
+
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112416
112368
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112417
112369
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112418
|
-
const ignoreContent = readFile$4(join$
|
|
112370
|
+
const ignoreContent = readFile$4(join$6(root, file), { encoding: "utf8" });
|
|
112419
112371
|
result.push(ignoreContent);
|
|
112420
112372
|
break;
|
|
112421
112373
|
} catch (err) {
|
|
@@ -112424,8 +112376,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112424
112376
|
}
|
|
112425
112377
|
if (!rel) return result;
|
|
112426
112378
|
const firstRel = rel.split(sep, 1)[0];
|
|
112427
|
-
const newRoot = join$
|
|
112428
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112379
|
+
const newRoot = join$6(root, firstRel);
|
|
112380
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$6(root, rel)), result);
|
|
112429
112381
|
};
|
|
112430
112382
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112431
112383
|
constructor(tree, opts) {
|
|
@@ -112449,14 +112401,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112449
112401
|
this.requiredFiles = options.requiredFiles || [];
|
|
112450
112402
|
const additionalDefaults = [];
|
|
112451
112403
|
if (options.prefix && options.workspaces) {
|
|
112452
|
-
const path$
|
|
112404
|
+
const path$46 = normalizePath(options.path);
|
|
112453
112405
|
const prefix = normalizePath(options.prefix);
|
|
112454
112406
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112455
112407
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112456
|
-
if (path$
|
|
112408
|
+
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112457
112409
|
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112458
112410
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112459
|
-
} else if (path$
|
|
112411
|
+
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112460
112412
|
}
|
|
112461
112413
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
112462
112414
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -112492,7 +112444,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112492
112444
|
let ignoreFiles = null;
|
|
112493
112445
|
if (this.tree.workspaces) {
|
|
112494
112446
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112495
|
-
const entryPath = join$
|
|
112447
|
+
const entryPath = join$6(this.path, entry).replace(/\\/g, "/");
|
|
112496
112448
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112497
112449
|
defaultRules,
|
|
112498
112450
|
"package.json",
|
|
@@ -112552,7 +112504,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112552
112504
|
if (file.endsWith("/*")) file += "*";
|
|
112553
112505
|
const inverse = `!${file}`;
|
|
112554
112506
|
try {
|
|
112555
|
-
const stat = lstat$1(join$
|
|
112507
|
+
const stat = lstat$1(join$6(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112556
112508
|
if (stat.isFile()) {
|
|
112557
112509
|
strict.unshift(inverse);
|
|
112558
112510
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112587,10 +112539,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112587
112539
|
if (!edge || edge.peer || edge.dev) continue;
|
|
112588
112540
|
const node = this.tree.edgesOut.get(dep).to;
|
|
112589
112541
|
if (!node) continue;
|
|
112590
|
-
const path$
|
|
112542
|
+
const path$47 = node.path;
|
|
112591
112543
|
const tree = node.target;
|
|
112592
112544
|
const walkerOpts = {
|
|
112593
|
-
path: path$
|
|
112545
|
+
path: path$47,
|
|
112594
112546
|
isPackage: true,
|
|
112595
112547
|
ignoreFiles: [],
|
|
112596
112548
|
seen: this.seen
|
|
@@ -112609,7 +112561,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112609
112561
|
walker.start();
|
|
112610
112562
|
});
|
|
112611
112563
|
const relativeFrom = relative(this.root, walker.path);
|
|
112612
|
-
for (const file of bundled) this.result.add(join$
|
|
112564
|
+
for (const file of bundled) this.result.add(join$6(relativeFrom, file).replace(/\\/g, "/"));
|
|
112613
112565
|
}
|
|
112614
112566
|
}
|
|
112615
112567
|
};
|
|
@@ -112667,7 +112619,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112667
112619
|
const { resolve: resolve$4 } = require("path");
|
|
112668
112620
|
let npm_config_node_gyp;
|
|
112669
112621
|
const makeSpawnArgs = (options) => {
|
|
112670
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
112622
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$44, scriptShell = true, stdio, stdioString } = options;
|
|
112671
112623
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
112672
112624
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
112673
112625
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -112675,17 +112627,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
112675
112627
|
cmd,
|
|
112676
112628
|
args,
|
|
112677
112629
|
{
|
|
112678
|
-
env: setPATH(path$
|
|
112630
|
+
env: setPATH(path$44, binPaths, {
|
|
112679
112631
|
...process.env,
|
|
112680
112632
|
...env,
|
|
112681
|
-
npm_package_json: resolve$4(path$
|
|
112633
|
+
npm_package_json: resolve$4(path$44, "package.json"),
|
|
112682
112634
|
npm_lifecycle_event: event,
|
|
112683
112635
|
npm_lifecycle_script: cmd,
|
|
112684
112636
|
npm_config_node_gyp
|
|
112685
112637
|
}),
|
|
112686
112638
|
stdioString,
|
|
112687
112639
|
stdio,
|
|
112688
|
-
cwd: path$
|
|
112640
|
+
cwd: path$44,
|
|
112689
112641
|
shell: scriptShell
|
|
112690
112642
|
}
|
|
112691
112643
|
];
|
|
@@ -142003,7 +141955,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142003
141955
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142004
141956
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142005
141957
|
const { basename: basename$1, dirname: dirname$4 } = require("node:path");
|
|
142006
|
-
const { rm: rm$
|
|
141958
|
+
const { rm: rm$5, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
142007
141959
|
const PackageJson = require_lib$18();
|
|
142008
141960
|
const cacache = require_lib$14();
|
|
142009
141961
|
const fsm = require_lib$13();
|
|
@@ -142180,7 +142132,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142180
142132
|
return getContents({
|
|
142181
142133
|
path,
|
|
142182
142134
|
depth: 1
|
|
142183
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
142135
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$5(entry, {
|
|
142184
142136
|
recursive: true,
|
|
142185
142137
|
force: true
|
|
142186
142138
|
}))));
|
|
@@ -149977,9 +149929,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
149977
149929
|
* @param {string} path
|
|
149978
149930
|
* @return {boolean|string}
|
|
149979
149931
|
*/
|
|
149980
|
-
function lookup(path$
|
|
149981
|
-
if (!path$
|
|
149982
|
-
var extension = extname("x." + path$
|
|
149932
|
+
function lookup(path$43) {
|
|
149933
|
+
if (!path$43 || typeof path$43 !== "string") return false;
|
|
149934
|
+
var extension = extname("x." + path$43).toLowerCase().substr(1);
|
|
149983
149935
|
if (!extension) return false;
|
|
149984
149936
|
return exports.types[extension] || false;
|
|
149985
149937
|
}
|
|
@@ -151085,7 +151037,7 @@ require_semver();
|
|
|
151085
151037
|
require_lib();
|
|
151086
151038
|
//#endregion
|
|
151087
151039
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151088
|
-
const { join: join$
|
|
151040
|
+
const { join: join$4 } = node_path.default;
|
|
151089
151041
|
//#endregion
|
|
151090
151042
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151091
151043
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -151197,14 +151149,14 @@ var src_default = createNodeDefinition({
|
|
|
151197
151149
|
node: createAction({
|
|
151198
151150
|
id: "itch-upload",
|
|
151199
151151
|
name: "Upload to Itch.io",
|
|
151200
|
-
description: "",
|
|
151152
|
+
description: "Upload your build directory to Itch.io.",
|
|
151201
151153
|
icon: "",
|
|
151202
151154
|
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['user'], 'primary', 'No project')}/${fmt.param(params['project'], 'primary', 'No project')}:${fmt.param(params['channel'], 'primary', 'No channel')}`",
|
|
151203
151155
|
meta: {},
|
|
151204
151156
|
params: {
|
|
151205
151157
|
"input-folder": createPathParam("", {
|
|
151206
151158
|
required: true,
|
|
151207
|
-
label: "Folder to
|
|
151159
|
+
label: "Folder to upload",
|
|
151208
151160
|
control: {
|
|
151209
151161
|
type: "path",
|
|
151210
151162
|
options: { properties: ["openDirectory"] }
|
|
@@ -151212,7 +151164,7 @@ var src_default = createNodeDefinition({
|
|
|
151212
151164
|
}),
|
|
151213
151165
|
user: createStringParam("", {
|
|
151214
151166
|
required: true,
|
|
151215
|
-
label: "
|
|
151167
|
+
label: "Username"
|
|
151216
151168
|
}),
|
|
151217
151169
|
project: createStringParam("", {
|
|
151218
151170
|
required: true,
|
|
@@ -151220,11 +151172,11 @@ var src_default = createNodeDefinition({
|
|
|
151220
151172
|
}),
|
|
151221
151173
|
channel: createStringParam("", {
|
|
151222
151174
|
required: true,
|
|
151223
|
-
label: "Channel"
|
|
151175
|
+
label: "Channel (e.g., windows, mac, web)"
|
|
151224
151176
|
}),
|
|
151225
151177
|
"api-key": createStringParam("", {
|
|
151226
151178
|
required: true,
|
|
151227
|
-
label: "API
|
|
151179
|
+
label: "API Key"
|
|
151228
151180
|
})
|
|
151229
151181
|
},
|
|
151230
151182
|
outputs: {}
|