@pipelab/plugin-minify 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 +448 -496
- package/dist/index.mjs +47 -95
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1729,9 +1729,9 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1729
1729
|
}
|
|
1730
1730
|
return JSON.parse(text);
|
|
1731
1731
|
}
|
|
1732
|
-
var fs$
|
|
1732
|
+
var fs$35 = require("fs");
|
|
1733
1733
|
var os$4 = require("os");
|
|
1734
|
-
var path$
|
|
1734
|
+
var path$35 = require("path");
|
|
1735
1735
|
var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
|
|
1736
1736
|
var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
|
|
1737
1737
|
var packageDarwin_arm64 = "@esbuild/darwin-arm64";
|
|
@@ -1792,25 +1792,25 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1792
1792
|
}
|
|
1793
1793
|
function pkgForSomeOtherPlatform() {
|
|
1794
1794
|
const libMainJS = require.resolve("esbuild");
|
|
1795
|
-
const nodeModulesDirectory = path$
|
|
1796
|
-
if (path$
|
|
1795
|
+
const nodeModulesDirectory = path$35.dirname(path$35.dirname(path$35.dirname(libMainJS)));
|
|
1796
|
+
if (path$35.basename(nodeModulesDirectory) === "node_modules") {
|
|
1797
1797
|
for (const unixKey in knownUnixlikePackages) try {
|
|
1798
1798
|
const pkg = knownUnixlikePackages[unixKey];
|
|
1799
|
-
if (fs$
|
|
1799
|
+
if (fs$35.existsSync(path$35.join(nodeModulesDirectory, pkg))) return pkg;
|
|
1800
1800
|
} catch {}
|
|
1801
1801
|
for (const windowsKey in knownWindowsPackages) try {
|
|
1802
1802
|
const pkg = knownWindowsPackages[windowsKey];
|
|
1803
|
-
if (fs$
|
|
1803
|
+
if (fs$35.existsSync(path$35.join(nodeModulesDirectory, pkg))) return pkg;
|
|
1804
1804
|
} catch {}
|
|
1805
1805
|
}
|
|
1806
1806
|
return null;
|
|
1807
1807
|
}
|
|
1808
1808
|
function downloadedBinPath(pkg, subpath) {
|
|
1809
|
-
const esbuildLibDir = path$
|
|
1810
|
-
return path$
|
|
1809
|
+
const esbuildLibDir = path$35.dirname(require.resolve("esbuild"));
|
|
1810
|
+
return path$35.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path$35.basename(subpath)}`);
|
|
1811
1811
|
}
|
|
1812
1812
|
function generateBinPath() {
|
|
1813
|
-
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) if (!fs$
|
|
1813
|
+
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) if (!fs$35.existsSync(ESBUILD_BINARY_PATH)) console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
|
|
1814
1814
|
else return {
|
|
1815
1815
|
binPath: ESBUILD_BINARY_PATH,
|
|
1816
1816
|
isWASM: false
|
|
@@ -1821,7 +1821,7 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1821
1821
|
binPath = require.resolve(`${pkg}/${subpath}`);
|
|
1822
1822
|
} catch (e) {
|
|
1823
1823
|
binPath = downloadedBinPath(pkg, subpath);
|
|
1824
|
-
if (!fs$
|
|
1824
|
+
if (!fs$35.existsSync(binPath)) {
|
|
1825
1825
|
try {
|
|
1826
1826
|
require.resolve(pkg);
|
|
1827
1827
|
} catch {
|
|
@@ -1892,11 +1892,11 @@ for your current platform.`);
|
|
|
1892
1892
|
} catch (e) {}
|
|
1893
1893
|
if (pnpapi) {
|
|
1894
1894
|
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
1895
|
-
const binTargetPath = path$
|
|
1896
|
-
if (!fs$
|
|
1897
|
-
fs$
|
|
1898
|
-
fs$
|
|
1899
|
-
fs$
|
|
1895
|
+
const binTargetPath = path$35.join(root, "node_modules", ".cache", "esbuild", `pnpapi-${pkg.replace("/", "-")}-0.27.7-${path$35.basename(subpath)}`);
|
|
1896
|
+
if (!fs$35.existsSync(binTargetPath)) {
|
|
1897
|
+
fs$35.mkdirSync(path$35.dirname(binTargetPath), { recursive: true });
|
|
1898
|
+
fs$35.copyFileSync(binPath, binTargetPath);
|
|
1899
|
+
fs$35.chmodSync(binTargetPath, 493);
|
|
1900
1900
|
}
|
|
1901
1901
|
return {
|
|
1902
1902
|
binPath: binTargetPath,
|
|
@@ -4424,7 +4424,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
4424
4424
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
4425
4425
|
locale: "en-US",
|
|
4426
4426
|
theme: "light",
|
|
4427
|
-
version: "
|
|
4427
|
+
version: "7.0.0",
|
|
4428
4428
|
autosave: true,
|
|
4429
4429
|
agents: [],
|
|
4430
4430
|
tours: {
|
|
@@ -4437,11 +4437,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
4437
4437
|
completed: false
|
|
4438
4438
|
}
|
|
4439
4439
|
},
|
|
4440
|
-
buildHistory: { retentionPolicy: {
|
|
4441
|
-
enabled: false,
|
|
4442
|
-
maxEntries: 50,
|
|
4443
|
-
maxAge: 30
|
|
4444
|
-
} },
|
|
4445
4440
|
plugins: DEFAULT_PLUGINS,
|
|
4446
4441
|
isInternalMigrationBannerClosed: false
|
|
4447
4442
|
});
|
|
@@ -4498,18 +4493,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
4498
4493
|
return {
|
|
4499
4494
|
...rest,
|
|
4500
4495
|
agents: [],
|
|
4501
|
-
buildHistory: { retentionPolicy: {
|
|
4502
|
-
enabled: false,
|
|
4503
|
-
maxEntries: 50,
|
|
4504
|
-
maxAge: 30
|
|
4505
|
-
} },
|
|
4506
4496
|
plugins: DEFAULT_PLUGINS,
|
|
4507
4497
|
isInternalMigrationBannerClosed: false
|
|
4508
4498
|
};
|
|
4509
4499
|
}
|
|
4510
4500
|
}),
|
|
4511
4501
|
createMigration({
|
|
4512
|
-
version: "
|
|
4502
|
+
version: "7.0.0",
|
|
4513
4503
|
up: finalVersion
|
|
4514
4504
|
})
|
|
4515
4505
|
]
|
|
@@ -4528,7 +4518,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
4528
4518
|
});
|
|
4529
4519
|
const fileRepoMigratorInternal = createMigrator();
|
|
4530
4520
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
4531
|
-
version: "
|
|
4521
|
+
version: "3.0.0",
|
|
4532
4522
|
projects: [{
|
|
4533
4523
|
id: "main",
|
|
4534
4524
|
name: "Default project",
|
|
@@ -4538,30 +4528,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
4538
4528
|
});
|
|
4539
4529
|
fileRepoMigratorInternal.createMigrations({
|
|
4540
4530
|
defaultValue: defaultFileRepo,
|
|
4541
|
-
migrations: [
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4531
|
+
migrations: [
|
|
4532
|
+
createMigration({
|
|
4533
|
+
version: "1.0.0",
|
|
4534
|
+
up: (state) => {
|
|
4535
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
4536
|
+
return {
|
|
4537
|
+
...file,
|
|
4538
|
+
id,
|
|
4539
|
+
project: "main"
|
|
4540
|
+
};
|
|
4541
|
+
});
|
|
4545
4542
|
return {
|
|
4546
|
-
...
|
|
4547
|
-
|
|
4548
|
-
|
|
4543
|
+
...state,
|
|
4544
|
+
projects: [{
|
|
4545
|
+
id: "main",
|
|
4546
|
+
name: "Default project",
|
|
4547
|
+
description: "The initial default project"
|
|
4548
|
+
}],
|
|
4549
|
+
pipelines
|
|
4549
4550
|
};
|
|
4550
|
-
}
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
up: finalVersion
|
|
4564
|
-
})]
|
|
4551
|
+
}
|
|
4552
|
+
}),
|
|
4553
|
+
createMigration({
|
|
4554
|
+
version: "2.0.0",
|
|
4555
|
+
up: (state) => {
|
|
4556
|
+
return { ...state };
|
|
4557
|
+
}
|
|
4558
|
+
}),
|
|
4559
|
+
createMigration({
|
|
4560
|
+
version: "3.0.0",
|
|
4561
|
+
up: finalVersion
|
|
4562
|
+
})
|
|
4563
|
+
]
|
|
4565
4564
|
});
|
|
4566
4565
|
const savedFileMigratorInternal = createMigrator();
|
|
4567
4566
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -4722,14 +4721,19 @@ object({
|
|
|
4722
4721
|
version: literal("1.0.0"),
|
|
4723
4722
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
4724
4723
|
});
|
|
4725
|
-
const FileRepoProjectValidatorV2
|
|
4724
|
+
const FileRepoProjectValidatorV2 = object({
|
|
4726
4725
|
id: string(),
|
|
4727
4726
|
name: string(),
|
|
4728
4727
|
description: string()
|
|
4729
4728
|
});
|
|
4730
4729
|
object({
|
|
4731
4730
|
version: literal("2.0.0"),
|
|
4732
|
-
projects: array(FileRepoProjectValidatorV2
|
|
4731
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
4732
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
4733
|
+
});
|
|
4734
|
+
object({
|
|
4735
|
+
version: literal("3.0.0"),
|
|
4736
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
4733
4737
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
4734
4738
|
});
|
|
4735
4739
|
object({
|
|
@@ -4838,44 +4842,6 @@ object({
|
|
|
4838
4842
|
name: string(),
|
|
4839
4843
|
url: string()
|
|
4840
4844
|
})),
|
|
4841
|
-
buildHistory: object({ retentionPolicy: object({
|
|
4842
|
-
enabled: boolean(),
|
|
4843
|
-
maxEntries: number(),
|
|
4844
|
-
maxAge: number()
|
|
4845
|
-
}) })
|
|
4846
|
-
});
|
|
4847
|
-
object({
|
|
4848
|
-
theme: union([literal("light"), literal("dark")]),
|
|
4849
|
-
version: literal("8.0.0"),
|
|
4850
|
-
locale: union([
|
|
4851
|
-
literal("en-US"),
|
|
4852
|
-
literal("fr-FR"),
|
|
4853
|
-
literal("pt-BR"),
|
|
4854
|
-
literal("zh-CN"),
|
|
4855
|
-
literal("es-ES"),
|
|
4856
|
-
literal("de-DE")
|
|
4857
|
-
]),
|
|
4858
|
-
tours: object({
|
|
4859
|
-
dashboard: object({
|
|
4860
|
-
step: number(),
|
|
4861
|
-
completed: boolean()
|
|
4862
|
-
}),
|
|
4863
|
-
editor: object({
|
|
4864
|
-
step: number(),
|
|
4865
|
-
completed: boolean()
|
|
4866
|
-
})
|
|
4867
|
-
}),
|
|
4868
|
-
autosave: boolean(),
|
|
4869
|
-
agents: array(object({
|
|
4870
|
-
id: string(),
|
|
4871
|
-
name: string(),
|
|
4872
|
-
url: string()
|
|
4873
|
-
})),
|
|
4874
|
-
buildHistory: object({ retentionPolicy: object({
|
|
4875
|
-
enabled: boolean(),
|
|
4876
|
-
maxEntries: number(),
|
|
4877
|
-
maxAge: number()
|
|
4878
|
-
}) }),
|
|
4879
4845
|
plugins: array(object({
|
|
4880
4846
|
name: string(),
|
|
4881
4847
|
enabled: boolean(),
|
|
@@ -47729,20 +47695,6 @@ var WebSocketError = class extends Error {
|
|
|
47729
47695
|
const isWebSocketRequestMessage = (message) => {
|
|
47730
47696
|
return message && typeof message.channel === "string" && message.requestId;
|
|
47731
47697
|
};
|
|
47732
|
-
object({
|
|
47733
|
-
version: literal("1.0.0"),
|
|
47734
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
47735
|
-
});
|
|
47736
|
-
const FileRepoProjectValidatorV2 = object({
|
|
47737
|
-
id: string(),
|
|
47738
|
-
name: string(),
|
|
47739
|
-
description: string()
|
|
47740
|
-
});
|
|
47741
|
-
object({
|
|
47742
|
-
version: literal("2.0.0"),
|
|
47743
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
47744
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
47745
|
-
});
|
|
47746
47698
|
//#endregion
|
|
47747
47699
|
//#region ../../packages/constants/src/index.ts
|
|
47748
47700
|
const websocketPort = 33753;
|
|
@@ -53069,10 +53021,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53069
53021
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
53070
53022
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
53071
53023
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
53072
|
-
const path$
|
|
53024
|
+
const path$86 = split[0];
|
|
53073
53025
|
const prefix = split[1];
|
|
53074
53026
|
this.needPax = split[2];
|
|
53075
|
-
this.needPax = encString(buf, off, 100, path$
|
|
53027
|
+
this.needPax = encString(buf, off, 100, path$86) || this.needPax;
|
|
53076
53028
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
53077
53029
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
53078
53030
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -53175,7 +53127,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53175
53127
|
//#region ../../node_modules/tar/lib/pax.js
|
|
53176
53128
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53177
53129
|
const Header = require_header();
|
|
53178
|
-
const path$
|
|
53130
|
+
const path$34 = require("path");
|
|
53179
53131
|
var Pax = class {
|
|
53180
53132
|
constructor(obj, global) {
|
|
53181
53133
|
this.atime = obj.atime || null;
|
|
@@ -53203,7 +53155,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
53203
53155
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
53204
53156
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
53205
53157
|
new Header({
|
|
53206
|
-
path: ("PaxHeader/" + path$
|
|
53158
|
+
path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
|
|
53207
53159
|
mode: this.mode || 420,
|
|
53208
53160
|
uid: this.uid || null,
|
|
53209
53161
|
gid: this.gid || null,
|
|
@@ -53306,16 +53258,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
53306
53258
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
53307
53259
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53308
53260
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
53309
|
-
module.exports = (path$
|
|
53261
|
+
module.exports = (path$85) => {
|
|
53310
53262
|
let r = "";
|
|
53311
|
-
let parsed = parse$3(path$
|
|
53312
|
-
while (isAbsolute$3(path$
|
|
53313
|
-
const root = path$
|
|
53314
|
-
path$
|
|
53263
|
+
let parsed = parse$3(path$85);
|
|
53264
|
+
while (isAbsolute$3(path$85) || parsed.root) {
|
|
53265
|
+
const root = path$85.charAt(0) === "/" && path$85.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
53266
|
+
path$85 = path$85.slice(root.length);
|
|
53315
53267
|
r += root;
|
|
53316
|
-
parsed = parse$3(path$
|
|
53268
|
+
parsed = parse$3(path$85);
|
|
53317
53269
|
}
|
|
53318
|
-
return [r, path$
|
|
53270
|
+
return [r, path$85];
|
|
53319
53271
|
};
|
|
53320
53272
|
}));
|
|
53321
53273
|
//#endregion
|
|
@@ -53338,14 +53290,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53338
53290
|
const { Minipass } = require_minipass$4();
|
|
53339
53291
|
const Pax = require_pax();
|
|
53340
53292
|
const Header = require_header();
|
|
53341
|
-
const fs$
|
|
53342
|
-
const path$
|
|
53293
|
+
const fs$34 = require("fs");
|
|
53294
|
+
const path$33 = require("path");
|
|
53343
53295
|
const normPath = require_normalize_windows_path();
|
|
53344
53296
|
const stripSlash = require_strip_trailing_slashes();
|
|
53345
|
-
const prefixPath = (path$
|
|
53346
|
-
if (!prefix) return normPath(path$
|
|
53347
|
-
path$
|
|
53348
|
-
return stripSlash(prefix) + "/" + path$
|
|
53297
|
+
const prefixPath = (path$82, prefix) => {
|
|
53298
|
+
if (!prefix) return normPath(path$82);
|
|
53299
|
+
path$82 = normPath(path$82).replace(/^\.(\/|$)/, "");
|
|
53300
|
+
return stripSlash(prefix) + "/" + path$82;
|
|
53349
53301
|
};
|
|
53350
53302
|
const maxReadSize = 16 * 1024 * 1024;
|
|
53351
53303
|
const PROCESS = Symbol("process");
|
|
@@ -53412,7 +53364,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53412
53364
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
53413
53365
|
p = p.replace(/\\/g, "/");
|
|
53414
53366
|
}
|
|
53415
|
-
this.absolute = normPath(opt.absolute || path$
|
|
53367
|
+
this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
|
|
53416
53368
|
if (this.path === "") this.path = "./";
|
|
53417
53369
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
53418
53370
|
entry: this,
|
|
@@ -53426,7 +53378,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53426
53378
|
return super.emit(ev, ...data);
|
|
53427
53379
|
}
|
|
53428
53380
|
[LSTAT]() {
|
|
53429
|
-
fs$
|
|
53381
|
+
fs$34.lstat(this.absolute, (er, stat) => {
|
|
53430
53382
|
if (er) return this.emit("error", er);
|
|
53431
53383
|
this[ONLSTAT](stat);
|
|
53432
53384
|
});
|
|
@@ -53450,8 +53402,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53450
53402
|
[MODE](mode) {
|
|
53451
53403
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
53452
53404
|
}
|
|
53453
|
-
[PREFIX](path$
|
|
53454
|
-
return prefixPath(path$
|
|
53405
|
+
[PREFIX](path$83) {
|
|
53406
|
+
return prefixPath(path$83, this.prefix);
|
|
53455
53407
|
}
|
|
53456
53408
|
[HEADER]() {
|
|
53457
53409
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -53491,7 +53443,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53491
53443
|
this.end();
|
|
53492
53444
|
}
|
|
53493
53445
|
[SYMLINK]() {
|
|
53494
|
-
fs$
|
|
53446
|
+
fs$34.readlink(this.absolute, (er, linkpath) => {
|
|
53495
53447
|
if (er) return this.emit("error", er);
|
|
53496
53448
|
this[ONREADLINK](linkpath);
|
|
53497
53449
|
});
|
|
@@ -53503,7 +53455,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53503
53455
|
}
|
|
53504
53456
|
[HARDLINK](linkpath) {
|
|
53505
53457
|
this.type = "Link";
|
|
53506
|
-
this.linkpath = normPath(path$
|
|
53458
|
+
this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
|
|
53507
53459
|
this.stat.size = 0;
|
|
53508
53460
|
this[HEADER]();
|
|
53509
53461
|
this.end();
|
|
@@ -53522,7 +53474,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53522
53474
|
this[OPENFILE]();
|
|
53523
53475
|
}
|
|
53524
53476
|
[OPENFILE]() {
|
|
53525
|
-
fs$
|
|
53477
|
+
fs$34.open(this.absolute, "r", (er, fd) => {
|
|
53526
53478
|
if (er) return this.emit("error", er);
|
|
53527
53479
|
this[ONOPENFILE](fd);
|
|
53528
53480
|
});
|
|
@@ -53542,13 +53494,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53542
53494
|
}
|
|
53543
53495
|
[READ]() {
|
|
53544
53496
|
const { fd, buf, offset, length, pos } = this;
|
|
53545
|
-
fs$
|
|
53497
|
+
fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
53546
53498
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
53547
53499
|
this[ONREAD](bytesRead);
|
|
53548
53500
|
});
|
|
53549
53501
|
}
|
|
53550
53502
|
[CLOSE](cb) {
|
|
53551
|
-
fs$
|
|
53503
|
+
fs$34.close(this.fd, cb);
|
|
53552
53504
|
}
|
|
53553
53505
|
[ONREAD](bytesRead) {
|
|
53554
53506
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -53604,19 +53556,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53604
53556
|
});
|
|
53605
53557
|
var WriteEntrySync = class extends WriteEntry {
|
|
53606
53558
|
[LSTAT]() {
|
|
53607
|
-
this[ONLSTAT](fs$
|
|
53559
|
+
this[ONLSTAT](fs$34.lstatSync(this.absolute));
|
|
53608
53560
|
}
|
|
53609
53561
|
[SYMLINK]() {
|
|
53610
|
-
this[ONREADLINK](fs$
|
|
53562
|
+
this[ONREADLINK](fs$34.readlinkSync(this.absolute));
|
|
53611
53563
|
}
|
|
53612
53564
|
[OPENFILE]() {
|
|
53613
|
-
this[ONOPENFILE](fs$
|
|
53565
|
+
this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
|
|
53614
53566
|
}
|
|
53615
53567
|
[READ]() {
|
|
53616
53568
|
let threw = true;
|
|
53617
53569
|
try {
|
|
53618
53570
|
const { fd, buf, offset, length, pos } = this;
|
|
53619
|
-
const bytesRead = fs$
|
|
53571
|
+
const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
|
|
53620
53572
|
this[ONREAD](bytesRead);
|
|
53621
53573
|
threw = false;
|
|
53622
53574
|
} finally {
|
|
@@ -53629,7 +53581,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53629
53581
|
cb();
|
|
53630
53582
|
}
|
|
53631
53583
|
[CLOSE](cb) {
|
|
53632
|
-
fs$
|
|
53584
|
+
fs$34.closeSync(this.fd);
|
|
53633
53585
|
cb();
|
|
53634
53586
|
}
|
|
53635
53587
|
};
|
|
@@ -53702,8 +53654,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53702
53654
|
super.write(this.header.block);
|
|
53703
53655
|
readEntry.pipe(this);
|
|
53704
53656
|
}
|
|
53705
|
-
[PREFIX](path$
|
|
53706
|
-
return prefixPath(path$
|
|
53657
|
+
[PREFIX](path$84) {
|
|
53658
|
+
return prefixPath(path$84, this.prefix);
|
|
53707
53659
|
}
|
|
53708
53660
|
[MODE](mode) {
|
|
53709
53661
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -53987,8 +53939,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53987
53939
|
//#region ../../node_modules/tar/lib/pack.js
|
|
53988
53940
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53989
53941
|
var PackJob = class {
|
|
53990
|
-
constructor(path$
|
|
53991
|
-
this.path = path$
|
|
53942
|
+
constructor(path$78, absolute) {
|
|
53943
|
+
this.path = path$78 || "./";
|
|
53992
53944
|
this.absolute = absolute;
|
|
53993
53945
|
this.entry = null;
|
|
53994
53946
|
this.stat = null;
|
|
@@ -54026,8 +53978,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54026
53978
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
54027
53979
|
const WRITE = Symbol("write");
|
|
54028
53980
|
const ONDRAIN = Symbol("ondrain");
|
|
54029
|
-
const fs$
|
|
54030
|
-
const path$
|
|
53981
|
+
const fs$33 = require("fs");
|
|
53982
|
+
const path$32 = require("path");
|
|
54031
53983
|
const warner = require_warn_mixin();
|
|
54032
53984
|
const normPath = require_normalize_windows_path();
|
|
54033
53985
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -54079,24 +54031,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54079
54031
|
[WRITE](chunk) {
|
|
54080
54032
|
return super.write(chunk);
|
|
54081
54033
|
}
|
|
54082
|
-
add(path$
|
|
54083
|
-
this.write(path$
|
|
54034
|
+
add(path$79) {
|
|
54035
|
+
this.write(path$79);
|
|
54084
54036
|
return this;
|
|
54085
54037
|
}
|
|
54086
|
-
end(path$
|
|
54087
|
-
if (path$
|
|
54038
|
+
end(path$80) {
|
|
54039
|
+
if (path$80) this.write(path$80);
|
|
54088
54040
|
this[ENDED] = true;
|
|
54089
54041
|
this[PROCESS]();
|
|
54090
54042
|
return this;
|
|
54091
54043
|
}
|
|
54092
|
-
write(path$
|
|
54044
|
+
write(path$81) {
|
|
54093
54045
|
if (this[ENDED]) throw new Error("write after end");
|
|
54094
|
-
if (path$
|
|
54095
|
-
else this[ADDFSENTRY](path$
|
|
54046
|
+
if (path$81 instanceof ReadEntry) this[ADDTARENTRY](path$81);
|
|
54047
|
+
else this[ADDFSENTRY](path$81);
|
|
54096
54048
|
return this.flowing;
|
|
54097
54049
|
}
|
|
54098
54050
|
[ADDTARENTRY](p) {
|
|
54099
|
-
const absolute = normPath(path$
|
|
54051
|
+
const absolute = normPath(path$32.resolve(this.cwd, p.path));
|
|
54100
54052
|
if (!this.filter(p.path, p)) p.resume();
|
|
54101
54053
|
else {
|
|
54102
54054
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -54108,14 +54060,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54108
54060
|
this[PROCESS]();
|
|
54109
54061
|
}
|
|
54110
54062
|
[ADDFSENTRY](p) {
|
|
54111
|
-
const absolute = normPath(path$
|
|
54063
|
+
const absolute = normPath(path$32.resolve(this.cwd, p));
|
|
54112
54064
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
54113
54065
|
this[PROCESS]();
|
|
54114
54066
|
}
|
|
54115
54067
|
[STAT](job) {
|
|
54116
54068
|
job.pending = true;
|
|
54117
54069
|
this[JOBS] += 1;
|
|
54118
|
-
fs$
|
|
54070
|
+
fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
54119
54071
|
job.pending = false;
|
|
54120
54072
|
this[JOBS] -= 1;
|
|
54121
54073
|
if (er) this.emit("error", er);
|
|
@@ -54131,7 +54083,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54131
54083
|
[READDIR](job) {
|
|
54132
54084
|
job.pending = true;
|
|
54133
54085
|
this[JOBS] += 1;
|
|
54134
|
-
fs$
|
|
54086
|
+
fs$33.readdir(job.absolute, (er, entries) => {
|
|
54135
54087
|
job.pending = false;
|
|
54136
54088
|
this[JOBS] -= 1;
|
|
54137
54089
|
if (er) return this.emit("error", er);
|
|
@@ -54249,10 +54201,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54249
54201
|
resume() {}
|
|
54250
54202
|
[STAT](job) {
|
|
54251
54203
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
54252
|
-
this[ONSTAT](job, fs$
|
|
54204
|
+
this[ONSTAT](job, fs$33[stat](job.absolute));
|
|
54253
54205
|
}
|
|
54254
54206
|
[READDIR](job, stat) {
|
|
54255
|
-
this[ONREADDIR](job, fs$
|
|
54207
|
+
this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
|
|
54256
54208
|
}
|
|
54257
54209
|
[PIPE](job) {
|
|
54258
54210
|
const source = job.entry;
|
|
@@ -54708,8 +54660,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
54708
54660
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
54709
54661
|
const MiniPass = require_minipass$2();
|
|
54710
54662
|
const EE$11 = require("events").EventEmitter;
|
|
54711
|
-
const fs$
|
|
54712
|
-
let writev = fs$
|
|
54663
|
+
const fs$32 = require("fs");
|
|
54664
|
+
let writev = fs$32.writev;
|
|
54713
54665
|
/* istanbul ignore next */
|
|
54714
54666
|
if (!writev) {
|
|
54715
54667
|
const binding = process.binding("fs");
|
|
@@ -54780,7 +54732,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54780
54732
|
throw new TypeError("this is a readable stream");
|
|
54781
54733
|
}
|
|
54782
54734
|
[_open]() {
|
|
54783
|
-
fs$
|
|
54735
|
+
fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
54784
54736
|
}
|
|
54785
54737
|
[_onopen](er, fd) {
|
|
54786
54738
|
if (er) this[_onerror](er);
|
|
@@ -54799,7 +54751,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54799
54751
|
const buf = this[_makeBuf]();
|
|
54800
54752
|
/* istanbul ignore if */
|
|
54801
54753
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
54802
|
-
fs$
|
|
54754
|
+
fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
54803
54755
|
}
|
|
54804
54756
|
}
|
|
54805
54757
|
[_onread](er, br, buf) {
|
|
@@ -54811,7 +54763,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54811
54763
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54812
54764
|
const fd = this[_fd];
|
|
54813
54765
|
this[_fd] = null;
|
|
54814
|
-
fs$
|
|
54766
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
54815
54767
|
}
|
|
54816
54768
|
}
|
|
54817
54769
|
[_onerror](er) {
|
|
@@ -54849,7 +54801,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54849
54801
|
[_open]() {
|
|
54850
54802
|
let threw = true;
|
|
54851
54803
|
try {
|
|
54852
|
-
this[_onopen](null, fs$
|
|
54804
|
+
this[_onopen](null, fs$32.openSync(this[_path], "r"));
|
|
54853
54805
|
threw = false;
|
|
54854
54806
|
} finally {
|
|
54855
54807
|
if (threw) this[_close]();
|
|
@@ -54863,7 +54815,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54863
54815
|
do {
|
|
54864
54816
|
const buf = this[_makeBuf]();
|
|
54865
54817
|
/* istanbul ignore next */
|
|
54866
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
54818
|
+
const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
|
|
54867
54819
|
if (!this[_handleChunk](br, buf)) break;
|
|
54868
54820
|
} while (true);
|
|
54869
54821
|
this[_reading] = false;
|
|
@@ -54877,7 +54829,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54877
54829
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54878
54830
|
const fd = this[_fd];
|
|
54879
54831
|
this[_fd] = null;
|
|
54880
|
-
fs$
|
|
54832
|
+
fs$32.closeSync(fd);
|
|
54881
54833
|
this.emit("close");
|
|
54882
54834
|
}
|
|
54883
54835
|
}
|
|
@@ -54922,7 +54874,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54922
54874
|
this.emit("error", er);
|
|
54923
54875
|
}
|
|
54924
54876
|
[_open]() {
|
|
54925
|
-
fs$
|
|
54877
|
+
fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
54926
54878
|
}
|
|
54927
54879
|
[_onopen](er, fd) {
|
|
54928
54880
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -54957,7 +54909,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54957
54909
|
return true;
|
|
54958
54910
|
}
|
|
54959
54911
|
[_write](buf) {
|
|
54960
|
-
fs$
|
|
54912
|
+
fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
54961
54913
|
}
|
|
54962
54914
|
[_onwrite](er, bw) {
|
|
54963
54915
|
if (er) this[_onerror](er);
|
|
@@ -54991,7 +54943,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54991
54943
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54992
54944
|
const fd = this[_fd];
|
|
54993
54945
|
this[_fd] = null;
|
|
54994
|
-
fs$
|
|
54946
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
54995
54947
|
}
|
|
54996
54948
|
}
|
|
54997
54949
|
};
|
|
@@ -54999,28 +54951,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54999
54951
|
[_open]() {
|
|
55000
54952
|
let fd;
|
|
55001
54953
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
55002
|
-
fd = fs$
|
|
54954
|
+
fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
55003
54955
|
} catch (er) {
|
|
55004
54956
|
if (er.code === "ENOENT") {
|
|
55005
54957
|
this[_flags] = "w";
|
|
55006
54958
|
return this[_open]();
|
|
55007
54959
|
} else throw er;
|
|
55008
54960
|
}
|
|
55009
|
-
else fd = fs$
|
|
54961
|
+
else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
55010
54962
|
this[_onopen](null, fd);
|
|
55011
54963
|
}
|
|
55012
54964
|
[_close]() {
|
|
55013
54965
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
55014
54966
|
const fd = this[_fd];
|
|
55015
54967
|
this[_fd] = null;
|
|
55016
|
-
fs$
|
|
54968
|
+
fs$32.closeSync(fd);
|
|
55017
54969
|
this.emit("close");
|
|
55018
54970
|
}
|
|
55019
54971
|
}
|
|
55020
54972
|
[_write](buf) {
|
|
55021
54973
|
let threw = true;
|
|
55022
54974
|
try {
|
|
55023
|
-
this[_onwrite](null, fs$
|
|
54975
|
+
this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
55024
54976
|
threw = false;
|
|
55025
54977
|
} finally {
|
|
55026
54978
|
if (threw) try {
|
|
@@ -55385,9 +55337,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
55385
55337
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55386
55338
|
const hlo = require_high_level_opt();
|
|
55387
55339
|
const Parser = require_parse$4();
|
|
55388
|
-
const fs$
|
|
55340
|
+
const fs$31 = require("fs");
|
|
55389
55341
|
const fsm = require_fs_minipass();
|
|
55390
|
-
const path$
|
|
55342
|
+
const path$31 = require("path");
|
|
55391
55343
|
const stripSlash = require_strip_trailing_slashes();
|
|
55392
55344
|
module.exports = (opt_, files, cb) => {
|
|
55393
55345
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -55413,8 +55365,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55413
55365
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
55414
55366
|
const filter = opt.filter;
|
|
55415
55367
|
const mapHas = (file, r) => {
|
|
55416
|
-
const root = r || path$
|
|
55417
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
55368
|
+
const root = r || path$31.parse(file).root || ".";
|
|
55369
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
|
|
55418
55370
|
map.set(file, ret);
|
|
55419
55371
|
return ret;
|
|
55420
55372
|
};
|
|
@@ -55426,15 +55378,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55426
55378
|
let threw = true;
|
|
55427
55379
|
let fd;
|
|
55428
55380
|
try {
|
|
55429
|
-
const stat = fs$
|
|
55381
|
+
const stat = fs$31.statSync(file);
|
|
55430
55382
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
55431
|
-
if (stat.size < readSize) p.end(fs$
|
|
55383
|
+
if (stat.size < readSize) p.end(fs$31.readFileSync(file));
|
|
55432
55384
|
else {
|
|
55433
55385
|
let pos = 0;
|
|
55434
55386
|
const buf = Buffer.allocUnsafe(readSize);
|
|
55435
|
-
fd = fs$
|
|
55387
|
+
fd = fs$31.openSync(file, "r");
|
|
55436
55388
|
while (pos < stat.size) {
|
|
55437
|
-
const bytesRead = fs$
|
|
55389
|
+
const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
|
|
55438
55390
|
pos += bytesRead;
|
|
55439
55391
|
p.write(buf.slice(0, bytesRead));
|
|
55440
55392
|
}
|
|
@@ -55443,7 +55395,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55443
55395
|
threw = false;
|
|
55444
55396
|
} finally {
|
|
55445
55397
|
if (threw && fd) try {
|
|
55446
|
-
fs$
|
|
55398
|
+
fs$31.closeSync(fd);
|
|
55447
55399
|
} catch (er) {}
|
|
55448
55400
|
}
|
|
55449
55401
|
};
|
|
@@ -55454,7 +55406,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55454
55406
|
const p = new Promise((resolve, reject) => {
|
|
55455
55407
|
parse.on("error", reject);
|
|
55456
55408
|
parse.on("end", resolve);
|
|
55457
|
-
fs$
|
|
55409
|
+
fs$31.stat(file, (er, stat) => {
|
|
55458
55410
|
if (er) reject(er);
|
|
55459
55411
|
else {
|
|
55460
55412
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -55477,7 +55429,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55477
55429
|
const Pack = require_pack$1();
|
|
55478
55430
|
const fsm = require_fs_minipass();
|
|
55479
55431
|
const t = require_list();
|
|
55480
|
-
const path$
|
|
55432
|
+
const path$30 = require("path");
|
|
55481
55433
|
module.exports = (opt_, files, cb) => {
|
|
55482
55434
|
if (typeof files === "function") cb = files;
|
|
55483
55435
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -55509,7 +55461,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55509
55461
|
const addFilesSync = (p, files) => {
|
|
55510
55462
|
files.forEach((file) => {
|
|
55511
55463
|
if (file.charAt(0) === "@") t({
|
|
55512
|
-
file: path$
|
|
55464
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
55513
55465
|
sync: true,
|
|
55514
55466
|
noResume: true,
|
|
55515
55467
|
onentry: (entry) => p.add(entry)
|
|
@@ -55522,7 +55474,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55522
55474
|
while (files.length) {
|
|
55523
55475
|
const file = files.shift();
|
|
55524
55476
|
if (file.charAt(0) === "@") return t({
|
|
55525
|
-
file: path$
|
|
55477
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
55526
55478
|
noResume: true,
|
|
55527
55479
|
onentry: (entry) => p.add(entry)
|
|
55528
55480
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -55546,10 +55498,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55546
55498
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55547
55499
|
const hlo = require_high_level_opt();
|
|
55548
55500
|
const Pack = require_pack$1();
|
|
55549
|
-
const fs$
|
|
55501
|
+
const fs$30 = require("fs");
|
|
55550
55502
|
const fsm = require_fs_minipass();
|
|
55551
55503
|
const t = require_list();
|
|
55552
|
-
const path$
|
|
55504
|
+
const path$29 = require("path");
|
|
55553
55505
|
const Header = require_header();
|
|
55554
55506
|
module.exports = (opt_, files, cb) => {
|
|
55555
55507
|
const opt = hlo(opt_);
|
|
@@ -55566,16 +55518,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55566
55518
|
let position;
|
|
55567
55519
|
try {
|
|
55568
55520
|
try {
|
|
55569
|
-
fd = fs$
|
|
55521
|
+
fd = fs$30.openSync(opt.file, "r+");
|
|
55570
55522
|
} catch (er) {
|
|
55571
|
-
if (er.code === "ENOENT") fd = fs$
|
|
55523
|
+
if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
|
|
55572
55524
|
else throw er;
|
|
55573
55525
|
}
|
|
55574
|
-
const st = fs$
|
|
55526
|
+
const st = fs$30.fstatSync(fd);
|
|
55575
55527
|
const headBuf = Buffer.alloc(512);
|
|
55576
55528
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
55577
55529
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
55578
|
-
bytes = fs$
|
|
55530
|
+
bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
55579
55531
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
55580
55532
|
if (!bytes) break POSITION;
|
|
55581
55533
|
}
|
|
@@ -55590,7 +55542,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55590
55542
|
streamSync(opt, p, position, fd, files);
|
|
55591
55543
|
} finally {
|
|
55592
55544
|
if (threw) try {
|
|
55593
|
-
fs$
|
|
55545
|
+
fs$30.closeSync(fd);
|
|
55594
55546
|
} catch (er) {}
|
|
55595
55547
|
}
|
|
55596
55548
|
};
|
|
@@ -55607,7 +55559,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55607
55559
|
const p = new Pack(opt);
|
|
55608
55560
|
const getPos = (fd, size, cb_) => {
|
|
55609
55561
|
const cb = (er, pos) => {
|
|
55610
|
-
if (er) fs$
|
|
55562
|
+
if (er) fs$30.close(fd, (_) => cb_(er));
|
|
55611
55563
|
else cb_(null, pos);
|
|
55612
55564
|
};
|
|
55613
55565
|
let position = 0;
|
|
@@ -55617,7 +55569,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55617
55569
|
const onread = (er, bytes) => {
|
|
55618
55570
|
if (er) return cb(er);
|
|
55619
55571
|
bufPos += bytes;
|
|
55620
|
-
if (bufPos < 512 && bytes) return fs$
|
|
55572
|
+
if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
55621
55573
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
55622
55574
|
if (bufPos < 512) return cb(null, position);
|
|
55623
55575
|
const h = new Header(headBuf);
|
|
@@ -55628,9 +55580,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55628
55580
|
if (position >= size) return cb(null, position);
|
|
55629
55581
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
55630
55582
|
bufPos = 0;
|
|
55631
|
-
fs$
|
|
55583
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
55632
55584
|
};
|
|
55633
|
-
fs$
|
|
55585
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
55634
55586
|
};
|
|
55635
55587
|
const promise = new Promise((resolve, reject) => {
|
|
55636
55588
|
p.on("error", reject);
|
|
@@ -55638,11 +55590,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55638
55590
|
const onopen = (er, fd) => {
|
|
55639
55591
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
55640
55592
|
flag = "w+";
|
|
55641
|
-
return fs$
|
|
55593
|
+
return fs$30.open(opt.file, flag, onopen);
|
|
55642
55594
|
}
|
|
55643
55595
|
if (er) return reject(er);
|
|
55644
|
-
fs$
|
|
55645
|
-
if (er) return fs$
|
|
55596
|
+
fs$30.fstat(fd, (er, st) => {
|
|
55597
|
+
if (er) return fs$30.close(fd, () => reject(er));
|
|
55646
55598
|
getPos(fd, st.size, (er, position) => {
|
|
55647
55599
|
if (er) return reject(er);
|
|
55648
55600
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -55656,14 +55608,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55656
55608
|
});
|
|
55657
55609
|
});
|
|
55658
55610
|
};
|
|
55659
|
-
fs$
|
|
55611
|
+
fs$30.open(opt.file, flag, onopen);
|
|
55660
55612
|
});
|
|
55661
55613
|
return cb ? promise.then(cb, cb) : promise;
|
|
55662
55614
|
};
|
|
55663
55615
|
const addFilesSync = (p, files) => {
|
|
55664
55616
|
files.forEach((file) => {
|
|
55665
55617
|
if (file.charAt(0) === "@") t({
|
|
55666
|
-
file: path$
|
|
55618
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
55667
55619
|
sync: true,
|
|
55668
55620
|
noResume: true,
|
|
55669
55621
|
onentry: (entry) => p.add(entry)
|
|
@@ -55676,7 +55628,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55676
55628
|
while (files.length) {
|
|
55677
55629
|
const file = files.shift();
|
|
55678
55630
|
if (file.charAt(0) === "@") return t({
|
|
55679
|
-
file: path$
|
|
55631
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
55680
55632
|
noResume: true,
|
|
55681
55633
|
onentry: (entry) => p.add(entry)
|
|
55682
55634
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -55709,32 +55661,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55709
55661
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
55710
55662
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55711
55663
|
const { promisify: promisify$1 } = require("util");
|
|
55712
|
-
const fs$
|
|
55664
|
+
const fs$29 = require("fs");
|
|
55713
55665
|
const optsArg = (opts) => {
|
|
55714
55666
|
if (!opts) opts = {
|
|
55715
55667
|
mode: 511,
|
|
55716
|
-
fs: fs$
|
|
55668
|
+
fs: fs$29
|
|
55717
55669
|
};
|
|
55718
55670
|
else if (typeof opts === "object") opts = {
|
|
55719
55671
|
mode: 511,
|
|
55720
|
-
fs: fs$
|
|
55672
|
+
fs: fs$29,
|
|
55721
55673
|
...opts
|
|
55722
55674
|
};
|
|
55723
55675
|
else if (typeof opts === "number") opts = {
|
|
55724
55676
|
mode: opts,
|
|
55725
|
-
fs: fs$
|
|
55677
|
+
fs: fs$29
|
|
55726
55678
|
};
|
|
55727
55679
|
else if (typeof opts === "string") opts = {
|
|
55728
55680
|
mode: parseInt(opts, 8),
|
|
55729
|
-
fs: fs$
|
|
55681
|
+
fs: fs$29
|
|
55730
55682
|
};
|
|
55731
55683
|
else throw new TypeError("invalid options argument");
|
|
55732
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
55684
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
|
|
55733
55685
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
55734
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
55686
|
+
opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
|
|
55735
55687
|
opts.statAsync = promisify$1(opts.stat);
|
|
55736
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
55737
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
55688
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
|
|
55689
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
|
|
55738
55690
|
return opts;
|
|
55739
55691
|
};
|
|
55740
55692
|
module.exports = optsArg;
|
|
@@ -55744,21 +55696,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
55744
55696
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55745
55697
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
55746
55698
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
55747
|
-
const pathArg = (path$
|
|
55748
|
-
if (/\0/.test(path$
|
|
55749
|
-
path: path$
|
|
55699
|
+
const pathArg = (path$77) => {
|
|
55700
|
+
if (/\0/.test(path$77)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
55701
|
+
path: path$77,
|
|
55750
55702
|
code: "ERR_INVALID_ARG_VALUE"
|
|
55751
55703
|
});
|
|
55752
|
-
path$
|
|
55704
|
+
path$77 = resolve$13(path$77);
|
|
55753
55705
|
if (platform === "win32") {
|
|
55754
55706
|
const badWinChars = /[*|"<>?:]/;
|
|
55755
|
-
const { root } = parse$2(path$
|
|
55756
|
-
if (badWinChars.test(path$
|
|
55757
|
-
path: path$
|
|
55707
|
+
const { root } = parse$2(path$77);
|
|
55708
|
+
if (badWinChars.test(path$77.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
55709
|
+
path: path$77,
|
|
55758
55710
|
code: "EINVAL"
|
|
55759
55711
|
});
|
|
55760
55712
|
}
|
|
55761
|
-
return path$
|
|
55713
|
+
return path$77;
|
|
55762
55714
|
};
|
|
55763
55715
|
module.exports = pathArg;
|
|
55764
55716
|
}));
|
|
@@ -55766,14 +55718,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
55766
55718
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
55767
55719
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55768
55720
|
const { dirname: dirname$13 } = require("path");
|
|
55769
|
-
const findMade = (opts, parent, path$
|
|
55770
|
-
if (path$
|
|
55771
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
55721
|
+
const findMade = (opts, parent, path$75 = void 0) => {
|
|
55722
|
+
if (path$75 === parent) return Promise.resolve();
|
|
55723
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$75 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$13(parent), parent) : void 0);
|
|
55772
55724
|
};
|
|
55773
|
-
const findMadeSync = (opts, parent, path$
|
|
55774
|
-
if (path$
|
|
55725
|
+
const findMadeSync = (opts, parent, path$76 = void 0) => {
|
|
55726
|
+
if (path$76 === parent) return void 0;
|
|
55775
55727
|
try {
|
|
55776
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
55728
|
+
return opts.statSync(parent).isDirectory() ? path$76 : void 0;
|
|
55777
55729
|
} catch (er) {
|
|
55778
55730
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$13(parent), parent) : void 0;
|
|
55779
55731
|
}
|
|
@@ -55787,16 +55739,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
55787
55739
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
55788
55740
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55789
55741
|
const { dirname: dirname$12 } = require("path");
|
|
55790
|
-
const mkdirpManual = (path$
|
|
55742
|
+
const mkdirpManual = (path$73, opts, made) => {
|
|
55791
55743
|
opts.recursive = false;
|
|
55792
|
-
const parent = dirname$12(path$
|
|
55793
|
-
if (parent === path$
|
|
55744
|
+
const parent = dirname$12(path$73);
|
|
55745
|
+
if (parent === path$73) return opts.mkdirAsync(path$73, opts).catch((er) => {
|
|
55794
55746
|
if (er.code !== "EISDIR") throw er;
|
|
55795
55747
|
});
|
|
55796
|
-
return opts.mkdirAsync(path$
|
|
55797
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
55748
|
+
return opts.mkdirAsync(path$73, opts).then(() => made || path$73, (er) => {
|
|
55749
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$73, opts, made));
|
|
55798
55750
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
55799
|
-
return opts.statAsync(path$
|
|
55751
|
+
return opts.statAsync(path$73).then((st) => {
|
|
55800
55752
|
if (st.isDirectory()) return made;
|
|
55801
55753
|
else throw er;
|
|
55802
55754
|
}, () => {
|
|
@@ -55804,23 +55756,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55804
55756
|
});
|
|
55805
55757
|
});
|
|
55806
55758
|
};
|
|
55807
|
-
const mkdirpManualSync = (path$
|
|
55808
|
-
const parent = dirname$12(path$
|
|
55759
|
+
const mkdirpManualSync = (path$74, opts, made) => {
|
|
55760
|
+
const parent = dirname$12(path$74);
|
|
55809
55761
|
opts.recursive = false;
|
|
55810
|
-
if (parent === path$
|
|
55811
|
-
return opts.mkdirSync(path$
|
|
55762
|
+
if (parent === path$74) try {
|
|
55763
|
+
return opts.mkdirSync(path$74, opts);
|
|
55812
55764
|
} catch (er) {
|
|
55813
55765
|
if (er.code !== "EISDIR") throw er;
|
|
55814
55766
|
else return;
|
|
55815
55767
|
}
|
|
55816
55768
|
try {
|
|
55817
|
-
opts.mkdirSync(path$
|
|
55818
|
-
return made || path$
|
|
55769
|
+
opts.mkdirSync(path$74, opts);
|
|
55770
|
+
return made || path$74;
|
|
55819
55771
|
} catch (er) {
|
|
55820
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
55772
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$74, opts, mkdirpManualSync(parent, opts, made));
|
|
55821
55773
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
55822
55774
|
try {
|
|
55823
|
-
if (!opts.statSync(path$
|
|
55775
|
+
if (!opts.statSync(path$74).isDirectory()) throw er;
|
|
55824
55776
|
} catch (_) {
|
|
55825
55777
|
throw er;
|
|
55826
55778
|
}
|
|
@@ -55837,23 +55789,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55837
55789
|
const { dirname: dirname$11 } = require("path");
|
|
55838
55790
|
const { findMade, findMadeSync } = require_find_made();
|
|
55839
55791
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
55840
|
-
const mkdirpNative = (path$
|
|
55792
|
+
const mkdirpNative = (path$71, opts) => {
|
|
55841
55793
|
opts.recursive = true;
|
|
55842
|
-
if (dirname$11(path$
|
|
55843
|
-
return findMade(opts, path$
|
|
55844
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
55794
|
+
if (dirname$11(path$71) === path$71) return opts.mkdirAsync(path$71, opts);
|
|
55795
|
+
return findMade(opts, path$71).then((made) => opts.mkdirAsync(path$71, opts).then(() => made).catch((er) => {
|
|
55796
|
+
if (er.code === "ENOENT") return mkdirpManual(path$71, opts);
|
|
55845
55797
|
else throw er;
|
|
55846
55798
|
}));
|
|
55847
55799
|
};
|
|
55848
|
-
const mkdirpNativeSync = (path$
|
|
55800
|
+
const mkdirpNativeSync = (path$72, opts) => {
|
|
55849
55801
|
opts.recursive = true;
|
|
55850
|
-
if (dirname$11(path$
|
|
55851
|
-
const made = findMadeSync(opts, path$
|
|
55802
|
+
if (dirname$11(path$72) === path$72) return opts.mkdirSync(path$72, opts);
|
|
55803
|
+
const made = findMadeSync(opts, path$72);
|
|
55852
55804
|
try {
|
|
55853
|
-
opts.mkdirSync(path$
|
|
55805
|
+
opts.mkdirSync(path$72, opts);
|
|
55854
55806
|
return made;
|
|
55855
55807
|
} catch (er) {
|
|
55856
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
55808
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$72, opts);
|
|
55857
55809
|
else throw er;
|
|
55858
55810
|
}
|
|
55859
55811
|
};
|
|
@@ -55865,12 +55817,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55865
55817
|
//#endregion
|
|
55866
55818
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
55867
55819
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55868
|
-
const fs$
|
|
55820
|
+
const fs$28 = require("fs");
|
|
55869
55821
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
55870
55822
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
55871
55823
|
module.exports = {
|
|
55872
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
55873
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
55824
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
|
|
55825
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
|
|
55874
55826
|
};
|
|
55875
55827
|
}));
|
|
55876
55828
|
//#endregion
|
|
@@ -55901,64 +55853,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55901
55853
|
//#endregion
|
|
55902
55854
|
//#region ../../node_modules/chownr/chownr.js
|
|
55903
55855
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55904
|
-
const fs$
|
|
55905
|
-
const path$
|
|
55856
|
+
const fs$27 = require("fs");
|
|
55857
|
+
const path$28 = require("path");
|
|
55906
55858
|
/* istanbul ignore next */
|
|
55907
|
-
const LCHOWN = fs$
|
|
55859
|
+
const LCHOWN = fs$27.lchown ? "lchown" : "chown";
|
|
55908
55860
|
/* istanbul ignore next */
|
|
55909
|
-
const LCHOWNSYNC = fs$
|
|
55861
|
+
const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
|
|
55910
55862
|
/* istanbul ignore next */
|
|
55911
|
-
const needEISDIRHandled = fs$
|
|
55912
|
-
const lchownSync = (path$
|
|
55863
|
+
const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
55864
|
+
const lchownSync = (path$63, uid, gid) => {
|
|
55913
55865
|
try {
|
|
55914
|
-
return fs$
|
|
55866
|
+
return fs$27[LCHOWNSYNC](path$63, uid, gid);
|
|
55915
55867
|
} catch (er) {
|
|
55916
55868
|
if (er.code !== "ENOENT") throw er;
|
|
55917
55869
|
}
|
|
55918
55870
|
};
|
|
55919
55871
|
/* istanbul ignore next */
|
|
55920
|
-
const chownSync = (path$
|
|
55872
|
+
const chownSync = (path$64, uid, gid) => {
|
|
55921
55873
|
try {
|
|
55922
|
-
return fs$
|
|
55874
|
+
return fs$27.chownSync(path$64, uid, gid);
|
|
55923
55875
|
} catch (er) {
|
|
55924
55876
|
if (er.code !== "ENOENT") throw er;
|
|
55925
55877
|
}
|
|
55926
55878
|
};
|
|
55927
55879
|
/* istanbul ignore next */
|
|
55928
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
55880
|
+
const handleEISDIR = needEISDIRHandled ? (path$65, uid, gid, cb) => (er) => {
|
|
55929
55881
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
55930
|
-
else fs$
|
|
55882
|
+
else fs$27.chown(path$65, uid, gid, cb);
|
|
55931
55883
|
} : (_, __, ___, cb) => cb;
|
|
55932
55884
|
/* istanbul ignore next */
|
|
55933
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
55885
|
+
const handleEISDirSync = needEISDIRHandled ? (path$66, uid, gid) => {
|
|
55934
55886
|
try {
|
|
55935
|
-
return lchownSync(path$
|
|
55887
|
+
return lchownSync(path$66, uid, gid);
|
|
55936
55888
|
} catch (er) {
|
|
55937
55889
|
if (er.code !== "EISDIR") throw er;
|
|
55938
|
-
chownSync(path$
|
|
55890
|
+
chownSync(path$66, uid, gid);
|
|
55939
55891
|
}
|
|
55940
|
-
} : (path$
|
|
55892
|
+
} : (path$67, uid, gid) => lchownSync(path$67, uid, gid);
|
|
55941
55893
|
const nodeVersion = process.version;
|
|
55942
|
-
let readdir = (path$
|
|
55943
|
-
let readdirSync = (path$
|
|
55894
|
+
let readdir = (path$68, options, cb) => fs$27.readdir(path$68, options, cb);
|
|
55895
|
+
let readdirSync = (path$69, options) => fs$27.readdirSync(path$69, options);
|
|
55944
55896
|
/* istanbul ignore next */
|
|
55945
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
55897
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$70, options, cb) => fs$27.readdir(path$70, cb);
|
|
55946
55898
|
const chown = (cpath, uid, gid, cb) => {
|
|
55947
|
-
fs$
|
|
55899
|
+
fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
55948
55900
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
55949
55901
|
}));
|
|
55950
55902
|
};
|
|
55951
55903
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
55952
|
-
if (typeof child === "string") return fs$
|
|
55904
|
+
if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
55953
55905
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
55954
55906
|
stats.name = child;
|
|
55955
55907
|
chownrKid(p, stats, uid, gid, cb);
|
|
55956
55908
|
});
|
|
55957
|
-
if (child.isDirectory()) chownr(path$
|
|
55909
|
+
if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
|
|
55958
55910
|
if (er) return cb(er);
|
|
55959
|
-
chown(path$
|
|
55911
|
+
chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
55960
55912
|
});
|
|
55961
|
-
else chown(path$
|
|
55913
|
+
else chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
55962
55914
|
};
|
|
55963
55915
|
const chownr = (p, uid, gid, cb) => {
|
|
55964
55916
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -55979,15 +55931,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55979
55931
|
};
|
|
55980
55932
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
55981
55933
|
if (typeof child === "string") try {
|
|
55982
|
-
const stats = fs$
|
|
55934
|
+
const stats = fs$27.lstatSync(path$28.resolve(p, child));
|
|
55983
55935
|
stats.name = child;
|
|
55984
55936
|
child = stats;
|
|
55985
55937
|
} catch (er) {
|
|
55986
55938
|
if (er.code === "ENOENT") return;
|
|
55987
55939
|
else throw er;
|
|
55988
55940
|
}
|
|
55989
|
-
if (child.isDirectory()) chownrSync(path$
|
|
55990
|
-
handleEISDirSync(path$
|
|
55941
|
+
if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
|
|
55942
|
+
handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
|
|
55991
55943
|
};
|
|
55992
55944
|
const chownrSync = (p, uid, gid) => {
|
|
55993
55945
|
let children;
|
|
@@ -56008,14 +55960,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56008
55960
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
56009
55961
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56010
55962
|
const mkdirp = require_mkdirp();
|
|
56011
|
-
const fs$
|
|
56012
|
-
const path$
|
|
55963
|
+
const fs$26 = require("fs");
|
|
55964
|
+
const path$27 = require("path");
|
|
56013
55965
|
const chownr = require_chownr();
|
|
56014
55966
|
const normPath = require_normalize_windows_path();
|
|
56015
55967
|
var SymlinkError = class extends Error {
|
|
56016
|
-
constructor(symlink, path$
|
|
55968
|
+
constructor(symlink, path$61) {
|
|
56017
55969
|
super("Cannot extract through symbolic link");
|
|
56018
|
-
this.path = path$
|
|
55970
|
+
this.path = path$61;
|
|
56019
55971
|
this.symlink = symlink;
|
|
56020
55972
|
}
|
|
56021
55973
|
get name() {
|
|
@@ -56023,9 +55975,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56023
55975
|
}
|
|
56024
55976
|
};
|
|
56025
55977
|
var CwdError = class extends Error {
|
|
56026
|
-
constructor(path$
|
|
56027
|
-
super(code + ": Cannot cd into '" + path$
|
|
56028
|
-
this.path = path$
|
|
55978
|
+
constructor(path$62, code) {
|
|
55979
|
+
super(code + ": Cannot cd into '" + path$62 + "'");
|
|
55980
|
+
this.path = path$62;
|
|
56029
55981
|
this.code = code;
|
|
56030
55982
|
}
|
|
56031
55983
|
get name() {
|
|
@@ -56035,7 +55987,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56035
55987
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
56036
55988
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
56037
55989
|
const checkCwd = (dir, cb) => {
|
|
56038
|
-
fs$
|
|
55990
|
+
fs$26.stat(dir, (er, st) => {
|
|
56039
55991
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
56040
55992
|
cb(er);
|
|
56041
55993
|
});
|
|
@@ -56057,31 +56009,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56057
56009
|
else {
|
|
56058
56010
|
cSet(cache, dir, true);
|
|
56059
56011
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
56060
|
-
else if (needChmod) fs$
|
|
56012
|
+
else if (needChmod) fs$26.chmod(dir, mode, cb);
|
|
56061
56013
|
else cb();
|
|
56062
56014
|
}
|
|
56063
56015
|
};
|
|
56064
56016
|
if (cache && cGet(cache, dir) === true) return done();
|
|
56065
56017
|
if (dir === cwd) return checkCwd(dir, done);
|
|
56066
56018
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
56067
|
-
mkdir_(cwd, normPath(path$
|
|
56019
|
+
mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
56068
56020
|
};
|
|
56069
56021
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
56070
56022
|
if (!parts.length) return cb(null, created);
|
|
56071
56023
|
const p = parts.shift();
|
|
56072
|
-
const part = normPath(path$
|
|
56024
|
+
const part = normPath(path$27.resolve(base + "/" + p));
|
|
56073
56025
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
56074
|
-
fs$
|
|
56026
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
56075
56027
|
};
|
|
56076
56028
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
56077
|
-
if (er) fs$
|
|
56029
|
+
if (er) fs$26.lstat(part, (statEr, st) => {
|
|
56078
56030
|
if (statEr) {
|
|
56079
56031
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
56080
56032
|
cb(statEr);
|
|
56081
56033
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
56082
|
-
else if (unlink) fs$
|
|
56034
|
+
else if (unlink) fs$26.unlink(part, (er) => {
|
|
56083
56035
|
if (er) return cb(er);
|
|
56084
|
-
fs$
|
|
56036
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
56085
56037
|
});
|
|
56086
56038
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
56087
56039
|
else cb(er);
|
|
@@ -56095,7 +56047,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56095
56047
|
let ok = false;
|
|
56096
56048
|
let code = "ENOTDIR";
|
|
56097
56049
|
try {
|
|
56098
|
-
ok = fs$
|
|
56050
|
+
ok = fs$26.statSync(dir).isDirectory();
|
|
56099
56051
|
} catch (er) {
|
|
56100
56052
|
code = er.code;
|
|
56101
56053
|
} finally {
|
|
@@ -56117,7 +56069,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56117
56069
|
const done = (created) => {
|
|
56118
56070
|
cSet(cache, dir, true);
|
|
56119
56071
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
56120
|
-
if (needChmod) fs$
|
|
56072
|
+
if (needChmod) fs$26.chmodSync(dir, mode);
|
|
56121
56073
|
};
|
|
56122
56074
|
if (cache && cGet(cache, dir) === true) return done();
|
|
56123
56075
|
if (dir === cwd) {
|
|
@@ -56125,23 +56077,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56125
56077
|
return done();
|
|
56126
56078
|
}
|
|
56127
56079
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
56128
|
-
const parts = normPath(path$
|
|
56080
|
+
const parts = normPath(path$27.relative(cwd, dir)).split("/");
|
|
56129
56081
|
let created = null;
|
|
56130
56082
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
56131
|
-
part = normPath(path$
|
|
56083
|
+
part = normPath(path$27.resolve(part));
|
|
56132
56084
|
if (cGet(cache, part)) continue;
|
|
56133
56085
|
try {
|
|
56134
|
-
fs$
|
|
56086
|
+
fs$26.mkdirSync(part, mode);
|
|
56135
56087
|
created = created || part;
|
|
56136
56088
|
cSet(cache, part, true);
|
|
56137
56089
|
} catch (er) {
|
|
56138
|
-
const st = fs$
|
|
56090
|
+
const st = fs$26.lstatSync(part);
|
|
56139
56091
|
if (st.isDirectory()) {
|
|
56140
56092
|
cSet(cache, part, true);
|
|
56141
56093
|
continue;
|
|
56142
56094
|
} else if (unlink) {
|
|
56143
|
-
fs$
|
|
56144
|
-
fs$
|
|
56095
|
+
fs$26.unlinkSync(part);
|
|
56096
|
+
fs$26.mkdirSync(part, mode);
|
|
56145
56097
|
created = created || part;
|
|
56146
56098
|
cSet(cache, part, true);
|
|
56147
56099
|
continue;
|
|
@@ -56167,15 +56119,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56167
56119
|
const assert$1 = require("assert");
|
|
56168
56120
|
const normalize = require_normalize_unicode();
|
|
56169
56121
|
const stripSlashes = require_strip_trailing_slashes();
|
|
56170
|
-
const { join: join$
|
|
56122
|
+
const { join: join$16 } = require("path");
|
|
56171
56123
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
56172
56124
|
module.exports = () => {
|
|
56173
56125
|
const queues = /* @__PURE__ */ new Map();
|
|
56174
56126
|
const reservations = /* @__PURE__ */ new Map();
|
|
56175
|
-
const getDirs = (path$
|
|
56176
|
-
return path$
|
|
56177
|
-
if (set.length) path$
|
|
56178
|
-
set.push(path$
|
|
56127
|
+
const getDirs = (path$54) => {
|
|
56128
|
+
return path$54.split("/").slice(0, -1).reduce((set, path$55) => {
|
|
56129
|
+
if (set.length) path$55 = join$16(set[set.length - 1], path$55);
|
|
56130
|
+
set.push(path$55 || "/");
|
|
56179
56131
|
return set;
|
|
56180
56132
|
}, []);
|
|
56181
56133
|
};
|
|
@@ -56185,8 +56137,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56185
56137
|
/* istanbul ignore if - unpossible */
|
|
56186
56138
|
if (!res) throw new Error("function does not have any path reservations");
|
|
56187
56139
|
return {
|
|
56188
|
-
paths: res.paths.map((path$
|
|
56189
|
-
dirs: [...res.dirs].map((path$
|
|
56140
|
+
paths: res.paths.map((path$56) => queues.get(path$56)),
|
|
56141
|
+
dirs: [...res.dirs].map((path$57) => queues.get(path$57))
|
|
56190
56142
|
};
|
|
56191
56143
|
};
|
|
56192
56144
|
const check = (fn) => {
|
|
@@ -56203,10 +56155,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56203
56155
|
if (!running.has(fn)) return false;
|
|
56204
56156
|
const { paths, dirs } = reservations.get(fn);
|
|
56205
56157
|
const next = /* @__PURE__ */ new Set();
|
|
56206
|
-
paths.forEach((path$
|
|
56207
|
-
const q = queues.get(path$
|
|
56158
|
+
paths.forEach((path$58) => {
|
|
56159
|
+
const q = queues.get(path$58);
|
|
56208
56160
|
assert$1.equal(q[0], fn);
|
|
56209
|
-
if (q.length === 1) queues.delete(path$
|
|
56161
|
+
if (q.length === 1) queues.delete(path$58);
|
|
56210
56162
|
else {
|
|
56211
56163
|
q.shift();
|
|
56212
56164
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -56228,16 +56180,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56228
56180
|
};
|
|
56229
56181
|
const reserve = (paths, fn) => {
|
|
56230
56182
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
56231
|
-
return stripSlashes(join$
|
|
56183
|
+
return stripSlashes(join$16(normalize(p))).toLowerCase();
|
|
56232
56184
|
});
|
|
56233
|
-
const dirs = new Set(paths.map((path$
|
|
56185
|
+
const dirs = new Set(paths.map((path$59) => getDirs(path$59)).reduce((a, b) => a.concat(b)));
|
|
56234
56186
|
reservations.set(fn, {
|
|
56235
56187
|
dirs,
|
|
56236
56188
|
paths
|
|
56237
56189
|
});
|
|
56238
|
-
paths.forEach((path$
|
|
56239
|
-
const q = queues.get(path$
|
|
56240
|
-
if (!q) queues.set(path$
|
|
56190
|
+
paths.forEach((path$60) => {
|
|
56191
|
+
const q = queues.get(path$60);
|
|
56192
|
+
if (!q) queues.set(path$60, [fn]);
|
|
56241
56193
|
else q.push(fn);
|
|
56242
56194
|
});
|
|
56243
56195
|
dirs.forEach((dir) => {
|
|
@@ -56270,9 +56222,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
56270
56222
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56271
56223
|
const assert = require("assert");
|
|
56272
56224
|
const Parser = require_parse$4();
|
|
56273
|
-
const fs$
|
|
56225
|
+
const fs$25 = require("fs");
|
|
56274
56226
|
const fsm = require_fs_minipass();
|
|
56275
|
-
const path$
|
|
56227
|
+
const path$26 = require("path");
|
|
56276
56228
|
const mkdir = require_mkdir();
|
|
56277
56229
|
const wc = require_winchars();
|
|
56278
56230
|
const pathReservations = require_path_reservations();
|
|
@@ -56310,28 +56262,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56310
56262
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
56311
56263
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
56312
56264
|
/* istanbul ignore next */
|
|
56313
|
-
const unlinkFile = (path$
|
|
56314
|
-
if (!isWindows) return fs$
|
|
56315
|
-
const name = path$
|
|
56316
|
-
fs$
|
|
56265
|
+
const unlinkFile = (path$50, cb) => {
|
|
56266
|
+
if (!isWindows) return fs$25.unlink(path$50, cb);
|
|
56267
|
+
const name = path$50 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
56268
|
+
fs$25.rename(path$50, name, (er) => {
|
|
56317
56269
|
if (er) return cb(er);
|
|
56318
|
-
fs$
|
|
56270
|
+
fs$25.unlink(name, cb);
|
|
56319
56271
|
});
|
|
56320
56272
|
};
|
|
56321
56273
|
/* istanbul ignore next */
|
|
56322
|
-
const unlinkFileSync = (path$
|
|
56323
|
-
if (!isWindows) return fs$
|
|
56324
|
-
const name = path$
|
|
56325
|
-
fs$
|
|
56326
|
-
fs$
|
|
56274
|
+
const unlinkFileSync = (path$51) => {
|
|
56275
|
+
if (!isWindows) return fs$25.unlinkSync(path$51);
|
|
56276
|
+
const name = path$51 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
56277
|
+
fs$25.renameSync(path$51, name);
|
|
56278
|
+
fs$25.unlinkSync(name);
|
|
56327
56279
|
};
|
|
56328
56280
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
56329
|
-
const cacheKeyNormalize = (path$
|
|
56281
|
+
const cacheKeyNormalize = (path$52) => stripSlash(normPath(normalize(path$52))).toLowerCase();
|
|
56330
56282
|
const pruneCache = (cache, abs) => {
|
|
56331
56283
|
abs = cacheKeyNormalize(abs);
|
|
56332
|
-
for (const path$
|
|
56333
|
-
const pnorm = cacheKeyNormalize(path$
|
|
56334
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
56284
|
+
for (const path$53 of cache.keys()) {
|
|
56285
|
+
const pnorm = cacheKeyNormalize(path$53);
|
|
56286
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$53);
|
|
56335
56287
|
}
|
|
56336
56288
|
};
|
|
56337
56289
|
const dropCache = (cache) => {
|
|
@@ -56376,7 +56328,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56376
56328
|
this.noMtime = !!opt.noMtime;
|
|
56377
56329
|
this.preservePaths = !!opt.preservePaths;
|
|
56378
56330
|
this.unlink = !!opt.unlink;
|
|
56379
|
-
this.cwd = normPath(path$
|
|
56331
|
+
this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
|
|
56380
56332
|
this.strip = +opt.strip || 0;
|
|
56381
56333
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
56382
56334
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -56434,8 +56386,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56434
56386
|
});
|
|
56435
56387
|
}
|
|
56436
56388
|
}
|
|
56437
|
-
if (path$
|
|
56438
|
-
else entry.absolute = normPath(path$
|
|
56389
|
+
if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
|
|
56390
|
+
else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
|
|
56439
56391
|
/* istanbul ignore if - defense in depth */
|
|
56440
56392
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
56441
56393
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -56448,9 +56400,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56448
56400
|
}
|
|
56449
56401
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
56450
56402
|
if (this.win32) {
|
|
56451
|
-
const { root: aRoot } = path$
|
|
56403
|
+
const { root: aRoot } = path$26.win32.parse(entry.absolute);
|
|
56452
56404
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
56453
|
-
const { root: pRoot } = path$
|
|
56405
|
+
const { root: pRoot } = path$26.win32.parse(entry.path);
|
|
56454
56406
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
56455
56407
|
}
|
|
56456
56408
|
return true;
|
|
@@ -56509,7 +56461,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56509
56461
|
autoClose: false
|
|
56510
56462
|
});
|
|
56511
56463
|
stream.on("error", (er) => {
|
|
56512
|
-
if (stream.fd) fs$
|
|
56464
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
56513
56465
|
stream.write = () => true;
|
|
56514
56466
|
this[ONERROR](er, entry);
|
|
56515
56467
|
fullyDone();
|
|
@@ -56518,12 +56470,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56518
56470
|
const done = (er) => {
|
|
56519
56471
|
if (er) {
|
|
56520
56472
|
/* istanbul ignore else - we should always have a fd by now */
|
|
56521
|
-
if (stream.fd) fs$
|
|
56473
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
56522
56474
|
this[ONERROR](er, entry);
|
|
56523
56475
|
fullyDone();
|
|
56524
56476
|
return;
|
|
56525
56477
|
}
|
|
56526
|
-
if (--actions === 0) fs$
|
|
56478
|
+
if (--actions === 0) fs$25.close(stream.fd, (er) => {
|
|
56527
56479
|
if (er) this[ONERROR](er, entry);
|
|
56528
56480
|
else this[UNPEND]();
|
|
56529
56481
|
fullyDone();
|
|
@@ -56536,13 +56488,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56536
56488
|
actions++;
|
|
56537
56489
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
56538
56490
|
const mtime = entry.mtime;
|
|
56539
|
-
fs$
|
|
56491
|
+
fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
56540
56492
|
}
|
|
56541
56493
|
if (this[DOCHOWN](entry)) {
|
|
56542
56494
|
actions++;
|
|
56543
56495
|
const uid = this[UID](entry);
|
|
56544
56496
|
const gid = this[GID](entry);
|
|
56545
|
-
fs$
|
|
56497
|
+
fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
56546
56498
|
}
|
|
56547
56499
|
done();
|
|
56548
56500
|
});
|
|
@@ -56574,11 +56526,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56574
56526
|
};
|
|
56575
56527
|
if (entry.mtime && !this.noMtime) {
|
|
56576
56528
|
actions++;
|
|
56577
|
-
fs$
|
|
56529
|
+
fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
56578
56530
|
}
|
|
56579
56531
|
if (this[DOCHOWN](entry)) {
|
|
56580
56532
|
actions++;
|
|
56581
|
-
fs$
|
|
56533
|
+
fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
56582
56534
|
}
|
|
56583
56535
|
done();
|
|
56584
56536
|
});
|
|
@@ -56592,7 +56544,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56592
56544
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
56593
56545
|
}
|
|
56594
56546
|
[HARDLINK](entry, done) {
|
|
56595
|
-
const linkpath = normPath(path$
|
|
56547
|
+
const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
|
|
56596
56548
|
this[LINK](entry, linkpath, "link", done);
|
|
56597
56549
|
}
|
|
56598
56550
|
[PEND]() {
|
|
@@ -56638,7 +56590,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56638
56590
|
};
|
|
56639
56591
|
const start = () => {
|
|
56640
56592
|
if (entry.absolute !== this.cwd) {
|
|
56641
|
-
const parent = normPath(path$
|
|
56593
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
56642
56594
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
56643
56595
|
if (er) {
|
|
56644
56596
|
this[ONERROR](er, entry);
|
|
@@ -56651,7 +56603,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56651
56603
|
afterMakeParent();
|
|
56652
56604
|
};
|
|
56653
56605
|
const afterMakeParent = () => {
|
|
56654
|
-
fs$
|
|
56606
|
+
fs$25.lstat(entry.absolute, (lstatEr, st) => {
|
|
56655
56607
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
56656
56608
|
this[SKIP](entry);
|
|
56657
56609
|
done();
|
|
@@ -56663,9 +56615,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56663
56615
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
56664
56616
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
56665
56617
|
if (!needChmod) return afterChmod();
|
|
56666
|
-
return fs$
|
|
56618
|
+
return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
|
|
56667
56619
|
}
|
|
56668
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
56620
|
+
if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
56669
56621
|
}
|
|
56670
56622
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
56671
56623
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -56691,7 +56643,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56691
56643
|
}
|
|
56692
56644
|
}
|
|
56693
56645
|
[LINK](entry, linkpath, link, done) {
|
|
56694
|
-
fs$
|
|
56646
|
+
fs$25[link](linkpath, entry.absolute, (er) => {
|
|
56695
56647
|
if (er) this[ONERROR](er, entry);
|
|
56696
56648
|
else {
|
|
56697
56649
|
this[UNPEND]();
|
|
@@ -56720,23 +56672,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56720
56672
|
this[CHECKED_CWD] = true;
|
|
56721
56673
|
}
|
|
56722
56674
|
if (entry.absolute !== this.cwd) {
|
|
56723
|
-
const parent = normPath(path$
|
|
56675
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
56724
56676
|
if (parent !== this.cwd) {
|
|
56725
56677
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
56726
56678
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
56727
56679
|
}
|
|
56728
56680
|
}
|
|
56729
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
56681
|
+
const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
|
|
56730
56682
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
56731
56683
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
56732
56684
|
if (st.isDirectory()) {
|
|
56733
56685
|
if (entry.type === "Directory") {
|
|
56734
56686
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
56735
|
-
fs$
|
|
56687
|
+
fs$25.chmodSync(entry.absolute, entry.mode);
|
|
56736
56688
|
}) : [];
|
|
56737
56689
|
return this[MAKEFS](er, entry);
|
|
56738
56690
|
}
|
|
56739
|
-
const [er] = callSync(() => fs$
|
|
56691
|
+
const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
|
|
56740
56692
|
this[MAKEFS](er, entry);
|
|
56741
56693
|
}
|
|
56742
56694
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -56747,7 +56699,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56747
56699
|
const oner = (er) => {
|
|
56748
56700
|
let closeError;
|
|
56749
56701
|
try {
|
|
56750
|
-
fs$
|
|
56702
|
+
fs$25.closeSync(fd);
|
|
56751
56703
|
} catch (e) {
|
|
56752
56704
|
closeError = e;
|
|
56753
56705
|
}
|
|
@@ -56756,7 +56708,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56756
56708
|
};
|
|
56757
56709
|
let fd;
|
|
56758
56710
|
try {
|
|
56759
|
-
fd = fs$
|
|
56711
|
+
fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
56760
56712
|
} catch (er) {
|
|
56761
56713
|
return oner(er);
|
|
56762
56714
|
}
|
|
@@ -56767,7 +56719,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56767
56719
|
}
|
|
56768
56720
|
tx.on("data", (chunk) => {
|
|
56769
56721
|
try {
|
|
56770
|
-
fs$
|
|
56722
|
+
fs$25.writeSync(fd, chunk, 0, chunk.length);
|
|
56771
56723
|
} catch (er) {
|
|
56772
56724
|
oner(er);
|
|
56773
56725
|
}
|
|
@@ -56778,10 +56730,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56778
56730
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
56779
56731
|
const mtime = entry.mtime;
|
|
56780
56732
|
try {
|
|
56781
|
-
fs$
|
|
56733
|
+
fs$25.futimesSync(fd, atime, mtime);
|
|
56782
56734
|
} catch (futimeser) {
|
|
56783
56735
|
try {
|
|
56784
|
-
fs$
|
|
56736
|
+
fs$25.utimesSync(entry.absolute, atime, mtime);
|
|
56785
56737
|
} catch (utimeser) {
|
|
56786
56738
|
er = futimeser;
|
|
56787
56739
|
}
|
|
@@ -56791,10 +56743,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56791
56743
|
const uid = this[UID](entry);
|
|
56792
56744
|
const gid = this[GID](entry);
|
|
56793
56745
|
try {
|
|
56794
|
-
fs$
|
|
56746
|
+
fs$25.fchownSync(fd, uid, gid);
|
|
56795
56747
|
} catch (fchowner) {
|
|
56796
56748
|
try {
|
|
56797
|
-
fs$
|
|
56749
|
+
fs$25.chownSync(entry.absolute, uid, gid);
|
|
56798
56750
|
} catch (chowner) {
|
|
56799
56751
|
er = er || fchowner;
|
|
56800
56752
|
}
|
|
@@ -56812,10 +56764,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56812
56764
|
return;
|
|
56813
56765
|
}
|
|
56814
56766
|
if (entry.mtime && !this.noMtime) try {
|
|
56815
|
-
fs$
|
|
56767
|
+
fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
56816
56768
|
} catch (er) {}
|
|
56817
56769
|
if (this[DOCHOWN](entry)) try {
|
|
56818
|
-
fs$
|
|
56770
|
+
fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
56819
56771
|
} catch (er) {}
|
|
56820
56772
|
done();
|
|
56821
56773
|
entry.resume();
|
|
@@ -56840,7 +56792,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56840
56792
|
}
|
|
56841
56793
|
[LINK](entry, linkpath, link, done) {
|
|
56842
56794
|
try {
|
|
56843
|
-
fs$
|
|
56795
|
+
fs$25[link + "Sync"](linkpath, entry.absolute);
|
|
56844
56796
|
done();
|
|
56845
56797
|
entry.resume();
|
|
56846
56798
|
} catch (er) {
|
|
@@ -56856,9 +56808,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56856
56808
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56857
56809
|
const hlo = require_high_level_opt();
|
|
56858
56810
|
const Unpack = require_unpack();
|
|
56859
|
-
const fs$
|
|
56811
|
+
const fs$24 = require("fs");
|
|
56860
56812
|
const fsm = require_fs_minipass();
|
|
56861
|
-
const path$
|
|
56813
|
+
const path$25 = require("path");
|
|
56862
56814
|
const stripSlash = require_strip_trailing_slashes();
|
|
56863
56815
|
module.exports = (opt_, files, cb) => {
|
|
56864
56816
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -56876,8 +56828,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
56876
56828
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
56877
56829
|
const filter = opt.filter;
|
|
56878
56830
|
const mapHas = (file, r) => {
|
|
56879
|
-
const root = r || path$
|
|
56880
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
56831
|
+
const root = r || path$25.parse(file).root || ".";
|
|
56832
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
|
|
56881
56833
|
map.set(file, ret);
|
|
56882
56834
|
return ret;
|
|
56883
56835
|
};
|
|
@@ -56886,7 +56838,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
56886
56838
|
const extractFileSync = (opt) => {
|
|
56887
56839
|
const u = new Unpack.Sync(opt);
|
|
56888
56840
|
const file = opt.file;
|
|
56889
|
-
const stat = fs$
|
|
56841
|
+
const stat = fs$24.statSync(file);
|
|
56890
56842
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
56891
56843
|
new fsm.ReadStreamSync(file, {
|
|
56892
56844
|
readSize,
|
|
@@ -56900,7 +56852,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
56900
56852
|
const p = new Promise((resolve, reject) => {
|
|
56901
56853
|
u.on("error", reject);
|
|
56902
56854
|
u.on("close", resolve);
|
|
56903
|
-
fs$
|
|
56855
|
+
fs$24.stat(file, (er, stat) => {
|
|
56904
56856
|
if (er) reject(er);
|
|
56905
56857
|
else {
|
|
56906
56858
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -56983,7 +56935,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
56983
56935
|
//#endregion
|
|
56984
56936
|
//#region ../../node_modules/fd-slicer/index.js
|
|
56985
56937
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
56986
|
-
var fs$
|
|
56938
|
+
var fs$23 = require("fs");
|
|
56987
56939
|
var util$9 = require("util");
|
|
56988
56940
|
var stream$1 = require("stream");
|
|
56989
56941
|
var Readable = stream$1.Readable;
|
|
@@ -57008,7 +56960,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57008
56960
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
57009
56961
|
var self = this;
|
|
57010
56962
|
self.pend.go(function(cb) {
|
|
57011
|
-
fs$
|
|
56963
|
+
fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
57012
56964
|
cb();
|
|
57013
56965
|
callback(err, bytesRead, buffer);
|
|
57014
56966
|
});
|
|
@@ -57017,7 +56969,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57017
56969
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
57018
56970
|
var self = this;
|
|
57019
56971
|
self.pend.go(function(cb) {
|
|
57020
|
-
fs$
|
|
56972
|
+
fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
57021
56973
|
cb();
|
|
57022
56974
|
callback(err, written, buffer);
|
|
57023
56975
|
});
|
|
@@ -57037,7 +56989,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57037
56989
|
self.refCount -= 1;
|
|
57038
56990
|
if (self.refCount > 0) return;
|
|
57039
56991
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
57040
|
-
if (self.autoClose) fs$
|
|
56992
|
+
if (self.autoClose) fs$23.close(self.fd, onCloseDone);
|
|
57041
56993
|
function onCloseDone(err) {
|
|
57042
56994
|
if (err) self.emit("error", err);
|
|
57043
56995
|
else self.emit("close");
|
|
@@ -57068,7 +57020,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57068
57020
|
self.context.pend.go(function(cb) {
|
|
57069
57021
|
if (self.destroyed) return cb();
|
|
57070
57022
|
var buffer = new Buffer(toRead);
|
|
57071
|
-
fs$
|
|
57023
|
+
fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
57072
57024
|
if (err) self.destroy(err);
|
|
57073
57025
|
else if (bytesRead === 0) {
|
|
57074
57026
|
self.destroyed = true;
|
|
@@ -57114,7 +57066,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57114
57066
|
}
|
|
57115
57067
|
self.context.pend.go(function(cb) {
|
|
57116
57068
|
if (self.destroyed) return cb();
|
|
57117
|
-
fs$
|
|
57069
|
+
fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
57118
57070
|
if (err) {
|
|
57119
57071
|
self.destroy();
|
|
57120
57072
|
cb();
|
|
@@ -58696,13 +58648,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
58696
58648
|
//#region ../../node_modules/readdir-glob/index.js
|
|
58697
58649
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
58698
58650
|
module.exports = readdirGlob;
|
|
58699
|
-
const fs$
|
|
58651
|
+
const fs$21 = require("fs");
|
|
58700
58652
|
const { EventEmitter } = require("events");
|
|
58701
58653
|
const { Minimatch } = require_minimatch$1();
|
|
58702
58654
|
const { resolve: resolve$12 } = require("path");
|
|
58703
58655
|
function readdir(dir, strict) {
|
|
58704
58656
|
return new Promise((resolve, reject) => {
|
|
58705
|
-
fs$
|
|
58657
|
+
fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
58706
58658
|
if (err) switch (err.code) {
|
|
58707
58659
|
case "ENOTDIR":
|
|
58708
58660
|
if (strict) reject(err);
|
|
@@ -58724,7 +58676,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58724
58676
|
}
|
|
58725
58677
|
function stat(file, followSymlinks) {
|
|
58726
58678
|
return new Promise((resolve, reject) => {
|
|
58727
|
-
(followSymlinks ? fs$
|
|
58679
|
+
(followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
|
|
58728
58680
|
if (err) switch (err.code) {
|
|
58729
58681
|
case "ENOENT":
|
|
58730
58682
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -58738,8 +58690,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58738
58690
|
});
|
|
58739
58691
|
});
|
|
58740
58692
|
}
|
|
58741
|
-
async function* exploreWalkAsync(dir, path$
|
|
58742
|
-
let files = await readdir(path$
|
|
58693
|
+
async function* exploreWalkAsync(dir, path$48, followSymlinks, useStat, shouldSkip, strict) {
|
|
58694
|
+
let files = await readdir(path$48 + dir, strict);
|
|
58743
58695
|
for (const file of files) {
|
|
58744
58696
|
let name = file.name;
|
|
58745
58697
|
if (name === void 0) {
|
|
@@ -58748,7 +58700,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58748
58700
|
}
|
|
58749
58701
|
const filename = dir + "/" + name;
|
|
58750
58702
|
const relative = filename.slice(1);
|
|
58751
|
-
const absolute = path$
|
|
58703
|
+
const absolute = path$48 + "/" + relative;
|
|
58752
58704
|
let stats = null;
|
|
58753
58705
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
58754
58706
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -58760,7 +58712,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58760
58712
|
absolute,
|
|
58761
58713
|
stats
|
|
58762
58714
|
};
|
|
58763
|
-
yield* exploreWalkAsync(filename, path$
|
|
58715
|
+
yield* exploreWalkAsync(filename, path$48, followSymlinks, useStat, shouldSkip, false);
|
|
58764
58716
|
}
|
|
58765
58717
|
} else yield {
|
|
58766
58718
|
relative,
|
|
@@ -58769,8 +58721,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58769
58721
|
};
|
|
58770
58722
|
}
|
|
58771
58723
|
}
|
|
58772
|
-
async function* explore(path$
|
|
58773
|
-
yield* exploreWalkAsync("", path$
|
|
58724
|
+
async function* explore(path$49, followSymlinks, useStat, shouldSkip) {
|
|
58725
|
+
yield* exploreWalkAsync("", path$49, followSymlinks, useStat, shouldSkip, true);
|
|
58774
58726
|
}
|
|
58775
58727
|
function readOptions(options) {
|
|
58776
58728
|
return {
|
|
@@ -64763,7 +64715,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64763
64715
|
//#endregion
|
|
64764
64716
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
64765
64717
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
64766
|
-
var fs$
|
|
64718
|
+
var fs$20 = require("fs");
|
|
64767
64719
|
var polyfills = require_polyfills();
|
|
64768
64720
|
var legacy = require_legacy_streams();
|
|
64769
64721
|
var clone = require_clone$1();
|
|
@@ -64792,36 +64744,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
64792
64744
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
64793
64745
|
console.error(m);
|
|
64794
64746
|
};
|
|
64795
|
-
if (!fs$
|
|
64796
|
-
publishQueue(fs$
|
|
64797
|
-
fs$
|
|
64747
|
+
if (!fs$20[gracefulQueue]) {
|
|
64748
|
+
publishQueue(fs$20, global[gracefulQueue] || []);
|
|
64749
|
+
fs$20.close = (function(fs$close) {
|
|
64798
64750
|
function close(fd, cb) {
|
|
64799
|
-
return fs$close.call(fs$
|
|
64751
|
+
return fs$close.call(fs$20, fd, function(err) {
|
|
64800
64752
|
if (!err) resetQueue();
|
|
64801
64753
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
64802
64754
|
});
|
|
64803
64755
|
}
|
|
64804
64756
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
64805
64757
|
return close;
|
|
64806
|
-
})(fs$
|
|
64807
|
-
fs$
|
|
64758
|
+
})(fs$20.close);
|
|
64759
|
+
fs$20.closeSync = (function(fs$closeSync) {
|
|
64808
64760
|
function closeSync(fd) {
|
|
64809
|
-
fs$closeSync.apply(fs$
|
|
64761
|
+
fs$closeSync.apply(fs$20, arguments);
|
|
64810
64762
|
resetQueue();
|
|
64811
64763
|
}
|
|
64812
64764
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
64813
64765
|
return closeSync;
|
|
64814
|
-
})(fs$
|
|
64766
|
+
})(fs$20.closeSync);
|
|
64815
64767
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
64816
|
-
debug(fs$
|
|
64817
|
-
require("assert").equal(fs$
|
|
64768
|
+
debug(fs$20[gracefulQueue]);
|
|
64769
|
+
require("assert").equal(fs$20[gracefulQueue].length, 0);
|
|
64818
64770
|
});
|
|
64819
64771
|
}
|
|
64820
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
64821
|
-
module.exports = patch(clone(fs$
|
|
64822
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
64823
|
-
module.exports = patch(fs$
|
|
64824
|
-
fs$
|
|
64772
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
|
|
64773
|
+
module.exports = patch(clone(fs$20));
|
|
64774
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
|
|
64775
|
+
module.exports = patch(fs$20);
|
|
64776
|
+
fs$20.__patched = true;
|
|
64825
64777
|
}
|
|
64826
64778
|
function patch(fs) {
|
|
64827
64779
|
polyfills(fs);
|
|
@@ -65076,23 +65028,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
65076
65028
|
}
|
|
65077
65029
|
function enqueue(elem) {
|
|
65078
65030
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
65079
|
-
fs$
|
|
65031
|
+
fs$20[gracefulQueue].push(elem);
|
|
65080
65032
|
retry();
|
|
65081
65033
|
}
|
|
65082
65034
|
var retryTimer;
|
|
65083
65035
|
function resetQueue() {
|
|
65084
65036
|
var now = Date.now();
|
|
65085
|
-
for (var i = 0; i < fs$
|
|
65086
|
-
fs$
|
|
65087
|
-
fs$
|
|
65037
|
+
for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
|
|
65038
|
+
fs$20[gracefulQueue][i][3] = now;
|
|
65039
|
+
fs$20[gracefulQueue][i][4] = now;
|
|
65088
65040
|
}
|
|
65089
65041
|
retry();
|
|
65090
65042
|
}
|
|
65091
65043
|
function retry() {
|
|
65092
65044
|
clearTimeout(retryTimer);
|
|
65093
65045
|
retryTimer = void 0;
|
|
65094
|
-
if (fs$
|
|
65095
|
-
var elem = fs$
|
|
65046
|
+
if (fs$20[gracefulQueue].length === 0) return;
|
|
65047
|
+
var elem = fs$20[gracefulQueue].shift();
|
|
65096
65048
|
var fn = elem[0];
|
|
65097
65049
|
var args = elem[1];
|
|
65098
65050
|
var err = elem[2];
|
|
@@ -65111,7 +65063,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
65111
65063
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
65112
65064
|
debug("RETRY", fn.name, args);
|
|
65113
65065
|
fn.apply(null, args.concat([startTime]));
|
|
65114
|
-
} else fs$
|
|
65066
|
+
} else fs$20[gracefulQueue].push(elem);
|
|
65115
65067
|
}
|
|
65116
65068
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
65117
65069
|
}
|
|
@@ -80237,7 +80189,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
80237
80189
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
80238
80190
|
*/
|
|
80239
80191
|
var fs = require_graceful_fs();
|
|
80240
|
-
var path$
|
|
80192
|
+
var path$24 = require("path");
|
|
80241
80193
|
var flatten = require_flatten();
|
|
80242
80194
|
var difference = require_difference();
|
|
80243
80195
|
var union = require_union();
|
|
@@ -80257,7 +80209,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
80257
80209
|
return result;
|
|
80258
80210
|
};
|
|
80259
80211
|
file.exists = function() {
|
|
80260
|
-
var filepath = path$
|
|
80212
|
+
var filepath = path$24.join.apply(path$24, arguments);
|
|
80261
80213
|
return fs.existsSync(filepath);
|
|
80262
80214
|
};
|
|
80263
80215
|
file.expand = function(...args) {
|
|
@@ -80268,7 +80220,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
80268
80220
|
return glob.sync(pattern, options);
|
|
80269
80221
|
});
|
|
80270
80222
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
80271
|
-
filepath = path$
|
|
80223
|
+
filepath = path$24.join(options.cwd || "", filepath);
|
|
80272
80224
|
try {
|
|
80273
80225
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
80274
80226
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -80280,16 +80232,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
80280
80232
|
};
|
|
80281
80233
|
file.expandMapping = function(patterns, destBase, options) {
|
|
80282
80234
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
80283
|
-
return path$
|
|
80235
|
+
return path$24.join(destBase || "", destPath);
|
|
80284
80236
|
} }, options);
|
|
80285
80237
|
var files = [];
|
|
80286
80238
|
var fileByDest = {};
|
|
80287
80239
|
file.expand(options, patterns).forEach(function(src) {
|
|
80288
80240
|
var destPath = src;
|
|
80289
|
-
if (options.flatten) destPath = path$
|
|
80241
|
+
if (options.flatten) destPath = path$24.basename(destPath);
|
|
80290
80242
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
80291
80243
|
var dest = options.rename(destBase, destPath, options);
|
|
80292
|
-
if (options.cwd) src = path$
|
|
80244
|
+
if (options.cwd) src = path$24.join(options.cwd, src);
|
|
80293
80245
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
80294
80246
|
src = src.replace(pathSeparatorRe, "/");
|
|
80295
80247
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -80364,7 +80316,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
80364
80316
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
80365
80317
|
*/
|
|
80366
80318
|
var fs = require_graceful_fs();
|
|
80367
|
-
var path$
|
|
80319
|
+
var path$23 = require("path");
|
|
80368
80320
|
var isStream = require_is_stream$1();
|
|
80369
80321
|
var lazystream = require_lazystream();
|
|
80370
80322
|
var normalizePath = require_normalize_path();
|
|
@@ -80440,11 +80392,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
80440
80392
|
(function next() {
|
|
80441
80393
|
file = list[i++];
|
|
80442
80394
|
if (!file) return callback(null, results);
|
|
80443
|
-
filepath = path$
|
|
80395
|
+
filepath = path$23.join(dirpath, file);
|
|
80444
80396
|
fs.stat(filepath, function(err, stats) {
|
|
80445
80397
|
results.push({
|
|
80446
80398
|
path: filepath,
|
|
80447
|
-
relative: path$
|
|
80399
|
+
relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
|
|
80448
80400
|
stats
|
|
80449
80401
|
});
|
|
80450
80402
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -80508,10 +80460,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80508
80460
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
80509
80461
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
80510
80462
|
*/
|
|
80511
|
-
var fs$
|
|
80463
|
+
var fs$19 = require("fs");
|
|
80512
80464
|
var glob = require_readdir_glob();
|
|
80513
80465
|
var async = require_async();
|
|
80514
|
-
var path$
|
|
80466
|
+
var path$22 = require("path");
|
|
80515
80467
|
var util = require_archiver_utils();
|
|
80516
80468
|
var inherits$5 = require("util").inherits;
|
|
80517
80469
|
var ArchiverError = require_error$10();
|
|
@@ -80585,7 +80537,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80585
80537
|
data.sourcePath = filepath;
|
|
80586
80538
|
task.data = data;
|
|
80587
80539
|
this._entriesCount++;
|
|
80588
|
-
if (data.stats && data.stats instanceof fs$
|
|
80540
|
+
if (data.stats && data.stats instanceof fs$19.Stats) {
|
|
80589
80541
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
80590
80542
|
if (task) {
|
|
80591
80543
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -80815,7 +80767,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80815
80767
|
callback();
|
|
80816
80768
|
return;
|
|
80817
80769
|
}
|
|
80818
|
-
fs$
|
|
80770
|
+
fs$19.lstat(task.filepath, function(err, stats) {
|
|
80819
80771
|
if (this._state.aborted) {
|
|
80820
80772
|
setImmediate(callback);
|
|
80821
80773
|
return;
|
|
@@ -80881,10 +80833,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80881
80833
|
task.data.sourceType = "buffer";
|
|
80882
80834
|
task.source = Buffer.concat([]);
|
|
80883
80835
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
80884
|
-
var linkPath = fs$
|
|
80885
|
-
var dirName = path$
|
|
80836
|
+
var linkPath = fs$19.readlinkSync(task.filepath);
|
|
80837
|
+
var dirName = path$22.dirname(task.filepath);
|
|
80886
80838
|
task.data.type = "symlink";
|
|
80887
|
-
task.data.linkname = path$
|
|
80839
|
+
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
80888
80840
|
task.data.sourceType = "buffer";
|
|
80889
80841
|
task.source = Buffer.concat([]);
|
|
80890
80842
|
} else {
|
|
@@ -91879,7 +91831,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
91879
91831
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
91880
91832
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
91881
91833
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
91882
|
-
const { join: join$
|
|
91834
|
+
const { join: join$13, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
91883
91835
|
const isWindows = process.platform === "win32";
|
|
91884
91836
|
/* istanbul ignore next */
|
|
91885
91837
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -91909,7 +91861,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
91909
91861
|
};
|
|
91910
91862
|
const getPathPart = (raw, cmd) => {
|
|
91911
91863
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
91912
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
91864
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
91913
91865
|
};
|
|
91914
91866
|
const which = async (cmd, opt = {}) => {
|
|
91915
91867
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -92658,7 +92610,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
92658
92610
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
92659
92611
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92660
92612
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
92661
|
-
const { join: join$
|
|
92613
|
+
const { join: join$12, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
92662
92614
|
const isWindows = process.platform === "win32";
|
|
92663
92615
|
/* istanbul ignore next */
|
|
92664
92616
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -92688,7 +92640,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92688
92640
|
};
|
|
92689
92641
|
const getPathPart = (raw, cmd) => {
|
|
92690
92642
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
92691
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
92643
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$12(pathPart, cmd);
|
|
92692
92644
|
};
|
|
92693
92645
|
const which = async (cmd, opt = {}) => {
|
|
92694
92646
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -94586,7 +94538,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94586
94538
|
//#endregion
|
|
94587
94539
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
94588
94540
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94589
|
-
const { join: join$
|
|
94541
|
+
const { join: join$11, basename: basename$4 } = require("path");
|
|
94590
94542
|
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);
|
|
94591
94543
|
const normalizeString = (pkg) => {
|
|
94592
94544
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -94609,9 +94561,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94609
94561
|
const clean = {};
|
|
94610
94562
|
let hasBins = false;
|
|
94611
94563
|
Object.keys(orig).forEach((binKey) => {
|
|
94612
|
-
const base = join$
|
|
94564
|
+
const base = join$11("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
94613
94565
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
94614
|
-
const binTarget = join$
|
|
94566
|
+
const binTarget = join$11("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
94615
94567
|
if (!binTarget) return;
|
|
94616
94568
|
clean[base] = binTarget;
|
|
94617
94569
|
hasBins = true;
|
|
@@ -96684,7 +96636,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96684
96636
|
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();
|
|
96685
96637
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
96686
96638
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$7, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
96687
|
-
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$
|
|
96639
|
+
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$10, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
96688
96640
|
const { fileURLToPath } = require("url");
|
|
96689
96641
|
const defaultOptions = {
|
|
96690
96642
|
dereference: false,
|
|
@@ -96791,7 +96743,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96791
96743
|
});
|
|
96792
96744
|
return checkParentPaths(src, srcStat, destParent);
|
|
96793
96745
|
}
|
|
96794
|
-
const normalizePathToArray = (path$
|
|
96746
|
+
const normalizePathToArray = (path$47) => resolve$10(path$47).split(sep$2).filter(Boolean);
|
|
96795
96747
|
function isSrcSubdir(src, dest) {
|
|
96796
96748
|
const srcArr = normalizePathToArray(src);
|
|
96797
96749
|
const destArr = normalizePathToArray(dest);
|
|
@@ -96893,8 +96845,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96893
96845
|
const dir = await readdir$7(src);
|
|
96894
96846
|
for (let i = 0; i < dir.length; i++) {
|
|
96895
96847
|
const item = dir[i];
|
|
96896
|
-
const srcItem = join$
|
|
96897
|
-
const destItem = join$
|
|
96848
|
+
const srcItem = join$10(src, item);
|
|
96849
|
+
const destItem = join$10(dest, item);
|
|
96898
96850
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
96899
96851
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
96900
96852
|
}
|
|
@@ -96958,13 +96910,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96958
96910
|
//#endregion
|
|
96959
96911
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
96960
96912
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96961
|
-
const { join: join$
|
|
96913
|
+
const { join: join$9, sep: sep$1 } = require("path");
|
|
96962
96914
|
const getOptions = require_get_options();
|
|
96963
|
-
const { mkdir: mkdir$6, mkdtemp, rm: rm$
|
|
96915
|
+
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
96964
96916
|
const withTempDir = async (root, fn, opts) => {
|
|
96965
96917
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
96966
96918
|
await mkdir$6(root, { recursive: true });
|
|
96967
|
-
const target = await mkdtemp(join$
|
|
96919
|
+
const target = await mkdtemp(join$9(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
96968
96920
|
let err;
|
|
96969
96921
|
let result;
|
|
96970
96922
|
try {
|
|
@@ -96973,7 +96925,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
96973
96925
|
err = _err;
|
|
96974
96926
|
}
|
|
96975
96927
|
try {
|
|
96976
|
-
await rm$
|
|
96928
|
+
await rm$8(target, {
|
|
96977
96929
|
force: true,
|
|
96978
96930
|
recursive: true
|
|
96979
96931
|
});
|
|
@@ -96987,10 +96939,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
96987
96939
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
96988
96940
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96989
96941
|
const { readdir: readdir$6 } = require("fs/promises");
|
|
96990
|
-
const { join: join$
|
|
96942
|
+
const { join: join$8 } = require("path");
|
|
96991
96943
|
const readdirScoped = async (dir) => {
|
|
96992
96944
|
const results = [];
|
|
96993
|
-
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$
|
|
96945
|
+
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$8(dir, item))) results.push(join$8(item, scopedItem));
|
|
96994
96946
|
else results.push(item);
|
|
96995
96947
|
return results;
|
|
96996
96948
|
};
|
|
@@ -96999,11 +96951,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
96999
96951
|
//#endregion
|
|
97000
96952
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
97001
96953
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
97002
|
-
const { dirname: dirname$7, join: join$
|
|
96954
|
+
const { dirname: dirname$7, join: join$7, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
97003
96955
|
const fs$12 = require("fs/promises");
|
|
97004
|
-
const pathExists = async (path$
|
|
96956
|
+
const pathExists = async (path$46) => {
|
|
97005
96957
|
try {
|
|
97006
|
-
await fs$12.access(path$
|
|
96958
|
+
await fs$12.access(path$46);
|
|
97007
96959
|
return true;
|
|
97008
96960
|
} catch (er) {
|
|
97009
96961
|
return er.code !== "ENOENT";
|
|
@@ -97024,7 +96976,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
97024
96976
|
const sourceStat = await fs$12.lstat(source);
|
|
97025
96977
|
if (sourceStat.isDirectory()) {
|
|
97026
96978
|
const files = await fs$12.readdir(source);
|
|
97027
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
96979
|
+
await Promise.all(files.map((file) => moveFile(join$7(source, file), join$7(destination, file), options, false, symlinks)));
|
|
97028
96980
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
97029
96981
|
source,
|
|
97030
96982
|
destination
|
|
@@ -97200,7 +97152,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
97200
97152
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
97201
97153
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
97202
97154
|
const crypto$1 = require("crypto");
|
|
97203
|
-
const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$5, rm: rm$
|
|
97155
|
+
const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$5, rm: rm$7, writeFile: writeFile$2 } = require("fs/promises");
|
|
97204
97156
|
const { Minipass } = require_commonjs$10();
|
|
97205
97157
|
const path$14 = require("path");
|
|
97206
97158
|
const ssri = require_lib$17();
|
|
@@ -97241,7 +97193,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
97241
97193
|
};
|
|
97242
97194
|
};
|
|
97243
97195
|
const teardown = async (tmp) => {
|
|
97244
|
-
if (!tmp.moved) return rm$
|
|
97196
|
+
if (!tmp.moved) return rm$7(tmp.target, {
|
|
97245
97197
|
recursive: true,
|
|
97246
97198
|
force: true
|
|
97247
97199
|
});
|
|
@@ -97297,7 +97249,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
97297
97249
|
module.exports.delete = del;
|
|
97298
97250
|
function del(cache, key, opts = {}) {
|
|
97299
97251
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
97300
|
-
return rm$
|
|
97252
|
+
return rm$7(bucketPath(cache, key), {
|
|
97301
97253
|
recursive: true,
|
|
97302
97254
|
force: true
|
|
97303
97255
|
});
|
|
@@ -102059,7 +102011,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
102059
102011
|
const { glob } = require_index_min$1();
|
|
102060
102012
|
const path$12 = require("path");
|
|
102061
102013
|
const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
|
|
102062
|
-
module.exports = (path$
|
|
102014
|
+
module.exports = (path$45, options) => glob(globify(path$45), options);
|
|
102063
102015
|
}));
|
|
102064
102016
|
//#endregion
|
|
102065
102017
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -102082,7 +102034,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
102082
102034
|
//#endregion
|
|
102083
102035
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
102084
102036
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102085
|
-
const { rm: rm$
|
|
102037
|
+
const { rm: rm$6 } = require("fs/promises");
|
|
102086
102038
|
const glob = require_glob();
|
|
102087
102039
|
const index = require_entry_index();
|
|
102088
102040
|
const memo = require_memoization();
|
|
@@ -102106,7 +102058,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
102106
102058
|
silent: true,
|
|
102107
102059
|
nosort: true
|
|
102108
102060
|
});
|
|
102109
|
-
return Promise.all(paths.map((p) => rm$
|
|
102061
|
+
return Promise.all(paths.map((p) => rm$6(p, {
|
|
102110
102062
|
recursive: true,
|
|
102111
102063
|
force: true
|
|
102112
102064
|
})));
|
|
@@ -102115,7 +102067,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
102115
102067
|
//#endregion
|
|
102116
102068
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
102117
102069
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102118
|
-
const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$
|
|
102070
|
+
const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$1 } = require("fs/promises");
|
|
102119
102071
|
const contentPath = require_path();
|
|
102120
102072
|
const fsm = require_lib$15();
|
|
102121
102073
|
const glob = require_glob();
|
|
@@ -102212,7 +102164,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
102212
102164
|
} else {
|
|
102213
102165
|
stats.reclaimedCount++;
|
|
102214
102166
|
const s = await stat$4(f);
|
|
102215
|
-
await rm$
|
|
102167
|
+
await rm$5(f, {
|
|
102216
102168
|
recursive: true,
|
|
102217
102169
|
force: true
|
|
102218
102170
|
});
|
|
@@ -102235,7 +102187,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
102235
102187
|
valid: false
|
|
102236
102188
|
};
|
|
102237
102189
|
if (err.code !== "EINTEGRITY") throw err;
|
|
102238
|
-
await rm$
|
|
102190
|
+
await rm$5(filepath, {
|
|
102239
102191
|
recursive: true,
|
|
102240
102192
|
force: true
|
|
102241
102193
|
});
|
|
@@ -102296,7 +102248,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
102296
102248
|
}
|
|
102297
102249
|
function cleanTmp(cache, opts) {
|
|
102298
102250
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
102299
|
-
return rm$
|
|
102251
|
+
return rm$5(path$10.join(cache, "tmp"), {
|
|
102300
102252
|
recursive: true,
|
|
102301
102253
|
force: true
|
|
102302
102254
|
});
|
|
@@ -102857,14 +102809,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102857
102809
|
const { readFile: readFile$5, readdir: readdir$4, stat: stat$3 } = require("fs/promises");
|
|
102858
102810
|
const { resolve: resolve$8, basename: basename$3, dirname: dirname$6 } = require("path");
|
|
102859
102811
|
const normalizePackageBin = require_lib$21();
|
|
102860
|
-
const readPackage = ({ path: path$
|
|
102812
|
+
const readPackage = ({ path: path$41, packageJsonCache }) => packageJsonCache.has(path$41) ? Promise.resolve(packageJsonCache.get(path$41)) : readFile$5(path$41).then((json) => {
|
|
102861
102813
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
102862
|
-
packageJsonCache.set(path$
|
|
102814
|
+
packageJsonCache.set(path$41, pkg);
|
|
102863
102815
|
return pkg;
|
|
102864
102816
|
}).catch(() => null);
|
|
102865
102817
|
const normalized = Symbol("package data has been normalized");
|
|
102866
|
-
const rpj = ({ path: path$
|
|
102867
|
-
path: path$
|
|
102818
|
+
const rpj = ({ path: path$42, packageJsonCache }) => readPackage({
|
|
102819
|
+
path: path$42,
|
|
102868
102820
|
packageJsonCache
|
|
102869
102821
|
}).then((pkg) => {
|
|
102870
102822
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -102878,14 +102830,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102878
102830
|
pkg[normalized] = true;
|
|
102879
102831
|
return pkg;
|
|
102880
102832
|
});
|
|
102881
|
-
const pkgContents = async ({ path: path$
|
|
102833
|
+
const pkgContents = async ({ path: path$43, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
102882
102834
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
102883
102835
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
102884
102836
|
if (pkg === true) return rpj({
|
|
102885
|
-
path: path$
|
|
102837
|
+
path: path$43 + "/package.json",
|
|
102886
102838
|
packageJsonCache
|
|
102887
102839
|
}).then((p) => pkgContents({
|
|
102888
|
-
path: path$
|
|
102840
|
+
path: path$43,
|
|
102889
102841
|
depth,
|
|
102890
102842
|
currentDepth,
|
|
102891
102843
|
pkg: p,
|
|
@@ -102894,7 +102846,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102894
102846
|
}));
|
|
102895
102847
|
if (pkg) {
|
|
102896
102848
|
if (pkg.bin) {
|
|
102897
|
-
const dir = dirname$6(path$
|
|
102849
|
+
const dir = dirname$6(path$43);
|
|
102898
102850
|
const scope = basename$3(dir);
|
|
102899
102851
|
const nm = /^@.+/.test(scope) ? dirname$6(dir) : dir;
|
|
102900
102852
|
const binFiles = [];
|
|
@@ -102906,21 +102858,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102906
102858
|
}
|
|
102907
102859
|
}
|
|
102908
102860
|
if (currentDepth >= depth) {
|
|
102909
|
-
result.add(path$
|
|
102861
|
+
result.add(path$43);
|
|
102910
102862
|
return result;
|
|
102911
102863
|
}
|
|
102912
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$4(path$
|
|
102913
|
-
path: path$
|
|
102864
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$4(path$43, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
102865
|
+
path: path$43,
|
|
102914
102866
|
packageJsonCache
|
|
102915
102867
|
}) : null]).catch(() => []);
|
|
102916
102868
|
if (!dirEntries) return result;
|
|
102917
102869
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
102918
|
-
result.add(path$
|
|
102870
|
+
result.add(path$43);
|
|
102919
102871
|
return result;
|
|
102920
102872
|
}
|
|
102921
102873
|
const recursePromises = [];
|
|
102922
102874
|
for (const entry of dirEntries) {
|
|
102923
|
-
const p = resolve$8(path$
|
|
102875
|
+
const p = resolve$8(path$43, entry.name);
|
|
102924
102876
|
if (entry.isDirectory() === false) {
|
|
102925
102877
|
result.add(p);
|
|
102926
102878
|
continue;
|
|
@@ -102939,7 +102891,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102939
102891
|
}
|
|
102940
102892
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
102941
102893
|
return pkgContents({
|
|
102942
|
-
path: resolve$8(path$
|
|
102894
|
+
path: resolve$8(path$43, "node_modules", dep),
|
|
102943
102895
|
packageJsonCache,
|
|
102944
102896
|
pkg: true,
|
|
102945
102897
|
depth,
|
|
@@ -102950,8 +102902,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102950
102902
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
102951
102903
|
return result;
|
|
102952
102904
|
};
|
|
102953
|
-
module.exports = ({ path: path$
|
|
102954
|
-
path: resolve$8(path$
|
|
102905
|
+
module.exports = ({ path: path$44, ...opts }) => pkgContents({
|
|
102906
|
+
path: resolve$8(path$44),
|
|
102955
102907
|
...opts,
|
|
102956
102908
|
pkg: true
|
|
102957
102909
|
}).then((results) => [...results]);
|
|
@@ -108387,7 +108339,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108387
108339
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
108388
108340
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
108389
108341
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
108390
|
-
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$
|
|
108342
|
+
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$6, relative, resolve: resolve$6, sep } = require("path");
|
|
108391
108343
|
const { log } = require_lib$29();
|
|
108392
108344
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
108393
108345
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -108417,10 +108369,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108417
108369
|
"/archived-packages/**"
|
|
108418
108370
|
];
|
|
108419
108371
|
const strictDefaults = ["/.git"];
|
|
108420
|
-
const normalizePath = (path$
|
|
108372
|
+
const normalizePath = (path$38) => path$38.split("\\").join("/");
|
|
108421
108373
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
108422
108374
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
108423
|
-
const ignoreContent = readFile$4(join$
|
|
108375
|
+
const ignoreContent = readFile$4(join$6(root, file), { encoding: "utf8" });
|
|
108424
108376
|
result.push(ignoreContent);
|
|
108425
108377
|
break;
|
|
108426
108378
|
} catch (err) {
|
|
@@ -108429,8 +108381,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108429
108381
|
}
|
|
108430
108382
|
if (!rel) return result;
|
|
108431
108383
|
const firstRel = rel.split(sep, 1)[0];
|
|
108432
|
-
const newRoot = join$
|
|
108433
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
108384
|
+
const newRoot = join$6(root, firstRel);
|
|
108385
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$6(root, rel)), result);
|
|
108434
108386
|
};
|
|
108435
108387
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
108436
108388
|
constructor(tree, opts) {
|
|
@@ -108454,14 +108406,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108454
108406
|
this.requiredFiles = options.requiredFiles || [];
|
|
108455
108407
|
const additionalDefaults = [];
|
|
108456
108408
|
if (options.prefix && options.workspaces) {
|
|
108457
|
-
const path$
|
|
108409
|
+
const path$39 = normalizePath(options.path);
|
|
108458
108410
|
const prefix = normalizePath(options.prefix);
|
|
108459
108411
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
108460
108412
|
// istanbul ignore else - this does nothing unless we need it to
|
|
108461
|
-
if (path$
|
|
108413
|
+
if (path$39 !== prefix && workspaces.includes(path$39)) {
|
|
108462
108414
|
const relpath = relative(options.prefix, dirname$5(options.path));
|
|
108463
108415
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
108464
|
-
} else if (path$
|
|
108416
|
+
} else if (path$39 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
108465
108417
|
}
|
|
108466
108418
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
108467
108419
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -108497,7 +108449,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108497
108449
|
let ignoreFiles = null;
|
|
108498
108450
|
if (this.tree.workspaces) {
|
|
108499
108451
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
108500
|
-
const entryPath = join$
|
|
108452
|
+
const entryPath = join$6(this.path, entry).replace(/\\/g, "/");
|
|
108501
108453
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
108502
108454
|
defaultRules,
|
|
108503
108455
|
"package.json",
|
|
@@ -108557,7 +108509,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108557
108509
|
if (file.endsWith("/*")) file += "*";
|
|
108558
108510
|
const inverse = `!${file}`;
|
|
108559
108511
|
try {
|
|
108560
|
-
const stat = lstat$1(join$
|
|
108512
|
+
const stat = lstat$1(join$6(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
108561
108513
|
if (stat.isFile()) {
|
|
108562
108514
|
strict.unshift(inverse);
|
|
108563
108515
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -108592,10 +108544,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108592
108544
|
if (!edge || edge.peer || edge.dev) continue;
|
|
108593
108545
|
const node = this.tree.edgesOut.get(dep).to;
|
|
108594
108546
|
if (!node) continue;
|
|
108595
|
-
const path$
|
|
108547
|
+
const path$40 = node.path;
|
|
108596
108548
|
const tree = node.target;
|
|
108597
108549
|
const walkerOpts = {
|
|
108598
|
-
path: path$
|
|
108550
|
+
path: path$40,
|
|
108599
108551
|
isPackage: true,
|
|
108600
108552
|
ignoreFiles: [],
|
|
108601
108553
|
seen: this.seen
|
|
@@ -108614,7 +108566,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108614
108566
|
walker.start();
|
|
108615
108567
|
});
|
|
108616
108568
|
const relativeFrom = relative(this.root, walker.path);
|
|
108617
|
-
for (const file of bundled) this.result.add(join$
|
|
108569
|
+
for (const file of bundled) this.result.add(join$6(relativeFrom, file).replace(/\\/g, "/"));
|
|
108618
108570
|
}
|
|
108619
108571
|
}
|
|
108620
108572
|
};
|
|
@@ -108672,7 +108624,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
108672
108624
|
const { resolve: resolve$4 } = require("path");
|
|
108673
108625
|
let npm_config_node_gyp;
|
|
108674
108626
|
const makeSpawnArgs = (options) => {
|
|
108675
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
108627
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$37, scriptShell = true, stdio, stdioString } = options;
|
|
108676
108628
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
108677
108629
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
108678
108630
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -108680,17 +108632,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
108680
108632
|
cmd,
|
|
108681
108633
|
args,
|
|
108682
108634
|
{
|
|
108683
|
-
env: setPATH(path$
|
|
108635
|
+
env: setPATH(path$37, binPaths, {
|
|
108684
108636
|
...process.env,
|
|
108685
108637
|
...env,
|
|
108686
|
-
npm_package_json: resolve$4(path$
|
|
108638
|
+
npm_package_json: resolve$4(path$37, "package.json"),
|
|
108687
108639
|
npm_lifecycle_event: event,
|
|
108688
108640
|
npm_lifecycle_script: cmd,
|
|
108689
108641
|
npm_config_node_gyp
|
|
108690
108642
|
}),
|
|
108691
108643
|
stdioString,
|
|
108692
108644
|
stdio,
|
|
108693
|
-
cwd: path$
|
|
108645
|
+
cwd: path$37,
|
|
108694
108646
|
shell: scriptShell
|
|
108695
108647
|
}
|
|
108696
108648
|
];
|
|
@@ -138008,7 +137960,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
138008
137960
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
138009
137961
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
138010
137962
|
const { basename: basename$1, dirname: dirname$3 } = require("node:path");
|
|
138011
|
-
const { rm: rm$
|
|
137963
|
+
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
138012
137964
|
const PackageJson = require_lib$18();
|
|
138013
137965
|
const cacache = require_lib$14();
|
|
138014
137966
|
const fsm = require_lib$13();
|
|
@@ -138185,7 +138137,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
138185
138137
|
return getContents({
|
|
138186
138138
|
path,
|
|
138187
138139
|
depth: 1
|
|
138188
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
138140
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
|
|
138189
138141
|
recursive: true,
|
|
138190
138142
|
force: true
|
|
138191
138143
|
}))));
|
|
@@ -145982,9 +145934,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
145982
145934
|
* @param {string} path
|
|
145983
145935
|
* @return {boolean|string}
|
|
145984
145936
|
*/
|
|
145985
|
-
function lookup(path$
|
|
145986
|
-
if (!path$
|
|
145987
|
-
var extension = extname("x." + path$
|
|
145937
|
+
function lookup(path$36) {
|
|
145938
|
+
if (!path$36 || typeof path$36 !== "string") return false;
|
|
145939
|
+
var extension = extname("x." + path$36).toLowerCase().substr(1);
|
|
145988
145940
|
if (!extension) return false;
|
|
145989
145941
|
return exports.types[extension] || false;
|
|
145990
145942
|
}
|
|
@@ -147090,7 +147042,7 @@ require_semver();
|
|
|
147090
147042
|
require_lib();
|
|
147091
147043
|
//#endregion
|
|
147092
147044
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
147093
|
-
const { join: join$
|
|
147045
|
+
const { join: join$4 } = node_path.default;
|
|
147094
147046
|
//#endregion
|
|
147095
147047
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
147096
147048
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -147117,13 +147069,13 @@ const createActionRunner = (runner) => runner;
|
|
|
147117
147069
|
const minifyCode = createAction({
|
|
147118
147070
|
id: "minify:code",
|
|
147119
147071
|
name: "Minify code",
|
|
147120
|
-
description: "",
|
|
147072
|
+
description: "Compress and optimize JavaScript code files inside a folder.",
|
|
147121
147073
|
icon: "",
|
|
147122
|
-
displayString: "`
|
|
147074
|
+
displayString: "`Optimize code in ${fmt.param(params['input-folder'], 'primary', 'No folder selected')}`",
|
|
147123
147075
|
meta: {},
|
|
147124
147076
|
params: { "input-folder": createPathParam("", {
|
|
147125
147077
|
required: true,
|
|
147126
|
-
label: "Folder to
|
|
147078
|
+
label: "Folder to optimize",
|
|
147127
147079
|
control: {
|
|
147128
147080
|
type: "path",
|
|
147129
147081
|
options: { properties: ["openDirectory"] }
|
|
@@ -147158,13 +147110,13 @@ const minifyCodeRunner = createActionRunner(async ({ log, inputs, cwd, abortSign
|
|
|
147158
147110
|
const minifyImages = createAction({
|
|
147159
147111
|
id: "minify:images",
|
|
147160
147112
|
name: "Minify images",
|
|
147161
|
-
description: "",
|
|
147113
|
+
description: "Optimize and reduce the file size of images in a folder.",
|
|
147162
147114
|
icon: "",
|
|
147163
|
-
displayString: "`
|
|
147115
|
+
displayString: "`Optimize images in ${fmt.param(params['input-folder'], 'primary', 'No folder selected')}`",
|
|
147164
147116
|
meta: {},
|
|
147165
147117
|
params: { "input-folder": createPathParam("", {
|
|
147166
147118
|
required: true,
|
|
147167
|
-
label: "Folder to
|
|
147119
|
+
label: "Folder to optimize",
|
|
147168
147120
|
control: {
|
|
147169
147121
|
type: "path",
|
|
147170
147122
|
options: { properties: ["openDirectory"] }
|