@pipelab/plugin-system 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 +434 -482
- package/dist/index.mjs +48 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2085,7 +2085,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2085
2085
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2086
2086
|
locale: "en-US",
|
|
2087
2087
|
theme: "light",
|
|
2088
|
-
version: "
|
|
2088
|
+
version: "7.0.0",
|
|
2089
2089
|
autosave: true,
|
|
2090
2090
|
agents: [],
|
|
2091
2091
|
tours: {
|
|
@@ -2098,11 +2098,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2098
2098
|
completed: false
|
|
2099
2099
|
}
|
|
2100
2100
|
},
|
|
2101
|
-
buildHistory: { retentionPolicy: {
|
|
2102
|
-
enabled: false,
|
|
2103
|
-
maxEntries: 50,
|
|
2104
|
-
maxAge: 30
|
|
2105
|
-
} },
|
|
2106
2101
|
plugins: DEFAULT_PLUGINS,
|
|
2107
2102
|
isInternalMigrationBannerClosed: false
|
|
2108
2103
|
});
|
|
@@ -2159,18 +2154,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2159
2154
|
return {
|
|
2160
2155
|
...rest,
|
|
2161
2156
|
agents: [],
|
|
2162
|
-
buildHistory: { retentionPolicy: {
|
|
2163
|
-
enabled: false,
|
|
2164
|
-
maxEntries: 50,
|
|
2165
|
-
maxAge: 30
|
|
2166
|
-
} },
|
|
2167
2157
|
plugins: DEFAULT_PLUGINS,
|
|
2168
2158
|
isInternalMigrationBannerClosed: false
|
|
2169
2159
|
};
|
|
2170
2160
|
}
|
|
2171
2161
|
}),
|
|
2172
2162
|
createMigration({
|
|
2173
|
-
version: "
|
|
2163
|
+
version: "7.0.0",
|
|
2174
2164
|
up: finalVersion
|
|
2175
2165
|
})
|
|
2176
2166
|
]
|
|
@@ -2189,7 +2179,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2189
2179
|
});
|
|
2190
2180
|
const fileRepoMigratorInternal = createMigrator();
|
|
2191
2181
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2192
|
-
version: "
|
|
2182
|
+
version: "3.0.0",
|
|
2193
2183
|
projects: [{
|
|
2194
2184
|
id: "main",
|
|
2195
2185
|
name: "Default project",
|
|
@@ -2199,30 +2189,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2199
2189
|
});
|
|
2200
2190
|
fileRepoMigratorInternal.createMigrations({
|
|
2201
2191
|
defaultValue: defaultFileRepo,
|
|
2202
|
-
migrations: [
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2192
|
+
migrations: [
|
|
2193
|
+
createMigration({
|
|
2194
|
+
version: "1.0.0",
|
|
2195
|
+
up: (state) => {
|
|
2196
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2197
|
+
return {
|
|
2198
|
+
...file,
|
|
2199
|
+
id,
|
|
2200
|
+
project: "main"
|
|
2201
|
+
};
|
|
2202
|
+
});
|
|
2206
2203
|
return {
|
|
2207
|
-
...
|
|
2208
|
-
|
|
2209
|
-
|
|
2204
|
+
...state,
|
|
2205
|
+
projects: [{
|
|
2206
|
+
id: "main",
|
|
2207
|
+
name: "Default project",
|
|
2208
|
+
description: "The initial default project"
|
|
2209
|
+
}],
|
|
2210
|
+
pipelines
|
|
2210
2211
|
};
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
up: finalVersion
|
|
2225
|
-
})]
|
|
2212
|
+
}
|
|
2213
|
+
}),
|
|
2214
|
+
createMigration({
|
|
2215
|
+
version: "2.0.0",
|
|
2216
|
+
up: (state) => {
|
|
2217
|
+
return { ...state };
|
|
2218
|
+
}
|
|
2219
|
+
}),
|
|
2220
|
+
createMigration({
|
|
2221
|
+
version: "3.0.0",
|
|
2222
|
+
up: finalVersion
|
|
2223
|
+
})
|
|
2224
|
+
]
|
|
2226
2225
|
});
|
|
2227
2226
|
const savedFileMigratorInternal = createMigrator();
|
|
2228
2227
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2383,14 +2382,19 @@ object({
|
|
|
2383
2382
|
version: literal("1.0.0"),
|
|
2384
2383
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2385
2384
|
});
|
|
2386
|
-
const FileRepoProjectValidatorV2
|
|
2385
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2387
2386
|
id: string(),
|
|
2388
2387
|
name: string(),
|
|
2389
2388
|
description: string()
|
|
2390
2389
|
});
|
|
2391
2390
|
object({
|
|
2392
2391
|
version: literal("2.0.0"),
|
|
2393
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2392
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2393
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2394
|
+
});
|
|
2395
|
+
object({
|
|
2396
|
+
version: literal("3.0.0"),
|
|
2397
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2394
2398
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2395
2399
|
});
|
|
2396
2400
|
object({
|
|
@@ -2499,44 +2503,6 @@ object({
|
|
|
2499
2503
|
name: string(),
|
|
2500
2504
|
url: string()
|
|
2501
2505
|
})),
|
|
2502
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2503
|
-
enabled: boolean(),
|
|
2504
|
-
maxEntries: number(),
|
|
2505
|
-
maxAge: number()
|
|
2506
|
-
}) })
|
|
2507
|
-
});
|
|
2508
|
-
object({
|
|
2509
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2510
|
-
version: literal("8.0.0"),
|
|
2511
|
-
locale: union([
|
|
2512
|
-
literal("en-US"),
|
|
2513
|
-
literal("fr-FR"),
|
|
2514
|
-
literal("pt-BR"),
|
|
2515
|
-
literal("zh-CN"),
|
|
2516
|
-
literal("es-ES"),
|
|
2517
|
-
literal("de-DE")
|
|
2518
|
-
]),
|
|
2519
|
-
tours: object({
|
|
2520
|
-
dashboard: object({
|
|
2521
|
-
step: number(),
|
|
2522
|
-
completed: boolean()
|
|
2523
|
-
}),
|
|
2524
|
-
editor: object({
|
|
2525
|
-
step: number(),
|
|
2526
|
-
completed: boolean()
|
|
2527
|
-
})
|
|
2528
|
-
}),
|
|
2529
|
-
autosave: boolean(),
|
|
2530
|
-
agents: array(object({
|
|
2531
|
-
id: string(),
|
|
2532
|
-
name: string(),
|
|
2533
|
-
url: string()
|
|
2534
|
-
})),
|
|
2535
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2536
|
-
enabled: boolean(),
|
|
2537
|
-
maxEntries: number(),
|
|
2538
|
-
maxAge: number()
|
|
2539
|
-
}) }),
|
|
2540
2506
|
plugins: array(object({
|
|
2541
2507
|
name: string(),
|
|
2542
2508
|
enabled: boolean(),
|
|
@@ -45410,20 +45376,6 @@ var WebSocketError = class extends Error {
|
|
|
45410
45376
|
const isWebSocketRequestMessage = (message) => {
|
|
45411
45377
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45412
45378
|
};
|
|
45413
|
-
object({
|
|
45414
|
-
version: literal("1.0.0"),
|
|
45415
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45416
|
-
});
|
|
45417
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45418
|
-
id: string(),
|
|
45419
|
-
name: string(),
|
|
45420
|
-
description: string()
|
|
45421
|
-
});
|
|
45422
|
-
object({
|
|
45423
|
-
version: literal("2.0.0"),
|
|
45424
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45425
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45426
|
-
});
|
|
45427
45379
|
//#endregion
|
|
45428
45380
|
//#region ../../packages/constants/src/index.ts
|
|
45429
45381
|
const websocketPort = 33753;
|
|
@@ -50750,10 +50702,10 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
50750
50702
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
50751
50703
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
50752
50704
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
50753
|
-
const path$
|
|
50705
|
+
const path$85 = split[0];
|
|
50754
50706
|
const prefix = split[1];
|
|
50755
50707
|
this.needPax = split[2];
|
|
50756
|
-
this.needPax = encString(buf, off, 100, path$
|
|
50708
|
+
this.needPax = encString(buf, off, 100, path$85) || this.needPax;
|
|
50757
50709
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
50758
50710
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
50759
50711
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -50856,7 +50808,7 @@ var require_header = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
50856
50808
|
//#region ../../node_modules/tar/lib/pax.js
|
|
50857
50809
|
var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50858
50810
|
const Header = require_header();
|
|
50859
|
-
const path$
|
|
50811
|
+
const path$34 = require("path");
|
|
50860
50812
|
var Pax = class {
|
|
50861
50813
|
constructor(obj, global) {
|
|
50862
50814
|
this.atime = obj.atime || null;
|
|
@@ -50884,7 +50836,7 @@ var require_pax = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
50884
50836
|
const buf = Buffer.allocUnsafe(bufLen);
|
|
50885
50837
|
for (let i = 0; i < 512; i++) buf[i] = 0;
|
|
50886
50838
|
new Header({
|
|
50887
|
-
path: ("PaxHeader/" + path$
|
|
50839
|
+
path: ("PaxHeader/" + path$34.basename(this.path)).slice(0, 99),
|
|
50888
50840
|
mode: this.mode || 420,
|
|
50889
50841
|
uid: this.uid || null,
|
|
50890
50842
|
gid: this.gid || null,
|
|
@@ -50987,16 +50939,16 @@ var require_winchars = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
50987
50939
|
//#region ../../node_modules/tar/lib/strip-absolute-path.js
|
|
50988
50940
|
var require_strip_absolute_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50989
50941
|
const { isAbsolute: isAbsolute$3, parse: parse$3 } = require("path").win32;
|
|
50990
|
-
module.exports = (path$
|
|
50942
|
+
module.exports = (path$84) => {
|
|
50991
50943
|
let r = "";
|
|
50992
|
-
let parsed = parse$3(path$
|
|
50993
|
-
while (isAbsolute$3(path$
|
|
50994
|
-
const root = path$
|
|
50995
|
-
path$
|
|
50944
|
+
let parsed = parse$3(path$84);
|
|
50945
|
+
while (isAbsolute$3(path$84) || parsed.root) {
|
|
50946
|
+
const root = path$84.charAt(0) === "/" && path$84.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
50947
|
+
path$84 = path$84.slice(root.length);
|
|
50996
50948
|
r += root;
|
|
50997
|
-
parsed = parse$3(path$
|
|
50949
|
+
parsed = parse$3(path$84);
|
|
50998
50950
|
}
|
|
50999
|
-
return [r, path$
|
|
50951
|
+
return [r, path$84];
|
|
51000
50952
|
};
|
|
51001
50953
|
}));
|
|
51002
50954
|
//#endregion
|
|
@@ -51019,14 +50971,14 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51019
50971
|
const { Minipass } = require_minipass$4();
|
|
51020
50972
|
const Pax = require_pax();
|
|
51021
50973
|
const Header = require_header();
|
|
51022
|
-
const fs$
|
|
51023
|
-
const path$
|
|
50974
|
+
const fs$34 = require("fs");
|
|
50975
|
+
const path$33 = require("path");
|
|
51024
50976
|
const normPath = require_normalize_windows_path();
|
|
51025
50977
|
const stripSlash = require_strip_trailing_slashes();
|
|
51026
|
-
const prefixPath = (path$
|
|
51027
|
-
if (!prefix) return normPath(path$
|
|
51028
|
-
path$
|
|
51029
|
-
return stripSlash(prefix) + "/" + path$
|
|
50978
|
+
const prefixPath = (path$81, prefix) => {
|
|
50979
|
+
if (!prefix) return normPath(path$81);
|
|
50980
|
+
path$81 = normPath(path$81).replace(/^\.(\/|$)/, "");
|
|
50981
|
+
return stripSlash(prefix) + "/" + path$81;
|
|
51030
50982
|
};
|
|
51031
50983
|
const maxReadSize = 16 * 1024 * 1024;
|
|
51032
50984
|
const PROCESS = Symbol("process");
|
|
@@ -51093,7 +51045,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51093
51045
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
51094
51046
|
p = p.replace(/\\/g, "/");
|
|
51095
51047
|
}
|
|
51096
|
-
this.absolute = normPath(opt.absolute || path$
|
|
51048
|
+
this.absolute = normPath(opt.absolute || path$33.resolve(this.cwd, p));
|
|
51097
51049
|
if (this.path === "") this.path = "./";
|
|
51098
51050
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
51099
51051
|
entry: this,
|
|
@@ -51107,7 +51059,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51107
51059
|
return super.emit(ev, ...data);
|
|
51108
51060
|
}
|
|
51109
51061
|
[LSTAT]() {
|
|
51110
|
-
fs$
|
|
51062
|
+
fs$34.lstat(this.absolute, (er, stat) => {
|
|
51111
51063
|
if (er) return this.emit("error", er);
|
|
51112
51064
|
this[ONLSTAT](stat);
|
|
51113
51065
|
});
|
|
@@ -51131,8 +51083,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51131
51083
|
[MODE](mode) {
|
|
51132
51084
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
51133
51085
|
}
|
|
51134
|
-
[PREFIX](path$
|
|
51135
|
-
return prefixPath(path$
|
|
51086
|
+
[PREFIX](path$82) {
|
|
51087
|
+
return prefixPath(path$82, this.prefix);
|
|
51136
51088
|
}
|
|
51137
51089
|
[HEADER]() {
|
|
51138
51090
|
if (this.type === "Directory" && this.portable) this.noMtime = true;
|
|
@@ -51172,7 +51124,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51172
51124
|
this.end();
|
|
51173
51125
|
}
|
|
51174
51126
|
[SYMLINK]() {
|
|
51175
|
-
fs$
|
|
51127
|
+
fs$34.readlink(this.absolute, (er, linkpath) => {
|
|
51176
51128
|
if (er) return this.emit("error", er);
|
|
51177
51129
|
this[ONREADLINK](linkpath);
|
|
51178
51130
|
});
|
|
@@ -51184,7 +51136,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51184
51136
|
}
|
|
51185
51137
|
[HARDLINK](linkpath) {
|
|
51186
51138
|
this.type = "Link";
|
|
51187
|
-
this.linkpath = normPath(path$
|
|
51139
|
+
this.linkpath = normPath(path$33.relative(this.cwd, linkpath));
|
|
51188
51140
|
this.stat.size = 0;
|
|
51189
51141
|
this[HEADER]();
|
|
51190
51142
|
this.end();
|
|
@@ -51203,7 +51155,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51203
51155
|
this[OPENFILE]();
|
|
51204
51156
|
}
|
|
51205
51157
|
[OPENFILE]() {
|
|
51206
|
-
fs$
|
|
51158
|
+
fs$34.open(this.absolute, "r", (er, fd) => {
|
|
51207
51159
|
if (er) return this.emit("error", er);
|
|
51208
51160
|
this[ONOPENFILE](fd);
|
|
51209
51161
|
});
|
|
@@ -51223,13 +51175,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51223
51175
|
}
|
|
51224
51176
|
[READ]() {
|
|
51225
51177
|
const { fd, buf, offset, length, pos } = this;
|
|
51226
|
-
fs$
|
|
51178
|
+
fs$34.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
51227
51179
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
51228
51180
|
this[ONREAD](bytesRead);
|
|
51229
51181
|
});
|
|
51230
51182
|
}
|
|
51231
51183
|
[CLOSE](cb) {
|
|
51232
|
-
fs$
|
|
51184
|
+
fs$34.close(this.fd, cb);
|
|
51233
51185
|
}
|
|
51234
51186
|
[ONREAD](bytesRead) {
|
|
51235
51187
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -51285,19 +51237,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51285
51237
|
});
|
|
51286
51238
|
var WriteEntrySync = class extends WriteEntry {
|
|
51287
51239
|
[LSTAT]() {
|
|
51288
|
-
this[ONLSTAT](fs$
|
|
51240
|
+
this[ONLSTAT](fs$34.lstatSync(this.absolute));
|
|
51289
51241
|
}
|
|
51290
51242
|
[SYMLINK]() {
|
|
51291
|
-
this[ONREADLINK](fs$
|
|
51243
|
+
this[ONREADLINK](fs$34.readlinkSync(this.absolute));
|
|
51292
51244
|
}
|
|
51293
51245
|
[OPENFILE]() {
|
|
51294
|
-
this[ONOPENFILE](fs$
|
|
51246
|
+
this[ONOPENFILE](fs$34.openSync(this.absolute, "r"));
|
|
51295
51247
|
}
|
|
51296
51248
|
[READ]() {
|
|
51297
51249
|
let threw = true;
|
|
51298
51250
|
try {
|
|
51299
51251
|
const { fd, buf, offset, length, pos } = this;
|
|
51300
|
-
const bytesRead = fs$
|
|
51252
|
+
const bytesRead = fs$34.readSync(fd, buf, offset, length, pos);
|
|
51301
51253
|
this[ONREAD](bytesRead);
|
|
51302
51254
|
threw = false;
|
|
51303
51255
|
} finally {
|
|
@@ -51310,7 +51262,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51310
51262
|
cb();
|
|
51311
51263
|
}
|
|
51312
51264
|
[CLOSE](cb) {
|
|
51313
|
-
fs$
|
|
51265
|
+
fs$34.closeSync(this.fd);
|
|
51314
51266
|
cb();
|
|
51315
51267
|
}
|
|
51316
51268
|
};
|
|
@@ -51383,8 +51335,8 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51383
51335
|
super.write(this.header.block);
|
|
51384
51336
|
readEntry.pipe(this);
|
|
51385
51337
|
}
|
|
51386
|
-
[PREFIX](path$
|
|
51387
|
-
return prefixPath(path$
|
|
51338
|
+
[PREFIX](path$83) {
|
|
51339
|
+
return prefixPath(path$83, this.prefix);
|
|
51388
51340
|
}
|
|
51389
51341
|
[MODE](mode) {
|
|
51390
51342
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -51668,8 +51620,8 @@ var require_yallist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
51668
51620
|
//#region ../../node_modules/tar/lib/pack.js
|
|
51669
51621
|
var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
51670
51622
|
var PackJob = class {
|
|
51671
|
-
constructor(path$
|
|
51672
|
-
this.path = path$
|
|
51623
|
+
constructor(path$77, absolute) {
|
|
51624
|
+
this.path = path$77 || "./";
|
|
51673
51625
|
this.absolute = absolute;
|
|
51674
51626
|
this.entry = null;
|
|
51675
51627
|
this.stat = null;
|
|
@@ -51707,8 +51659,8 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51707
51659
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
51708
51660
|
const WRITE = Symbol("write");
|
|
51709
51661
|
const ONDRAIN = Symbol("ondrain");
|
|
51710
|
-
const fs$
|
|
51711
|
-
const path$
|
|
51662
|
+
const fs$33 = require("fs");
|
|
51663
|
+
const path$32 = require("path");
|
|
51712
51664
|
const warner = require_warn_mixin();
|
|
51713
51665
|
const normPath = require_normalize_windows_path();
|
|
51714
51666
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -51760,24 +51712,24 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51760
51712
|
[WRITE](chunk) {
|
|
51761
51713
|
return super.write(chunk);
|
|
51762
51714
|
}
|
|
51763
|
-
add(path$
|
|
51764
|
-
this.write(path$
|
|
51715
|
+
add(path$78) {
|
|
51716
|
+
this.write(path$78);
|
|
51765
51717
|
return this;
|
|
51766
51718
|
}
|
|
51767
|
-
end(path$
|
|
51768
|
-
if (path$
|
|
51719
|
+
end(path$79) {
|
|
51720
|
+
if (path$79) this.write(path$79);
|
|
51769
51721
|
this[ENDED] = true;
|
|
51770
51722
|
this[PROCESS]();
|
|
51771
51723
|
return this;
|
|
51772
51724
|
}
|
|
51773
|
-
write(path$
|
|
51725
|
+
write(path$80) {
|
|
51774
51726
|
if (this[ENDED]) throw new Error("write after end");
|
|
51775
|
-
if (path$
|
|
51776
|
-
else this[ADDFSENTRY](path$
|
|
51727
|
+
if (path$80 instanceof ReadEntry) this[ADDTARENTRY](path$80);
|
|
51728
|
+
else this[ADDFSENTRY](path$80);
|
|
51777
51729
|
return this.flowing;
|
|
51778
51730
|
}
|
|
51779
51731
|
[ADDTARENTRY](p) {
|
|
51780
|
-
const absolute = normPath(path$
|
|
51732
|
+
const absolute = normPath(path$32.resolve(this.cwd, p.path));
|
|
51781
51733
|
if (!this.filter(p.path, p)) p.resume();
|
|
51782
51734
|
else {
|
|
51783
51735
|
const job = new PackJob(p.path, absolute, false);
|
|
@@ -51789,14 +51741,14 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51789
51741
|
this[PROCESS]();
|
|
51790
51742
|
}
|
|
51791
51743
|
[ADDFSENTRY](p) {
|
|
51792
|
-
const absolute = normPath(path$
|
|
51744
|
+
const absolute = normPath(path$32.resolve(this.cwd, p));
|
|
51793
51745
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
51794
51746
|
this[PROCESS]();
|
|
51795
51747
|
}
|
|
51796
51748
|
[STAT](job) {
|
|
51797
51749
|
job.pending = true;
|
|
51798
51750
|
this[JOBS] += 1;
|
|
51799
|
-
fs$
|
|
51751
|
+
fs$33[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
51800
51752
|
job.pending = false;
|
|
51801
51753
|
this[JOBS] -= 1;
|
|
51802
51754
|
if (er) this.emit("error", er);
|
|
@@ -51812,7 +51764,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51812
51764
|
[READDIR](job) {
|
|
51813
51765
|
job.pending = true;
|
|
51814
51766
|
this[JOBS] += 1;
|
|
51815
|
-
fs$
|
|
51767
|
+
fs$33.readdir(job.absolute, (er, entries) => {
|
|
51816
51768
|
job.pending = false;
|
|
51817
51769
|
this[JOBS] -= 1;
|
|
51818
51770
|
if (er) return this.emit("error", er);
|
|
@@ -51930,10 +51882,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51930
51882
|
resume() {}
|
|
51931
51883
|
[STAT](job) {
|
|
51932
51884
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
51933
|
-
this[ONSTAT](job, fs$
|
|
51885
|
+
this[ONSTAT](job, fs$33[stat](job.absolute));
|
|
51934
51886
|
}
|
|
51935
51887
|
[READDIR](job, stat) {
|
|
51936
|
-
this[ONREADDIR](job, fs$
|
|
51888
|
+
this[ONREADDIR](job, fs$33.readdirSync(job.absolute));
|
|
51937
51889
|
}
|
|
51938
51890
|
[PIPE](job) {
|
|
51939
51891
|
const source = job.entry;
|
|
@@ -52389,8 +52341,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
52389
52341
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
52390
52342
|
const MiniPass = require_minipass$2();
|
|
52391
52343
|
const EE$11 = require("events").EventEmitter;
|
|
52392
|
-
const fs$
|
|
52393
|
-
let writev = fs$
|
|
52344
|
+
const fs$32 = require("fs");
|
|
52345
|
+
let writev = fs$32.writev;
|
|
52394
52346
|
/* istanbul ignore next */
|
|
52395
52347
|
if (!writev) {
|
|
52396
52348
|
const binding = process.binding("fs");
|
|
@@ -52461,7 +52413,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52461
52413
|
throw new TypeError("this is a readable stream");
|
|
52462
52414
|
}
|
|
52463
52415
|
[_open]() {
|
|
52464
|
-
fs$
|
|
52416
|
+
fs$32.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
52465
52417
|
}
|
|
52466
52418
|
[_onopen](er, fd) {
|
|
52467
52419
|
if (er) this[_onerror](er);
|
|
@@ -52480,7 +52432,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52480
52432
|
const buf = this[_makeBuf]();
|
|
52481
52433
|
/* istanbul ignore if */
|
|
52482
52434
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
52483
|
-
fs$
|
|
52435
|
+
fs$32.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
52484
52436
|
}
|
|
52485
52437
|
}
|
|
52486
52438
|
[_onread](er, br, buf) {
|
|
@@ -52492,7 +52444,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52492
52444
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52493
52445
|
const fd = this[_fd];
|
|
52494
52446
|
this[_fd] = null;
|
|
52495
|
-
fs$
|
|
52447
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
52496
52448
|
}
|
|
52497
52449
|
}
|
|
52498
52450
|
[_onerror](er) {
|
|
@@ -52530,7 +52482,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52530
52482
|
[_open]() {
|
|
52531
52483
|
let threw = true;
|
|
52532
52484
|
try {
|
|
52533
|
-
this[_onopen](null, fs$
|
|
52485
|
+
this[_onopen](null, fs$32.openSync(this[_path], "r"));
|
|
52534
52486
|
threw = false;
|
|
52535
52487
|
} finally {
|
|
52536
52488
|
if (threw) this[_close]();
|
|
@@ -52544,7 +52496,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52544
52496
|
do {
|
|
52545
52497
|
const buf = this[_makeBuf]();
|
|
52546
52498
|
/* istanbul ignore next */
|
|
52547
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
52499
|
+
const br = buf.length === 0 ? 0 : fs$32.readSync(this[_fd], buf, 0, buf.length, null);
|
|
52548
52500
|
if (!this[_handleChunk](br, buf)) break;
|
|
52549
52501
|
} while (true);
|
|
52550
52502
|
this[_reading] = false;
|
|
@@ -52558,7 +52510,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52558
52510
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52559
52511
|
const fd = this[_fd];
|
|
52560
52512
|
this[_fd] = null;
|
|
52561
|
-
fs$
|
|
52513
|
+
fs$32.closeSync(fd);
|
|
52562
52514
|
this.emit("close");
|
|
52563
52515
|
}
|
|
52564
52516
|
}
|
|
@@ -52603,7 +52555,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52603
52555
|
this.emit("error", er);
|
|
52604
52556
|
}
|
|
52605
52557
|
[_open]() {
|
|
52606
|
-
fs$
|
|
52558
|
+
fs$32.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
52607
52559
|
}
|
|
52608
52560
|
[_onopen](er, fd) {
|
|
52609
52561
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -52638,7 +52590,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52638
52590
|
return true;
|
|
52639
52591
|
}
|
|
52640
52592
|
[_write](buf) {
|
|
52641
|
-
fs$
|
|
52593
|
+
fs$32.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
52642
52594
|
}
|
|
52643
52595
|
[_onwrite](er, bw) {
|
|
52644
52596
|
if (er) this[_onerror](er);
|
|
@@ -52672,7 +52624,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52672
52624
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52673
52625
|
const fd = this[_fd];
|
|
52674
52626
|
this[_fd] = null;
|
|
52675
|
-
fs$
|
|
52627
|
+
fs$32.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
52676
52628
|
}
|
|
52677
52629
|
}
|
|
52678
52630
|
};
|
|
@@ -52680,28 +52632,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52680
52632
|
[_open]() {
|
|
52681
52633
|
let fd;
|
|
52682
52634
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
52683
|
-
fd = fs$
|
|
52635
|
+
fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
52684
52636
|
} catch (er) {
|
|
52685
52637
|
if (er.code === "ENOENT") {
|
|
52686
52638
|
this[_flags] = "w";
|
|
52687
52639
|
return this[_open]();
|
|
52688
52640
|
} else throw er;
|
|
52689
52641
|
}
|
|
52690
|
-
else fd = fs$
|
|
52642
|
+
else fd = fs$32.openSync(this[_path], this[_flags], this[_mode]);
|
|
52691
52643
|
this[_onopen](null, fd);
|
|
52692
52644
|
}
|
|
52693
52645
|
[_close]() {
|
|
52694
52646
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52695
52647
|
const fd = this[_fd];
|
|
52696
52648
|
this[_fd] = null;
|
|
52697
|
-
fs$
|
|
52649
|
+
fs$32.closeSync(fd);
|
|
52698
52650
|
this.emit("close");
|
|
52699
52651
|
}
|
|
52700
52652
|
}
|
|
52701
52653
|
[_write](buf) {
|
|
52702
52654
|
let threw = true;
|
|
52703
52655
|
try {
|
|
52704
|
-
this[_onwrite](null, fs$
|
|
52656
|
+
this[_onwrite](null, fs$32.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
52705
52657
|
threw = false;
|
|
52706
52658
|
} finally {
|
|
52707
52659
|
if (threw) try {
|
|
@@ -53066,9 +53018,9 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
53066
53018
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53067
53019
|
const hlo = require_high_level_opt();
|
|
53068
53020
|
const Parser = require_parse$4();
|
|
53069
|
-
const fs$
|
|
53021
|
+
const fs$31 = require("fs");
|
|
53070
53022
|
const fsm = require_fs_minipass();
|
|
53071
|
-
const path$
|
|
53023
|
+
const path$31 = require("path");
|
|
53072
53024
|
const stripSlash = require_strip_trailing_slashes();
|
|
53073
53025
|
module.exports = (opt_, files, cb) => {
|
|
53074
53026
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -53094,8 +53046,8 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53094
53046
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
53095
53047
|
const filter = opt.filter;
|
|
53096
53048
|
const mapHas = (file, r) => {
|
|
53097
|
-
const root = r || path$
|
|
53098
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
53049
|
+
const root = r || path$31.parse(file).root || ".";
|
|
53050
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$31.dirname(file), root);
|
|
53099
53051
|
map.set(file, ret);
|
|
53100
53052
|
return ret;
|
|
53101
53053
|
};
|
|
@@ -53107,15 +53059,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53107
53059
|
let threw = true;
|
|
53108
53060
|
let fd;
|
|
53109
53061
|
try {
|
|
53110
|
-
const stat = fs$
|
|
53062
|
+
const stat = fs$31.statSync(file);
|
|
53111
53063
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
53112
|
-
if (stat.size < readSize) p.end(fs$
|
|
53064
|
+
if (stat.size < readSize) p.end(fs$31.readFileSync(file));
|
|
53113
53065
|
else {
|
|
53114
53066
|
let pos = 0;
|
|
53115
53067
|
const buf = Buffer.allocUnsafe(readSize);
|
|
53116
|
-
fd = fs$
|
|
53068
|
+
fd = fs$31.openSync(file, "r");
|
|
53117
53069
|
while (pos < stat.size) {
|
|
53118
|
-
const bytesRead = fs$
|
|
53070
|
+
const bytesRead = fs$31.readSync(fd, buf, 0, readSize, pos);
|
|
53119
53071
|
pos += bytesRead;
|
|
53120
53072
|
p.write(buf.slice(0, bytesRead));
|
|
53121
53073
|
}
|
|
@@ -53124,7 +53076,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53124
53076
|
threw = false;
|
|
53125
53077
|
} finally {
|
|
53126
53078
|
if (threw && fd) try {
|
|
53127
|
-
fs$
|
|
53079
|
+
fs$31.closeSync(fd);
|
|
53128
53080
|
} catch (er) {}
|
|
53129
53081
|
}
|
|
53130
53082
|
};
|
|
@@ -53135,7 +53087,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53135
53087
|
const p = new Promise((resolve, reject) => {
|
|
53136
53088
|
parse.on("error", reject);
|
|
53137
53089
|
parse.on("end", resolve);
|
|
53138
|
-
fs$
|
|
53090
|
+
fs$31.stat(file, (er, stat) => {
|
|
53139
53091
|
if (er) reject(er);
|
|
53140
53092
|
else {
|
|
53141
53093
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -53158,7 +53110,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53158
53110
|
const Pack = require_pack$1();
|
|
53159
53111
|
const fsm = require_fs_minipass();
|
|
53160
53112
|
const t = require_list();
|
|
53161
|
-
const path$
|
|
53113
|
+
const path$30 = require("path");
|
|
53162
53114
|
module.exports = (opt_, files, cb) => {
|
|
53163
53115
|
if (typeof files === "function") cb = files;
|
|
53164
53116
|
if (Array.isArray(opt_)) files = opt_, opt_ = {};
|
|
@@ -53190,7 +53142,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53190
53142
|
const addFilesSync = (p, files) => {
|
|
53191
53143
|
files.forEach((file) => {
|
|
53192
53144
|
if (file.charAt(0) === "@") t({
|
|
53193
|
-
file: path$
|
|
53145
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
53194
53146
|
sync: true,
|
|
53195
53147
|
noResume: true,
|
|
53196
53148
|
onentry: (entry) => p.add(entry)
|
|
@@ -53203,7 +53155,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53203
53155
|
while (files.length) {
|
|
53204
53156
|
const file = files.shift();
|
|
53205
53157
|
if (file.charAt(0) === "@") return t({
|
|
53206
|
-
file: path$
|
|
53158
|
+
file: path$30.resolve(p.cwd, file.slice(1)),
|
|
53207
53159
|
noResume: true,
|
|
53208
53160
|
onentry: (entry) => p.add(entry)
|
|
53209
53161
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -53227,10 +53179,10 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53227
53179
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53228
53180
|
const hlo = require_high_level_opt();
|
|
53229
53181
|
const Pack = require_pack$1();
|
|
53230
|
-
const fs$
|
|
53182
|
+
const fs$30 = require("fs");
|
|
53231
53183
|
const fsm = require_fs_minipass();
|
|
53232
53184
|
const t = require_list();
|
|
53233
|
-
const path$
|
|
53185
|
+
const path$29 = require("path");
|
|
53234
53186
|
const Header = require_header();
|
|
53235
53187
|
module.exports = (opt_, files, cb) => {
|
|
53236
53188
|
const opt = hlo(opt_);
|
|
@@ -53247,16 +53199,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53247
53199
|
let position;
|
|
53248
53200
|
try {
|
|
53249
53201
|
try {
|
|
53250
|
-
fd = fs$
|
|
53202
|
+
fd = fs$30.openSync(opt.file, "r+");
|
|
53251
53203
|
} catch (er) {
|
|
53252
|
-
if (er.code === "ENOENT") fd = fs$
|
|
53204
|
+
if (er.code === "ENOENT") fd = fs$30.openSync(opt.file, "w+");
|
|
53253
53205
|
else throw er;
|
|
53254
53206
|
}
|
|
53255
|
-
const st = fs$
|
|
53207
|
+
const st = fs$30.fstatSync(fd);
|
|
53256
53208
|
const headBuf = Buffer.alloc(512);
|
|
53257
53209
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
53258
53210
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
53259
|
-
bytes = fs$
|
|
53211
|
+
bytes = fs$30.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
53260
53212
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
53261
53213
|
if (!bytes) break POSITION;
|
|
53262
53214
|
}
|
|
@@ -53271,7 +53223,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53271
53223
|
streamSync(opt, p, position, fd, files);
|
|
53272
53224
|
} finally {
|
|
53273
53225
|
if (threw) try {
|
|
53274
|
-
fs$
|
|
53226
|
+
fs$30.closeSync(fd);
|
|
53275
53227
|
} catch (er) {}
|
|
53276
53228
|
}
|
|
53277
53229
|
};
|
|
@@ -53288,7 +53240,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53288
53240
|
const p = new Pack(opt);
|
|
53289
53241
|
const getPos = (fd, size, cb_) => {
|
|
53290
53242
|
const cb = (er, pos) => {
|
|
53291
|
-
if (er) fs$
|
|
53243
|
+
if (er) fs$30.close(fd, (_) => cb_(er));
|
|
53292
53244
|
else cb_(null, pos);
|
|
53293
53245
|
};
|
|
53294
53246
|
let position = 0;
|
|
@@ -53298,7 +53250,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53298
53250
|
const onread = (er, bytes) => {
|
|
53299
53251
|
if (er) return cb(er);
|
|
53300
53252
|
bufPos += bytes;
|
|
53301
|
-
if (bufPos < 512 && bytes) return fs$
|
|
53253
|
+
if (bufPos < 512 && bytes) return fs$30.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
53302
53254
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
53303
53255
|
if (bufPos < 512) return cb(null, position);
|
|
53304
53256
|
const h = new Header(headBuf);
|
|
@@ -53309,9 +53261,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53309
53261
|
if (position >= size) return cb(null, position);
|
|
53310
53262
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
53311
53263
|
bufPos = 0;
|
|
53312
|
-
fs$
|
|
53264
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
53313
53265
|
};
|
|
53314
|
-
fs$
|
|
53266
|
+
fs$30.read(fd, headBuf, 0, 512, position, onread);
|
|
53315
53267
|
};
|
|
53316
53268
|
const promise = new Promise((resolve, reject) => {
|
|
53317
53269
|
p.on("error", reject);
|
|
@@ -53319,11 +53271,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53319
53271
|
const onopen = (er, fd) => {
|
|
53320
53272
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
53321
53273
|
flag = "w+";
|
|
53322
|
-
return fs$
|
|
53274
|
+
return fs$30.open(opt.file, flag, onopen);
|
|
53323
53275
|
}
|
|
53324
53276
|
if (er) return reject(er);
|
|
53325
|
-
fs$
|
|
53326
|
-
if (er) return fs$
|
|
53277
|
+
fs$30.fstat(fd, (er, st) => {
|
|
53278
|
+
if (er) return fs$30.close(fd, () => reject(er));
|
|
53327
53279
|
getPos(fd, st.size, (er, position) => {
|
|
53328
53280
|
if (er) return reject(er);
|
|
53329
53281
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -53337,14 +53289,14 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53337
53289
|
});
|
|
53338
53290
|
});
|
|
53339
53291
|
};
|
|
53340
|
-
fs$
|
|
53292
|
+
fs$30.open(opt.file, flag, onopen);
|
|
53341
53293
|
});
|
|
53342
53294
|
return cb ? promise.then(cb, cb) : promise;
|
|
53343
53295
|
};
|
|
53344
53296
|
const addFilesSync = (p, files) => {
|
|
53345
53297
|
files.forEach((file) => {
|
|
53346
53298
|
if (file.charAt(0) === "@") t({
|
|
53347
|
-
file: path$
|
|
53299
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
53348
53300
|
sync: true,
|
|
53349
53301
|
noResume: true,
|
|
53350
53302
|
onentry: (entry) => p.add(entry)
|
|
@@ -53357,7 +53309,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53357
53309
|
while (files.length) {
|
|
53358
53310
|
const file = files.shift();
|
|
53359
53311
|
if (file.charAt(0) === "@") return t({
|
|
53360
|
-
file: path$
|
|
53312
|
+
file: path$29.resolve(p.cwd, file.slice(1)),
|
|
53361
53313
|
noResume: true,
|
|
53362
53314
|
onentry: (entry) => p.add(entry)
|
|
53363
53315
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -53390,32 +53342,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53390
53342
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
53391
53343
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53392
53344
|
const { promisify: promisify$1 } = require("util");
|
|
53393
|
-
const fs$
|
|
53345
|
+
const fs$29 = require("fs");
|
|
53394
53346
|
const optsArg = (opts) => {
|
|
53395
53347
|
if (!opts) opts = {
|
|
53396
53348
|
mode: 511,
|
|
53397
|
-
fs: fs$
|
|
53349
|
+
fs: fs$29
|
|
53398
53350
|
};
|
|
53399
53351
|
else if (typeof opts === "object") opts = {
|
|
53400
53352
|
mode: 511,
|
|
53401
|
-
fs: fs$
|
|
53353
|
+
fs: fs$29,
|
|
53402
53354
|
...opts
|
|
53403
53355
|
};
|
|
53404
53356
|
else if (typeof opts === "number") opts = {
|
|
53405
53357
|
mode: opts,
|
|
53406
|
-
fs: fs$
|
|
53358
|
+
fs: fs$29
|
|
53407
53359
|
};
|
|
53408
53360
|
else if (typeof opts === "string") opts = {
|
|
53409
53361
|
mode: parseInt(opts, 8),
|
|
53410
|
-
fs: fs$
|
|
53362
|
+
fs: fs$29
|
|
53411
53363
|
};
|
|
53412
53364
|
else throw new TypeError("invalid options argument");
|
|
53413
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
53365
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$29.mkdir;
|
|
53414
53366
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
53415
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
53367
|
+
opts.stat = opts.stat || opts.fs.stat || fs$29.stat;
|
|
53416
53368
|
opts.statAsync = promisify$1(opts.stat);
|
|
53417
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
53418
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
53369
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$29.statSync;
|
|
53370
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$29.mkdirSync;
|
|
53419
53371
|
return opts;
|
|
53420
53372
|
};
|
|
53421
53373
|
module.exports = optsArg;
|
|
@@ -53425,21 +53377,21 @@ var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
53425
53377
|
var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53426
53378
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
53427
53379
|
const { resolve: resolve$13, parse: parse$2 } = require("path");
|
|
53428
|
-
const pathArg = (path$
|
|
53429
|
-
if (/\0/.test(path$
|
|
53430
|
-
path: path$
|
|
53380
|
+
const pathArg = (path$76) => {
|
|
53381
|
+
if (/\0/.test(path$76)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
53382
|
+
path: path$76,
|
|
53431
53383
|
code: "ERR_INVALID_ARG_VALUE"
|
|
53432
53384
|
});
|
|
53433
|
-
path$
|
|
53385
|
+
path$76 = resolve$13(path$76);
|
|
53434
53386
|
if (platform === "win32") {
|
|
53435
53387
|
const badWinChars = /[*|"<>?:]/;
|
|
53436
|
-
const { root } = parse$2(path$
|
|
53437
|
-
if (badWinChars.test(path$
|
|
53438
|
-
path: path$
|
|
53388
|
+
const { root } = parse$2(path$76);
|
|
53389
|
+
if (badWinChars.test(path$76.substr(root.length))) throw Object.assign(/* @__PURE__ */ new Error("Illegal characters in path."), {
|
|
53390
|
+
path: path$76,
|
|
53439
53391
|
code: "EINVAL"
|
|
53440
53392
|
});
|
|
53441
53393
|
}
|
|
53442
|
-
return path$
|
|
53394
|
+
return path$76;
|
|
53443
53395
|
};
|
|
53444
53396
|
module.exports = pathArg;
|
|
53445
53397
|
}));
|
|
@@ -53447,14 +53399,14 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
53447
53399
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
53448
53400
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53449
53401
|
const { dirname: dirname$13 } = require("path");
|
|
53450
|
-
const findMade = (opts, parent, path$
|
|
53451
|
-
if (path$
|
|
53452
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$
|
|
53402
|
+
const findMade = (opts, parent, path$74 = void 0) => {
|
|
53403
|
+
if (path$74 === parent) return Promise.resolve();
|
|
53404
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$74 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$13(parent), parent) : void 0);
|
|
53453
53405
|
};
|
|
53454
|
-
const findMadeSync = (opts, parent, path$
|
|
53455
|
-
if (path$
|
|
53406
|
+
const findMadeSync = (opts, parent, path$75 = void 0) => {
|
|
53407
|
+
if (path$75 === parent) return void 0;
|
|
53456
53408
|
try {
|
|
53457
|
-
return opts.statSync(parent).isDirectory() ? path$
|
|
53409
|
+
return opts.statSync(parent).isDirectory() ? path$75 : void 0;
|
|
53458
53410
|
} catch (er) {
|
|
53459
53411
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname$13(parent), parent) : void 0;
|
|
53460
53412
|
}
|
|
@@ -53468,16 +53420,16 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
53468
53420
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
53469
53421
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53470
53422
|
const { dirname: dirname$12 } = require("path");
|
|
53471
|
-
const mkdirpManual = (path$
|
|
53423
|
+
const mkdirpManual = (path$72, opts, made) => {
|
|
53472
53424
|
opts.recursive = false;
|
|
53473
|
-
const parent = dirname$12(path$
|
|
53474
|
-
if (parent === path$
|
|
53425
|
+
const parent = dirname$12(path$72);
|
|
53426
|
+
if (parent === path$72) return opts.mkdirAsync(path$72, opts).catch((er) => {
|
|
53475
53427
|
if (er.code !== "EISDIR") throw er;
|
|
53476
53428
|
});
|
|
53477
|
-
return opts.mkdirAsync(path$
|
|
53478
|
-
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$
|
|
53429
|
+
return opts.mkdirAsync(path$72, opts).then(() => made || path$72, (er) => {
|
|
53430
|
+
if (er.code === "ENOENT") return mkdirpManual(parent, opts).then((made) => mkdirpManual(path$72, opts, made));
|
|
53479
53431
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
53480
|
-
return opts.statAsync(path$
|
|
53432
|
+
return opts.statAsync(path$72).then((st) => {
|
|
53481
53433
|
if (st.isDirectory()) return made;
|
|
53482
53434
|
else throw er;
|
|
53483
53435
|
}, () => {
|
|
@@ -53485,23 +53437,23 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53485
53437
|
});
|
|
53486
53438
|
});
|
|
53487
53439
|
};
|
|
53488
|
-
const mkdirpManualSync = (path$
|
|
53489
|
-
const parent = dirname$12(path$
|
|
53440
|
+
const mkdirpManualSync = (path$73, opts, made) => {
|
|
53441
|
+
const parent = dirname$12(path$73);
|
|
53490
53442
|
opts.recursive = false;
|
|
53491
|
-
if (parent === path$
|
|
53492
|
-
return opts.mkdirSync(path$
|
|
53443
|
+
if (parent === path$73) try {
|
|
53444
|
+
return opts.mkdirSync(path$73, opts);
|
|
53493
53445
|
} catch (er) {
|
|
53494
53446
|
if (er.code !== "EISDIR") throw er;
|
|
53495
53447
|
else return;
|
|
53496
53448
|
}
|
|
53497
53449
|
try {
|
|
53498
|
-
opts.mkdirSync(path$
|
|
53499
|
-
return made || path$
|
|
53450
|
+
opts.mkdirSync(path$73, opts);
|
|
53451
|
+
return made || path$73;
|
|
53500
53452
|
} catch (er) {
|
|
53501
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
53453
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$73, opts, mkdirpManualSync(parent, opts, made));
|
|
53502
53454
|
if (er.code !== "EEXIST" && er.code !== "EROFS") throw er;
|
|
53503
53455
|
try {
|
|
53504
|
-
if (!opts.statSync(path$
|
|
53456
|
+
if (!opts.statSync(path$73).isDirectory()) throw er;
|
|
53505
53457
|
} catch (_) {
|
|
53506
53458
|
throw er;
|
|
53507
53459
|
}
|
|
@@ -53518,23 +53470,23 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53518
53470
|
const { dirname: dirname$11 } = require("path");
|
|
53519
53471
|
const { findMade, findMadeSync } = require_find_made();
|
|
53520
53472
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
53521
|
-
const mkdirpNative = (path$
|
|
53473
|
+
const mkdirpNative = (path$70, opts) => {
|
|
53522
53474
|
opts.recursive = true;
|
|
53523
|
-
if (dirname$11(path$
|
|
53524
|
-
return findMade(opts, path$
|
|
53525
|
-
if (er.code === "ENOENT") return mkdirpManual(path$
|
|
53475
|
+
if (dirname$11(path$70) === path$70) return opts.mkdirAsync(path$70, opts);
|
|
53476
|
+
return findMade(opts, path$70).then((made) => opts.mkdirAsync(path$70, opts).then(() => made).catch((er) => {
|
|
53477
|
+
if (er.code === "ENOENT") return mkdirpManual(path$70, opts);
|
|
53526
53478
|
else throw er;
|
|
53527
53479
|
}));
|
|
53528
53480
|
};
|
|
53529
|
-
const mkdirpNativeSync = (path$
|
|
53481
|
+
const mkdirpNativeSync = (path$71, opts) => {
|
|
53530
53482
|
opts.recursive = true;
|
|
53531
|
-
if (dirname$11(path$
|
|
53532
|
-
const made = findMadeSync(opts, path$
|
|
53483
|
+
if (dirname$11(path$71) === path$71) return opts.mkdirSync(path$71, opts);
|
|
53484
|
+
const made = findMadeSync(opts, path$71);
|
|
53533
53485
|
try {
|
|
53534
|
-
opts.mkdirSync(path$
|
|
53486
|
+
opts.mkdirSync(path$71, opts);
|
|
53535
53487
|
return made;
|
|
53536
53488
|
} catch (er) {
|
|
53537
|
-
if (er.code === "ENOENT") return mkdirpManualSync(path$
|
|
53489
|
+
if (er.code === "ENOENT") return mkdirpManualSync(path$71, opts);
|
|
53538
53490
|
else throw er;
|
|
53539
53491
|
}
|
|
53540
53492
|
};
|
|
@@ -53546,12 +53498,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53546
53498
|
//#endregion
|
|
53547
53499
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
53548
53500
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53549
|
-
const fs$
|
|
53501
|
+
const fs$28 = require("fs");
|
|
53550
53502
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
53551
53503
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
53552
53504
|
module.exports = {
|
|
53553
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
53554
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
53505
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$28.mkdir,
|
|
53506
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$28.mkdirSync
|
|
53555
53507
|
};
|
|
53556
53508
|
}));
|
|
53557
53509
|
//#endregion
|
|
@@ -53582,64 +53534,64 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53582
53534
|
//#endregion
|
|
53583
53535
|
//#region ../../node_modules/chownr/chownr.js
|
|
53584
53536
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53585
|
-
const fs$
|
|
53586
|
-
const path$
|
|
53537
|
+
const fs$27 = require("fs");
|
|
53538
|
+
const path$28 = require("path");
|
|
53587
53539
|
/* istanbul ignore next */
|
|
53588
|
-
const LCHOWN = fs$
|
|
53540
|
+
const LCHOWN = fs$27.lchown ? "lchown" : "chown";
|
|
53589
53541
|
/* istanbul ignore next */
|
|
53590
|
-
const LCHOWNSYNC = fs$
|
|
53542
|
+
const LCHOWNSYNC = fs$27.lchownSync ? "lchownSync" : "chownSync";
|
|
53591
53543
|
/* istanbul ignore next */
|
|
53592
|
-
const needEISDIRHandled = fs$
|
|
53593
|
-
const lchownSync = (path$
|
|
53544
|
+
const needEISDIRHandled = fs$27.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
53545
|
+
const lchownSync = (path$62, uid, gid) => {
|
|
53594
53546
|
try {
|
|
53595
|
-
return fs$
|
|
53547
|
+
return fs$27[LCHOWNSYNC](path$62, uid, gid);
|
|
53596
53548
|
} catch (er) {
|
|
53597
53549
|
if (er.code !== "ENOENT") throw er;
|
|
53598
53550
|
}
|
|
53599
53551
|
};
|
|
53600
53552
|
/* istanbul ignore next */
|
|
53601
|
-
const chownSync = (path$
|
|
53553
|
+
const chownSync = (path$63, uid, gid) => {
|
|
53602
53554
|
try {
|
|
53603
|
-
return fs$
|
|
53555
|
+
return fs$27.chownSync(path$63, uid, gid);
|
|
53604
53556
|
} catch (er) {
|
|
53605
53557
|
if (er.code !== "ENOENT") throw er;
|
|
53606
53558
|
}
|
|
53607
53559
|
};
|
|
53608
53560
|
/* istanbul ignore next */
|
|
53609
|
-
const handleEISDIR = needEISDIRHandled ? (path$
|
|
53561
|
+
const handleEISDIR = needEISDIRHandled ? (path$64, uid, gid, cb) => (er) => {
|
|
53610
53562
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
53611
|
-
else fs$
|
|
53563
|
+
else fs$27.chown(path$64, uid, gid, cb);
|
|
53612
53564
|
} : (_, __, ___, cb) => cb;
|
|
53613
53565
|
/* istanbul ignore next */
|
|
53614
|
-
const handleEISDirSync = needEISDIRHandled ? (path$
|
|
53566
|
+
const handleEISDirSync = needEISDIRHandled ? (path$65, uid, gid) => {
|
|
53615
53567
|
try {
|
|
53616
|
-
return lchownSync(path$
|
|
53568
|
+
return lchownSync(path$65, uid, gid);
|
|
53617
53569
|
} catch (er) {
|
|
53618
53570
|
if (er.code !== "EISDIR") throw er;
|
|
53619
|
-
chownSync(path$
|
|
53571
|
+
chownSync(path$65, uid, gid);
|
|
53620
53572
|
}
|
|
53621
|
-
} : (path$
|
|
53573
|
+
} : (path$66, uid, gid) => lchownSync(path$66, uid, gid);
|
|
53622
53574
|
const nodeVersion = process.version;
|
|
53623
|
-
let readdir = (path$
|
|
53624
|
-
let readdirSync = (path$
|
|
53575
|
+
let readdir = (path$67, options, cb) => fs$27.readdir(path$67, options, cb);
|
|
53576
|
+
let readdirSync = (path$68, options) => fs$27.readdirSync(path$68, options);
|
|
53625
53577
|
/* istanbul ignore next */
|
|
53626
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$
|
|
53578
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$69, options, cb) => fs$27.readdir(path$69, cb);
|
|
53627
53579
|
const chown = (cpath, uid, gid, cb) => {
|
|
53628
|
-
fs$
|
|
53580
|
+
fs$27[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
53629
53581
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
53630
53582
|
}));
|
|
53631
53583
|
};
|
|
53632
53584
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
53633
|
-
if (typeof child === "string") return fs$
|
|
53585
|
+
if (typeof child === "string") return fs$27.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
53634
53586
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
53635
53587
|
stats.name = child;
|
|
53636
53588
|
chownrKid(p, stats, uid, gid, cb);
|
|
53637
53589
|
});
|
|
53638
|
-
if (child.isDirectory()) chownr(path$
|
|
53590
|
+
if (child.isDirectory()) chownr(path$28.resolve(p, child.name), uid, gid, (er) => {
|
|
53639
53591
|
if (er) return cb(er);
|
|
53640
|
-
chown(path$
|
|
53592
|
+
chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
53641
53593
|
});
|
|
53642
|
-
else chown(path$
|
|
53594
|
+
else chown(path$28.resolve(p, child.name), uid, gid, cb);
|
|
53643
53595
|
};
|
|
53644
53596
|
const chownr = (p, uid, gid, cb) => {
|
|
53645
53597
|
readdir(p, { withFileTypes: true }, (er, children) => {
|
|
@@ -53660,15 +53612,15 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53660
53612
|
};
|
|
53661
53613
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
53662
53614
|
if (typeof child === "string") try {
|
|
53663
|
-
const stats = fs$
|
|
53615
|
+
const stats = fs$27.lstatSync(path$28.resolve(p, child));
|
|
53664
53616
|
stats.name = child;
|
|
53665
53617
|
child = stats;
|
|
53666
53618
|
} catch (er) {
|
|
53667
53619
|
if (er.code === "ENOENT") return;
|
|
53668
53620
|
else throw er;
|
|
53669
53621
|
}
|
|
53670
|
-
if (child.isDirectory()) chownrSync(path$
|
|
53671
|
-
handleEISDirSync(path$
|
|
53622
|
+
if (child.isDirectory()) chownrSync(path$28.resolve(p, child.name), uid, gid);
|
|
53623
|
+
handleEISDirSync(path$28.resolve(p, child.name), uid, gid);
|
|
53672
53624
|
};
|
|
53673
53625
|
const chownrSync = (p, uid, gid) => {
|
|
53674
53626
|
let children;
|
|
@@ -53689,14 +53641,14 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53689
53641
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
53690
53642
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53691
53643
|
const mkdirp = require_mkdirp();
|
|
53692
|
-
const fs$
|
|
53693
|
-
const path$
|
|
53644
|
+
const fs$26 = require("fs");
|
|
53645
|
+
const path$27 = require("path");
|
|
53694
53646
|
const chownr = require_chownr();
|
|
53695
53647
|
const normPath = require_normalize_windows_path();
|
|
53696
53648
|
var SymlinkError = class extends Error {
|
|
53697
|
-
constructor(symlink, path$
|
|
53649
|
+
constructor(symlink, path$60) {
|
|
53698
53650
|
super("Cannot extract through symbolic link");
|
|
53699
|
-
this.path = path$
|
|
53651
|
+
this.path = path$60;
|
|
53700
53652
|
this.symlink = symlink;
|
|
53701
53653
|
}
|
|
53702
53654
|
get name() {
|
|
@@ -53704,9 +53656,9 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53704
53656
|
}
|
|
53705
53657
|
};
|
|
53706
53658
|
var CwdError = class extends Error {
|
|
53707
|
-
constructor(path$
|
|
53708
|
-
super(code + ": Cannot cd into '" + path$
|
|
53709
|
-
this.path = path$
|
|
53659
|
+
constructor(path$61, code) {
|
|
53660
|
+
super(code + ": Cannot cd into '" + path$61 + "'");
|
|
53661
|
+
this.path = path$61;
|
|
53710
53662
|
this.code = code;
|
|
53711
53663
|
}
|
|
53712
53664
|
get name() {
|
|
@@ -53716,7 +53668,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53716
53668
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
53717
53669
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
53718
53670
|
const checkCwd = (dir, cb) => {
|
|
53719
|
-
fs$
|
|
53671
|
+
fs$26.stat(dir, (er, st) => {
|
|
53720
53672
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
53721
53673
|
cb(er);
|
|
53722
53674
|
});
|
|
@@ -53738,31 +53690,31 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53738
53690
|
else {
|
|
53739
53691
|
cSet(cache, dir, true);
|
|
53740
53692
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
53741
|
-
else if (needChmod) fs$
|
|
53693
|
+
else if (needChmod) fs$26.chmod(dir, mode, cb);
|
|
53742
53694
|
else cb();
|
|
53743
53695
|
}
|
|
53744
53696
|
};
|
|
53745
53697
|
if (cache && cGet(cache, dir) === true) return done();
|
|
53746
53698
|
if (dir === cwd) return checkCwd(dir, done);
|
|
53747
53699
|
if (preserve) return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
53748
|
-
mkdir_(cwd, normPath(path$
|
|
53700
|
+
mkdir_(cwd, normPath(path$27.relative(cwd, dir)).split("/"), mode, cache, unlink, cwd, null, done);
|
|
53749
53701
|
};
|
|
53750
53702
|
const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
|
53751
53703
|
if (!parts.length) return cb(null, created);
|
|
53752
53704
|
const p = parts.shift();
|
|
53753
|
-
const part = normPath(path$
|
|
53705
|
+
const part = normPath(path$27.resolve(base + "/" + p));
|
|
53754
53706
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
53755
|
-
fs$
|
|
53707
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
53756
53708
|
};
|
|
53757
53709
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
53758
|
-
if (er) fs$
|
|
53710
|
+
if (er) fs$26.lstat(part, (statEr, st) => {
|
|
53759
53711
|
if (statEr) {
|
|
53760
53712
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
53761
53713
|
cb(statEr);
|
|
53762
53714
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
53763
|
-
else if (unlink) fs$
|
|
53715
|
+
else if (unlink) fs$26.unlink(part, (er) => {
|
|
53764
53716
|
if (er) return cb(er);
|
|
53765
|
-
fs$
|
|
53717
|
+
fs$26.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
53766
53718
|
});
|
|
53767
53719
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
53768
53720
|
else cb(er);
|
|
@@ -53776,7 +53728,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53776
53728
|
let ok = false;
|
|
53777
53729
|
let code = "ENOTDIR";
|
|
53778
53730
|
try {
|
|
53779
|
-
ok = fs$
|
|
53731
|
+
ok = fs$26.statSync(dir).isDirectory();
|
|
53780
53732
|
} catch (er) {
|
|
53781
53733
|
code = er.code;
|
|
53782
53734
|
} finally {
|
|
@@ -53798,7 +53750,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53798
53750
|
const done = (created) => {
|
|
53799
53751
|
cSet(cache, dir, true);
|
|
53800
53752
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
53801
|
-
if (needChmod) fs$
|
|
53753
|
+
if (needChmod) fs$26.chmodSync(dir, mode);
|
|
53802
53754
|
};
|
|
53803
53755
|
if (cache && cGet(cache, dir) === true) return done();
|
|
53804
53756
|
if (dir === cwd) {
|
|
@@ -53806,23 +53758,23 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53806
53758
|
return done();
|
|
53807
53759
|
}
|
|
53808
53760
|
if (preserve) return done(mkdirp.sync(dir, mode));
|
|
53809
|
-
const parts = normPath(path$
|
|
53761
|
+
const parts = normPath(path$27.relative(cwd, dir)).split("/");
|
|
53810
53762
|
let created = null;
|
|
53811
53763
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
53812
|
-
part = normPath(path$
|
|
53764
|
+
part = normPath(path$27.resolve(part));
|
|
53813
53765
|
if (cGet(cache, part)) continue;
|
|
53814
53766
|
try {
|
|
53815
|
-
fs$
|
|
53767
|
+
fs$26.mkdirSync(part, mode);
|
|
53816
53768
|
created = created || part;
|
|
53817
53769
|
cSet(cache, part, true);
|
|
53818
53770
|
} catch (er) {
|
|
53819
|
-
const st = fs$
|
|
53771
|
+
const st = fs$26.lstatSync(part);
|
|
53820
53772
|
if (st.isDirectory()) {
|
|
53821
53773
|
cSet(cache, part, true);
|
|
53822
53774
|
continue;
|
|
53823
53775
|
} else if (unlink) {
|
|
53824
|
-
fs$
|
|
53825
|
-
fs$
|
|
53776
|
+
fs$26.unlinkSync(part);
|
|
53777
|
+
fs$26.mkdirSync(part, mode);
|
|
53826
53778
|
created = created || part;
|
|
53827
53779
|
cSet(cache, part, true);
|
|
53828
53780
|
continue;
|
|
@@ -53848,15 +53800,15 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53848
53800
|
const assert$1 = require("assert");
|
|
53849
53801
|
const normalize = require_normalize_unicode();
|
|
53850
53802
|
const stripSlashes = require_strip_trailing_slashes();
|
|
53851
|
-
const { join: join$
|
|
53803
|
+
const { join: join$15 } = require("path");
|
|
53852
53804
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
53853
53805
|
module.exports = () => {
|
|
53854
53806
|
const queues = /* @__PURE__ */ new Map();
|
|
53855
53807
|
const reservations = /* @__PURE__ */ new Map();
|
|
53856
|
-
const getDirs = (path$
|
|
53857
|
-
return path$
|
|
53858
|
-
if (set.length) path$
|
|
53859
|
-
set.push(path$
|
|
53808
|
+
const getDirs = (path$53) => {
|
|
53809
|
+
return path$53.split("/").slice(0, -1).reduce((set, path$54) => {
|
|
53810
|
+
if (set.length) path$54 = join$15(set[set.length - 1], path$54);
|
|
53811
|
+
set.push(path$54 || "/");
|
|
53860
53812
|
return set;
|
|
53861
53813
|
}, []);
|
|
53862
53814
|
};
|
|
@@ -53866,8 +53818,8 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53866
53818
|
/* istanbul ignore if - unpossible */
|
|
53867
53819
|
if (!res) throw new Error("function does not have any path reservations");
|
|
53868
53820
|
return {
|
|
53869
|
-
paths: res.paths.map((path$
|
|
53870
|
-
dirs: [...res.dirs].map((path$
|
|
53821
|
+
paths: res.paths.map((path$55) => queues.get(path$55)),
|
|
53822
|
+
dirs: [...res.dirs].map((path$56) => queues.get(path$56))
|
|
53871
53823
|
};
|
|
53872
53824
|
};
|
|
53873
53825
|
const check = (fn) => {
|
|
@@ -53884,10 +53836,10 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53884
53836
|
if (!running.has(fn)) return false;
|
|
53885
53837
|
const { paths, dirs } = reservations.get(fn);
|
|
53886
53838
|
const next = /* @__PURE__ */ new Set();
|
|
53887
|
-
paths.forEach((path$
|
|
53888
|
-
const q = queues.get(path$
|
|
53839
|
+
paths.forEach((path$57) => {
|
|
53840
|
+
const q = queues.get(path$57);
|
|
53889
53841
|
assert$1.equal(q[0], fn);
|
|
53890
|
-
if (q.length === 1) queues.delete(path$
|
|
53842
|
+
if (q.length === 1) queues.delete(path$57);
|
|
53891
53843
|
else {
|
|
53892
53844
|
q.shift();
|
|
53893
53845
|
if (typeof q[0] === "function") next.add(q[0]);
|
|
@@ -53909,16 +53861,16 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53909
53861
|
};
|
|
53910
53862
|
const reserve = (paths, fn) => {
|
|
53911
53863
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
53912
|
-
return stripSlashes(join$
|
|
53864
|
+
return stripSlashes(join$15(normalize(p))).toLowerCase();
|
|
53913
53865
|
});
|
|
53914
|
-
const dirs = new Set(paths.map((path$
|
|
53866
|
+
const dirs = new Set(paths.map((path$58) => getDirs(path$58)).reduce((a, b) => a.concat(b)));
|
|
53915
53867
|
reservations.set(fn, {
|
|
53916
53868
|
dirs,
|
|
53917
53869
|
paths
|
|
53918
53870
|
});
|
|
53919
|
-
paths.forEach((path$
|
|
53920
|
-
const q = queues.get(path$
|
|
53921
|
-
if (!q) queues.set(path$
|
|
53871
|
+
paths.forEach((path$59) => {
|
|
53872
|
+
const q = queues.get(path$59);
|
|
53873
|
+
if (!q) queues.set(path$59, [fn]);
|
|
53922
53874
|
else q.push(fn);
|
|
53923
53875
|
});
|
|
53924
53876
|
dirs.forEach((dir) => {
|
|
@@ -53951,9 +53903,9 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
53951
53903
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53952
53904
|
const assert = require("assert");
|
|
53953
53905
|
const Parser = require_parse$4();
|
|
53954
|
-
const fs$
|
|
53906
|
+
const fs$25 = require("fs");
|
|
53955
53907
|
const fsm = require_fs_minipass();
|
|
53956
|
-
const path$
|
|
53908
|
+
const path$26 = require("path");
|
|
53957
53909
|
const mkdir = require_mkdir();
|
|
53958
53910
|
const wc = require_winchars();
|
|
53959
53911
|
const pathReservations = require_path_reservations();
|
|
@@ -53991,28 +53943,28 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53991
53943
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
53992
53944
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
53993
53945
|
/* istanbul ignore next */
|
|
53994
|
-
const unlinkFile = (path$
|
|
53995
|
-
if (!isWindows) return fs$
|
|
53996
|
-
const name = path$
|
|
53997
|
-
fs$
|
|
53946
|
+
const unlinkFile = (path$49, cb) => {
|
|
53947
|
+
if (!isWindows) return fs$25.unlink(path$49, cb);
|
|
53948
|
+
const name = path$49 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
53949
|
+
fs$25.rename(path$49, name, (er) => {
|
|
53998
53950
|
if (er) return cb(er);
|
|
53999
|
-
fs$
|
|
53951
|
+
fs$25.unlink(name, cb);
|
|
54000
53952
|
});
|
|
54001
53953
|
};
|
|
54002
53954
|
/* istanbul ignore next */
|
|
54003
|
-
const unlinkFileSync = (path$
|
|
54004
|
-
if (!isWindows) return fs$
|
|
54005
|
-
const name = path$
|
|
54006
|
-
fs$
|
|
54007
|
-
fs$
|
|
53955
|
+
const unlinkFileSync = (path$50) => {
|
|
53956
|
+
if (!isWindows) return fs$25.unlinkSync(path$50);
|
|
53957
|
+
const name = path$50 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
53958
|
+
fs$25.renameSync(path$50, name);
|
|
53959
|
+
fs$25.unlinkSync(name);
|
|
54008
53960
|
};
|
|
54009
53961
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
54010
|
-
const cacheKeyNormalize = (path$
|
|
53962
|
+
const cacheKeyNormalize = (path$51) => stripSlash(normPath(normalize(path$51))).toLowerCase();
|
|
54011
53963
|
const pruneCache = (cache, abs) => {
|
|
54012
53964
|
abs = cacheKeyNormalize(abs);
|
|
54013
|
-
for (const path$
|
|
54014
|
-
const pnorm = cacheKeyNormalize(path$
|
|
54015
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$
|
|
53965
|
+
for (const path$52 of cache.keys()) {
|
|
53966
|
+
const pnorm = cacheKeyNormalize(path$52);
|
|
53967
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) cache.delete(path$52);
|
|
54016
53968
|
}
|
|
54017
53969
|
};
|
|
54018
53970
|
const dropCache = (cache) => {
|
|
@@ -54057,7 +54009,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54057
54009
|
this.noMtime = !!opt.noMtime;
|
|
54058
54010
|
this.preservePaths = !!opt.preservePaths;
|
|
54059
54011
|
this.unlink = !!opt.unlink;
|
|
54060
|
-
this.cwd = normPath(path$
|
|
54012
|
+
this.cwd = normPath(path$26.resolve(opt.cwd || process.cwd()));
|
|
54061
54013
|
this.strip = +opt.strip || 0;
|
|
54062
54014
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
54063
54015
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -54115,8 +54067,8 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54115
54067
|
});
|
|
54116
54068
|
}
|
|
54117
54069
|
}
|
|
54118
|
-
if (path$
|
|
54119
|
-
else entry.absolute = normPath(path$
|
|
54070
|
+
if (path$26.isAbsolute(entry.path)) entry.absolute = normPath(path$26.resolve(entry.path));
|
|
54071
|
+
else entry.absolute = normPath(path$26.resolve(this.cwd, entry.path));
|
|
54120
54072
|
/* istanbul ignore if - defense in depth */
|
|
54121
54073
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
54122
54074
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -54129,9 +54081,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54129
54081
|
}
|
|
54130
54082
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
54131
54083
|
if (this.win32) {
|
|
54132
|
-
const { root: aRoot } = path$
|
|
54084
|
+
const { root: aRoot } = path$26.win32.parse(entry.absolute);
|
|
54133
54085
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
54134
|
-
const { root: pRoot } = path$
|
|
54086
|
+
const { root: pRoot } = path$26.win32.parse(entry.path);
|
|
54135
54087
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
54136
54088
|
}
|
|
54137
54089
|
return true;
|
|
@@ -54190,7 +54142,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54190
54142
|
autoClose: false
|
|
54191
54143
|
});
|
|
54192
54144
|
stream.on("error", (er) => {
|
|
54193
|
-
if (stream.fd) fs$
|
|
54145
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
54194
54146
|
stream.write = () => true;
|
|
54195
54147
|
this[ONERROR](er, entry);
|
|
54196
54148
|
fullyDone();
|
|
@@ -54199,12 +54151,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54199
54151
|
const done = (er) => {
|
|
54200
54152
|
if (er) {
|
|
54201
54153
|
/* istanbul ignore else - we should always have a fd by now */
|
|
54202
|
-
if (stream.fd) fs$
|
|
54154
|
+
if (stream.fd) fs$25.close(stream.fd, () => {});
|
|
54203
54155
|
this[ONERROR](er, entry);
|
|
54204
54156
|
fullyDone();
|
|
54205
54157
|
return;
|
|
54206
54158
|
}
|
|
54207
|
-
if (--actions === 0) fs$
|
|
54159
|
+
if (--actions === 0) fs$25.close(stream.fd, (er) => {
|
|
54208
54160
|
if (er) this[ONERROR](er, entry);
|
|
54209
54161
|
else this[UNPEND]();
|
|
54210
54162
|
fullyDone();
|
|
@@ -54217,13 +54169,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54217
54169
|
actions++;
|
|
54218
54170
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
54219
54171
|
const mtime = entry.mtime;
|
|
54220
|
-
fs$
|
|
54172
|
+
fs$25.futimes(fd, atime, mtime, (er) => er ? fs$25.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
54221
54173
|
}
|
|
54222
54174
|
if (this[DOCHOWN](entry)) {
|
|
54223
54175
|
actions++;
|
|
54224
54176
|
const uid = this[UID](entry);
|
|
54225
54177
|
const gid = this[GID](entry);
|
|
54226
|
-
fs$
|
|
54178
|
+
fs$25.fchown(fd, uid, gid, (er) => er ? fs$25.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
54227
54179
|
}
|
|
54228
54180
|
done();
|
|
54229
54181
|
});
|
|
@@ -54255,11 +54207,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54255
54207
|
};
|
|
54256
54208
|
if (entry.mtime && !this.noMtime) {
|
|
54257
54209
|
actions++;
|
|
54258
|
-
fs$
|
|
54210
|
+
fs$25.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
54259
54211
|
}
|
|
54260
54212
|
if (this[DOCHOWN](entry)) {
|
|
54261
54213
|
actions++;
|
|
54262
|
-
fs$
|
|
54214
|
+
fs$25.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
54263
54215
|
}
|
|
54264
54216
|
done();
|
|
54265
54217
|
});
|
|
@@ -54273,7 +54225,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54273
54225
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
54274
54226
|
}
|
|
54275
54227
|
[HARDLINK](entry, done) {
|
|
54276
|
-
const linkpath = normPath(path$
|
|
54228
|
+
const linkpath = normPath(path$26.resolve(this.cwd, entry.linkpath));
|
|
54277
54229
|
this[LINK](entry, linkpath, "link", done);
|
|
54278
54230
|
}
|
|
54279
54231
|
[PEND]() {
|
|
@@ -54319,7 +54271,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54319
54271
|
};
|
|
54320
54272
|
const start = () => {
|
|
54321
54273
|
if (entry.absolute !== this.cwd) {
|
|
54322
|
-
const parent = normPath(path$
|
|
54274
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
54323
54275
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
54324
54276
|
if (er) {
|
|
54325
54277
|
this[ONERROR](er, entry);
|
|
@@ -54332,7 +54284,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54332
54284
|
afterMakeParent();
|
|
54333
54285
|
};
|
|
54334
54286
|
const afterMakeParent = () => {
|
|
54335
|
-
fs$
|
|
54287
|
+
fs$25.lstat(entry.absolute, (lstatEr, st) => {
|
|
54336
54288
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
54337
54289
|
this[SKIP](entry);
|
|
54338
54290
|
done();
|
|
@@ -54344,9 +54296,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54344
54296
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
54345
54297
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
54346
54298
|
if (!needChmod) return afterChmod();
|
|
54347
|
-
return fs$
|
|
54299
|
+
return fs$25.chmod(entry.absolute, entry.mode, afterChmod);
|
|
54348
54300
|
}
|
|
54349
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
54301
|
+
if (entry.absolute !== this.cwd) return fs$25.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
54350
54302
|
}
|
|
54351
54303
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
54352
54304
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -54372,7 +54324,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54372
54324
|
}
|
|
54373
54325
|
}
|
|
54374
54326
|
[LINK](entry, linkpath, link, done) {
|
|
54375
|
-
fs$
|
|
54327
|
+
fs$25[link](linkpath, entry.absolute, (er) => {
|
|
54376
54328
|
if (er) this[ONERROR](er, entry);
|
|
54377
54329
|
else {
|
|
54378
54330
|
this[UNPEND]();
|
|
@@ -54401,23 +54353,23 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54401
54353
|
this[CHECKED_CWD] = true;
|
|
54402
54354
|
}
|
|
54403
54355
|
if (entry.absolute !== this.cwd) {
|
|
54404
|
-
const parent = normPath(path$
|
|
54356
|
+
const parent = normPath(path$26.dirname(entry.absolute));
|
|
54405
54357
|
if (parent !== this.cwd) {
|
|
54406
54358
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
54407
54359
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
54408
54360
|
}
|
|
54409
54361
|
}
|
|
54410
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
54362
|
+
const [lstatEr, st] = callSync(() => fs$25.lstatSync(entry.absolute));
|
|
54411
54363
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
54412
54364
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
54413
54365
|
if (st.isDirectory()) {
|
|
54414
54366
|
if (entry.type === "Directory") {
|
|
54415
54367
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
54416
|
-
fs$
|
|
54368
|
+
fs$25.chmodSync(entry.absolute, entry.mode);
|
|
54417
54369
|
}) : [];
|
|
54418
54370
|
return this[MAKEFS](er, entry);
|
|
54419
54371
|
}
|
|
54420
|
-
const [er] = callSync(() => fs$
|
|
54372
|
+
const [er] = callSync(() => fs$25.rmdirSync(entry.absolute));
|
|
54421
54373
|
this[MAKEFS](er, entry);
|
|
54422
54374
|
}
|
|
54423
54375
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -54428,7 +54380,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54428
54380
|
const oner = (er) => {
|
|
54429
54381
|
let closeError;
|
|
54430
54382
|
try {
|
|
54431
|
-
fs$
|
|
54383
|
+
fs$25.closeSync(fd);
|
|
54432
54384
|
} catch (e) {
|
|
54433
54385
|
closeError = e;
|
|
54434
54386
|
}
|
|
@@ -54437,7 +54389,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54437
54389
|
};
|
|
54438
54390
|
let fd;
|
|
54439
54391
|
try {
|
|
54440
|
-
fd = fs$
|
|
54392
|
+
fd = fs$25.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
54441
54393
|
} catch (er) {
|
|
54442
54394
|
return oner(er);
|
|
54443
54395
|
}
|
|
@@ -54448,7 +54400,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54448
54400
|
}
|
|
54449
54401
|
tx.on("data", (chunk) => {
|
|
54450
54402
|
try {
|
|
54451
|
-
fs$
|
|
54403
|
+
fs$25.writeSync(fd, chunk, 0, chunk.length);
|
|
54452
54404
|
} catch (er) {
|
|
54453
54405
|
oner(er);
|
|
54454
54406
|
}
|
|
@@ -54459,10 +54411,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54459
54411
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
54460
54412
|
const mtime = entry.mtime;
|
|
54461
54413
|
try {
|
|
54462
|
-
fs$
|
|
54414
|
+
fs$25.futimesSync(fd, atime, mtime);
|
|
54463
54415
|
} catch (futimeser) {
|
|
54464
54416
|
try {
|
|
54465
|
-
fs$
|
|
54417
|
+
fs$25.utimesSync(entry.absolute, atime, mtime);
|
|
54466
54418
|
} catch (utimeser) {
|
|
54467
54419
|
er = futimeser;
|
|
54468
54420
|
}
|
|
@@ -54472,10 +54424,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54472
54424
|
const uid = this[UID](entry);
|
|
54473
54425
|
const gid = this[GID](entry);
|
|
54474
54426
|
try {
|
|
54475
|
-
fs$
|
|
54427
|
+
fs$25.fchownSync(fd, uid, gid);
|
|
54476
54428
|
} catch (fchowner) {
|
|
54477
54429
|
try {
|
|
54478
|
-
fs$
|
|
54430
|
+
fs$25.chownSync(entry.absolute, uid, gid);
|
|
54479
54431
|
} catch (chowner) {
|
|
54480
54432
|
er = er || fchowner;
|
|
54481
54433
|
}
|
|
@@ -54493,10 +54445,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54493
54445
|
return;
|
|
54494
54446
|
}
|
|
54495
54447
|
if (entry.mtime && !this.noMtime) try {
|
|
54496
|
-
fs$
|
|
54448
|
+
fs$25.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
54497
54449
|
} catch (er) {}
|
|
54498
54450
|
if (this[DOCHOWN](entry)) try {
|
|
54499
|
-
fs$
|
|
54451
|
+
fs$25.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
54500
54452
|
} catch (er) {}
|
|
54501
54453
|
done();
|
|
54502
54454
|
entry.resume();
|
|
@@ -54521,7 +54473,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54521
54473
|
}
|
|
54522
54474
|
[LINK](entry, linkpath, link, done) {
|
|
54523
54475
|
try {
|
|
54524
|
-
fs$
|
|
54476
|
+
fs$25[link + "Sync"](linkpath, entry.absolute);
|
|
54525
54477
|
done();
|
|
54526
54478
|
entry.resume();
|
|
54527
54479
|
} catch (er) {
|
|
@@ -54537,9 +54489,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54537
54489
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
54538
54490
|
const hlo = require_high_level_opt();
|
|
54539
54491
|
const Unpack = require_unpack();
|
|
54540
|
-
const fs$
|
|
54492
|
+
const fs$24 = require("fs");
|
|
54541
54493
|
const fsm = require_fs_minipass();
|
|
54542
|
-
const path$
|
|
54494
|
+
const path$25 = require("path");
|
|
54543
54495
|
const stripSlash = require_strip_trailing_slashes();
|
|
54544
54496
|
module.exports = (opt_, files, cb) => {
|
|
54545
54497
|
if (typeof opt_ === "function") cb = opt_, files = null, opt_ = {};
|
|
@@ -54557,8 +54509,8 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
54557
54509
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
54558
54510
|
const filter = opt.filter;
|
|
54559
54511
|
const mapHas = (file, r) => {
|
|
54560
|
-
const root = r || path$
|
|
54561
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$
|
|
54512
|
+
const root = r || path$25.parse(file).root || ".";
|
|
54513
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path$25.dirname(file), root);
|
|
54562
54514
|
map.set(file, ret);
|
|
54563
54515
|
return ret;
|
|
54564
54516
|
};
|
|
@@ -54567,7 +54519,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
54567
54519
|
const extractFileSync = (opt) => {
|
|
54568
54520
|
const u = new Unpack.Sync(opt);
|
|
54569
54521
|
const file = opt.file;
|
|
54570
|
-
const stat = fs$
|
|
54522
|
+
const stat = fs$24.statSync(file);
|
|
54571
54523
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
54572
54524
|
new fsm.ReadStreamSync(file, {
|
|
54573
54525
|
readSize,
|
|
@@ -54581,7 +54533,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
54581
54533
|
const p = new Promise((resolve, reject) => {
|
|
54582
54534
|
u.on("error", reject);
|
|
54583
54535
|
u.on("close", resolve);
|
|
54584
|
-
fs$
|
|
54536
|
+
fs$24.stat(file, (er, stat) => {
|
|
54585
54537
|
if (er) reject(er);
|
|
54586
54538
|
else {
|
|
54587
54539
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -54664,7 +54616,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
54664
54616
|
//#endregion
|
|
54665
54617
|
//#region ../../node_modules/fd-slicer/index.js
|
|
54666
54618
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
54667
|
-
var fs$
|
|
54619
|
+
var fs$23 = require("fs");
|
|
54668
54620
|
var util$9 = require("util");
|
|
54669
54621
|
var stream$1 = require("stream");
|
|
54670
54622
|
var Readable = stream$1.Readable;
|
|
@@ -54689,7 +54641,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54689
54641
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
54690
54642
|
var self = this;
|
|
54691
54643
|
self.pend.go(function(cb) {
|
|
54692
|
-
fs$
|
|
54644
|
+
fs$23.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
54693
54645
|
cb();
|
|
54694
54646
|
callback(err, bytesRead, buffer);
|
|
54695
54647
|
});
|
|
@@ -54698,7 +54650,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54698
54650
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
54699
54651
|
var self = this;
|
|
54700
54652
|
self.pend.go(function(cb) {
|
|
54701
|
-
fs$
|
|
54653
|
+
fs$23.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
54702
54654
|
cb();
|
|
54703
54655
|
callback(err, written, buffer);
|
|
54704
54656
|
});
|
|
@@ -54718,7 +54670,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54718
54670
|
self.refCount -= 1;
|
|
54719
54671
|
if (self.refCount > 0) return;
|
|
54720
54672
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
54721
|
-
if (self.autoClose) fs$
|
|
54673
|
+
if (self.autoClose) fs$23.close(self.fd, onCloseDone);
|
|
54722
54674
|
function onCloseDone(err) {
|
|
54723
54675
|
if (err) self.emit("error", err);
|
|
54724
54676
|
else self.emit("close");
|
|
@@ -54749,7 +54701,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54749
54701
|
self.context.pend.go(function(cb) {
|
|
54750
54702
|
if (self.destroyed) return cb();
|
|
54751
54703
|
var buffer = new Buffer(toRead);
|
|
54752
|
-
fs$
|
|
54704
|
+
fs$23.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
54753
54705
|
if (err) self.destroy(err);
|
|
54754
54706
|
else if (bytesRead === 0) {
|
|
54755
54707
|
self.destroyed = true;
|
|
@@ -54795,7 +54747,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54795
54747
|
}
|
|
54796
54748
|
self.context.pend.go(function(cb) {
|
|
54797
54749
|
if (self.destroyed) return cb();
|
|
54798
|
-
fs$
|
|
54750
|
+
fs$23.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
54799
54751
|
if (err) {
|
|
54800
54752
|
self.destroy();
|
|
54801
54753
|
cb();
|
|
@@ -56377,13 +56329,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
56377
56329
|
//#region ../../node_modules/readdir-glob/index.js
|
|
56378
56330
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56379
56331
|
module.exports = readdirGlob;
|
|
56380
|
-
const fs$
|
|
56332
|
+
const fs$21 = require("fs");
|
|
56381
56333
|
const { EventEmitter } = require("events");
|
|
56382
56334
|
const { Minimatch } = require_minimatch$1();
|
|
56383
56335
|
const { resolve: resolve$12 } = require("path");
|
|
56384
56336
|
function readdir(dir, strict) {
|
|
56385
56337
|
return new Promise((resolve, reject) => {
|
|
56386
|
-
fs$
|
|
56338
|
+
fs$21.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
56387
56339
|
if (err) switch (err.code) {
|
|
56388
56340
|
case "ENOTDIR":
|
|
56389
56341
|
if (strict) reject(err);
|
|
@@ -56405,7 +56357,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56405
56357
|
}
|
|
56406
56358
|
function stat(file, followSymlinks) {
|
|
56407
56359
|
return new Promise((resolve, reject) => {
|
|
56408
|
-
(followSymlinks ? fs$
|
|
56360
|
+
(followSymlinks ? fs$21.stat : fs$21.lstat)(file, (err, stats) => {
|
|
56409
56361
|
if (err) switch (err.code) {
|
|
56410
56362
|
case "ENOENT":
|
|
56411
56363
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -56419,8 +56371,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56419
56371
|
});
|
|
56420
56372
|
});
|
|
56421
56373
|
}
|
|
56422
|
-
async function* exploreWalkAsync(dir, path$
|
|
56423
|
-
let files = await readdir(path$
|
|
56374
|
+
async function* exploreWalkAsync(dir, path$47, followSymlinks, useStat, shouldSkip, strict) {
|
|
56375
|
+
let files = await readdir(path$47 + dir, strict);
|
|
56424
56376
|
for (const file of files) {
|
|
56425
56377
|
let name = file.name;
|
|
56426
56378
|
if (name === void 0) {
|
|
@@ -56429,7 +56381,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56429
56381
|
}
|
|
56430
56382
|
const filename = dir + "/" + name;
|
|
56431
56383
|
const relative = filename.slice(1);
|
|
56432
|
-
const absolute = path$
|
|
56384
|
+
const absolute = path$47 + "/" + relative;
|
|
56433
56385
|
let stats = null;
|
|
56434
56386
|
if (useStat || followSymlinks) stats = await stat(absolute, followSymlinks);
|
|
56435
56387
|
if (!stats && file.name !== void 0) stats = file;
|
|
@@ -56441,7 +56393,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56441
56393
|
absolute,
|
|
56442
56394
|
stats
|
|
56443
56395
|
};
|
|
56444
|
-
yield* exploreWalkAsync(filename, path$
|
|
56396
|
+
yield* exploreWalkAsync(filename, path$47, followSymlinks, useStat, shouldSkip, false);
|
|
56445
56397
|
}
|
|
56446
56398
|
} else yield {
|
|
56447
56399
|
relative,
|
|
@@ -56450,8 +56402,8 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56450
56402
|
};
|
|
56451
56403
|
}
|
|
56452
56404
|
}
|
|
56453
|
-
async function* explore(path$
|
|
56454
|
-
yield* exploreWalkAsync("", path$
|
|
56405
|
+
async function* explore(path$48, followSymlinks, useStat, shouldSkip) {
|
|
56406
|
+
yield* exploreWalkAsync("", path$48, followSymlinks, useStat, shouldSkip, true);
|
|
56455
56407
|
}
|
|
56456
56408
|
function readOptions(options) {
|
|
56457
56409
|
return {
|
|
@@ -62444,7 +62396,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
62444
62396
|
//#endregion
|
|
62445
62397
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
62446
62398
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62447
|
-
var fs$
|
|
62399
|
+
var fs$20 = require("fs");
|
|
62448
62400
|
var polyfills = require_polyfills();
|
|
62449
62401
|
var legacy = require_legacy_streams();
|
|
62450
62402
|
var clone = require_clone$1();
|
|
@@ -62473,36 +62425,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62473
62425
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
62474
62426
|
console.error(m);
|
|
62475
62427
|
};
|
|
62476
|
-
if (!fs$
|
|
62477
|
-
publishQueue(fs$
|
|
62478
|
-
fs$
|
|
62428
|
+
if (!fs$20[gracefulQueue]) {
|
|
62429
|
+
publishQueue(fs$20, global[gracefulQueue] || []);
|
|
62430
|
+
fs$20.close = (function(fs$close) {
|
|
62479
62431
|
function close(fd, cb) {
|
|
62480
|
-
return fs$close.call(fs$
|
|
62432
|
+
return fs$close.call(fs$20, fd, function(err) {
|
|
62481
62433
|
if (!err) resetQueue();
|
|
62482
62434
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
62483
62435
|
});
|
|
62484
62436
|
}
|
|
62485
62437
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
62486
62438
|
return close;
|
|
62487
|
-
})(fs$
|
|
62488
|
-
fs$
|
|
62439
|
+
})(fs$20.close);
|
|
62440
|
+
fs$20.closeSync = (function(fs$closeSync) {
|
|
62489
62441
|
function closeSync(fd) {
|
|
62490
|
-
fs$closeSync.apply(fs$
|
|
62442
|
+
fs$closeSync.apply(fs$20, arguments);
|
|
62491
62443
|
resetQueue();
|
|
62492
62444
|
}
|
|
62493
62445
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
62494
62446
|
return closeSync;
|
|
62495
|
-
})(fs$
|
|
62447
|
+
})(fs$20.closeSync);
|
|
62496
62448
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
62497
|
-
debug(fs$
|
|
62498
|
-
require("assert").equal(fs$
|
|
62449
|
+
debug(fs$20[gracefulQueue]);
|
|
62450
|
+
require("assert").equal(fs$20[gracefulQueue].length, 0);
|
|
62499
62451
|
});
|
|
62500
62452
|
}
|
|
62501
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
62502
|
-
module.exports = patch(clone(fs$
|
|
62503
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
62504
|
-
module.exports = patch(fs$
|
|
62505
|
-
fs$
|
|
62453
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$20[gracefulQueue]);
|
|
62454
|
+
module.exports = patch(clone(fs$20));
|
|
62455
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$20.__patched) {
|
|
62456
|
+
module.exports = patch(fs$20);
|
|
62457
|
+
fs$20.__patched = true;
|
|
62506
62458
|
}
|
|
62507
62459
|
function patch(fs) {
|
|
62508
62460
|
polyfills(fs);
|
|
@@ -62757,23 +62709,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62757
62709
|
}
|
|
62758
62710
|
function enqueue(elem) {
|
|
62759
62711
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
62760
|
-
fs$
|
|
62712
|
+
fs$20[gracefulQueue].push(elem);
|
|
62761
62713
|
retry();
|
|
62762
62714
|
}
|
|
62763
62715
|
var retryTimer;
|
|
62764
62716
|
function resetQueue() {
|
|
62765
62717
|
var now = Date.now();
|
|
62766
|
-
for (var i = 0; i < fs$
|
|
62767
|
-
fs$
|
|
62768
|
-
fs$
|
|
62718
|
+
for (var i = 0; i < fs$20[gracefulQueue].length; ++i) if (fs$20[gracefulQueue][i].length > 2) {
|
|
62719
|
+
fs$20[gracefulQueue][i][3] = now;
|
|
62720
|
+
fs$20[gracefulQueue][i][4] = now;
|
|
62769
62721
|
}
|
|
62770
62722
|
retry();
|
|
62771
62723
|
}
|
|
62772
62724
|
function retry() {
|
|
62773
62725
|
clearTimeout(retryTimer);
|
|
62774
62726
|
retryTimer = void 0;
|
|
62775
|
-
if (fs$
|
|
62776
|
-
var elem = fs$
|
|
62727
|
+
if (fs$20[gracefulQueue].length === 0) return;
|
|
62728
|
+
var elem = fs$20[gracefulQueue].shift();
|
|
62777
62729
|
var fn = elem[0];
|
|
62778
62730
|
var args = elem[1];
|
|
62779
62731
|
var err = elem[2];
|
|
@@ -62792,7 +62744,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62792
62744
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
62793
62745
|
debug("RETRY", fn.name, args);
|
|
62794
62746
|
fn.apply(null, args.concat([startTime]));
|
|
62795
|
-
} else fs$
|
|
62747
|
+
} else fs$20[gracefulQueue].push(elem);
|
|
62796
62748
|
}
|
|
62797
62749
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
62798
62750
|
}
|
|
@@ -77918,7 +77870,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
77918
77870
|
* https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT
|
|
77919
77871
|
*/
|
|
77920
77872
|
var fs = require_graceful_fs();
|
|
77921
|
-
var path$
|
|
77873
|
+
var path$24 = require("path");
|
|
77922
77874
|
var flatten = require_flatten();
|
|
77923
77875
|
var difference = require_difference();
|
|
77924
77876
|
var union = require_union();
|
|
@@ -77938,7 +77890,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
77938
77890
|
return result;
|
|
77939
77891
|
};
|
|
77940
77892
|
file.exists = function() {
|
|
77941
|
-
var filepath = path$
|
|
77893
|
+
var filepath = path$24.join.apply(path$24, arguments);
|
|
77942
77894
|
return fs.existsSync(filepath);
|
|
77943
77895
|
};
|
|
77944
77896
|
file.expand = function(...args) {
|
|
@@ -77949,7 +77901,7 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
77949
77901
|
return glob.sync(pattern, options);
|
|
77950
77902
|
});
|
|
77951
77903
|
if (options.filter) matches = matches.filter(function(filepath) {
|
|
77952
|
-
filepath = path$
|
|
77904
|
+
filepath = path$24.join(options.cwd || "", filepath);
|
|
77953
77905
|
try {
|
|
77954
77906
|
if (typeof options.filter === "function") return options.filter(filepath);
|
|
77955
77907
|
else return fs.statSync(filepath)[options.filter]();
|
|
@@ -77961,16 +77913,16 @@ var require_file$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
77961
77913
|
};
|
|
77962
77914
|
file.expandMapping = function(patterns, destBase, options) {
|
|
77963
77915
|
options = Object.assign({ rename: function(destBase, destPath) {
|
|
77964
|
-
return path$
|
|
77916
|
+
return path$24.join(destBase || "", destPath);
|
|
77965
77917
|
} }, options);
|
|
77966
77918
|
var files = [];
|
|
77967
77919
|
var fileByDest = {};
|
|
77968
77920
|
file.expand(options, patterns).forEach(function(src) {
|
|
77969
77921
|
var destPath = src;
|
|
77970
|
-
if (options.flatten) destPath = path$
|
|
77922
|
+
if (options.flatten) destPath = path$24.basename(destPath);
|
|
77971
77923
|
if (options.ext) destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
77972
77924
|
var dest = options.rename(destBase, destPath, options);
|
|
77973
|
-
if (options.cwd) src = path$
|
|
77925
|
+
if (options.cwd) src = path$24.join(options.cwd, src);
|
|
77974
77926
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
77975
77927
|
src = src.replace(pathSeparatorRe, "/");
|
|
77976
77928
|
if (fileByDest[dest]) fileByDest[dest].src.push(src);
|
|
@@ -78045,7 +77997,7 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
78045
77997
|
* https://github.com/archiverjs/archiver-utils/blob/master/LICENSE
|
|
78046
77998
|
*/
|
|
78047
77999
|
var fs = require_graceful_fs();
|
|
78048
|
-
var path$
|
|
78000
|
+
var path$23 = require("path");
|
|
78049
78001
|
var isStream = require_is_stream$1();
|
|
78050
78002
|
var lazystream = require_lazystream();
|
|
78051
78003
|
var normalizePath = require_normalize_path();
|
|
@@ -78121,11 +78073,11 @@ var require_archiver_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
78121
78073
|
(function next() {
|
|
78122
78074
|
file = list[i++];
|
|
78123
78075
|
if (!file) return callback(null, results);
|
|
78124
|
-
filepath = path$
|
|
78076
|
+
filepath = path$23.join(dirpath, file);
|
|
78125
78077
|
fs.stat(filepath, function(err, stats) {
|
|
78126
78078
|
results.push({
|
|
78127
78079
|
path: filepath,
|
|
78128
|
-
relative: path$
|
|
78080
|
+
relative: path$23.relative(base, filepath).replace(/\\/g, "/"),
|
|
78129
78081
|
stats
|
|
78130
78082
|
});
|
|
78131
78083
|
if (stats && stats.isDirectory()) utils.walkdir(filepath, base, function(err, res) {
|
|
@@ -78189,10 +78141,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78189
78141
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
78190
78142
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
78191
78143
|
*/
|
|
78192
|
-
var fs$
|
|
78144
|
+
var fs$19 = require("fs");
|
|
78193
78145
|
var glob = require_readdir_glob();
|
|
78194
78146
|
var async = require_async();
|
|
78195
|
-
var path$
|
|
78147
|
+
var path$22 = require("path");
|
|
78196
78148
|
var util = require_archiver_utils();
|
|
78197
78149
|
var inherits$5 = require("util").inherits;
|
|
78198
78150
|
var ArchiverError = require_error$10();
|
|
@@ -78266,7 +78218,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78266
78218
|
data.sourcePath = filepath;
|
|
78267
78219
|
task.data = data;
|
|
78268
78220
|
this._entriesCount++;
|
|
78269
|
-
if (data.stats && data.stats instanceof fs$
|
|
78221
|
+
if (data.stats && data.stats instanceof fs$19.Stats) {
|
|
78270
78222
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
78271
78223
|
if (task) {
|
|
78272
78224
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -78496,7 +78448,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78496
78448
|
callback();
|
|
78497
78449
|
return;
|
|
78498
78450
|
}
|
|
78499
|
-
fs$
|
|
78451
|
+
fs$19.lstat(task.filepath, function(err, stats) {
|
|
78500
78452
|
if (this._state.aborted) {
|
|
78501
78453
|
setImmediate(callback);
|
|
78502
78454
|
return;
|
|
@@ -78562,10 +78514,10 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78562
78514
|
task.data.sourceType = "buffer";
|
|
78563
78515
|
task.source = Buffer.concat([]);
|
|
78564
78516
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
78565
|
-
var linkPath = fs$
|
|
78566
|
-
var dirName = path$
|
|
78517
|
+
var linkPath = fs$19.readlinkSync(task.filepath);
|
|
78518
|
+
var dirName = path$22.dirname(task.filepath);
|
|
78567
78519
|
task.data.type = "symlink";
|
|
78568
|
-
task.data.linkname = path$
|
|
78520
|
+
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
78569
78521
|
task.data.sourceType = "buffer";
|
|
78570
78522
|
task.source = Buffer.concat([]);
|
|
78571
78523
|
} else {
|
|
@@ -89560,7 +89512,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
89560
89512
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
89561
89513
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
89562
89514
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
89563
|
-
const { join: join$
|
|
89515
|
+
const { join: join$12, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
89564
89516
|
const isWindows = process.platform === "win32";
|
|
89565
89517
|
/* istanbul ignore next */
|
|
89566
89518
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -89590,7 +89542,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
89590
89542
|
};
|
|
89591
89543
|
const getPathPart = (raw, cmd) => {
|
|
89592
89544
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
89593
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
89545
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$12(pathPart, cmd);
|
|
89594
89546
|
};
|
|
89595
89547
|
const which = async (cmd, opt = {}) => {
|
|
89596
89548
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -90339,7 +90291,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
90339
90291
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
90340
90292
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
90341
90293
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
90342
|
-
const { join: join$
|
|
90294
|
+
const { join: join$11, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
90343
90295
|
const isWindows = process.platform === "win32";
|
|
90344
90296
|
/* istanbul ignore next */
|
|
90345
90297
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -90369,7 +90321,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
90369
90321
|
};
|
|
90370
90322
|
const getPathPart = (raw, cmd) => {
|
|
90371
90323
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
90372
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
90324
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$11(pathPart, cmd);
|
|
90373
90325
|
};
|
|
90374
90326
|
const which = async (cmd, opt = {}) => {
|
|
90375
90327
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -92267,7 +92219,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92267
92219
|
//#endregion
|
|
92268
92220
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
92269
92221
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92270
|
-
const { join: join$
|
|
92222
|
+
const { join: join$10, basename: basename$4 } = require("path");
|
|
92271
92223
|
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);
|
|
92272
92224
|
const normalizeString = (pkg) => {
|
|
92273
92225
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -92290,9 +92242,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92290
92242
|
const clean = {};
|
|
92291
92243
|
let hasBins = false;
|
|
92292
92244
|
Object.keys(orig).forEach((binKey) => {
|
|
92293
|
-
const base = join$
|
|
92245
|
+
const base = join$10("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
92294
92246
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
92295
|
-
const binTarget = join$
|
|
92247
|
+
const binTarget = join$10("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
92296
92248
|
if (!binTarget) return;
|
|
92297
92249
|
clean[base] = binTarget;
|
|
92298
92250
|
hasBins = true;
|
|
@@ -94365,7 +94317,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94365
94317
|
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();
|
|
94366
94318
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
94367
94319
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
94368
|
-
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$
|
|
94320
|
+
const { dirname: dirname$8, isAbsolute: isAbsolute$2, join: join$9, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
94369
94321
|
const { fileURLToPath } = require("url");
|
|
94370
94322
|
const defaultOptions = {
|
|
94371
94323
|
dereference: false,
|
|
@@ -94472,7 +94424,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94472
94424
|
});
|
|
94473
94425
|
return checkParentPaths(src, srcStat, destParent);
|
|
94474
94426
|
}
|
|
94475
|
-
const normalizePathToArray = (path$
|
|
94427
|
+
const normalizePathToArray = (path$46) => resolve$10(path$46).split(sep$2).filter(Boolean);
|
|
94476
94428
|
function isSrcSubdir(src, dest) {
|
|
94477
94429
|
const srcArr = normalizePathToArray(src);
|
|
94478
94430
|
const destArr = normalizePathToArray(dest);
|
|
@@ -94574,8 +94526,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94574
94526
|
const dir = await readdir$6(src);
|
|
94575
94527
|
for (let i = 0; i < dir.length; i++) {
|
|
94576
94528
|
const item = dir[i];
|
|
94577
|
-
const srcItem = join$
|
|
94578
|
-
const destItem = join$
|
|
94529
|
+
const srcItem = join$9(src, item);
|
|
94530
|
+
const destItem = join$9(dest, item);
|
|
94579
94531
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
94580
94532
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
94581
94533
|
}
|
|
@@ -94639,13 +94591,13 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
94639
94591
|
//#endregion
|
|
94640
94592
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
94641
94593
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94642
|
-
const { join: join$
|
|
94594
|
+
const { join: join$8, sep: sep$1 } = require("path");
|
|
94643
94595
|
const getOptions = require_get_options();
|
|
94644
|
-
const { mkdir: mkdir$6, mkdtemp, rm: rm$
|
|
94596
|
+
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
94645
94597
|
const withTempDir = async (root, fn, opts) => {
|
|
94646
94598
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
94647
94599
|
await mkdir$6(root, { recursive: true });
|
|
94648
|
-
const target = await mkdtemp(join$
|
|
94600
|
+
const target = await mkdtemp(join$8(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
94649
94601
|
let err;
|
|
94650
94602
|
let result;
|
|
94651
94603
|
try {
|
|
@@ -94654,7 +94606,7 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
94654
94606
|
err = _err;
|
|
94655
94607
|
}
|
|
94656
94608
|
try {
|
|
94657
|
-
await rm$
|
|
94609
|
+
await rm$8(target, {
|
|
94658
94610
|
force: true,
|
|
94659
94611
|
recursive: true
|
|
94660
94612
|
});
|
|
@@ -94668,10 +94620,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
94668
94620
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
94669
94621
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94670
94622
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
94671
|
-
const { join: join$
|
|
94623
|
+
const { join: join$7 } = require("path");
|
|
94672
94624
|
const readdirScoped = async (dir) => {
|
|
94673
94625
|
const results = [];
|
|
94674
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
94626
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$7(dir, item))) results.push(join$7(item, scopedItem));
|
|
94675
94627
|
else results.push(item);
|
|
94676
94628
|
return results;
|
|
94677
94629
|
};
|
|
@@ -94680,11 +94632,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
94680
94632
|
//#endregion
|
|
94681
94633
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
94682
94634
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94683
|
-
const { dirname: dirname$7, join: join$
|
|
94635
|
+
const { dirname: dirname$7, join: join$6, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
94684
94636
|
const fs$12 = require("fs/promises");
|
|
94685
|
-
const pathExists = async (path$
|
|
94637
|
+
const pathExists = async (path$45) => {
|
|
94686
94638
|
try {
|
|
94687
|
-
await fs$12.access(path$
|
|
94639
|
+
await fs$12.access(path$45);
|
|
94688
94640
|
return true;
|
|
94689
94641
|
} catch (er) {
|
|
94690
94642
|
return er.code !== "ENOENT";
|
|
@@ -94705,7 +94657,7 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
94705
94657
|
const sourceStat = await fs$12.lstat(source);
|
|
94706
94658
|
if (sourceStat.isDirectory()) {
|
|
94707
94659
|
const files = await fs$12.readdir(source);
|
|
94708
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
94660
|
+
await Promise.all(files.map((file) => moveFile(join$6(source, file), join$6(destination, file), options, false, symlinks)));
|
|
94709
94661
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
94710
94662
|
source,
|
|
94711
94663
|
destination
|
|
@@ -94881,7 +94833,7 @@ var require_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
94881
94833
|
//#region ../../node_modules/cacache/lib/entry-index.js
|
|
94882
94834
|
var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94883
94835
|
const crypto$1 = require("crypto");
|
|
94884
|
-
const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$4, rm: rm$
|
|
94836
|
+
const { appendFile, mkdir: mkdir$5, readFile: readFile$7, readdir: readdir$4, rm: rm$7, writeFile: writeFile$2 } = require("fs/promises");
|
|
94885
94837
|
const { Minipass } = require_commonjs$10();
|
|
94886
94838
|
const path$14 = require("path");
|
|
94887
94839
|
const ssri = require_lib$17();
|
|
@@ -94922,7 +94874,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
94922
94874
|
};
|
|
94923
94875
|
};
|
|
94924
94876
|
const teardown = async (tmp) => {
|
|
94925
|
-
if (!tmp.moved) return rm$
|
|
94877
|
+
if (!tmp.moved) return rm$7(tmp.target, {
|
|
94926
94878
|
recursive: true,
|
|
94927
94879
|
force: true
|
|
94928
94880
|
});
|
|
@@ -94978,7 +94930,7 @@ var require_entry_index = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
94978
94930
|
module.exports.delete = del;
|
|
94979
94931
|
function del(cache, key, opts = {}) {
|
|
94980
94932
|
if (!opts.removeFully) return insert(cache, key, null, opts);
|
|
94981
|
-
return rm$
|
|
94933
|
+
return rm$7(bucketPath(cache, key), {
|
|
94982
94934
|
recursive: true,
|
|
94983
94935
|
force: true
|
|
94984
94936
|
});
|
|
@@ -99740,7 +99692,7 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
99740
99692
|
const { glob } = require_index_min$1();
|
|
99741
99693
|
const path$12 = require("path");
|
|
99742
99694
|
const globify = (pattern) => pattern.split(path$12.win32.sep).join(path$12.posix.sep);
|
|
99743
|
-
module.exports = (path$
|
|
99695
|
+
module.exports = (path$44, options) => glob(globify(path$44), options);
|
|
99744
99696
|
}));
|
|
99745
99697
|
//#endregion
|
|
99746
99698
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
@@ -99763,7 +99715,7 @@ var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
99763
99715
|
//#endregion
|
|
99764
99716
|
//#region ../../node_modules/cacache/lib/rm.js
|
|
99765
99717
|
var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99766
|
-
const { rm: rm$
|
|
99718
|
+
const { rm: rm$6 } = require("fs/promises");
|
|
99767
99719
|
const glob = require_glob();
|
|
99768
99720
|
const index = require_entry_index();
|
|
99769
99721
|
const memo = require_memoization();
|
|
@@ -99787,7 +99739,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
99787
99739
|
silent: true,
|
|
99788
99740
|
nosort: true
|
|
99789
99741
|
});
|
|
99790
|
-
return Promise.all(paths.map((p) => rm$
|
|
99742
|
+
return Promise.all(paths.map((p) => rm$6(p, {
|
|
99791
99743
|
recursive: true,
|
|
99792
99744
|
force: true
|
|
99793
99745
|
})));
|
|
@@ -99796,7 +99748,7 @@ var require_rm = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
99796
99748
|
//#endregion
|
|
99797
99749
|
//#region ../../node_modules/cacache/lib/verify.js
|
|
99798
99750
|
var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99799
|
-
const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$
|
|
99751
|
+
const { mkdir: mkdir$4, readFile: readFile$6, rm: rm$5, stat: stat$4, truncate, writeFile: writeFile$1 } = require("fs/promises");
|
|
99800
99752
|
const contentPath = require_path();
|
|
99801
99753
|
const fsm = require_lib$15();
|
|
99802
99754
|
const glob = require_glob();
|
|
@@ -99893,7 +99845,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
99893
99845
|
} else {
|
|
99894
99846
|
stats.reclaimedCount++;
|
|
99895
99847
|
const s = await stat$4(f);
|
|
99896
|
-
await rm$
|
|
99848
|
+
await rm$5(f, {
|
|
99897
99849
|
recursive: true,
|
|
99898
99850
|
force: true
|
|
99899
99851
|
});
|
|
@@ -99916,7 +99868,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
99916
99868
|
valid: false
|
|
99917
99869
|
};
|
|
99918
99870
|
if (err.code !== "EINTEGRITY") throw err;
|
|
99919
|
-
await rm$
|
|
99871
|
+
await rm$5(filepath, {
|
|
99920
99872
|
recursive: true,
|
|
99921
99873
|
force: true
|
|
99922
99874
|
});
|
|
@@ -99977,7 +99929,7 @@ var require_verify$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
99977
99929
|
}
|
|
99978
99930
|
function cleanTmp(cache, opts) {
|
|
99979
99931
|
opts.log.silly("verify", "cleaning tmp directory");
|
|
99980
|
-
return rm$
|
|
99932
|
+
return rm$5(path$10.join(cache, "tmp"), {
|
|
99981
99933
|
recursive: true,
|
|
99982
99934
|
force: true
|
|
99983
99935
|
});
|
|
@@ -100538,14 +100490,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100538
100490
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
100539
100491
|
const { resolve: resolve$8, basename: basename$3, dirname: dirname$6 } = require("path");
|
|
100540
100492
|
const normalizePackageBin = require_lib$21();
|
|
100541
|
-
const readPackage = ({ path: path$
|
|
100493
|
+
const readPackage = ({ path: path$40, packageJsonCache }) => packageJsonCache.has(path$40) ? Promise.resolve(packageJsonCache.get(path$40)) : readFile$5(path$40).then((json) => {
|
|
100542
100494
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
100543
|
-
packageJsonCache.set(path$
|
|
100495
|
+
packageJsonCache.set(path$40, pkg);
|
|
100544
100496
|
return pkg;
|
|
100545
100497
|
}).catch(() => null);
|
|
100546
100498
|
const normalized = Symbol("package data has been normalized");
|
|
100547
|
-
const rpj = ({ path: path$
|
|
100548
|
-
path: path$
|
|
100499
|
+
const rpj = ({ path: path$41, packageJsonCache }) => readPackage({
|
|
100500
|
+
path: path$41,
|
|
100549
100501
|
packageJsonCache
|
|
100550
100502
|
}).then((pkg) => {
|
|
100551
100503
|
if (!pkg || pkg[normalized]) return pkg;
|
|
@@ -100559,14 +100511,14 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100559
100511
|
pkg[normalized] = true;
|
|
100560
100512
|
return pkg;
|
|
100561
100513
|
});
|
|
100562
|
-
const pkgContents = async ({ path: path$
|
|
100514
|
+
const pkgContents = async ({ path: path$42, depth = 1, currentDepth = 0, pkg = null, result = null, packageJsonCache = null }) => {
|
|
100563
100515
|
if (!result) result = /* @__PURE__ */ new Set();
|
|
100564
100516
|
if (!packageJsonCache) packageJsonCache = /* @__PURE__ */ new Map();
|
|
100565
100517
|
if (pkg === true) return rpj({
|
|
100566
|
-
path: path$
|
|
100518
|
+
path: path$42 + "/package.json",
|
|
100567
100519
|
packageJsonCache
|
|
100568
100520
|
}).then((p) => pkgContents({
|
|
100569
|
-
path: path$
|
|
100521
|
+
path: path$42,
|
|
100570
100522
|
depth,
|
|
100571
100523
|
currentDepth,
|
|
100572
100524
|
pkg: p,
|
|
@@ -100575,7 +100527,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100575
100527
|
}));
|
|
100576
100528
|
if (pkg) {
|
|
100577
100529
|
if (pkg.bin) {
|
|
100578
|
-
const dir = dirname$6(path$
|
|
100530
|
+
const dir = dirname$6(path$42);
|
|
100579
100531
|
const scope = basename$3(dir);
|
|
100580
100532
|
const nm = /^@.+/.test(scope) ? dirname$6(dir) : dir;
|
|
100581
100533
|
const binFiles = [];
|
|
@@ -100587,21 +100539,21 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100587
100539
|
}
|
|
100588
100540
|
}
|
|
100589
100541
|
if (currentDepth >= depth) {
|
|
100590
|
-
result.add(path$
|
|
100542
|
+
result.add(path$42);
|
|
100591
100543
|
return result;
|
|
100592
100544
|
}
|
|
100593
|
-
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$
|
|
100594
|
-
path: path$
|
|
100545
|
+
const [dirEntries, bundleDeps] = await Promise.all([readdir$3(path$42, { withFileTypes: true }), currentDepth === 0 && pkg && pkg.bundleDependencies ? bundled({
|
|
100546
|
+
path: path$42,
|
|
100595
100547
|
packageJsonCache
|
|
100596
100548
|
}) : null]).catch(() => []);
|
|
100597
100549
|
if (!dirEntries) return result;
|
|
100598
100550
|
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) {
|
|
100599
|
-
result.add(path$
|
|
100551
|
+
result.add(path$42);
|
|
100600
100552
|
return result;
|
|
100601
100553
|
}
|
|
100602
100554
|
const recursePromises = [];
|
|
100603
100555
|
for (const entry of dirEntries) {
|
|
100604
|
-
const p = resolve$8(path$
|
|
100556
|
+
const p = resolve$8(path$42, entry.name);
|
|
100605
100557
|
if (entry.isDirectory() === false) {
|
|
100606
100558
|
result.add(p);
|
|
100607
100559
|
continue;
|
|
@@ -100620,7 +100572,7 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100620
100572
|
}
|
|
100621
100573
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
100622
100574
|
return pkgContents({
|
|
100623
|
-
path: resolve$8(path$
|
|
100575
|
+
path: resolve$8(path$42, "node_modules", dep),
|
|
100624
100576
|
packageJsonCache,
|
|
100625
100577
|
pkg: true,
|
|
100626
100578
|
depth,
|
|
@@ -100631,8 +100583,8 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100631
100583
|
if (recursePromises.length) await Promise.all(recursePromises);
|
|
100632
100584
|
return result;
|
|
100633
100585
|
};
|
|
100634
|
-
module.exports = ({ path: path$
|
|
100635
|
-
path: resolve$8(path$
|
|
100586
|
+
module.exports = ({ path: path$43, ...opts }) => pkgContents({
|
|
100587
|
+
path: resolve$8(path$43),
|
|
100636
100588
|
...opts,
|
|
100637
100589
|
pkg: true
|
|
100638
100590
|
}).then((results) => [...results]);
|
|
@@ -106068,7 +106020,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106068
106020
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106069
106021
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
106070
106022
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
106071
|
-
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$
|
|
106023
|
+
const { basename: basename$2, dirname: dirname$5, extname: extname$1, join: join$5, relative, resolve: resolve$6, sep } = require("path");
|
|
106072
106024
|
const { log } = require_lib$29();
|
|
106073
106025
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
106074
106026
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -106098,10 +106050,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106098
106050
|
"/archived-packages/**"
|
|
106099
106051
|
];
|
|
106100
106052
|
const strictDefaults = ["/.git"];
|
|
106101
|
-
const normalizePath = (path$
|
|
106053
|
+
const normalizePath = (path$37) => path$37.split("\\").join("/");
|
|
106102
106054
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
106103
106055
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
106104
|
-
const ignoreContent = readFile$4(join$
|
|
106056
|
+
const ignoreContent = readFile$4(join$5(root, file), { encoding: "utf8" });
|
|
106105
106057
|
result.push(ignoreContent);
|
|
106106
106058
|
break;
|
|
106107
106059
|
} catch (err) {
|
|
@@ -106110,8 +106062,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106110
106062
|
}
|
|
106111
106063
|
if (!rel) return result;
|
|
106112
106064
|
const firstRel = rel.split(sep, 1)[0];
|
|
106113
|
-
const newRoot = join$
|
|
106114
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
106065
|
+
const newRoot = join$5(root, firstRel);
|
|
106066
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$5(root, rel)), result);
|
|
106115
106067
|
};
|
|
106116
106068
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
106117
106069
|
constructor(tree, opts) {
|
|
@@ -106135,14 +106087,14 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106135
106087
|
this.requiredFiles = options.requiredFiles || [];
|
|
106136
106088
|
const additionalDefaults = [];
|
|
106137
106089
|
if (options.prefix && options.workspaces) {
|
|
106138
|
-
const path$
|
|
106090
|
+
const path$38 = normalizePath(options.path);
|
|
106139
106091
|
const prefix = normalizePath(options.prefix);
|
|
106140
106092
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
106141
106093
|
// istanbul ignore else - this does nothing unless we need it to
|
|
106142
|
-
if (path$
|
|
106094
|
+
if (path$38 !== prefix && workspaces.includes(path$38)) {
|
|
106143
106095
|
const relpath = relative(options.prefix, dirname$5(options.path));
|
|
106144
106096
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
106145
|
-
} else if (path$
|
|
106097
|
+
} else if (path$38 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
106146
106098
|
}
|
|
106147
106099
|
this.injectRules(defaultRules, [...defaults, ...additionalDefaults]);
|
|
106148
106100
|
if (!this.isPackage) this.injectRules(strictRules, [...strictDefaults, ...this.requiredFiles.map((file) => `!${file}`)]);
|
|
@@ -106178,7 +106130,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106178
106130
|
let ignoreFiles = null;
|
|
106179
106131
|
if (this.tree.workspaces) {
|
|
106180
106132
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
106181
|
-
const entryPath = join$
|
|
106133
|
+
const entryPath = join$5(this.path, entry).replace(/\\/g, "/");
|
|
106182
106134
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
106183
106135
|
defaultRules,
|
|
106184
106136
|
"package.json",
|
|
@@ -106238,7 +106190,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106238
106190
|
if (file.endsWith("/*")) file += "*";
|
|
106239
106191
|
const inverse = `!${file}`;
|
|
106240
106192
|
try {
|
|
106241
|
-
const stat = lstat$1(join$
|
|
106193
|
+
const stat = lstat$1(join$5(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
106242
106194
|
if (stat.isFile()) {
|
|
106243
106195
|
strict.unshift(inverse);
|
|
106244
106196
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -106273,10 +106225,10 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106273
106225
|
if (!edge || edge.peer || edge.dev) continue;
|
|
106274
106226
|
const node = this.tree.edgesOut.get(dep).to;
|
|
106275
106227
|
if (!node) continue;
|
|
106276
|
-
const path$
|
|
106228
|
+
const path$39 = node.path;
|
|
106277
106229
|
const tree = node.target;
|
|
106278
106230
|
const walkerOpts = {
|
|
106279
|
-
path: path$
|
|
106231
|
+
path: path$39,
|
|
106280
106232
|
isPackage: true,
|
|
106281
106233
|
ignoreFiles: [],
|
|
106282
106234
|
seen: this.seen
|
|
@@ -106295,7 +106247,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106295
106247
|
walker.start();
|
|
106296
106248
|
});
|
|
106297
106249
|
const relativeFrom = relative(this.root, walker.path);
|
|
106298
|
-
for (const file of bundled) this.result.add(join$
|
|
106250
|
+
for (const file of bundled) this.result.add(join$5(relativeFrom, file).replace(/\\/g, "/"));
|
|
106299
106251
|
}
|
|
106300
106252
|
}
|
|
106301
106253
|
};
|
|
@@ -106353,7 +106305,7 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
106353
106305
|
const { resolve: resolve$4 } = require("path");
|
|
106354
106306
|
let npm_config_node_gyp;
|
|
106355
106307
|
const makeSpawnArgs = (options) => {
|
|
106356
|
-
const { args, binPaths, cmd, env, event, nodeGyp, path: path$
|
|
106308
|
+
const { args, binPaths, cmd, env, event, nodeGyp, path: path$36, scriptShell = true, stdio, stdioString } = options;
|
|
106357
106309
|
if (nodeGyp) npm_config_node_gyp = nodeGyp;
|
|
106358
106310
|
else if (env.npm_config_node_gyp) npm_config_node_gyp = env.npm_config_node_gyp;
|
|
106359
106311
|
else npm_config_node_gyp = require.resolve("node-gyp/bin/node-gyp.js");
|
|
@@ -106361,17 +106313,17 @@ var require_make_spawn_args = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
106361
106313
|
cmd,
|
|
106362
106314
|
args,
|
|
106363
106315
|
{
|
|
106364
|
-
env: setPATH(path$
|
|
106316
|
+
env: setPATH(path$36, binPaths, {
|
|
106365
106317
|
...process.env,
|
|
106366
106318
|
...env,
|
|
106367
|
-
npm_package_json: resolve$4(path$
|
|
106319
|
+
npm_package_json: resolve$4(path$36, "package.json"),
|
|
106368
106320
|
npm_lifecycle_event: event,
|
|
106369
106321
|
npm_lifecycle_script: cmd,
|
|
106370
106322
|
npm_config_node_gyp
|
|
106371
106323
|
}),
|
|
106372
106324
|
stdioString,
|
|
106373
106325
|
stdio,
|
|
106374
|
-
cwd: path$
|
|
106326
|
+
cwd: path$36,
|
|
106375
106327
|
shell: scriptShell
|
|
106376
106328
|
}
|
|
106377
106329
|
];
|
|
@@ -135689,7 +135641,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
135689
135641
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
135690
135642
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
135691
135643
|
const { basename: basename$1, dirname: dirname$3 } = require("node:path");
|
|
135692
|
-
const { rm: rm$
|
|
135644
|
+
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
135693
135645
|
const PackageJson = require_lib$18();
|
|
135694
135646
|
const cacache = require_lib$14();
|
|
135695
135647
|
const fsm = require_lib$13();
|
|
@@ -135866,7 +135818,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
135866
135818
|
return getContents({
|
|
135867
135819
|
path,
|
|
135868
135820
|
depth: 1
|
|
135869
|
-
}).then((contents) => Promise.all(contents.map((entry) => rm$
|
|
135821
|
+
}).then((contents) => Promise.all(contents.map((entry) => rm$4(entry, {
|
|
135870
135822
|
recursive: true,
|
|
135871
135823
|
force: true
|
|
135872
135824
|
}))));
|
|
@@ -143663,9 +143615,9 @@ var require_mime_types = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
143663
143615
|
* @param {string} path
|
|
143664
143616
|
* @return {boolean|string}
|
|
143665
143617
|
*/
|
|
143666
|
-
function lookup(path$
|
|
143667
|
-
if (!path$
|
|
143668
|
-
var extension = extname("x." + path$
|
|
143618
|
+
function lookup(path$35) {
|
|
143619
|
+
if (!path$35 || typeof path$35 !== "string") return false;
|
|
143620
|
+
var extension = extname("x." + path$35).toLowerCase().substr(1);
|
|
143669
143621
|
if (!extension) return false;
|
|
143670
143622
|
return exports.types[extension] || false;
|
|
143671
143623
|
}
|
|
@@ -144771,7 +144723,7 @@ require_semver();
|
|
|
144771
144723
|
require_lib();
|
|
144772
144724
|
//#endregion
|
|
144773
144725
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
144774
|
-
const { join: join$
|
|
144726
|
+
const { join: join$3 } = node_path.default;
|
|
144775
144727
|
//#endregion
|
|
144776
144728
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
144777
144729
|
const localPluginsMap = /* @__PURE__ */ new Map();
|
|
@@ -144799,9 +144751,9 @@ const createEventRunner = (runner) => runner;
|
|
|
144799
144751
|
const logAction = createAction({
|
|
144800
144752
|
id: "log",
|
|
144801
144753
|
name: "Log",
|
|
144802
|
-
description: "
|
|
144754
|
+
description: "Write a custom message to the execution log.",
|
|
144803
144755
|
icon: "",
|
|
144804
|
-
displayString: "`Log \"${fmt.param(params.message)}\"`",
|
|
144756
|
+
displayString: "`Log message: \"${fmt.param(params.message)}\"`",
|
|
144805
144757
|
meta: {},
|
|
144806
144758
|
params: { message: createStringParam("", {
|
|
144807
144759
|
required: true,
|
|
@@ -144826,9 +144778,9 @@ const manualEvaluator = createEventRunner(async () => {});
|
|
|
144826
144778
|
const alertAction = createAction({
|
|
144827
144779
|
id: "system:alert",
|
|
144828
144780
|
name: "Alert",
|
|
144829
|
-
description: "
|
|
144781
|
+
description: "Display a popup alert dialog with a message.",
|
|
144830
144782
|
icon: "",
|
|
144831
|
-
displayString: "`
|
|
144783
|
+
displayString: "`Show alert: ${fmt.param(params.message ?? 'No message')}`",
|
|
144832
144784
|
meta: {},
|
|
144833
144785
|
params: { message: createStringParam("", {
|
|
144834
144786
|
required: true,
|
|
@@ -144848,9 +144800,9 @@ const alertActionRunner = createActionRunner(async ({ log, inputs, api, setOutpu
|
|
|
144848
144800
|
const promptAction = createAction({
|
|
144849
144801
|
id: "system:prompt",
|
|
144850
144802
|
name: "Prompt",
|
|
144851
|
-
description: "
|
|
144803
|
+
description: "Display a dialog box asking the user to input text.",
|
|
144852
144804
|
icon: "",
|
|
144853
|
-
displayString: "`
|
|
144805
|
+
displayString: "`Ask for input: ${fmt.param(params.message ?? 'No message')}`",
|
|
144854
144806
|
meta: {},
|
|
144855
144807
|
params: { message: createStringParam("", {
|
|
144856
144808
|
required: true,
|
|
@@ -144871,7 +144823,7 @@ const promptActionRunner = createActionRunner(async ({ log, inputs, api, setOutp
|
|
|
144871
144823
|
const sleepAction = createAction({
|
|
144872
144824
|
id: "system:sleep",
|
|
144873
144825
|
name: "Wait",
|
|
144874
|
-
description: "
|
|
144826
|
+
description: "Pause the pipeline execution for a specified duration.",
|
|
144875
144827
|
icon: "",
|
|
144876
144828
|
displayString: "`Wait for ${fmt.param(params.duration)}ms`",
|
|
144877
144829
|
meta: {},
|