@apps-in-toss/framework 0.0.13 → 0.0.15
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 +251 -32
- package/dist/index.d.cts +424 -7
- package/dist/index.d.ts +424 -7
- package/dist/index.js +246 -25
- package/dist/plugins/index.cjs +344 -308
- package/dist/plugins/index.d.cts +23 -3
- package/dist/plugins/index.d.ts +23 -3
- package/dist/plugins/index.js +350 -317
- package/package.json +8 -8
- package/src/async-bridges.ts +2 -0
package/dist/plugins/index.cjs
CHANGED
|
@@ -121,8 +121,8 @@ var require_windows = __commonJS({
|
|
|
121
121
|
init_cjs_shims();
|
|
122
122
|
module2.exports = isexe;
|
|
123
123
|
isexe.sync = sync;
|
|
124
|
-
var
|
|
125
|
-
function checkPathExt(
|
|
124
|
+
var fs7 = require("fs");
|
|
125
|
+
function checkPathExt(path14, options) {
|
|
126
126
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
127
127
|
if (!pathext) {
|
|
128
128
|
return true;
|
|
@@ -133,25 +133,25 @@ var require_windows = __commonJS({
|
|
|
133
133
|
}
|
|
134
134
|
for (var i2 = 0; i2 < pathext.length; i2++) {
|
|
135
135
|
var p = pathext[i2].toLowerCase();
|
|
136
|
-
if (p &&
|
|
136
|
+
if (p && path14.substr(-p.length).toLowerCase() === p) {
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
return false;
|
|
141
141
|
}
|
|
142
|
-
function checkStat(stat,
|
|
142
|
+
function checkStat(stat, path14, options) {
|
|
143
143
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
|
-
return checkPathExt(
|
|
146
|
+
return checkPathExt(path14, options);
|
|
147
147
|
}
|
|
148
|
-
function isexe(
|
|
149
|
-
|
|
150
|
-
cb(er, er ? false : checkStat(stat,
|
|
148
|
+
function isexe(path14, options, cb) {
|
|
149
|
+
fs7.stat(path14, function(er, stat) {
|
|
150
|
+
cb(er, er ? false : checkStat(stat, path14, options));
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function sync(
|
|
154
|
-
return checkStat(
|
|
153
|
+
function sync(path14, options) {
|
|
154
|
+
return checkStat(fs7.statSync(path14), path14, options);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
});
|
|
@@ -163,14 +163,14 @@ var require_mode = __commonJS({
|
|
|
163
163
|
init_cjs_shims();
|
|
164
164
|
module2.exports = isexe;
|
|
165
165
|
isexe.sync = sync;
|
|
166
|
-
var
|
|
167
|
-
function isexe(
|
|
168
|
-
|
|
166
|
+
var fs7 = require("fs");
|
|
167
|
+
function isexe(path14, options, cb) {
|
|
168
|
+
fs7.stat(path14, function(er, stat) {
|
|
169
169
|
cb(er, er ? false : checkStat(stat, options));
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function sync(
|
|
173
|
-
return checkStat(
|
|
172
|
+
function sync(path14, options) {
|
|
173
|
+
return checkStat(fs7.statSync(path14), options);
|
|
174
174
|
}
|
|
175
175
|
function checkStat(stat, options) {
|
|
176
176
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -196,7 +196,7 @@ var require_isexe = __commonJS({
|
|
|
196
196
|
"../../.yarn/cache/isexe-npm-2.0.0-ac27b2c17a-228cfa503f.zip/node_modules/isexe/index.js"(exports2, module2) {
|
|
197
197
|
"use strict";
|
|
198
198
|
init_cjs_shims();
|
|
199
|
-
var
|
|
199
|
+
var fs7 = require("fs");
|
|
200
200
|
var core;
|
|
201
201
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
202
202
|
core = require_windows();
|
|
@@ -205,7 +205,7 @@ var require_isexe = __commonJS({
|
|
|
205
205
|
}
|
|
206
206
|
module2.exports = isexe;
|
|
207
207
|
isexe.sync = sync;
|
|
208
|
-
function isexe(
|
|
208
|
+
function isexe(path14, options, cb) {
|
|
209
209
|
if (typeof options === "function") {
|
|
210
210
|
cb = options;
|
|
211
211
|
options = {};
|
|
@@ -215,7 +215,7 @@ var require_isexe = __commonJS({
|
|
|
215
215
|
throw new TypeError("callback not provided");
|
|
216
216
|
}
|
|
217
217
|
return new Promise(function(resolve2, reject2) {
|
|
218
|
-
isexe(
|
|
218
|
+
isexe(path14, options || {}, function(er, is) {
|
|
219
219
|
if (er) {
|
|
220
220
|
reject2(er);
|
|
221
221
|
} else {
|
|
@@ -224,7 +224,7 @@ var require_isexe = __commonJS({
|
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
core(
|
|
227
|
+
core(path14, options || {}, function(er, is) {
|
|
228
228
|
if (er) {
|
|
229
229
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
230
230
|
er = null;
|
|
@@ -234,9 +234,9 @@ var require_isexe = __commonJS({
|
|
|
234
234
|
cb(er, is);
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
function sync(
|
|
237
|
+
function sync(path14, options) {
|
|
238
238
|
try {
|
|
239
|
-
return core.sync(
|
|
239
|
+
return core.sync(path14, options || {});
|
|
240
240
|
} catch (er) {
|
|
241
241
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
242
242
|
return false;
|
|
@@ -254,7 +254,7 @@ var require_which = __commonJS({
|
|
|
254
254
|
"use strict";
|
|
255
255
|
init_cjs_shims();
|
|
256
256
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
257
|
-
var
|
|
257
|
+
var path14 = require("path");
|
|
258
258
|
var COLON = isWindows ? ";" : ":";
|
|
259
259
|
var isexe = require_isexe();
|
|
260
260
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -292,7 +292,7 @@ var require_which = __commonJS({
|
|
|
292
292
|
return opt.all && found.length ? resolve2(found) : reject2(getNotFoundError(cmd));
|
|
293
293
|
const ppRaw = pathEnv[i2];
|
|
294
294
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
295
|
-
const pCmd =
|
|
295
|
+
const pCmd = path14.join(pathPart, cmd);
|
|
296
296
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
297
297
|
resolve2(subStep(p, i2, 0));
|
|
298
298
|
});
|
|
@@ -319,7 +319,7 @@ var require_which = __commonJS({
|
|
|
319
319
|
for (let i2 = 0; i2 < pathEnv.length; i2++) {
|
|
320
320
|
const ppRaw = pathEnv[i2];
|
|
321
321
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
322
|
-
const pCmd =
|
|
322
|
+
const pCmd = path14.join(pathPart, cmd);
|
|
323
323
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
324
324
|
for (let j = 0; j < pathExt.length; j++) {
|
|
325
325
|
const cur = p + pathExt[j];
|
|
@@ -369,7 +369,7 @@ var require_resolveCommand = __commonJS({
|
|
|
369
369
|
"../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
370
370
|
"use strict";
|
|
371
371
|
init_cjs_shims();
|
|
372
|
-
var
|
|
372
|
+
var path14 = require("path");
|
|
373
373
|
var which = require_which();
|
|
374
374
|
var getPathKey = require_path_key();
|
|
375
375
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -387,7 +387,7 @@ var require_resolveCommand = __commonJS({
|
|
|
387
387
|
try {
|
|
388
388
|
resolved = which.sync(parsed.command, {
|
|
389
389
|
path: env[getPathKey({ env })],
|
|
390
|
-
pathExt: withoutPathExt ?
|
|
390
|
+
pathExt: withoutPathExt ? path14.delimiter : void 0
|
|
391
391
|
});
|
|
392
392
|
} catch (e) {
|
|
393
393
|
} finally {
|
|
@@ -396,7 +396,7 @@ var require_resolveCommand = __commonJS({
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
if (resolved) {
|
|
399
|
-
resolved =
|
|
399
|
+
resolved = path14.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
400
400
|
}
|
|
401
401
|
return resolved;
|
|
402
402
|
}
|
|
@@ -453,8 +453,8 @@ var require_shebang_command = __commonJS({
|
|
|
453
453
|
if (!match) {
|
|
454
454
|
return null;
|
|
455
455
|
}
|
|
456
|
-
const [
|
|
457
|
-
const binary2 =
|
|
456
|
+
const [path14, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
457
|
+
const binary2 = path14.split("/").pop();
|
|
458
458
|
if (binary2 === "env") {
|
|
459
459
|
return argument;
|
|
460
460
|
}
|
|
@@ -468,16 +468,16 @@ var require_readShebang = __commonJS({
|
|
|
468
468
|
"../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
469
469
|
"use strict";
|
|
470
470
|
init_cjs_shims();
|
|
471
|
-
var
|
|
471
|
+
var fs7 = require("fs");
|
|
472
472
|
var shebangCommand = require_shebang_command();
|
|
473
473
|
function readShebang(command) {
|
|
474
474
|
const size = 150;
|
|
475
475
|
const buffer = Buffer.alloc(size);
|
|
476
476
|
let fd;
|
|
477
477
|
try {
|
|
478
|
-
fd =
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
fd = fs7.openSync(command, "r");
|
|
479
|
+
fs7.readSync(fd, buffer, 0, size, 0);
|
|
480
|
+
fs7.closeSync(fd);
|
|
481
481
|
} catch (e) {
|
|
482
482
|
}
|
|
483
483
|
return shebangCommand(buffer.toString());
|
|
@@ -491,7 +491,7 @@ var require_parse = __commonJS({
|
|
|
491
491
|
"../../.yarn/cache/cross-spawn-npm-7.0.3-68b62748dc-5738c31238.zip/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
492
492
|
"use strict";
|
|
493
493
|
init_cjs_shims();
|
|
494
|
-
var
|
|
494
|
+
var path14 = require("path");
|
|
495
495
|
var resolveCommand = require_resolveCommand();
|
|
496
496
|
var escape = require_escape();
|
|
497
497
|
var readShebang = require_readShebang();
|
|
@@ -516,7 +516,7 @@ var require_parse = __commonJS({
|
|
|
516
516
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
517
517
|
if (parsed.options.forceShell || needsShell) {
|
|
518
518
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
519
|
-
parsed.command =
|
|
519
|
+
parsed.command = path14.normalize(parsed.command);
|
|
520
520
|
parsed.command = escape.command(parsed.command);
|
|
521
521
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
522
522
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -862,8 +862,8 @@ var require_minimatch = __commonJS({
|
|
|
862
862
|
return new Minimatch(pattern, options).match(p);
|
|
863
863
|
};
|
|
864
864
|
module2.exports = minimatch;
|
|
865
|
-
var
|
|
866
|
-
minimatch.sep =
|
|
865
|
+
var path14 = require_path();
|
|
866
|
+
minimatch.sep = path14.sep;
|
|
867
867
|
var GLOBSTAR = Symbol("globstar **");
|
|
868
868
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
869
869
|
var expand = require_brace_expansion();
|
|
@@ -1372,8 +1372,8 @@ var require_minimatch = __commonJS({
|
|
|
1372
1372
|
if (this.empty) return f === "";
|
|
1373
1373
|
if (f === "/" && partial) return true;
|
|
1374
1374
|
const options = this.options;
|
|
1375
|
-
if (
|
|
1376
|
-
f = f.split(
|
|
1375
|
+
if (path14.sep !== "/") {
|
|
1376
|
+
f = f.split(path14.sep).join("/");
|
|
1377
1377
|
}
|
|
1378
1378
|
f = f.split(slashSplit);
|
|
1379
1379
|
this.debug(this.pattern, "split", f);
|
|
@@ -1413,13 +1413,13 @@ var require_readdir_glob = __commonJS({
|
|
|
1413
1413
|
"use strict";
|
|
1414
1414
|
init_cjs_shims();
|
|
1415
1415
|
module2.exports = readdirGlob;
|
|
1416
|
-
var
|
|
1416
|
+
var fs7 = require("fs");
|
|
1417
1417
|
var { EventEmitter: EventEmitter2 } = require("events");
|
|
1418
1418
|
var { Minimatch } = require_minimatch();
|
|
1419
1419
|
var { resolve: resolve2 } = require("path");
|
|
1420
1420
|
function readdir(dir2, strict) {
|
|
1421
1421
|
return new Promise((resolve3, reject2) => {
|
|
1422
|
-
|
|
1422
|
+
fs7.readdir(dir2, { withFileTypes: true }, (err, files) => {
|
|
1423
1423
|
if (err) {
|
|
1424
1424
|
switch (err.code) {
|
|
1425
1425
|
case "ENOTDIR":
|
|
@@ -1452,7 +1452,7 @@ var require_readdir_glob = __commonJS({
|
|
|
1452
1452
|
}
|
|
1453
1453
|
function stat(file, followSymlinks) {
|
|
1454
1454
|
return new Promise((resolve3, reject2) => {
|
|
1455
|
-
const statFunc = followSymlinks ?
|
|
1455
|
+
const statFunc = followSymlinks ? fs7.stat : fs7.lstat;
|
|
1456
1456
|
statFunc(file, (err, stats) => {
|
|
1457
1457
|
if (err) {
|
|
1458
1458
|
switch (err.code) {
|
|
@@ -1473,8 +1473,8 @@ var require_readdir_glob = __commonJS({
|
|
|
1473
1473
|
});
|
|
1474
1474
|
});
|
|
1475
1475
|
}
|
|
1476
|
-
async function* exploreWalkAsync(dir2,
|
|
1477
|
-
let files = await readdir(
|
|
1476
|
+
async function* exploreWalkAsync(dir2, path14, followSymlinks, useStat, shouldSkip, strict) {
|
|
1477
|
+
let files = await readdir(path14 + dir2, strict);
|
|
1478
1478
|
for (const file of files) {
|
|
1479
1479
|
let name = file.name;
|
|
1480
1480
|
if (name === void 0) {
|
|
@@ -1483,7 +1483,7 @@ var require_readdir_glob = __commonJS({
|
|
|
1483
1483
|
}
|
|
1484
1484
|
const filename = dir2 + "/" + name;
|
|
1485
1485
|
const relative = filename.slice(1);
|
|
1486
|
-
const absolute =
|
|
1486
|
+
const absolute = path14 + "/" + relative;
|
|
1487
1487
|
let stats = null;
|
|
1488
1488
|
if (useStat || followSymlinks) {
|
|
1489
1489
|
stats = await stat(absolute, followSymlinks);
|
|
@@ -1497,15 +1497,15 @@ var require_readdir_glob = __commonJS({
|
|
|
1497
1497
|
if (stats.isDirectory()) {
|
|
1498
1498
|
if (!shouldSkip(relative)) {
|
|
1499
1499
|
yield { relative, absolute, stats };
|
|
1500
|
-
yield* exploreWalkAsync(filename,
|
|
1500
|
+
yield* exploreWalkAsync(filename, path14, followSymlinks, useStat, shouldSkip, false);
|
|
1501
1501
|
}
|
|
1502
1502
|
} else {
|
|
1503
1503
|
yield { relative, absolute, stats };
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
async function* explore(
|
|
1508
|
-
yield* exploreWalkAsync("",
|
|
1507
|
+
async function* explore(path14, followSymlinks, useStat, shouldSkip) {
|
|
1508
|
+
yield* exploreWalkAsync("", path14, followSymlinks, useStat, shouldSkip, true);
|
|
1509
1509
|
}
|
|
1510
1510
|
function readOptions(options) {
|
|
1511
1511
|
return {
|
|
@@ -3518,54 +3518,54 @@ var require_polyfills = __commonJS({
|
|
|
3518
3518
|
}
|
|
3519
3519
|
var chdir;
|
|
3520
3520
|
module2.exports = patch;
|
|
3521
|
-
function patch(
|
|
3521
|
+
function patch(fs7) {
|
|
3522
3522
|
if (constants5.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
3523
|
-
patchLchmod(
|
|
3524
|
-
}
|
|
3525
|
-
if (!
|
|
3526
|
-
patchLutimes(
|
|
3527
|
-
}
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
if (
|
|
3547
|
-
|
|
3523
|
+
patchLchmod(fs7);
|
|
3524
|
+
}
|
|
3525
|
+
if (!fs7.lutimes) {
|
|
3526
|
+
patchLutimes(fs7);
|
|
3527
|
+
}
|
|
3528
|
+
fs7.chown = chownFix(fs7.chown);
|
|
3529
|
+
fs7.fchown = chownFix(fs7.fchown);
|
|
3530
|
+
fs7.lchown = chownFix(fs7.lchown);
|
|
3531
|
+
fs7.chmod = chmodFix(fs7.chmod);
|
|
3532
|
+
fs7.fchmod = chmodFix(fs7.fchmod);
|
|
3533
|
+
fs7.lchmod = chmodFix(fs7.lchmod);
|
|
3534
|
+
fs7.chownSync = chownFixSync(fs7.chownSync);
|
|
3535
|
+
fs7.fchownSync = chownFixSync(fs7.fchownSync);
|
|
3536
|
+
fs7.lchownSync = chownFixSync(fs7.lchownSync);
|
|
3537
|
+
fs7.chmodSync = chmodFixSync(fs7.chmodSync);
|
|
3538
|
+
fs7.fchmodSync = chmodFixSync(fs7.fchmodSync);
|
|
3539
|
+
fs7.lchmodSync = chmodFixSync(fs7.lchmodSync);
|
|
3540
|
+
fs7.stat = statFix(fs7.stat);
|
|
3541
|
+
fs7.fstat = statFix(fs7.fstat);
|
|
3542
|
+
fs7.lstat = statFix(fs7.lstat);
|
|
3543
|
+
fs7.statSync = statFixSync(fs7.statSync);
|
|
3544
|
+
fs7.fstatSync = statFixSync(fs7.fstatSync);
|
|
3545
|
+
fs7.lstatSync = statFixSync(fs7.lstatSync);
|
|
3546
|
+
if (fs7.chmod && !fs7.lchmod) {
|
|
3547
|
+
fs7.lchmod = function(path14, mode, cb) {
|
|
3548
3548
|
if (cb) process.nextTick(cb);
|
|
3549
3549
|
};
|
|
3550
|
-
|
|
3550
|
+
fs7.lchmodSync = function() {
|
|
3551
3551
|
};
|
|
3552
3552
|
}
|
|
3553
|
-
if (
|
|
3554
|
-
|
|
3553
|
+
if (fs7.chown && !fs7.lchown) {
|
|
3554
|
+
fs7.lchown = function(path14, uid, gid, cb) {
|
|
3555
3555
|
if (cb) process.nextTick(cb);
|
|
3556
3556
|
};
|
|
3557
|
-
|
|
3557
|
+
fs7.lchownSync = function() {
|
|
3558
3558
|
};
|
|
3559
3559
|
}
|
|
3560
3560
|
if (platform2 === "win32") {
|
|
3561
|
-
|
|
3561
|
+
fs7.rename = typeof fs7.rename !== "function" ? fs7.rename : function(fs$rename) {
|
|
3562
3562
|
function rename(from, to, cb) {
|
|
3563
3563
|
var start = Date.now();
|
|
3564
3564
|
var backoff = 0;
|
|
3565
3565
|
fs$rename(from, to, function CB(er) {
|
|
3566
3566
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
3567
3567
|
setTimeout(function() {
|
|
3568
|
-
|
|
3568
|
+
fs7.stat(to, function(stater, st) {
|
|
3569
3569
|
if (stater && stater.code === "ENOENT")
|
|
3570
3570
|
fs$rename(from, to, CB);
|
|
3571
3571
|
else
|
|
@@ -3581,9 +3581,9 @@ var require_polyfills = __commonJS({
|
|
|
3581
3581
|
}
|
|
3582
3582
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
3583
3583
|
return rename;
|
|
3584
|
-
}(
|
|
3584
|
+
}(fs7.rename);
|
|
3585
3585
|
}
|
|
3586
|
-
|
|
3586
|
+
fs7.read = typeof fs7.read !== "function" ? fs7.read : function(fs$read) {
|
|
3587
3587
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
3588
3588
|
var callback;
|
|
3589
3589
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -3591,22 +3591,22 @@ var require_polyfills = __commonJS({
|
|
|
3591
3591
|
callback = function(er, _2, __) {
|
|
3592
3592
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
3593
3593
|
eagCounter++;
|
|
3594
|
-
return fs$read.call(
|
|
3594
|
+
return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
|
|
3595
3595
|
}
|
|
3596
3596
|
callback_.apply(this, arguments);
|
|
3597
3597
|
};
|
|
3598
3598
|
}
|
|
3599
|
-
return fs$read.call(
|
|
3599
|
+
return fs$read.call(fs7, fd, buffer, offset, length, position, callback);
|
|
3600
3600
|
}
|
|
3601
3601
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
3602
3602
|
return read;
|
|
3603
|
-
}(
|
|
3604
|
-
|
|
3603
|
+
}(fs7.read);
|
|
3604
|
+
fs7.readSync = typeof fs7.readSync !== "function" ? fs7.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
3605
3605
|
return function(fd, buffer, offset, length, position) {
|
|
3606
3606
|
var eagCounter = 0;
|
|
3607
3607
|
while (true) {
|
|
3608
3608
|
try {
|
|
3609
|
-
return fs$readSync.call(
|
|
3609
|
+
return fs$readSync.call(fs7, fd, buffer, offset, length, position);
|
|
3610
3610
|
} catch (er) {
|
|
3611
3611
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
3612
3612
|
eagCounter++;
|
|
@@ -3616,11 +3616,11 @@ var require_polyfills = __commonJS({
|
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
3618
|
};
|
|
3619
|
-
}(
|
|
3620
|
-
function patchLchmod(
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3619
|
+
}(fs7.readSync);
|
|
3620
|
+
function patchLchmod(fs8) {
|
|
3621
|
+
fs8.lchmod = function(path14, mode, callback) {
|
|
3622
|
+
fs8.open(
|
|
3623
|
+
path14,
|
|
3624
3624
|
constants5.O_WRONLY | constants5.O_SYMLINK,
|
|
3625
3625
|
mode,
|
|
3626
3626
|
function(err, fd) {
|
|
@@ -3628,80 +3628,80 @@ var require_polyfills = __commonJS({
|
|
|
3628
3628
|
if (callback) callback(err);
|
|
3629
3629
|
return;
|
|
3630
3630
|
}
|
|
3631
|
-
|
|
3632
|
-
|
|
3631
|
+
fs8.fchmod(fd, mode, function(err2) {
|
|
3632
|
+
fs8.close(fd, function(err22) {
|
|
3633
3633
|
if (callback) callback(err2 || err22);
|
|
3634
3634
|
});
|
|
3635
3635
|
});
|
|
3636
3636
|
}
|
|
3637
3637
|
);
|
|
3638
3638
|
};
|
|
3639
|
-
|
|
3640
|
-
var fd =
|
|
3639
|
+
fs8.lchmodSync = function(path14, mode) {
|
|
3640
|
+
var fd = fs8.openSync(path14, constants5.O_WRONLY | constants5.O_SYMLINK, mode);
|
|
3641
3641
|
var threw = true;
|
|
3642
3642
|
var ret;
|
|
3643
3643
|
try {
|
|
3644
|
-
ret =
|
|
3644
|
+
ret = fs8.fchmodSync(fd, mode);
|
|
3645
3645
|
threw = false;
|
|
3646
3646
|
} finally {
|
|
3647
3647
|
if (threw) {
|
|
3648
3648
|
try {
|
|
3649
|
-
|
|
3649
|
+
fs8.closeSync(fd);
|
|
3650
3650
|
} catch (er) {
|
|
3651
3651
|
}
|
|
3652
3652
|
} else {
|
|
3653
|
-
|
|
3653
|
+
fs8.closeSync(fd);
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
3656
|
return ret;
|
|
3657
3657
|
};
|
|
3658
3658
|
}
|
|
3659
|
-
function patchLutimes(
|
|
3660
|
-
if (constants5.hasOwnProperty("O_SYMLINK") &&
|
|
3661
|
-
|
|
3662
|
-
|
|
3659
|
+
function patchLutimes(fs8) {
|
|
3660
|
+
if (constants5.hasOwnProperty("O_SYMLINK") && fs8.futimes) {
|
|
3661
|
+
fs8.lutimes = function(path14, at, mt, cb) {
|
|
3662
|
+
fs8.open(path14, constants5.O_SYMLINK, function(er, fd) {
|
|
3663
3663
|
if (er) {
|
|
3664
3664
|
if (cb) cb(er);
|
|
3665
3665
|
return;
|
|
3666
3666
|
}
|
|
3667
|
-
|
|
3668
|
-
|
|
3667
|
+
fs8.futimes(fd, at, mt, function(er2) {
|
|
3668
|
+
fs8.close(fd, function(er22) {
|
|
3669
3669
|
if (cb) cb(er2 || er22);
|
|
3670
3670
|
});
|
|
3671
3671
|
});
|
|
3672
3672
|
});
|
|
3673
3673
|
};
|
|
3674
|
-
|
|
3675
|
-
var fd =
|
|
3674
|
+
fs8.lutimesSync = function(path14, at, mt) {
|
|
3675
|
+
var fd = fs8.openSync(path14, constants5.O_SYMLINK);
|
|
3676
3676
|
var ret;
|
|
3677
3677
|
var threw = true;
|
|
3678
3678
|
try {
|
|
3679
|
-
ret =
|
|
3679
|
+
ret = fs8.futimesSync(fd, at, mt);
|
|
3680
3680
|
threw = false;
|
|
3681
3681
|
} finally {
|
|
3682
3682
|
if (threw) {
|
|
3683
3683
|
try {
|
|
3684
|
-
|
|
3684
|
+
fs8.closeSync(fd);
|
|
3685
3685
|
} catch (er) {
|
|
3686
3686
|
}
|
|
3687
3687
|
} else {
|
|
3688
|
-
|
|
3688
|
+
fs8.closeSync(fd);
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
return ret;
|
|
3692
3692
|
};
|
|
3693
|
-
} else if (
|
|
3694
|
-
|
|
3693
|
+
} else if (fs8.futimes) {
|
|
3694
|
+
fs8.lutimes = function(_a, _b, _c, cb) {
|
|
3695
3695
|
if (cb) process.nextTick(cb);
|
|
3696
3696
|
};
|
|
3697
|
-
|
|
3697
|
+
fs8.lutimesSync = function() {
|
|
3698
3698
|
};
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
3701
|
function chmodFix(orig) {
|
|
3702
3702
|
if (!orig) return orig;
|
|
3703
3703
|
return function(target, mode, cb) {
|
|
3704
|
-
return orig.call(
|
|
3704
|
+
return orig.call(fs7, target, mode, function(er) {
|
|
3705
3705
|
if (chownErOk(er)) er = null;
|
|
3706
3706
|
if (cb) cb.apply(this, arguments);
|
|
3707
3707
|
});
|
|
@@ -3711,7 +3711,7 @@ var require_polyfills = __commonJS({
|
|
|
3711
3711
|
if (!orig) return orig;
|
|
3712
3712
|
return function(target, mode) {
|
|
3713
3713
|
try {
|
|
3714
|
-
return orig.call(
|
|
3714
|
+
return orig.call(fs7, target, mode);
|
|
3715
3715
|
} catch (er) {
|
|
3716
3716
|
if (!chownErOk(er)) throw er;
|
|
3717
3717
|
}
|
|
@@ -3720,7 +3720,7 @@ var require_polyfills = __commonJS({
|
|
|
3720
3720
|
function chownFix(orig) {
|
|
3721
3721
|
if (!orig) return orig;
|
|
3722
3722
|
return function(target, uid, gid, cb) {
|
|
3723
|
-
return orig.call(
|
|
3723
|
+
return orig.call(fs7, target, uid, gid, function(er) {
|
|
3724
3724
|
if (chownErOk(er)) er = null;
|
|
3725
3725
|
if (cb) cb.apply(this, arguments);
|
|
3726
3726
|
});
|
|
@@ -3730,7 +3730,7 @@ var require_polyfills = __commonJS({
|
|
|
3730
3730
|
if (!orig) return orig;
|
|
3731
3731
|
return function(target, uid, gid) {
|
|
3732
3732
|
try {
|
|
3733
|
-
return orig.call(
|
|
3733
|
+
return orig.call(fs7, target, uid, gid);
|
|
3734
3734
|
} catch (er) {
|
|
3735
3735
|
if (!chownErOk(er)) throw er;
|
|
3736
3736
|
}
|
|
@@ -3750,13 +3750,13 @@ var require_polyfills = __commonJS({
|
|
|
3750
3750
|
}
|
|
3751
3751
|
if (cb) cb.apply(this, arguments);
|
|
3752
3752
|
}
|
|
3753
|
-
return options ? orig.call(
|
|
3753
|
+
return options ? orig.call(fs7, target, options, callback) : orig.call(fs7, target, callback);
|
|
3754
3754
|
};
|
|
3755
3755
|
}
|
|
3756
3756
|
function statFixSync(orig) {
|
|
3757
3757
|
if (!orig) return orig;
|
|
3758
3758
|
return function(target, options) {
|
|
3759
|
-
var stats = options ? orig.call(
|
|
3759
|
+
var stats = options ? orig.call(fs7, target, options) : orig.call(fs7, target);
|
|
3760
3760
|
if (stats) {
|
|
3761
3761
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
3762
3762
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -3787,16 +3787,16 @@ var require_legacy_streams = __commonJS({
|
|
|
3787
3787
|
init_cjs_shims();
|
|
3788
3788
|
var Stream = require("stream").Stream;
|
|
3789
3789
|
module2.exports = legacy;
|
|
3790
|
-
function legacy(
|
|
3790
|
+
function legacy(fs7) {
|
|
3791
3791
|
return {
|
|
3792
3792
|
ReadStream,
|
|
3793
3793
|
WriteStream
|
|
3794
3794
|
};
|
|
3795
|
-
function ReadStream(
|
|
3796
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
3795
|
+
function ReadStream(path14, options) {
|
|
3796
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path14, options);
|
|
3797
3797
|
Stream.call(this);
|
|
3798
3798
|
var self2 = this;
|
|
3799
|
-
this.path =
|
|
3799
|
+
this.path = path14;
|
|
3800
3800
|
this.fd = null;
|
|
3801
3801
|
this.readable = true;
|
|
3802
3802
|
this.paused = false;
|
|
@@ -3830,7 +3830,7 @@ var require_legacy_streams = __commonJS({
|
|
|
3830
3830
|
});
|
|
3831
3831
|
return;
|
|
3832
3832
|
}
|
|
3833
|
-
|
|
3833
|
+
fs7.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
3834
3834
|
if (err) {
|
|
3835
3835
|
self2.emit("error", err);
|
|
3836
3836
|
self2.readable = false;
|
|
@@ -3841,10 +3841,10 @@ var require_legacy_streams = __commonJS({
|
|
|
3841
3841
|
self2._read();
|
|
3842
3842
|
});
|
|
3843
3843
|
}
|
|
3844
|
-
function WriteStream(
|
|
3845
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
3844
|
+
function WriteStream(path14, options) {
|
|
3845
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path14, options);
|
|
3846
3846
|
Stream.call(this);
|
|
3847
|
-
this.path =
|
|
3847
|
+
this.path = path14;
|
|
3848
3848
|
this.fd = null;
|
|
3849
3849
|
this.writable = true;
|
|
3850
3850
|
this.flags = "w";
|
|
@@ -3869,7 +3869,7 @@ var require_legacy_streams = __commonJS({
|
|
|
3869
3869
|
this.busy = false;
|
|
3870
3870
|
this._queue = [];
|
|
3871
3871
|
if (this.fd === null) {
|
|
3872
|
-
this._open =
|
|
3872
|
+
this._open = fs7.open;
|
|
3873
3873
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
3874
3874
|
this.flush();
|
|
3875
3875
|
}
|
|
@@ -3907,7 +3907,7 @@ var require_graceful_fs = __commonJS({
|
|
|
3907
3907
|
"../../.yarn/cache/graceful-fs-npm-4.2.11-b94d8104d4-386d011a55.zip/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
3908
3908
|
"use strict";
|
|
3909
3909
|
init_cjs_shims();
|
|
3910
|
-
var
|
|
3910
|
+
var fs7 = require("fs");
|
|
3911
3911
|
var polyfills = require_polyfills();
|
|
3912
3912
|
var legacy = require_legacy_streams();
|
|
3913
3913
|
var clone = require_clone();
|
|
@@ -3939,12 +3939,12 @@ var require_graceful_fs = __commonJS({
|
|
|
3939
3939
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
3940
3940
|
console.error(m);
|
|
3941
3941
|
};
|
|
3942
|
-
if (!
|
|
3942
|
+
if (!fs7[gracefulQueue]) {
|
|
3943
3943
|
queue2 = global[gracefulQueue] || [];
|
|
3944
|
-
publishQueue(
|
|
3945
|
-
|
|
3944
|
+
publishQueue(fs7, queue2);
|
|
3945
|
+
fs7.close = function(fs$close) {
|
|
3946
3946
|
function close(fd, cb) {
|
|
3947
|
-
return fs$close.call(
|
|
3947
|
+
return fs$close.call(fs7, fd, function(err) {
|
|
3948
3948
|
if (!err) {
|
|
3949
3949
|
resetQueue();
|
|
3950
3950
|
}
|
|
@@ -3956,48 +3956,48 @@ var require_graceful_fs = __commonJS({
|
|
|
3956
3956
|
value: fs$close
|
|
3957
3957
|
});
|
|
3958
3958
|
return close;
|
|
3959
|
-
}(
|
|
3960
|
-
|
|
3959
|
+
}(fs7.close);
|
|
3960
|
+
fs7.closeSync = function(fs$closeSync) {
|
|
3961
3961
|
function closeSync(fd) {
|
|
3962
|
-
fs$closeSync.apply(
|
|
3962
|
+
fs$closeSync.apply(fs7, arguments);
|
|
3963
3963
|
resetQueue();
|
|
3964
3964
|
}
|
|
3965
3965
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
3966
3966
|
value: fs$closeSync
|
|
3967
3967
|
});
|
|
3968
3968
|
return closeSync;
|
|
3969
|
-
}(
|
|
3969
|
+
}(fs7.closeSync);
|
|
3970
3970
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
3971
3971
|
process.on("exit", function() {
|
|
3972
|
-
debug(
|
|
3973
|
-
require("assert").equal(
|
|
3972
|
+
debug(fs7[gracefulQueue]);
|
|
3973
|
+
require("assert").equal(fs7[gracefulQueue].length, 0);
|
|
3974
3974
|
});
|
|
3975
3975
|
}
|
|
3976
3976
|
}
|
|
3977
3977
|
var queue2;
|
|
3978
3978
|
if (!global[gracefulQueue]) {
|
|
3979
|
-
publishQueue(global,
|
|
3980
|
-
}
|
|
3981
|
-
module2.exports = patch(clone(
|
|
3982
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
3983
|
-
module2.exports = patch(
|
|
3984
|
-
|
|
3985
|
-
}
|
|
3986
|
-
function patch(
|
|
3987
|
-
polyfills(
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
var fs$readFile =
|
|
3992
|
-
|
|
3993
|
-
function readFile2(
|
|
3979
|
+
publishQueue(global, fs7[gracefulQueue]);
|
|
3980
|
+
}
|
|
3981
|
+
module2.exports = patch(clone(fs7));
|
|
3982
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs7.__patched) {
|
|
3983
|
+
module2.exports = patch(fs7);
|
|
3984
|
+
fs7.__patched = true;
|
|
3985
|
+
}
|
|
3986
|
+
function patch(fs8) {
|
|
3987
|
+
polyfills(fs8);
|
|
3988
|
+
fs8.gracefulify = patch;
|
|
3989
|
+
fs8.createReadStream = createReadStream3;
|
|
3990
|
+
fs8.createWriteStream = createWriteStream3;
|
|
3991
|
+
var fs$readFile = fs8.readFile;
|
|
3992
|
+
fs8.readFile = readFile2;
|
|
3993
|
+
function readFile2(path14, options, cb) {
|
|
3994
3994
|
if (typeof options === "function")
|
|
3995
3995
|
cb = options, options = null;
|
|
3996
|
-
return go$readFile(
|
|
3997
|
-
function go$readFile(
|
|
3998
|
-
return fs$readFile(
|
|
3996
|
+
return go$readFile(path14, options, cb);
|
|
3997
|
+
function go$readFile(path15, options2, cb2, startTime) {
|
|
3998
|
+
return fs$readFile(path15, options2, function(err) {
|
|
3999
3999
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4000
|
-
enqueue([go$readFile, [
|
|
4000
|
+
enqueue([go$readFile, [path15, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4001
4001
|
else {
|
|
4002
4002
|
if (typeof cb2 === "function")
|
|
4003
4003
|
cb2.apply(this, arguments);
|
|
@@ -4005,16 +4005,16 @@ var require_graceful_fs = __commonJS({
|
|
|
4005
4005
|
});
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
|
-
var fs$writeFile =
|
|
4009
|
-
|
|
4010
|
-
function writeFile2(
|
|
4008
|
+
var fs$writeFile = fs8.writeFile;
|
|
4009
|
+
fs8.writeFile = writeFile2;
|
|
4010
|
+
function writeFile2(path14, data, options, cb) {
|
|
4011
4011
|
if (typeof options === "function")
|
|
4012
4012
|
cb = options, options = null;
|
|
4013
|
-
return go$writeFile(
|
|
4014
|
-
function go$writeFile(
|
|
4015
|
-
return fs$writeFile(
|
|
4013
|
+
return go$writeFile(path14, data, options, cb);
|
|
4014
|
+
function go$writeFile(path15, data2, options2, cb2, startTime) {
|
|
4015
|
+
return fs$writeFile(path15, data2, options2, function(err) {
|
|
4016
4016
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4017
|
-
enqueue([go$writeFile, [
|
|
4017
|
+
enqueue([go$writeFile, [path15, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4018
4018
|
else {
|
|
4019
4019
|
if (typeof cb2 === "function")
|
|
4020
4020
|
cb2.apply(this, arguments);
|
|
@@ -4022,17 +4022,17 @@ var require_graceful_fs = __commonJS({
|
|
|
4022
4022
|
});
|
|
4023
4023
|
}
|
|
4024
4024
|
}
|
|
4025
|
-
var fs$appendFile =
|
|
4025
|
+
var fs$appendFile = fs8.appendFile;
|
|
4026
4026
|
if (fs$appendFile)
|
|
4027
|
-
|
|
4028
|
-
function appendFile(
|
|
4027
|
+
fs8.appendFile = appendFile;
|
|
4028
|
+
function appendFile(path14, data, options, cb) {
|
|
4029
4029
|
if (typeof options === "function")
|
|
4030
4030
|
cb = options, options = null;
|
|
4031
|
-
return go$appendFile(
|
|
4032
|
-
function go$appendFile(
|
|
4033
|
-
return fs$appendFile(
|
|
4031
|
+
return go$appendFile(path14, data, options, cb);
|
|
4032
|
+
function go$appendFile(path15, data2, options2, cb2, startTime) {
|
|
4033
|
+
return fs$appendFile(path15, data2, options2, function(err) {
|
|
4034
4034
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4035
|
-
enqueue([go$appendFile, [
|
|
4035
|
+
enqueue([go$appendFile, [path15, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4036
4036
|
else {
|
|
4037
4037
|
if (typeof cb2 === "function")
|
|
4038
4038
|
cb2.apply(this, arguments);
|
|
@@ -4040,9 +4040,9 @@ var require_graceful_fs = __commonJS({
|
|
|
4040
4040
|
});
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
|
-
var fs$copyFile =
|
|
4043
|
+
var fs$copyFile = fs8.copyFile;
|
|
4044
4044
|
if (fs$copyFile)
|
|
4045
|
-
|
|
4045
|
+
fs8.copyFile = copyFile;
|
|
4046
4046
|
function copyFile(src, dest, flags, cb) {
|
|
4047
4047
|
if (typeof flags === "function") {
|
|
4048
4048
|
cb = flags;
|
|
@@ -4060,34 +4060,34 @@ var require_graceful_fs = __commonJS({
|
|
|
4060
4060
|
});
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
|
-
var fs$readdir =
|
|
4064
|
-
|
|
4063
|
+
var fs$readdir = fs8.readdir;
|
|
4064
|
+
fs8.readdir = readdir;
|
|
4065
4065
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
4066
|
-
function readdir(
|
|
4066
|
+
function readdir(path14, options, cb) {
|
|
4067
4067
|
if (typeof options === "function")
|
|
4068
4068
|
cb = options, options = null;
|
|
4069
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
4070
|
-
return fs$readdir(
|
|
4071
|
-
|
|
4069
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path15, options2, cb2, startTime) {
|
|
4070
|
+
return fs$readdir(path15, fs$readdirCallback(
|
|
4071
|
+
path15,
|
|
4072
4072
|
options2,
|
|
4073
4073
|
cb2,
|
|
4074
4074
|
startTime
|
|
4075
4075
|
));
|
|
4076
|
-
} : function go$readdir2(
|
|
4077
|
-
return fs$readdir(
|
|
4078
|
-
|
|
4076
|
+
} : function go$readdir2(path15, options2, cb2, startTime) {
|
|
4077
|
+
return fs$readdir(path15, options2, fs$readdirCallback(
|
|
4078
|
+
path15,
|
|
4079
4079
|
options2,
|
|
4080
4080
|
cb2,
|
|
4081
4081
|
startTime
|
|
4082
4082
|
));
|
|
4083
4083
|
};
|
|
4084
|
-
return go$readdir(
|
|
4085
|
-
function fs$readdirCallback(
|
|
4084
|
+
return go$readdir(path14, options, cb);
|
|
4085
|
+
function fs$readdirCallback(path15, options2, cb2, startTime) {
|
|
4086
4086
|
return function(err, files) {
|
|
4087
4087
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4088
4088
|
enqueue([
|
|
4089
4089
|
go$readdir,
|
|
4090
|
-
[
|
|
4090
|
+
[path15, options2, cb2],
|
|
4091
4091
|
err,
|
|
4092
4092
|
startTime || Date.now(),
|
|
4093
4093
|
Date.now()
|
|
@@ -4102,21 +4102,21 @@ var require_graceful_fs = __commonJS({
|
|
|
4102
4102
|
}
|
|
4103
4103
|
}
|
|
4104
4104
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
4105
|
-
var legStreams = legacy(
|
|
4105
|
+
var legStreams = legacy(fs8);
|
|
4106
4106
|
ReadStream = legStreams.ReadStream;
|
|
4107
4107
|
WriteStream = legStreams.WriteStream;
|
|
4108
4108
|
}
|
|
4109
|
-
var fs$ReadStream =
|
|
4109
|
+
var fs$ReadStream = fs8.ReadStream;
|
|
4110
4110
|
if (fs$ReadStream) {
|
|
4111
4111
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
4112
4112
|
ReadStream.prototype.open = ReadStream$open;
|
|
4113
4113
|
}
|
|
4114
|
-
var fs$WriteStream =
|
|
4114
|
+
var fs$WriteStream = fs8.WriteStream;
|
|
4115
4115
|
if (fs$WriteStream) {
|
|
4116
4116
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
4117
4117
|
WriteStream.prototype.open = WriteStream$open;
|
|
4118
4118
|
}
|
|
4119
|
-
Object.defineProperty(
|
|
4119
|
+
Object.defineProperty(fs8, "ReadStream", {
|
|
4120
4120
|
get: function() {
|
|
4121
4121
|
return ReadStream;
|
|
4122
4122
|
},
|
|
@@ -4126,7 +4126,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4126
4126
|
enumerable: true,
|
|
4127
4127
|
configurable: true
|
|
4128
4128
|
});
|
|
4129
|
-
Object.defineProperty(
|
|
4129
|
+
Object.defineProperty(fs8, "WriteStream", {
|
|
4130
4130
|
get: function() {
|
|
4131
4131
|
return WriteStream;
|
|
4132
4132
|
},
|
|
@@ -4137,7 +4137,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4137
4137
|
configurable: true
|
|
4138
4138
|
});
|
|
4139
4139
|
var FileReadStream = ReadStream;
|
|
4140
|
-
Object.defineProperty(
|
|
4140
|
+
Object.defineProperty(fs8, "FileReadStream", {
|
|
4141
4141
|
get: function() {
|
|
4142
4142
|
return FileReadStream;
|
|
4143
4143
|
},
|
|
@@ -4148,7 +4148,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4148
4148
|
configurable: true
|
|
4149
4149
|
});
|
|
4150
4150
|
var FileWriteStream = WriteStream;
|
|
4151
|
-
Object.defineProperty(
|
|
4151
|
+
Object.defineProperty(fs8, "FileWriteStream", {
|
|
4152
4152
|
get: function() {
|
|
4153
4153
|
return FileWriteStream;
|
|
4154
4154
|
},
|
|
@@ -4158,7 +4158,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4158
4158
|
enumerable: true,
|
|
4159
4159
|
configurable: true
|
|
4160
4160
|
});
|
|
4161
|
-
function ReadStream(
|
|
4161
|
+
function ReadStream(path14, options) {
|
|
4162
4162
|
if (this instanceof ReadStream)
|
|
4163
4163
|
return fs$ReadStream.apply(this, arguments), this;
|
|
4164
4164
|
else
|
|
@@ -4178,7 +4178,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4178
4178
|
}
|
|
4179
4179
|
});
|
|
4180
4180
|
}
|
|
4181
|
-
function WriteStream(
|
|
4181
|
+
function WriteStream(path14, options) {
|
|
4182
4182
|
if (this instanceof WriteStream)
|
|
4183
4183
|
return fs$WriteStream.apply(this, arguments), this;
|
|
4184
4184
|
else
|
|
@@ -4196,22 +4196,22 @@ var require_graceful_fs = __commonJS({
|
|
|
4196
4196
|
}
|
|
4197
4197
|
});
|
|
4198
4198
|
}
|
|
4199
|
-
function createReadStream3(
|
|
4200
|
-
return new
|
|
4199
|
+
function createReadStream3(path14, options) {
|
|
4200
|
+
return new fs8.ReadStream(path14, options);
|
|
4201
4201
|
}
|
|
4202
|
-
function createWriteStream3(
|
|
4203
|
-
return new
|
|
4202
|
+
function createWriteStream3(path14, options) {
|
|
4203
|
+
return new fs8.WriteStream(path14, options);
|
|
4204
4204
|
}
|
|
4205
|
-
var fs$open =
|
|
4206
|
-
|
|
4207
|
-
function open(
|
|
4205
|
+
var fs$open = fs8.open;
|
|
4206
|
+
fs8.open = open;
|
|
4207
|
+
function open(path14, flags, mode, cb) {
|
|
4208
4208
|
if (typeof mode === "function")
|
|
4209
4209
|
cb = mode, mode = null;
|
|
4210
|
-
return go$open(
|
|
4211
|
-
function go$open(
|
|
4212
|
-
return fs$open(
|
|
4210
|
+
return go$open(path14, flags, mode, cb);
|
|
4211
|
+
function go$open(path15, flags2, mode2, cb2, startTime) {
|
|
4212
|
+
return fs$open(path15, flags2, mode2, function(err, fd) {
|
|
4213
4213
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4214
|
-
enqueue([go$open, [
|
|
4214
|
+
enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4215
4215
|
else {
|
|
4216
4216
|
if (typeof cb2 === "function")
|
|
4217
4217
|
cb2.apply(this, arguments);
|
|
@@ -4219,20 +4219,20 @@ var require_graceful_fs = __commonJS({
|
|
|
4219
4219
|
});
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
return
|
|
4222
|
+
return fs8;
|
|
4223
4223
|
}
|
|
4224
4224
|
function enqueue(elem) {
|
|
4225
4225
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
4226
|
-
|
|
4226
|
+
fs7[gracefulQueue].push(elem);
|
|
4227
4227
|
retry2();
|
|
4228
4228
|
}
|
|
4229
4229
|
var retryTimer;
|
|
4230
4230
|
function resetQueue() {
|
|
4231
4231
|
var now = Date.now();
|
|
4232
|
-
for (var i2 = 0; i2 <
|
|
4233
|
-
if (
|
|
4234
|
-
|
|
4235
|
-
|
|
4232
|
+
for (var i2 = 0; i2 < fs7[gracefulQueue].length; ++i2) {
|
|
4233
|
+
if (fs7[gracefulQueue][i2].length > 2) {
|
|
4234
|
+
fs7[gracefulQueue][i2][3] = now;
|
|
4235
|
+
fs7[gracefulQueue][i2][4] = now;
|
|
4236
4236
|
}
|
|
4237
4237
|
}
|
|
4238
4238
|
retry2();
|
|
@@ -4240,9 +4240,9 @@ var require_graceful_fs = __commonJS({
|
|
|
4240
4240
|
function retry2() {
|
|
4241
4241
|
clearTimeout(retryTimer);
|
|
4242
4242
|
retryTimer = void 0;
|
|
4243
|
-
if (
|
|
4243
|
+
if (fs7[gracefulQueue].length === 0)
|
|
4244
4244
|
return;
|
|
4245
|
-
var elem =
|
|
4245
|
+
var elem = fs7[gracefulQueue].shift();
|
|
4246
4246
|
var fn = elem[0];
|
|
4247
4247
|
var args = elem[1];
|
|
4248
4248
|
var err = elem[2];
|
|
@@ -4264,7 +4264,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4264
4264
|
debug("RETRY", fn.name, args);
|
|
4265
4265
|
fn.apply(null, args.concat([startTime]));
|
|
4266
4266
|
} else {
|
|
4267
|
-
|
|
4267
|
+
fs7[gracefulQueue].push(elem);
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
4270
|
if (retryTimer === void 0) {
|
|
@@ -6348,22 +6348,22 @@ var require_normalize_path = __commonJS({
|
|
|
6348
6348
|
"../../.yarn/cache/normalize-path-npm-3.0.0-a747cc5237-e008c8142b.zip/node_modules/normalize-path/index.js"(exports2, module2) {
|
|
6349
6349
|
"use strict";
|
|
6350
6350
|
init_cjs_shims();
|
|
6351
|
-
module2.exports = function(
|
|
6352
|
-
if (typeof
|
|
6351
|
+
module2.exports = function(path14, stripTrailing) {
|
|
6352
|
+
if (typeof path14 !== "string") {
|
|
6353
6353
|
throw new TypeError("expected path to be a string");
|
|
6354
6354
|
}
|
|
6355
|
-
if (
|
|
6356
|
-
var len =
|
|
6357
|
-
if (len <= 1) return
|
|
6355
|
+
if (path14 === "\\" || path14 === "/") return "/";
|
|
6356
|
+
var len = path14.length;
|
|
6357
|
+
if (len <= 1) return path14;
|
|
6358
6358
|
var prefix = "";
|
|
6359
|
-
if (len > 4 &&
|
|
6360
|
-
var ch =
|
|
6361
|
-
if ((ch === "?" || ch === ".") &&
|
|
6362
|
-
|
|
6359
|
+
if (len > 4 && path14[3] === "\\") {
|
|
6360
|
+
var ch = path14[2];
|
|
6361
|
+
if ((ch === "?" || ch === ".") && path14.slice(0, 2) === "\\\\") {
|
|
6362
|
+
path14 = path14.slice(2);
|
|
6363
6363
|
prefix = "//";
|
|
6364
6364
|
}
|
|
6365
6365
|
}
|
|
6366
|
-
var segs =
|
|
6366
|
+
var segs = path14.split(/[/\\]+/);
|
|
6367
6367
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
|
6368
6368
|
segs.pop();
|
|
6369
6369
|
}
|
|
@@ -14978,11 +14978,11 @@ var require_commonjs = __commonJS({
|
|
|
14978
14978
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
14979
14979
|
};
|
|
14980
14980
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
14981
|
-
var
|
|
14981
|
+
var path14 = {
|
|
14982
14982
|
win32: { sep: "\\" },
|
|
14983
14983
|
posix: { sep: "/" }
|
|
14984
14984
|
};
|
|
14985
|
-
exports2.sep = defaultPlatform === "win32" ?
|
|
14985
|
+
exports2.sep = defaultPlatform === "win32" ? path14.win32.sep : path14.posix.sep;
|
|
14986
14986
|
exports2.minimatch.sep = exports2.sep;
|
|
14987
14987
|
exports2.GLOBSTAR = Symbol("globstar **");
|
|
14988
14988
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -18233,12 +18233,12 @@ var require_commonjs4 = __commonJS({
|
|
|
18233
18233
|
/**
|
|
18234
18234
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
18235
18235
|
*/
|
|
18236
|
-
resolve(
|
|
18237
|
-
if (!
|
|
18236
|
+
resolve(path14) {
|
|
18237
|
+
if (!path14) {
|
|
18238
18238
|
return this;
|
|
18239
18239
|
}
|
|
18240
|
-
const rootPath = this.getRootString(
|
|
18241
|
-
const dir2 =
|
|
18240
|
+
const rootPath = this.getRootString(path14);
|
|
18241
|
+
const dir2 = path14.substring(rootPath.length);
|
|
18242
18242
|
const dirParts = dir2.split(this.splitSep);
|
|
18243
18243
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
18244
18244
|
return result;
|
|
@@ -18991,8 +18991,8 @@ var require_commonjs4 = __commonJS({
|
|
|
18991
18991
|
/**
|
|
18992
18992
|
* @internal
|
|
18993
18993
|
*/
|
|
18994
|
-
getRootString(
|
|
18995
|
-
return node_path_1.win32.parse(
|
|
18994
|
+
getRootString(path14) {
|
|
18995
|
+
return node_path_1.win32.parse(path14).root;
|
|
18996
18996
|
}
|
|
18997
18997
|
/**
|
|
18998
18998
|
* @internal
|
|
@@ -19039,8 +19039,8 @@ var require_commonjs4 = __commonJS({
|
|
|
19039
19039
|
/**
|
|
19040
19040
|
* @internal
|
|
19041
19041
|
*/
|
|
19042
|
-
getRootString(
|
|
19043
|
-
return
|
|
19042
|
+
getRootString(path14) {
|
|
19043
|
+
return path14.startsWith("/") ? "/" : "";
|
|
19044
19044
|
}
|
|
19045
19045
|
/**
|
|
19046
19046
|
* @internal
|
|
@@ -19090,8 +19090,8 @@ var require_commonjs4 = __commonJS({
|
|
|
19090
19090
|
*
|
|
19091
19091
|
* @internal
|
|
19092
19092
|
*/
|
|
19093
|
-
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
19094
|
-
this.#fs = fsFromOption(
|
|
19093
|
+
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs: fs7 = defaultFS } = {}) {
|
|
19094
|
+
this.#fs = fsFromOption(fs7);
|
|
19095
19095
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
19096
19096
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
19097
19097
|
}
|
|
@@ -19130,11 +19130,11 @@ var require_commonjs4 = __commonJS({
|
|
|
19130
19130
|
/**
|
|
19131
19131
|
* Get the depth of a provided path, string, or the cwd
|
|
19132
19132
|
*/
|
|
19133
|
-
depth(
|
|
19134
|
-
if (typeof
|
|
19135
|
-
|
|
19133
|
+
depth(path14 = this.cwd) {
|
|
19134
|
+
if (typeof path14 === "string") {
|
|
19135
|
+
path14 = this.cwd.resolve(path14);
|
|
19136
19136
|
}
|
|
19137
|
-
return
|
|
19137
|
+
return path14.depth();
|
|
19138
19138
|
}
|
|
19139
19139
|
/**
|
|
19140
19140
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -19621,9 +19621,9 @@ var require_commonjs4 = __commonJS({
|
|
|
19621
19621
|
process10();
|
|
19622
19622
|
return results;
|
|
19623
19623
|
}
|
|
19624
|
-
chdir(
|
|
19624
|
+
chdir(path14 = this.cwd) {
|
|
19625
19625
|
const oldCwd = this.cwd;
|
|
19626
|
-
this.cwd = typeof
|
|
19626
|
+
this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
|
|
19627
19627
|
this.cwd[setAsCwd](oldCwd);
|
|
19628
19628
|
}
|
|
19629
19629
|
};
|
|
@@ -19650,8 +19650,8 @@ var require_commonjs4 = __commonJS({
|
|
|
19650
19650
|
/**
|
|
19651
19651
|
* @internal
|
|
19652
19652
|
*/
|
|
19653
|
-
newRoot(
|
|
19654
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
19653
|
+
newRoot(fs7) {
|
|
19654
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
|
|
19655
19655
|
}
|
|
19656
19656
|
/**
|
|
19657
19657
|
* Return true if the provided path string is an absolute path
|
|
@@ -19680,8 +19680,8 @@ var require_commonjs4 = __commonJS({
|
|
|
19680
19680
|
/**
|
|
19681
19681
|
* @internal
|
|
19682
19682
|
*/
|
|
19683
|
-
newRoot(
|
|
19684
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
19683
|
+
newRoot(fs7) {
|
|
19684
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs7 });
|
|
19685
19685
|
}
|
|
19686
19686
|
/**
|
|
19687
19687
|
* Return true if the provided path string is an absolute path
|
|
@@ -20014,8 +20014,8 @@ var require_processor = __commonJS({
|
|
|
20014
20014
|
}
|
|
20015
20015
|
// match, absolute, ifdir
|
|
20016
20016
|
entries() {
|
|
20017
|
-
return [...this.store.entries()].map(([
|
|
20018
|
-
|
|
20017
|
+
return [...this.store.entries()].map(([path14, n2]) => [
|
|
20018
|
+
path14,
|
|
20019
20019
|
!!(n2 & 2),
|
|
20020
20020
|
!!(n2 & 1)
|
|
20021
20021
|
]);
|
|
@@ -20234,9 +20234,9 @@ var require_walker = __commonJS({
|
|
|
20234
20234
|
signal;
|
|
20235
20235
|
maxDepth;
|
|
20236
20236
|
includeChildMatches;
|
|
20237
|
-
constructor(patterns,
|
|
20237
|
+
constructor(patterns, path14, opts) {
|
|
20238
20238
|
this.patterns = patterns;
|
|
20239
|
-
this.path =
|
|
20239
|
+
this.path = path14;
|
|
20240
20240
|
this.opts = opts;
|
|
20241
20241
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
20242
20242
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -20255,11 +20255,11 @@ var require_walker = __commonJS({
|
|
|
20255
20255
|
});
|
|
20256
20256
|
}
|
|
20257
20257
|
}
|
|
20258
|
-
#ignored(
|
|
20259
|
-
return this.seen.has(
|
|
20258
|
+
#ignored(path14) {
|
|
20259
|
+
return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
|
|
20260
20260
|
}
|
|
20261
|
-
#childrenIgnored(
|
|
20262
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
20261
|
+
#childrenIgnored(path14) {
|
|
20262
|
+
return !!this.#ignore?.childrenIgnored?.(path14);
|
|
20263
20263
|
}
|
|
20264
20264
|
// backpressure mechanism
|
|
20265
20265
|
pause() {
|
|
@@ -20475,8 +20475,8 @@ var require_walker = __commonJS({
|
|
|
20475
20475
|
exports2.GlobUtil = GlobUtil;
|
|
20476
20476
|
var GlobWalker = class extends GlobUtil {
|
|
20477
20477
|
matches = /* @__PURE__ */ new Set();
|
|
20478
|
-
constructor(patterns,
|
|
20479
|
-
super(patterns,
|
|
20478
|
+
constructor(patterns, path14, opts) {
|
|
20479
|
+
super(patterns, path14, opts);
|
|
20480
20480
|
}
|
|
20481
20481
|
matchEmit(e) {
|
|
20482
20482
|
this.matches.add(e);
|
|
@@ -20514,8 +20514,8 @@ var require_walker = __commonJS({
|
|
|
20514
20514
|
exports2.GlobWalker = GlobWalker;
|
|
20515
20515
|
var GlobStream = class extends GlobUtil {
|
|
20516
20516
|
results;
|
|
20517
|
-
constructor(patterns,
|
|
20518
|
-
super(patterns,
|
|
20517
|
+
constructor(patterns, path14, opts) {
|
|
20518
|
+
super(patterns, path14, opts);
|
|
20519
20519
|
this.results = new minipass_1.Minipass({
|
|
20520
20520
|
signal: this.signal,
|
|
20521
20521
|
objectMode: true
|
|
@@ -20875,8 +20875,8 @@ var require_file = __commonJS({
|
|
|
20875
20875
|
"../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
20876
20876
|
"use strict";
|
|
20877
20877
|
init_cjs_shims();
|
|
20878
|
-
var
|
|
20879
|
-
var
|
|
20878
|
+
var fs7 = require_graceful_fs();
|
|
20879
|
+
var path14 = require("path");
|
|
20880
20880
|
var flatten = require_flatten();
|
|
20881
20881
|
var difference = require_difference();
|
|
20882
20882
|
var union = require_union();
|
|
@@ -20901,8 +20901,8 @@ var require_file = __commonJS({
|
|
|
20901
20901
|
return result;
|
|
20902
20902
|
};
|
|
20903
20903
|
file.exists = function() {
|
|
20904
|
-
var filepath =
|
|
20905
|
-
return
|
|
20904
|
+
var filepath = path14.join.apply(path14, arguments);
|
|
20905
|
+
return fs7.existsSync(filepath);
|
|
20906
20906
|
};
|
|
20907
20907
|
file.expand = function(...args) {
|
|
20908
20908
|
var options = isPlainObject2(args[0]) ? args.shift() : {};
|
|
@@ -20915,12 +20915,12 @@ var require_file = __commonJS({
|
|
|
20915
20915
|
});
|
|
20916
20916
|
if (options.filter) {
|
|
20917
20917
|
matches = matches.filter(function(filepath) {
|
|
20918
|
-
filepath =
|
|
20918
|
+
filepath = path14.join(options.cwd || "", filepath);
|
|
20919
20919
|
try {
|
|
20920
20920
|
if (typeof options.filter === "function") {
|
|
20921
20921
|
return options.filter(filepath);
|
|
20922
20922
|
} else {
|
|
20923
|
-
return
|
|
20923
|
+
return fs7.statSync(filepath)[options.filter]();
|
|
20924
20924
|
}
|
|
20925
20925
|
} catch (e) {
|
|
20926
20926
|
return false;
|
|
@@ -20932,7 +20932,7 @@ var require_file = __commonJS({
|
|
|
20932
20932
|
file.expandMapping = function(patterns, destBase, options) {
|
|
20933
20933
|
options = Object.assign({
|
|
20934
20934
|
rename: function(destBase2, destPath) {
|
|
20935
|
-
return
|
|
20935
|
+
return path14.join(destBase2 || "", destPath);
|
|
20936
20936
|
}
|
|
20937
20937
|
}, options);
|
|
20938
20938
|
var files = [];
|
|
@@ -20940,14 +20940,14 @@ var require_file = __commonJS({
|
|
|
20940
20940
|
file.expand(options, patterns).forEach(function(src) {
|
|
20941
20941
|
var destPath = src;
|
|
20942
20942
|
if (options.flatten) {
|
|
20943
|
-
destPath =
|
|
20943
|
+
destPath = path14.basename(destPath);
|
|
20944
20944
|
}
|
|
20945
20945
|
if (options.ext) {
|
|
20946
20946
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
20947
20947
|
}
|
|
20948
20948
|
var dest = options.rename(destBase, destPath, options);
|
|
20949
20949
|
if (options.cwd) {
|
|
20950
|
-
src =
|
|
20950
|
+
src = path14.join(options.cwd, src);
|
|
20951
20951
|
}
|
|
20952
20952
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
20953
20953
|
src = src.replace(pathSeparatorRe, "/");
|
|
@@ -21030,8 +21030,8 @@ var require_archiver_utils = __commonJS({
|
|
|
21030
21030
|
"../../.yarn/cache/archiver-utils-npm-5.0.2-c2e6f595a7-3782c5fa99.zip/node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
21031
21031
|
"use strict";
|
|
21032
21032
|
init_cjs_shims();
|
|
21033
|
-
var
|
|
21034
|
-
var
|
|
21033
|
+
var fs7 = require_graceful_fs();
|
|
21034
|
+
var path14 = require("path");
|
|
21035
21035
|
var isStream2 = require_is_stream();
|
|
21036
21036
|
var lazystream = require_lazystream();
|
|
21037
21037
|
var normalizePath = require_normalize_path();
|
|
@@ -21079,7 +21079,7 @@ var require_archiver_utils = __commonJS({
|
|
|
21079
21079
|
};
|
|
21080
21080
|
utils.lazyReadStream = function(filepath) {
|
|
21081
21081
|
return new lazystream.Readable(function() {
|
|
21082
|
-
return
|
|
21082
|
+
return fs7.createReadStream(filepath);
|
|
21083
21083
|
});
|
|
21084
21084
|
};
|
|
21085
21085
|
utils.normalizeInputSource = function(source) {
|
|
@@ -21107,7 +21107,7 @@ var require_archiver_utils = __commonJS({
|
|
|
21107
21107
|
callback = base;
|
|
21108
21108
|
base = dirpath;
|
|
21109
21109
|
}
|
|
21110
|
-
|
|
21110
|
+
fs7.readdir(dirpath, function(err, list) {
|
|
21111
21111
|
var i2 = 0;
|
|
21112
21112
|
var file;
|
|
21113
21113
|
var filepath;
|
|
@@ -21119,11 +21119,11 @@ var require_archiver_utils = __commonJS({
|
|
|
21119
21119
|
if (!file) {
|
|
21120
21120
|
return callback(null, results);
|
|
21121
21121
|
}
|
|
21122
|
-
filepath =
|
|
21123
|
-
|
|
21122
|
+
filepath = path14.join(dirpath, file);
|
|
21123
|
+
fs7.stat(filepath, function(err2, stats) {
|
|
21124
21124
|
results.push({
|
|
21125
21125
|
path: filepath,
|
|
21126
|
-
relative:
|
|
21126
|
+
relative: path14.relative(base, filepath).replace(/\\/g, "/"),
|
|
21127
21127
|
stats
|
|
21128
21128
|
});
|
|
21129
21129
|
if (stats && stats.isDirectory()) {
|
|
@@ -21186,10 +21186,10 @@ var require_core = __commonJS({
|
|
|
21186
21186
|
"../../.yarn/cache/archiver-npm-7.0.1-dc24339f78-02afd87ca1.zip/node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
21187
21187
|
"use strict";
|
|
21188
21188
|
init_cjs_shims();
|
|
21189
|
-
var
|
|
21189
|
+
var fs7 = require("fs");
|
|
21190
21190
|
var glob = require_readdir_glob();
|
|
21191
21191
|
var async = (init_async(), __toCommonJS(async_exports));
|
|
21192
|
-
var
|
|
21192
|
+
var path14 = require("path");
|
|
21193
21193
|
var util2 = require_archiver_utils();
|
|
21194
21194
|
var inherits = require("util").inherits;
|
|
21195
21195
|
var ArchiverError = require_error();
|
|
@@ -21250,7 +21250,7 @@ var require_core = __commonJS({
|
|
|
21250
21250
|
data.sourcePath = filepath;
|
|
21251
21251
|
task.data = data;
|
|
21252
21252
|
this._entriesCount++;
|
|
21253
|
-
if (data.stats && data.stats instanceof
|
|
21253
|
+
if (data.stats && data.stats instanceof fs7.Stats) {
|
|
21254
21254
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
21255
21255
|
if (task) {
|
|
21256
21256
|
if (data.stats.size) {
|
|
@@ -21421,7 +21421,7 @@ var require_core = __commonJS({
|
|
|
21421
21421
|
callback();
|
|
21422
21422
|
return;
|
|
21423
21423
|
}
|
|
21424
|
-
|
|
21424
|
+
fs7.lstat(task.filepath, function(err, stats) {
|
|
21425
21425
|
if (this._state.aborted) {
|
|
21426
21426
|
setImmediate(callback);
|
|
21427
21427
|
return;
|
|
@@ -21464,10 +21464,10 @@ var require_core = __commonJS({
|
|
|
21464
21464
|
task.data.sourceType = "buffer";
|
|
21465
21465
|
task.source = Buffer.concat([]);
|
|
21466
21466
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
21467
|
-
var linkPath =
|
|
21468
|
-
var dirName =
|
|
21467
|
+
var linkPath = fs7.readlinkSync(task.filepath);
|
|
21468
|
+
var dirName = path14.dirname(task.filepath);
|
|
21469
21469
|
task.data.type = "symlink";
|
|
21470
|
-
task.data.linkname =
|
|
21470
|
+
task.data.linkname = path14.relative(dirName, path14.resolve(dirName, linkPath));
|
|
21471
21471
|
task.data.sourceType = "buffer";
|
|
21472
21472
|
task.source = Buffer.concat([]);
|
|
21473
21473
|
} else {
|
|
@@ -25655,11 +25655,11 @@ var require_validateReport = __commonJS({
|
|
|
25655
25655
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25656
25656
|
exports2._validateReport = void 0;
|
|
25657
25657
|
var _validateReport2 = (array) => {
|
|
25658
|
-
const reportable = (
|
|
25658
|
+
const reportable = (path14) => {
|
|
25659
25659
|
if (array.length === 0)
|
|
25660
25660
|
return true;
|
|
25661
25661
|
const last = array[array.length - 1].path;
|
|
25662
|
-
return
|
|
25662
|
+
return path14.length > last.length || last.substring(0, path14.length) !== path14;
|
|
25663
25663
|
};
|
|
25664
25664
|
return (exceptable, error) => {
|
|
25665
25665
|
if (exceptable && reportable(error.path))
|
|
@@ -25676,7 +25676,10 @@ var plugins_exports = {};
|
|
|
25676
25676
|
__export(plugins_exports, {
|
|
25677
25677
|
appsInToss: () => appsInToss,
|
|
25678
25678
|
appsInTossAppJson: () => appsInTossAppJson,
|
|
25679
|
+
appsInTossEsbuildConfig: () => appsInTossEsbuildConfig,
|
|
25680
|
+
appsInTossMetroConfig: () => appsInTossMetroConfig,
|
|
25679
25681
|
createArtifact: () => createArtifact,
|
|
25682
|
+
setupRuntimeSetupScript: () => setupRuntimeSetupScript,
|
|
25680
25683
|
validateAppManifest: () => validateAppManifest,
|
|
25681
25684
|
validateZip: () => validateZip
|
|
25682
25685
|
});
|
|
@@ -30210,13 +30213,13 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
|
|
|
30210
30213
|
}
|
|
30211
30214
|
};
|
|
30212
30215
|
var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
30213
|
-
for (const { path:
|
|
30214
|
-
const pathString = typeof
|
|
30216
|
+
for (const { path: path14, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
30217
|
+
const pathString = typeof path14 === "string" ? path14 : path14.toString();
|
|
30215
30218
|
if (append || outputFiles.has(pathString)) {
|
|
30216
|
-
(0, import_node_fs4.appendFileSync)(
|
|
30219
|
+
(0, import_node_fs4.appendFileSync)(path14, serializedResult);
|
|
30217
30220
|
} else {
|
|
30218
30221
|
outputFiles.add(pathString);
|
|
30219
|
-
(0, import_node_fs4.writeFileSync)(
|
|
30222
|
+
(0, import_node_fs4.writeFileSync)(path14, serializedResult);
|
|
30220
30223
|
}
|
|
30221
30224
|
}
|
|
30222
30225
|
};
|
|
@@ -33365,6 +33368,36 @@ function generateDeploymentId() {
|
|
|
33365
33368
|
return uuidv7();
|
|
33366
33369
|
}
|
|
33367
33370
|
|
|
33371
|
+
// src/plugins/utils/setupRuntimeSetupScript.ts
|
|
33372
|
+
init_cjs_shims();
|
|
33373
|
+
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
33374
|
+
var import_node_path6 = __toESM(require("path"), 1);
|
|
33375
|
+
function setupRuntimeSetupScript(config) {
|
|
33376
|
+
const packageRoot = getPackageRoot();
|
|
33377
|
+
const envFilePath = import_node_path6.default.join(packageRoot, ".bedrock/.apps-in-toss.env.js");
|
|
33378
|
+
const script = `
|
|
33379
|
+
(function (global) {
|
|
33380
|
+
global.__appsInToss = ${JSON.stringify({
|
|
33381
|
+
deploymentId: config.deploymentId,
|
|
33382
|
+
bridgeColorMode: config.brand.bridgeColorMode,
|
|
33383
|
+
brandDisplayName: config.brand.displayName,
|
|
33384
|
+
brandPrimaryColor: config.brand.primaryColor,
|
|
33385
|
+
brandIcon: config.brand.icon
|
|
33386
|
+
})};
|
|
33387
|
+
})(
|
|
33388
|
+
typeof globalThis !== 'undefined'
|
|
33389
|
+
? globalThis
|
|
33390
|
+
: typeof global !== 'undefined'
|
|
33391
|
+
? global
|
|
33392
|
+
: typeof window !== 'undefined'
|
|
33393
|
+
? window
|
|
33394
|
+
: this
|
|
33395
|
+
);
|
|
33396
|
+
`;
|
|
33397
|
+
import_node_fs6.default.writeFileSync(envFilePath, script, "utf-8");
|
|
33398
|
+
return { contents: script, path: envFilePath };
|
|
33399
|
+
}
|
|
33400
|
+
|
|
33368
33401
|
// src/plugins/appsInToss.ts
|
|
33369
33402
|
function appsInTossCreateArtifact(deploymentId) {
|
|
33370
33403
|
const packageRoot = getPackageRoot();
|
|
@@ -33397,30 +33430,25 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
33397
33430
|
}
|
|
33398
33431
|
};
|
|
33399
33432
|
}
|
|
33400
|
-
function
|
|
33401
|
-
return `
|
|
33402
|
-
(function (global) {
|
|
33403
|
-
global.__appsInToss = {
|
|
33404
|
-
deploymentId: ${JSON.stringify(deploymentId)}
|
|
33405
|
-
};
|
|
33406
|
-
})(
|
|
33407
|
-
typeof globalThis !== 'undefined'
|
|
33408
|
-
? globalThis
|
|
33409
|
-
: typeof global !== 'undefined'
|
|
33410
|
-
? global
|
|
33411
|
-
: typeof window !== 'undefined'
|
|
33412
|
-
? window
|
|
33413
|
-
: this
|
|
33414
|
-
);
|
|
33415
|
-
`;
|
|
33416
|
-
}
|
|
33417
|
-
function appsInTossEsbuildConfig(deploymentId) {
|
|
33433
|
+
function appsInTossEsbuildConfig(envScript) {
|
|
33418
33434
|
return {
|
|
33419
33435
|
name: "apps-in-toss:esbuild-config",
|
|
33420
33436
|
config: {
|
|
33421
33437
|
esbuild: {
|
|
33422
33438
|
banner: {
|
|
33423
|
-
js:
|
|
33439
|
+
js: envScript
|
|
33440
|
+
}
|
|
33441
|
+
}
|
|
33442
|
+
}
|
|
33443
|
+
};
|
|
33444
|
+
}
|
|
33445
|
+
function appsInTossMetroConfig(envScriptPath) {
|
|
33446
|
+
return {
|
|
33447
|
+
name: "apps-in-toss:metro-config",
|
|
33448
|
+
config: {
|
|
33449
|
+
metro: {
|
|
33450
|
+
serializer: {
|
|
33451
|
+
getPolyfills: () => [envScriptPath]
|
|
33424
33452
|
}
|
|
33425
33453
|
}
|
|
33426
33454
|
}
|
|
@@ -33479,18 +33507,26 @@ async function appsInTossAppJson(options) {
|
|
|
33479
33507
|
}
|
|
33480
33508
|
function appsInToss(options) {
|
|
33481
33509
|
const deploymentId = generateDeploymentId();
|
|
33510
|
+
const { contents, path: envFilePath } = setupRuntimeSetupScript({
|
|
33511
|
+
brand: options.brand,
|
|
33512
|
+
deploymentId
|
|
33513
|
+
});
|
|
33482
33514
|
return [
|
|
33483
33515
|
appsInTossAppJson(options),
|
|
33484
33516
|
appsInTossDevServer(options),
|
|
33485
33517
|
appsInTossCreateArtifact(deploymentId),
|
|
33486
|
-
appsInTossEsbuildConfig(
|
|
33518
|
+
appsInTossEsbuildConfig(contents),
|
|
33519
|
+
appsInTossMetroConfig(envFilePath)
|
|
33487
33520
|
];
|
|
33488
33521
|
}
|
|
33489
33522
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33490
33523
|
0 && (module.exports = {
|
|
33491
33524
|
appsInToss,
|
|
33492
33525
|
appsInTossAppJson,
|
|
33526
|
+
appsInTossEsbuildConfig,
|
|
33527
|
+
appsInTossMetroConfig,
|
|
33493
33528
|
createArtifact,
|
|
33529
|
+
setupRuntimeSetupScript,
|
|
33494
33530
|
validateAppManifest,
|
|
33495
33531
|
validateZip
|
|
33496
33532
|
});
|