Commit 8b43b5e
Changed files (7)
build/vendor-core.cjs
@@ -920,12 +920,10 @@ var parse = (input, { format = "unix" } = {}) => {
var cp = __toESM(require("child_process"), 1);
var import_node_process3 = __toESM(require("process"), 1);
var import_node_events = __toESM(require("events"), 1);
-var import_node_stream2 = require("stream");
+var import_node_stream = require("stream");
// node_modules/zurk/target/esm/util.mjs
-var import_node_stream = require("stream");
var import_node_process2 = __toESM(require("process"), 1);
-var import_node_buffer = require("buffer");
var g = !import_node_process2.default.versions.deno && global || globalThis;
var immediate = g.setImmediate || ((f) => g.setTimeout(f, 0));
var noop = () => {
@@ -1007,7 +1005,7 @@ var normalizeCtx = (...ctxs) => assign(
);
var processInput = (child, input) => {
if (input && child.stdin && !child.stdin.destroyed) {
- if (input instanceof import_node_stream2.Readable) {
+ if (input instanceof import_node_stream.Readable) {
input.pipe(child.stdin);
} else {
child.stdin.write(input);
@@ -1015,7 +1013,7 @@ var processInput = (child, input) => {
}
}
};
-var VoidStream = class extends import_node_stream2.Transform {
+var VoidStream = class extends import_node_stream.Transform {
_transform(chunk, _, cb) {
this.emit("data", chunk);
cb();
@@ -1370,31 +1368,11 @@ var noop2 = () => {
var identity = (v) => v;
var index_default = { kill, lookup, lookupSync, tree, treeSync };
-// src/internals.ts
-var store = /* @__PURE__ */ new Map();
-var override = store.set.bind(store);
-var wrap = (name, api) => {
- override(name, api);
- return new Proxy(api, {
- get(_, key) {
- var _a, _b;
- return store.get(name)[key] || ((_b = (_a = store.get(name)) == null ? void 0 : _a.default) == null ? void 0 : _b[key]);
- },
- apply(_, self, args) {
- return store.get(name).apply(self, args);
- }
- });
-};
-var bus = {
- override,
- store,
- wrap
-};
-
// src/vendor-core.ts
-var chalk2 = bus.wrap("chalk", source_default);
-var which = bus.wrap("which", import_which.default);
-var ps = bus.wrap("ps", index_default);
+var import_internals = require("./internals.cjs");
+var chalk2 = import_internals.bus.wrap("chalk", source_default);
+var which = import_internals.bus.wrap("which", import_which.default);
+var ps = import_internals.bus.wrap("ps", index_default);
/* c8 ignore next 100 */
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
build/vendor-extra.cjs
@@ -90,7 +90,7 @@ var require_path = __commonJS({
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
var os = require("os");
- var path4 = require("path");
+ var path3 = require("path");
var IS_WINDOWS_PLATFORM = os.platform() === "win32";
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
@@ -102,7 +102,7 @@ var require_path = __commonJS({
}
exports2.unixify = unixify;
function makeAbsolute(cwd, filepath) {
- return path4.resolve(cwd, filepath);
+ return path3.resolve(cwd, filepath);
}
exports2.makeAbsolute = makeAbsolute;
function removeLeadingDotSegment(entry) {
@@ -466,8 +466,8 @@ var require_to_regex_range = __commonJS({
let relax = String(opts.relaxZeros);
let shorthand = String(opts.shorthand);
let capture = String(opts.capture);
- let wrap3 = String(opts.wrap);
- let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap3;
+ let wrap2 = String(opts.wrap);
+ let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap2;
if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
return toRegexRange.cache[cacheKey].result;
}
@@ -737,9 +737,9 @@ var require_fill_range = __commonJS({
};
var toRegex = (start, end, options) => {
if (Array.isArray(start)) {
- let wrap3 = options.wrap === true;
+ let wrap2 = options.wrap === true;
let prefix = options.capture ? "" : "?:";
- return wrap3 ? `(${prefix}${start.join("|")})` : start.join("|");
+ return wrap2 ? `(${prefix}${start.join("|")})` : start.join("|");
}
return toRegexRange(start, end, options);
};
@@ -1401,7 +1401,7 @@ var require_braces = __commonJS({
var require_constants2 = __commonJS({
"node_modules/picomatch/lib/constants.js"(exports2, module2) {
"use strict";
- var path4 = require("path");
+ var path3 = require("path");
var WIN_SLASH = "\\\\/";
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
var DOT_LITERAL = "\\.";
@@ -1570,7 +1570,7 @@ var require_constants2 = __commonJS({
/* | */
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
/* \uFEFF */
- SEP: path4.sep,
+ SEP: path3.sep,
/**
* Create EXTGLOB_CHARS
*/
@@ -1597,7 +1597,7 @@ var require_constants2 = __commonJS({
var require_utils2 = __commonJS({
"node_modules/picomatch/lib/utils.js"(exports2) {
"use strict";
- var path4 = require("path");
+ var path3 = require("path");
var win32 = process.platform === "win32";
var {
REGEX_BACKSLASH,
@@ -1626,7 +1626,7 @@ var require_utils2 = __commonJS({
if (options && typeof options.windows === "boolean") {
return options.windows;
}
- return win32 === true || path4.sep === "\\";
+ return win32 === true || path3.sep === "\\";
};
exports2.escapeLast = (input, char, lastIdx) => {
const idx = input.lastIndexOf(char, lastIdx);
@@ -2761,7 +2761,7 @@ var require_parse2 = __commonJS({
var require_picomatch = __commonJS({
"node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
"use strict";
- var path4 = require("path");
+ var path3 = require("path");
var scan = require_scan();
var parse3 = require_parse2();
var utils = require_utils2();
@@ -2846,7 +2846,7 @@ var require_picomatch = __commonJS({
};
picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
- return regex.test(path4.basename(input));
+ return regex.test(path3.basename(input));
};
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
picomatch.parse = (pattern, options) => {
@@ -3073,7 +3073,7 @@ var require_pattern = __commonJS({
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.isAbsolute = exports2.partitionAbsoluteAndRelative = exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
- var path4 = require("path");
+ var path3 = require("path");
var globParent = require_glob_parent();
var micromatch = require_micromatch();
var GLOBSTAR = "**";
@@ -3168,7 +3168,7 @@ var require_pattern = __commonJS({
}
exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
function isAffectDepthOfReadingPattern(pattern) {
- const basename = path4.basename(pattern);
+ const basename = path3.basename(pattern);
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
}
exports2.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -3226,7 +3226,7 @@ var require_pattern = __commonJS({
}
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
function isAbsolute(pattern) {
- return path4.isAbsolute(pattern);
+ return path3.isAbsolute(pattern);
}
exports2.isAbsolute = isAbsolute;
}
@@ -3403,8 +3403,8 @@ var require_utils3 = __commonJS({
exports2.errno = errno;
var fs6 = require_fs();
exports2.fs = fs6;
- var path4 = require_path();
- exports2.path = path4;
+ var path3 = require_path();
+ exports2.path = path3;
var pattern = require_pattern();
exports2.pattern = pattern;
var stream = require_stream();
@@ -3516,8 +3516,8 @@ var require_async = __commonJS({
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.read = void 0;
- function read(path4, settings, callback) {
- settings.fs.lstat(path4, (lstatError, lstat) => {
+ function read(path3, settings, callback) {
+ settings.fs.lstat(path3, (lstatError, lstat) => {
if (lstatError !== null) {
callFailureCallback(callback, lstatError);
return;
@@ -3526,7 +3526,7 @@ var require_async = __commonJS({
callSuccessCallback(callback, lstat);
return;
}
- settings.fs.stat(path4, (statError, stat) => {
+ settings.fs.stat(path3, (statError, stat) => {
if (statError !== null) {
if (settings.throwErrorOnBrokenSymbolicLink) {
callFailureCallback(callback, statError);
@@ -3558,13 +3558,13 @@ var require_sync = __commonJS({
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.read = void 0;
- function read(path4, settings) {
- const lstat = settings.fs.lstatSync(path4);
+ function read(path3, settings) {
+ const lstat = settings.fs.lstatSync(path3);
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
return lstat;
}
try {
- const stat = settings.fs.statSync(path4);
+ const stat = settings.fs.statSync(path3);
if (settings.markSymbolicLink) {
stat.isSymbolicLink = () => true;
}
@@ -3635,17 +3635,17 @@ var require_out = __commonJS({
var sync = require_sync();
var settings_1 = require_settings();
exports2.Settings = settings_1.default;
- function stat(path4, optionsOrSettingsOrCallback, callback) {
+ function stat(path3, optionsOrSettingsOrCallback, callback) {
if (typeof optionsOrSettingsOrCallback === "function") {
- async.read(path4, getSettings(), optionsOrSettingsOrCallback);
+ async.read(path3, getSettings(), optionsOrSettingsOrCallback);
return;
}
- async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
+ async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
}
exports2.stat = stat;
- function statSync(path4, optionsOrSettings) {
+ function statSync(path3, optionsOrSettings) {
const settings = getSettings(optionsOrSettings);
- return sync.read(path4, settings);
+ return sync.read(path3, settings);
}
exports2.statSync = statSync;
function getSettings(settingsOrOptions = {}) {
@@ -3863,16 +3863,16 @@ var require_async2 = __commonJS({
return;
}
const tasks = names.map((name) => {
- const path4 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
+ const path3 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
return (done) => {
- fsStat.stat(path4, settings.fsStatSettings, (error, stats) => {
+ fsStat.stat(path3, settings.fsStatSettings, (error, stats) => {
if (error !== null) {
done(error);
return;
}
const entry = {
name,
- path: path4,
+ path: path3,
dirent: utils.fs.createDirentFromStats(name, stats)
};
if (settings.stats) {
@@ -3990,7 +3990,7 @@ var require_settings2 = __commonJS({
"node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
- var path4 = require("path");
+ var path3 = require("path");
var fsStat = require_out();
var fs6 = require_fs4();
var Settings = class {
@@ -3998,7 +3998,7 @@ var require_settings2 = __commonJS({
this._options = _options;
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
this.fs = fs6.createFileSystemAdapter(this._options.fs);
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
this.stats = this._getValue(this._options.stats, false);
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
this.fsStatSettings = new fsStat.Settings({
@@ -4025,17 +4025,17 @@ var require_out2 = __commonJS({
var sync = require_sync2();
var settings_1 = require_settings2();
exports2.Settings = settings_1.default;
- function scandir(path4, optionsOrSettingsOrCallback, callback) {
+ function scandir(path3, optionsOrSettingsOrCallback, callback) {
if (typeof optionsOrSettingsOrCallback === "function") {
- async.read(path4, getSettings(), optionsOrSettingsOrCallback);
+ async.read(path3, getSettings(), optionsOrSettingsOrCallback);
return;
}
- async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
+ async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
}
exports2.scandir = scandir;
- function scandirSync(path4, optionsOrSettings) {
+ function scandirSync(path3, optionsOrSettings) {
const settings = getSettings(optionsOrSettings);
- return sync.read(path4, settings);
+ return sync.read(path3, settings);
}
exports2.scandirSync = scandirSync;
function getSettings(settingsOrOptions = {}) {
@@ -4659,7 +4659,7 @@ var require_settings3 = __commonJS({
"node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
- var path4 = require("path");
+ var path3 = require("path");
var fsScandir = require_out2();
var Settings = class {
constructor(_options = {}) {
@@ -4669,7 +4669,7 @@ var require_settings3 = __commonJS({
this.deepFilter = this._getValue(this._options.deepFilter, null);
this.entryFilter = this._getValue(this._options.entryFilter, null);
this.errorFilter = this._getValue(this._options.errorFilter, null);
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
this.fsScandirSettings = new fsScandir.Settings({
followSymbolicLinks: this._options.followSymbolicLinks,
fs: this._options.fs,
@@ -4731,7 +4731,7 @@ var require_reader2 = __commonJS({
"node_modules/fast-glob/out/readers/reader.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
- var path4 = require("path");
+ var path3 = require("path");
var fsStat = require_out();
var utils = require_utils3();
var Reader = class {
@@ -4744,7 +4744,7 @@ var require_reader2 = __commonJS({
});
}
_getFullEntryPath(filepath) {
- return path4.resolve(this._settings.cwd, filepath);
+ return path3.resolve(this._settings.cwd, filepath);
}
_makeEntry(stats, pattern) {
const entry = {
@@ -5162,7 +5162,7 @@ var require_provider = __commonJS({
"node_modules/fast-glob/out/providers/provider.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
- var path4 = require("path");
+ var path3 = require("path");
var deep_1 = require_deep();
var entry_1 = require_entry();
var error_1 = require_error();
@@ -5176,7 +5176,7 @@ var require_provider = __commonJS({
this.entryTransformer = new entry_2.default(this._settings);
}
_getRootDirectory(task) {
- return path4.resolve(this._settings.cwd, task.base);
+ return path3.resolve(this._settings.cwd, task.base);
}
_getReaderOptions(task) {
const basePath = task.base === "." ? "" : task.base;
@@ -5814,7 +5814,7 @@ var require_ignore = __commonJS({
// path matching.
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
// @returns {TestResult} true if a file is ignored
- test(path4, checkUnignored, mode) {
+ test(path3, checkUnignored, mode) {
let ignored = false;
let unignored = false;
let matchedRule;
@@ -5823,7 +5823,7 @@ var require_ignore = __commonJS({
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
return;
}
- const matched = rule[mode].test(path4);
+ const matched = rule[mode].test(path3);
if (!matched) {
return;
}
@@ -5844,17 +5844,17 @@ var require_ignore = __commonJS({
var throwError = (message, Ctor) => {
throw new Ctor(message);
};
- var checkPath = (path4, originalPath, doThrow) => {
- if (!isString(path4)) {
+ var checkPath = (path3, originalPath, doThrow) => {
+ if (!isString(path3)) {
return doThrow(
`path must be a string, but got \`${originalPath}\``,
TypeError
);
}
- if (!path4) {
+ if (!path3) {
return doThrow(`path must not be empty`, TypeError);
}
- if (checkPath.isNotRelative(path4)) {
+ if (checkPath.isNotRelative(path3)) {
const r = "`path.relative()`d";
return doThrow(
`path should be a ${r} string, but got "${originalPath}"`,
@@ -5863,7 +5863,7 @@ var require_ignore = __commonJS({
}
return true;
};
- var isNotRelative = (path4) => REGEX_TEST_INVALID_PATH.test(path4);
+ var isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
checkPath.isNotRelative = isNotRelative;
checkPath.convert = (p) => p;
var Ignore = class {
@@ -5893,19 +5893,19 @@ var require_ignore = __commonJS({
}
// @returns {TestResult}
_test(originalPath, cache, checkUnignored, slices) {
- const path4 = originalPath && checkPath.convert(originalPath);
+ const path3 = originalPath && checkPath.convert(originalPath);
checkPath(
- path4,
+ path3,
originalPath,
this._strictPathCheck ? throwError : RETURN_FALSE
);
- return this._t(path4, cache, checkUnignored, slices);
+ return this._t(path3, cache, checkUnignored, slices);
}
- checkIgnore(path4) {
- if (!REGEX_TEST_TRAILING_SLASH.test(path4)) {
- return this.test(path4);
+ checkIgnore(path3) {
+ if (!REGEX_TEST_TRAILING_SLASH.test(path3)) {
+ return this.test(path3);
}
- const slices = path4.split(SLASH).filter(Boolean);
+ const slices = path3.split(SLASH).filter(Boolean);
slices.pop();
if (slices.length) {
const parent = this._t(
@@ -5918,18 +5918,18 @@ var require_ignore = __commonJS({
return parent;
}
}
- return this._rules.test(path4, false, MODE_CHECK_IGNORE);
+ return this._rules.test(path3, false, MODE_CHECK_IGNORE);
}
- _t(path4, cache, checkUnignored, slices) {
- if (path4 in cache) {
- return cache[path4];
+ _t(path3, cache, checkUnignored, slices) {
+ if (path3 in cache) {
+ return cache[path3];
}
if (!slices) {
- slices = path4.split(SLASH).filter(Boolean);
+ slices = path3.split(SLASH).filter(Boolean);
}
slices.pop();
if (!slices.length) {
- return cache[path4] = this._rules.test(path4, checkUnignored, MODE_IGNORE);
+ return cache[path3] = this._rules.test(path3, checkUnignored, MODE_IGNORE);
}
const parent = this._t(
slices.join(SLASH) + SLASH,
@@ -5937,24 +5937,24 @@ var require_ignore = __commonJS({
checkUnignored,
slices
);
- return cache[path4] = parent.ignored ? parent : this._rules.test(path4, checkUnignored, MODE_IGNORE);
+ return cache[path3] = parent.ignored ? parent : this._rules.test(path3, checkUnignored, MODE_IGNORE);
}
- ignores(path4) {
- return this._test(path4, this._ignoreCache, false).ignored;
+ ignores(path3) {
+ return this._test(path3, this._ignoreCache, false).ignored;
}
createFilter() {
- return (path4) => !this.ignores(path4);
+ return (path3) => !this.ignores(path3);
}
filter(paths) {
return makeArray(paths).filter(this.createFilter());
}
// @returns {TestResult}
- test(path4) {
- return this._test(path4, this._testCache, true);
+ test(path3) {
+ return this._test(path3, this._testCache, true);
}
};
var factory = (options) => new Ignore(options);
- var isPathValid = (path4) => checkPath(path4 && checkPath.convert(path4), path4, RETURN_FALSE);
+ var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
if (
// Detect `process` so that it can run in browsers.
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
@@ -5962,7 +5962,7 @@ var require_ignore = __commonJS({
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
checkPath.convert = makePosix;
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
- checkPath.isNotRelative = (path4) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path4) || isNotRelative(path4);
+ checkPath.isNotRelative = (path3) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
}
module2.exports = factory;
factory.default = factory;
@@ -6051,14 +6051,14 @@ var require_polyfills = __commonJS({
fs6.fstatSync = statFixSync(fs6.fstatSync);
fs6.lstatSync = statFixSync(fs6.lstatSync);
if (fs6.chmod && !fs6.lchmod) {
- fs6.lchmod = function(path4, mode, cb) {
+ fs6.lchmod = function(path3, mode, cb) {
if (cb) process.nextTick(cb);
};
fs6.lchmodSync = function() {
};
}
if (fs6.chown && !fs6.lchown) {
- fs6.lchown = function(path4, uid, gid, cb) {
+ fs6.lchown = function(path3, uid, gid, cb) {
if (cb) process.nextTick(cb);
};
fs6.lchownSync = function() {
@@ -6125,9 +6125,9 @@ var require_polyfills = __commonJS({
};
}(fs6.readSync);
function patchLchmod(fs7) {
- fs7.lchmod = function(path4, mode, callback) {
+ fs7.lchmod = function(path3, mode, callback) {
fs7.open(
- path4,
+ path3,
constants.O_WRONLY | constants.O_SYMLINK,
mode,
function(err, fd) {
@@ -6143,8 +6143,8 @@ var require_polyfills = __commonJS({
}
);
};
- fs7.lchmodSync = function(path4, mode) {
- var fd = fs7.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
+ fs7.lchmodSync = function(path3, mode) {
+ var fd = fs7.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
var threw = true;
var ret;
try {
@@ -6165,8 +6165,8 @@ var require_polyfills = __commonJS({
}
function patchLutimes(fs7) {
if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
- fs7.lutimes = function(path4, at, mt, cb) {
- fs7.open(path4, constants.O_SYMLINK, function(er, fd) {
+ fs7.lutimes = function(path3, at, mt, cb) {
+ fs7.open(path3, constants.O_SYMLINK, function(er, fd) {
if (er) {
if (cb) cb(er);
return;
@@ -6178,8 +6178,8 @@ var require_polyfills = __commonJS({
});
});
};
- fs7.lutimesSync = function(path4, at, mt) {
- var fd = fs7.openSync(path4, constants.O_SYMLINK);
+ fs7.lutimesSync = function(path3, at, mt) {
+ var fd = fs7.openSync(path3, constants.O_SYMLINK);
var ret;
var threw = true;
try {
@@ -6298,11 +6298,11 @@ var require_legacy_streams = __commonJS({
ReadStream,
WriteStream
};
- function ReadStream(path4, options) {
- if (!(this instanceof ReadStream)) return new ReadStream(path4, options);
+ function ReadStream(path3, options) {
+ if (!(this instanceof ReadStream)) return new ReadStream(path3, options);
Stream.call(this);
var self2 = this;
- this.path = path4;
+ this.path = path3;
this.fd = null;
this.readable = true;
this.paused = false;
@@ -6347,10 +6347,10 @@ var require_legacy_streams = __commonJS({
self2._read();
});
}
- function WriteStream(path4, options) {
- if (!(this instanceof WriteStream)) return new WriteStream(path4, options);
+ function WriteStream(path3, options) {
+ if (!(this instanceof WriteStream)) return new WriteStream(path3, options);
Stream.call(this);
- this.path = path4;
+ this.path = path3;
this.fd = null;
this.writable = true;
this.flags = "w";
@@ -6494,14 +6494,14 @@ var require_graceful_fs = __commonJS({
fs7.createWriteStream = createWriteStream;
var fs$readFile = fs7.readFile;
fs7.readFile = readFile;
- function readFile(path4, options, cb) {
+ function readFile(path3, options, cb) {
if (typeof options === "function")
cb = options, options = null;
- return go$readFile(path4, options, cb);
- function go$readFile(path5, options2, cb2, startTime) {
- return fs$readFile(path5, options2, function(err) {
+ return go$readFile(path3, options, cb);
+ function go$readFile(path4, options2, cb2, startTime) {
+ return fs$readFile(path4, options2, function(err) {
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
- enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
else {
if (typeof cb2 === "function")
cb2.apply(this, arguments);
@@ -6511,14 +6511,14 @@ var require_graceful_fs = __commonJS({
}
var fs$writeFile = fs7.writeFile;
fs7.writeFile = writeFile;
- function writeFile(path4, data, options, cb) {
+ function writeFile(path3, data, options, cb) {
if (typeof options === "function")
cb = options, options = null;
- return go$writeFile(path4, data, options, cb);
- function go$writeFile(path5, data2, options2, cb2, startTime) {
- return fs$writeFile(path5, data2, options2, function(err) {
+ return go$writeFile(path3, data, options, cb);
+ function go$writeFile(path4, data2, options2, cb2, startTime) {
+ return fs$writeFile(path4, data2, options2, function(err) {
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
- enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
else {
if (typeof cb2 === "function")
cb2.apply(this, arguments);
@@ -6529,14 +6529,14 @@ var require_graceful_fs = __commonJS({
var fs$appendFile = fs7.appendFile;
if (fs$appendFile)
fs7.appendFile = appendFile;
- function appendFile(path4, data, options, cb) {
+ function appendFile(path3, data, options, cb) {
if (typeof options === "function")
cb = options, options = null;
- return go$appendFile(path4, data, options, cb);
- function go$appendFile(path5, data2, options2, cb2, startTime) {
- return fs$appendFile(path5, data2, options2, function(err) {
+ return go$appendFile(path3, data, options, cb);
+ function go$appendFile(path4, data2, options2, cb2, startTime) {
+ return fs$appendFile(path4, data2, options2, function(err) {
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
- enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
+ enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
else {
if (typeof cb2 === "function")
cb2.apply(this, arguments);
@@ -6567,31 +6567,31 @@ var require_graceful_fs = __commonJS({
var fs$readdir = fs7.readdir;
fs7.readdir = readdir;
var noReaddirOptionVersions = /^v[0-5]\./;
- function readdir(path4, options, cb) {
+ function readdir(path3, options, cb) {
if (typeof options === "function")
cb = options, options = null;
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
- return fs$readdir(path5, fs$readdirCallback(
- path5,
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
+ return fs$readdir(path4, fs$readdirCallback(
+ path4,
options2,
cb2,
startTime
));
- } : function go$readdir2(path5, options2, cb2, startTime) {
- return fs$readdir(path5, options2, fs$readdirCallback(
- path5,
+ } : function go$readdir2(path4, options2, cb2, startTime) {
+ return fs$readdir(path4, options2, fs$readdirCallback(
+ path4,
options2,
cb2,
startTime
));
};
- return go$readdir(path4, options, cb);
- function fs$readdirCallback(path5, options2, cb2, startTime) {
+ return go$readdir(path3, options, cb);
+ function fs$readdirCallback(path4, options2, cb2, startTime) {
return function(err, files) {
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
enqueue([
go$readdir,
- [path5, options2, cb2],
+ [path4, options2, cb2],
err,
startTime || Date.now(),
Date.now()
@@ -6662,7 +6662,7 @@ var require_graceful_fs = __commonJS({
enumerable: true,
configurable: true
});
- function ReadStream(path4, options) {
+ function ReadStream(path3, options) {
if (this instanceof ReadStream)
return fs$ReadStream.apply(this, arguments), this;
else
@@ -6682,7 +6682,7 @@ var require_graceful_fs = __commonJS({
}
});
}
- function WriteStream(path4, options) {
+ function WriteStream(path3, options) {
if (this instanceof WriteStream)
return fs$WriteStream.apply(this, arguments), this;
else
@@ -6700,22 +6700,22 @@ var require_graceful_fs = __commonJS({
}
});
}
- function createReadStream(path4, options) {
- return new fs7.ReadStream(path4, options);
+ function createReadStream(path3, options) {
+ return new fs7.ReadStream(path3, options);
}
- function createWriteStream(path4, options) {
- return new fs7.WriteStream(path4, options);
+ function createWriteStream(path3, options) {
+ return new fs7.WriteStream(path3, options);
}
var fs$open = fs7.open;
fs7.open = open;
- function open(path4, flags, mode, cb) {
+ function open(path3, flags, mode, cb) {
if (typeof mode === "function")
cb = mode, mode = null;
- return go$open(path4, flags, mode, cb);
- function go$open(path5, flags2, mode2, cb2, startTime) {
- return fs$open(path5, flags2, mode2, function(err, fd) {
+ return go$open(path3, flags, mode, cb);
+ function go$open(path4, flags2, mode2, cb2, startTime) {
+ return fs$open(path4, flags2, mode2, function(err, fd) {
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
- enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
+ enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
else {
if (typeof cb2 === "function")
cb2.apply(this, arguments);
@@ -6898,10 +6898,10 @@ var require_fs5 = __commonJS({
var require_utils5 = __commonJS({
"node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
"use strict";
- var path4 = require("path");
+ var path3 = require("path");
module2.exports.checkPath = function checkPath(pth) {
if (process.platform === "win32") {
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, ""));
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
if (pathHasInvalidWinCharacters) {
const error = new Error(`Path contains invalid characters: ${pth}`);
error.code = "EINVAL";
@@ -6965,8 +6965,8 @@ var require_path_exists = __commonJS({
"use strict";
var u2 = require_universalify().fromPromise;
var fs6 = require_fs5();
- function pathExists(path4) {
- return fs6.access(path4).then(() => true).catch(() => false);
+ function pathExists(path3) {
+ return fs6.access(path3).then(() => true).catch(() => false);
}
module2.exports = {
pathExists: u2(pathExists),
@@ -6981,9 +6981,9 @@ var require_utimes = __commonJS({
"use strict";
var fs6 = require_fs5();
var u2 = require_universalify().fromPromise;
- function utimesMillis(path4, atime, mtime) {
+ function utimesMillis(path3, atime, mtime) {
return __async(this, null, function* () {
- const fd = yield fs6.open(path4, "r+");
+ const fd = yield fs6.open(path3, "r+");
let closeErr = null;
try {
yield fs6.futimes(fd, atime, mtime);
@@ -6999,8 +6999,8 @@ var require_utimes = __commonJS({
}
});
}
- function utimesMillisSync(path4, atime, mtime) {
- const fd = fs6.openSync(path4, "r+");
+ function utimesMillisSync(path3, atime, mtime) {
+ const fd = fs6.openSync(path3, "r+");
fs6.futimesSync(fd, atime, mtime);
return fs6.closeSync(fd);
}
@@ -7016,7 +7016,7 @@ var require_stat = __commonJS({
"node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
"use strict";
var fs6 = require_fs5();
- var path4 = require("path");
+ var path3 = require("path");
var u2 = require_universalify().fromPromise;
function getStats(src, dest, opts) {
const statFunc = opts.dereference ? (file) => fs6.stat(file, { bigint: true }) : (file) => fs6.lstat(file, { bigint: true });
@@ -7045,8 +7045,8 @@ var require_stat = __commonJS({
const { srcStat, destStat } = yield getStats(src, dest, opts);
if (destStat) {
if (areIdentical(srcStat, destStat)) {
- const srcBaseName = path4.basename(src);
- const destBaseName = path4.basename(dest);
+ const srcBaseName = path3.basename(src);
+ const destBaseName = path3.basename(dest);
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
return { srcStat, destStat, isChangingCase: true };
}
@@ -7069,8 +7069,8 @@ var require_stat = __commonJS({
const { srcStat, destStat } = getStatsSync(src, dest, opts);
if (destStat) {
if (areIdentical(srcStat, destStat)) {
- const srcBaseName = path4.basename(src);
- const destBaseName = path4.basename(dest);
+ const srcBaseName = path3.basename(src);
+ const destBaseName = path3.basename(dest);
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
return { srcStat, destStat, isChangingCase: true };
}
@@ -7090,9 +7090,9 @@ var require_stat = __commonJS({
}
function checkParentPaths(src, srcStat, dest, funcName) {
return __async(this, null, function* () {
- const srcParent = path4.resolve(path4.dirname(src));
- const destParent = path4.resolve(path4.dirname(dest));
- if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
+ const srcParent = path3.resolve(path3.dirname(src));
+ const destParent = path3.resolve(path3.dirname(dest));
+ if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
let destStat;
try {
destStat = yield fs6.stat(destParent, { bigint: true });
@@ -7107,9 +7107,9 @@ var require_stat = __commonJS({
});
}
function checkParentPathsSync(src, srcStat, dest, funcName) {
- const srcParent = path4.resolve(path4.dirname(src));
- const destParent = path4.resolve(path4.dirname(dest));
- if (destParent === srcParent || destParent === path4.parse(destParent).root) return;
+ const srcParent = path3.resolve(path3.dirname(src));
+ const destParent = path3.resolve(path3.dirname(dest));
+ if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
let destStat;
try {
destStat = fs6.statSync(destParent, { bigint: true });
@@ -7126,8 +7126,8 @@ var require_stat = __commonJS({
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
}
function isSrcSubdir(src, dest) {
- const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
- const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
+ const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
+ const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
return srcArr.every((cur, i) => destArr[i] === cur);
}
function errMsg(src, dest, funcName) {
@@ -7152,7 +7152,7 @@ var require_copy = __commonJS({
"node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
"use strict";
var fs6 = require_fs5();
- var path4 = require("path");
+ var path3 = require("path");
var { mkdirs } = require_mkdirs();
var { pathExists } = require_path_exists();
var { utimesMillis } = require_utimes();
@@ -7175,7 +7175,7 @@ var require_copy = __commonJS({
yield stat.checkParentPaths(src, srcStat, dest, "copy");
const include = yield runFilter(src, dest, opts);
if (!include) return;
- const destParent = path4.dirname(dest);
+ const destParent = path3.dirname(dest);
const dirExists = yield pathExists(destParent);
if (!dirExists) {
yield mkdirs(destParent);
@@ -7241,8 +7241,8 @@ var require_copy = __commonJS({
try {
for (var iter = __forAwait(yield fs6.opendir(src)), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
const item = temp.value;
- const srcItem = path4.join(src, item.name);
- const destItem = path4.join(dest, item.name);
+ const srcItem = path3.join(src, item.name);
+ const destItem = path3.join(dest, item.name);
promises.push(
runFilter(srcItem, destItem, opts).then((include) => {
if (include) {
@@ -7273,7 +7273,7 @@ var require_copy = __commonJS({
return __async(this, null, function* () {
let resolvedSrc = yield fs6.readlink(src);
if (opts.dereference) {
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
}
if (!destStat) {
return fs6.symlink(resolvedSrc, dest);
@@ -7286,7 +7286,7 @@ var require_copy = __commonJS({
throw e;
}
if (opts.dereference) {
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);
}
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -7307,7 +7307,7 @@ var require_copy_sync = __commonJS({
"node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
"use strict";
var fs6 = require_graceful_fs();
- var path4 = require("path");
+ var path3 = require("path");
var mkdirsSync = require_mkdirs().mkdirsSync;
var utimesMillisSync = require_utimes().utimesMillisSync;
var stat = require_stat();
@@ -7328,7 +7328,7 @@ var require_copy_sync = __commonJS({
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
stat.checkParentPathsSync(src, srcStat, dest, "copy");
if (opts.filter && !opts.filter(src, dest)) return;
- const destParent = path4.dirname(dest);
+ const destParent = path3.dirname(dest);
if (!fs6.existsSync(destParent)) mkdirsSync(destParent);
return getStats(destStat, src, dest, opts);
}
@@ -7397,8 +7397,8 @@ var require_copy_sync = __commonJS({
}
}
function copyDirItem(item, src, dest, opts) {
- const srcItem = path4.join(src, item);
- const destItem = path4.join(dest, item);
+ const srcItem = path3.join(src, item);
+ const destItem = path3.join(dest, item);
if (opts.filter && !opts.filter(srcItem, destItem)) return;
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
return getStats(destStat, srcItem, destItem, opts);
@@ -7406,7 +7406,7 @@ var require_copy_sync = __commonJS({
function onLink(destStat, src, dest, opts) {
let resolvedSrc = fs6.readlinkSync(src);
if (opts.dereference) {
- resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
+ resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
}
if (!destStat) {
return fs6.symlinkSync(resolvedSrc, dest);
@@ -7419,7 +7419,7 @@ var require_copy_sync = __commonJS({
throw err;
}
if (opts.dereference) {
- resolvedDest = path4.resolve(process.cwd(), resolvedDest);
+ resolvedDest = path3.resolve(process.cwd(), resolvedDest);
}
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -7456,11 +7456,11 @@ var require_remove = __commonJS({
"use strict";
var fs6 = require_graceful_fs();
var u2 = require_universalify().fromCallback;
- function remove(path4, callback) {
- fs6.rm(path4, { recursive: true, force: true }, callback);
+ function remove(path3, callback) {
+ fs6.rm(path3, { recursive: true, force: true }, callback);
}
- function removeSync(path4) {
- fs6.rmSync(path4, { recursive: true, force: true });
+ function removeSync(path3) {
+ fs6.rmSync(path3, { recursive: true, force: true });
}
module2.exports = {
remove: u2(remove),
@@ -7475,7 +7475,7 @@ var require_empty = __commonJS({
"use strict";
var u2 = require_universalify().fromPromise;
var fs6 = require_fs5();
- var path4 = require("path");
+ var path3 = require("path");
var mkdir = require_mkdirs();
var remove = require_remove();
var emptyDir = u2(function emptyDir2(dir) {
@@ -7486,7 +7486,7 @@ var require_empty = __commonJS({
} catch (e) {
return mkdir.mkdirs(dir);
}
- return Promise.all(items.map((item) => remove.remove(path4.join(dir, item))));
+ return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
});
});
function emptyDirSync(dir) {
@@ -7497,7 +7497,7 @@ var require_empty = __commonJS({
return mkdir.mkdirsSync(dir);
}
items.forEach((item) => {
- item = path4.join(dir, item);
+ item = path3.join(dir, item);
remove.removeSync(item);
});
}
@@ -7515,7 +7515,7 @@ var require_file = __commonJS({
"node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
"use strict";
var u2 = require_universalify().fromPromise;
- var path4 = require("path");
+ var path3 = require("path");
var fs6 = require_fs5();
var mkdir = require_mkdirs();
function createFile(file) {
@@ -7526,7 +7526,7 @@ var require_file = __commonJS({
} catch (e) {
}
if (stats && stats.isFile()) return;
- const dir = path4.dirname(file);
+ const dir = path3.dirname(file);
let dirStats = null;
try {
dirStats = yield fs6.stat(dir);
@@ -7553,7 +7553,7 @@ var require_file = __commonJS({
} catch (e) {
}
if (stats && stats.isFile()) return;
- const dir = path4.dirname(file);
+ const dir = path3.dirname(file);
try {
if (!fs6.statSync(dir).isDirectory()) {
fs6.readdirSync(dir);
@@ -7576,7 +7576,7 @@ var require_link = __commonJS({
"node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
"use strict";
var u2 = require_universalify().fromPromise;
- var path4 = require("path");
+ var path3 = require("path");
var fs6 = require_fs5();
var mkdir = require_mkdirs();
var { pathExists } = require_path_exists();
@@ -7596,7 +7596,7 @@ var require_link = __commonJS({
throw err;
}
if (dstStat && areIdentical(srcStat, dstStat)) return;
- const dir = path4.dirname(dstpath);
+ const dir = path3.dirname(dstpath);
const dirExists = yield pathExists(dir);
if (!dirExists) {
yield mkdir.mkdirs(dir);
@@ -7617,7 +7617,7 @@ var require_link = __commonJS({
err.message = err.message.replace("lstat", "ensureLink");
throw err;
}
- const dir = path4.dirname(dstpath);
+ const dir = path3.dirname(dstpath);
const dirExists = fs6.existsSync(dir);
if (dirExists) return fs6.linkSync(srcpath, dstpath);
mkdir.mkdirsSync(dir);
@@ -7634,13 +7634,13 @@ var require_link = __commonJS({
var require_symlink_paths = __commonJS({
"node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
"use strict";
- var path4 = require("path");
+ var path3 = require("path");
var fs6 = require_fs5();
var { pathExists } = require_path_exists();
var u2 = require_universalify().fromPromise;
function symlinkPaths(srcpath, dstpath) {
return __async(this, null, function* () {
- if (path4.isAbsolute(srcpath)) {
+ if (path3.isAbsolute(srcpath)) {
try {
yield fs6.lstat(srcpath);
} catch (err) {
@@ -7652,8 +7652,8 @@ var require_symlink_paths = __commonJS({
toDst: srcpath
};
}
- const dstdir = path4.dirname(dstpath);
- const relativeToDst = path4.join(dstdir, srcpath);
+ const dstdir = path3.dirname(dstpath);
+ const relativeToDst = path3.join(dstdir, srcpath);
const exists = yield pathExists(relativeToDst);
if (exists) {
return {
@@ -7669,12 +7669,12 @@ var require_symlink_paths = __commonJS({
}
return {
toCwd: srcpath,
- toDst: path4.relative(dstdir, srcpath)
+ toDst: path3.relative(dstdir, srcpath)
};
});
}
function symlinkPathsSync(srcpath, dstpath) {
- if (path4.isAbsolute(srcpath)) {
+ if (path3.isAbsolute(srcpath)) {
const exists2 = fs6.existsSync(srcpath);
if (!exists2) throw new Error("absolute srcpath does not exist");
return {
@@ -7682,8 +7682,8 @@ var require_symlink_paths = __commonJS({
toDst: srcpath
};
}
- const dstdir = path4.dirname(dstpath);
- const relativeToDst = path4.join(dstdir, srcpath);
+ const dstdir = path3.dirname(dstpath);
+ const relativeToDst = path3.join(dstdir, srcpath);
const exists = fs6.existsSync(relativeToDst);
if (exists) {
return {
@@ -7695,7 +7695,7 @@ var require_symlink_paths = __commonJS({
if (!srcExists) throw new Error("relative srcpath does not exist");
return {
toCwd: srcpath,
- toDst: path4.relative(dstdir, srcpath)
+ toDst: path3.relative(dstdir, srcpath)
};
}
module2.exports = {
@@ -7745,7 +7745,7 @@ var require_symlink = __commonJS({
"node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
"use strict";
var u2 = require_universalify().fromPromise;
- var path4 = require("path");
+ var path3 = require("path");
var fs6 = require_fs5();
var { mkdirs, mkdirsSync } = require_mkdirs();
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -7769,7 +7769,7 @@ var require_symlink = __commonJS({
const relative = yield symlinkPaths(srcpath, dstpath);
srcpath = relative.toDst;
const toType = yield symlinkType(relative.toCwd, type);
- const dir = path4.dirname(dstpath);
+ const dir = path3.dirname(dstpath);
if (!(yield pathExists(dir))) {
yield mkdirs(dir);
}
@@ -7790,7 +7790,7 @@ var require_symlink = __commonJS({
const relative = symlinkPathsSync(srcpath, dstpath);
srcpath = relative.toDst;
type = symlinkTypeSync(relative.toCwd, type);
- const dir = path4.dirname(dstpath);
+ const dir = path3.dirname(dstpath);
const exists = fs6.existsSync(dir);
if (exists) return fs6.symlinkSync(srcpath, dstpath, type);
mkdirsSync(dir);
@@ -7946,12 +7946,12 @@ var require_output_file = __commonJS({
"use strict";
var u2 = require_universalify().fromPromise;
var fs6 = require_fs5();
- var path4 = require("path");
+ var path3 = require("path");
var mkdir = require_mkdirs();
var pathExists = require_path_exists().pathExists;
function outputFile(file, data, encoding = "utf-8") {
return __async(this, null, function* () {
- const dir = path4.dirname(file);
+ const dir = path3.dirname(file);
if (!(yield pathExists(dir))) {
yield mkdir.mkdirs(dir);
}
@@ -7959,7 +7959,7 @@ var require_output_file = __commonJS({
});
}
function outputFileSync(file, ...args) {
- const dir = path4.dirname(file);
+ const dir = path3.dirname(file);
if (!fs6.existsSync(dir)) {
mkdir.mkdirsSync(dir);
}
@@ -8025,7 +8025,7 @@ var require_move = __commonJS({
"node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
"use strict";
var fs6 = require_fs5();
- var path4 = require("path");
+ var path3 = require("path");
var { copy } = require_copy2();
var { remove } = require_remove();
var { mkdirp } = require_mkdirs();
@@ -8036,8 +8036,8 @@ var require_move = __commonJS({
const overwrite = opts.overwrite || opts.clobber || false;
const { srcStat, isChangingCase = false } = yield stat.checkPaths(src, dest, "move", opts);
yield stat.checkParentPaths(src, srcStat, dest, "move");
- const destParent = path4.dirname(dest);
- const parsedParentPath = path4.parse(destParent);
+ const destParent = path3.dirname(dest);
+ const parsedParentPath = path3.parse(destParent);
if (parsedParentPath.root !== destParent) {
yield mkdirp(destParent);
}
@@ -8083,7 +8083,7 @@ var require_move_sync = __commonJS({
"node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
"use strict";
var fs6 = require_graceful_fs();
- var path4 = require("path");
+ var path3 = require("path");
var copySync = require_copy2().copySync;
var removeSync = require_remove().removeSync;
var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -8093,12 +8093,12 @@ var require_move_sync = __commonJS({
const overwrite = opts.overwrite || opts.clobber || false;
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
stat.checkParentPathsSync(src, srcStat, dest, "move");
- if (!isParentRoot(dest)) mkdirpSync(path4.dirname(dest));
+ if (!isParentRoot(dest)) mkdirpSync(path3.dirname(dest));
return doRename(src, dest, overwrite, isChangingCase);
}
function isParentRoot(dest) {
- const parent = path4.dirname(dest);
- const parsedPath = path4.parse(parent);
+ const parent = path3.dirname(dest);
+ const parsedPath = path3.parse(parent);
return parsedPath.root === parent;
}
function doRename(src, dest, overwrite, isChangingCase) {
@@ -8156,14 +8156,14 @@ var require_create_require = __commonJS({
"node_modules/create-require/create-require.js"(exports2, module2) {
"use strict";
var nativeModule = require("module");
- var path4 = require("path");
+ var path3 = require("path");
var fs6 = require("fs");
function createRequire2(filename) {
if (!filename) {
filename = process.cwd();
}
if (isDir(filename)) {
- filename = path4.join(filename, "index.js");
+ filename = path3.join(filename, "index.js");
}
if (nativeModule.createRequire) {
return nativeModule.createRequire(filename);
@@ -8176,13 +8176,13 @@ var require_create_require = __commonJS({
function _createRequire2(filename) {
const mod = new nativeModule.Module(filename, null);
mod.filename = filename;
- mod.paths = nativeModule.Module._nodeModulePaths(path4.dirname(filename));
+ mod.paths = nativeModule.Module._nodeModulePaths(path3.dirname(filename));
mod._compile("module.exports = require;", filename);
return mod.exports;
}
- function isDir(path5) {
+ function isDir(path4) {
try {
- const stat = fs6.lstatSync(path5);
+ const stat = fs6.lstatSync(path4);
return stat.isDirectory();
} catch (e) {
return false;
@@ -8267,22 +8267,12 @@ function Z(u2, a2) {
return r.end(), H2;
});
}
-var import_node_fs4, import_node_path4, import_node_http, import_node_https, import_node_zlib, import_node_stream2, import_node_buffer, import_node_util2, import_node_url2, import_node_net, B, E, D, t2, w, R, g, N, x, P, C, I, M, $, m, F, k;
+var B, E, D, t2, w, R, g, N, x, P, C, I, M, $, m, F, k;
var init_multipart_parser = __esm({
"node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs"() {
"use strict";
- import_node_fs4 = require("fs");
- import_node_path4 = require("path");
init_node();
- import_node_http = require("http");
- import_node_https = require("https");
- import_node_zlib = require("zlib");
- import_node_stream2 = require("stream");
- import_node_buffer = require("buffer");
- import_node_util2 = require("util");
init_node_fetch_native_1a4a356d();
- import_node_url2 = require("url");
- import_node_net = require("net");
B = Object.defineProperty;
E = (u2, a2) => B(u2, "name", { value: a2, configurable: true });
D = 0;
@@ -10839,8 +10829,8 @@ function In(i) {
if (i[H].disturbed) throw new TypeError(`body used already for: ${i.url}`);
if (i[H].disturbed = true, i[H].error) throw i[H].error;
const { body: o3 } = i;
- if (o3 === null) return import_node_buffer2.Buffer.alloc(0);
- if (!(o3 instanceof import_node_stream3.default)) return import_node_buffer2.Buffer.alloc(0);
+ if (o3 === null) return import_node_buffer.Buffer.alloc(0);
+ if (!(o3 instanceof import_node_stream2.default)) return import_node_buffer.Buffer.alloc(0);
const a2 = [];
let u2 = 0;
try {
@@ -10867,7 +10857,7 @@ function In(i) {
throw l2 instanceof ft ? l2 : new G(`Invalid response body while trying to fetch ${i.url}: ${l2.message}`, "system", l2);
}
if (o3.readableEnded === true || o3._readableState.ended === true) try {
- return a2.every((l2) => typeof l2 == "string") ? import_node_buffer2.Buffer.from(a2.join("")) : import_node_buffer2.Buffer.concat(a2, u2);
+ return a2.every((l2) => typeof l2 == "string") ? import_node_buffer.Buffer.from(a2.join("")) : import_node_buffer.Buffer.concat(a2, u2);
} catch (l2) {
throw new G(`Could not create Buffer from response body for ${i.url}: ${l2.message}`, "system", l2);
}
@@ -10892,7 +10882,7 @@ function ol(i) {
}
function il(i) {
if (/^(http|ws)s:$/.test(i.protocol)) return true;
- const o3 = i.host.replace(/(^\[)|(]$)/g, ""), a2 = (0, import_node_net2.isIP)(o3);
+ const o3 = i.host.replace(/(^\[)|(]$)/g, ""), a2 = (0, import_node_net.isIP)(o3);
return a2 === 4 && /^127\./.test(o3) || a2 === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(o3) ? true : i.host === "localhost" || i.host.endsWith(".localhost") ? false : i.protocol === "file:";
}
function ct(i) {
@@ -10943,11 +10933,11 @@ function Ti(i, o3) {
a2(V);
return;
}
- const g3 = (p.protocol === "https:" ? import_node_https2.default : import_node_http2.default).request, { signal: A2 } = l2;
+ const g3 = (p.protocol === "https:" ? import_node_https.default : import_node_http.default).request, { signal: A2 } = l2;
let w2 = null;
const E2 = n2(() => {
const _ = new _r("The operation was aborted.");
- u2(_), l2.body && l2.body instanceof import_node_stream3.default.Readable && l2.body.destroy(_), !(!w2 || !w2.body) && w2.body.emit("error", _);
+ u2(_), l2.body && l2.body instanceof import_node_stream2.default.Readable && l2.body.destroy(_), !(!w2 || !w2.body) && w2.body.emit("error", _);
}, "abort");
if (A2 && A2.aborted) {
E2();
@@ -11002,7 +10992,7 @@ function Ti(i, o3) {
}
const U = { headers: new ye(l2.headers), follow: l2.follow, counter: l2.counter + 1, agent: l2.agent, compress: l2.compress, method: l2.method, body: Fn(l2), signal: l2.signal, size: l2.size, referrer: l2.referrer, referrerPolicy: l2.referrerPolicy };
if (!Ys(l2.url, j) || !Gs(l2.url, j)) for (const Ft of ["authorization", "www-authenticate", "cookie", "cookie2"]) U.headers.delete(Ft);
- if (_.statusCode !== 303 && l2.body && o3.body instanceof import_node_stream3.default.Readable) {
+ if (_.statusCode !== 303 && l2.body && o3.body instanceof import_node_stream2.default.Readable) {
u2(new G("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), q();
return;
}
@@ -11018,7 +11008,7 @@ function Ti(i, o3) {
A2 && _.once("end", () => {
A2.removeEventListener("abort", T2);
});
- let I2 = (0, import_node_stream3.pipeline)(_, new import_node_stream3.PassThrough(), (z) => {
+ let I2 = (0, import_node_stream2.pipeline)(_, new import_node_stream2.PassThrough(), (z) => {
z && u2(z);
});
process.version < "v12.10" && _.on("aborted", T2);
@@ -11027,21 +11017,21 @@ function Ti(i, o3) {
w2 = new le(I2, F3), a2(w2);
return;
}
- const ge = { flush: import_node_zlib2.default.Z_SYNC_FLUSH, finishFlush: import_node_zlib2.default.Z_SYNC_FLUSH };
+ const ge = { flush: import_node_zlib.default.Z_SYNC_FLUSH, finishFlush: import_node_zlib.default.Z_SYNC_FLUSH };
if (Q === "gzip" || Q === "x-gzip") {
- I2 = (0, import_node_stream3.pipeline)(I2, import_node_zlib2.default.createGunzip(ge), (z) => {
+ I2 = (0, import_node_stream2.pipeline)(I2, import_node_zlib.default.createGunzip(ge), (z) => {
z && u2(z);
}), w2 = new le(I2, F3), a2(w2);
return;
}
if (Q === "deflate" || Q === "x-deflate") {
- const z = (0, import_node_stream3.pipeline)(_, new import_node_stream3.PassThrough(), (j) => {
+ const z = (0, import_node_stream2.pipeline)(_, new import_node_stream2.PassThrough(), (j) => {
j && u2(j);
});
z.once("data", (j) => {
- (j[0] & 15) === 8 ? I2 = (0, import_node_stream3.pipeline)(I2, import_node_zlib2.default.createInflate(), (U) => {
+ (j[0] & 15) === 8 ? I2 = (0, import_node_stream2.pipeline)(I2, import_node_zlib.default.createInflate(), (U) => {
U && u2(U);
- }) : I2 = (0, import_node_stream3.pipeline)(I2, import_node_zlib2.default.createInflateRaw(), (U) => {
+ }) : I2 = (0, import_node_stream2.pipeline)(I2, import_node_zlib.default.createInflateRaw(), (U) => {
U && u2(U);
}), w2 = new le(I2, F3), a2(w2);
}), z.once("end", () => {
@@ -11050,7 +11040,7 @@ function Ti(i, o3) {
return;
}
if (Q === "br") {
- I2 = (0, import_node_stream3.pipeline)(I2, import_node_zlib2.default.createBrotliDecompress(), (z) => {
+ I2 = (0, import_node_stream2.pipeline)(I2, import_node_zlib.default.createBrotliDecompress(), (z) => {
z && u2(z);
}), w2 = new le(I2, F3), a2(w2);
return;
@@ -11061,7 +11051,7 @@ function Ti(i, o3) {
});
}
function yl(i, o3) {
- const a2 = import_node_buffer2.Buffer.from(`0\r
+ const a2 = import_node_buffer.Buffer.from(`0\r
\r
`);
let u2 = false, l2 = false, p;
@@ -11075,7 +11065,7 @@ function yl(i, o3) {
w2.code = "ERR_STREAM_PREMATURE_CLOSE", o3(w2);
}
}, "onSocketClose"), A2 = n2((w2) => {
- l2 = import_node_buffer2.Buffer.compare(w2.slice(-5), a2) === 0, !l2 && p && (l2 = import_node_buffer2.Buffer.compare(p.slice(-3), a2.slice(0, 3)) === 0 && import_node_buffer2.Buffer.compare(w2.slice(-2), a2.slice(3)) === 0), p = w2;
+ l2 = import_node_buffer.Buffer.compare(w2.slice(-5), a2) === 0, !l2 && p && (l2 = import_node_buffer.Buffer.compare(p.slice(-3), a2.slice(0, 3)) === 0 && import_node_buffer.Buffer.compare(w2.slice(-2), a2.slice(3)) === 0), p = w2;
}, "onData");
h.prependListener("close", g3), h.on("data", A2), i.on("close", () => {
h.removeListener("close", g3), h.removeListener("data", A2);
@@ -11218,21 +11208,21 @@ function ji() {
var _a2, _b2, _c;
!((_b2 = (_a2 = globalThis.process) == null ? void 0 : _a2.versions) == null ? void 0 : _b2.node) && !((_c = globalThis.process) == null ? void 0 : _c.env.DISABLE_NODE_FETCH_NATIVE_WARN || true) && console.warn("[node-fetch-native] Node.js compatible build of `node-fetch-native` is being used in a non-Node.js environment. Please make sure you are using proper export conditions or report this issue to https://github.com/unjs/node-fetch-native. You can set `process.env.DISABLE_NODE_FETCH_NATIVE_WARN` to disable this warning.");
}
-var import_node_http2, import_node_https2, import_node_zlib2, import_node_stream3, import_node_buffer2, import_node_util3, import_node_url3, import_node_net2, import_node_fs5, import_node_path5, As, n2, fi, O, be, X, ve, kt, bt, Cr, Ve, Wt, qt, Ot, ee, zt, Ne, He, It, pr, di, $s, hi, pi, Ds, ut, Ms, Us, On, Et, xs, Ns, bi, Hs, mi, zn, Me, br, Un, ft, xn, G, mr, yi, yr, Qs, Ys, Gs, Zs, H, Nn, Ue, Fn, Ks, gi, Js, Xs, gr, jn, Pr, ye, tl, Ln, se, xe, le, rl, Si, nl, $2, At, ll, vr, dt, ul, Hn, _r, fl, cl, $n, dl, hl, pl, bl, wi, Ri, Er, Sr, ml, Ci, Dn, Bi, ki, Wi, wr, Vn, pt, Tr, Mn, zi, El, Al, Fi;
+var import_node_http, import_node_https, import_node_zlib, import_node_stream2, import_node_buffer, import_node_util2, import_node_url2, import_node_net, import_node_fs4, import_node_path3, As, n2, fi, O, be, X, ve, kt, bt, Cr, Ve, Wt, qt, Ot, ee, zt, Ne, He, It, pr, di, $s, hi, pi, Ds, ut, Ms, Us, On, Et, xs, Ns, bi, Hs, mi, zn, Me, br, Un, ft, xn, G, mr, yi, yr, Qs, Ys, Gs, Zs, H, Nn, Ue, Fn, Ks, gi, Js, Xs, gr, jn, Pr, ye, tl, Ln, se, xe, le, rl, Si, nl, $2, At, ll, vr, dt, ul, Hn, _r, fl, cl, $n, dl, hl, pl, bl, wi, Ri, Er, Sr, ml, Ci, Dn, Bi, ki, Wi, wr, Vn, pt, Tr, Mn, zi, El, Al, Fi;
var init_node = __esm({
"node_modules/node-fetch-native/dist/node.mjs"() {
"use strict";
- import_node_http2 = __toESM(require("http"), 1);
- import_node_https2 = __toESM(require("https"), 1);
- import_node_zlib2 = __toESM(require("zlib"), 1);
- import_node_stream3 = __toESM(require("stream"), 1);
- import_node_buffer2 = require("buffer");
- import_node_util3 = require("util");
+ import_node_http = __toESM(require("http"), 1);
+ import_node_https = __toESM(require("https"), 1);
+ import_node_zlib = __toESM(require("zlib"), 1);
+ import_node_stream2 = __toESM(require("stream"), 1);
+ import_node_buffer = require("buffer");
+ import_node_util2 = require("util");
init_node_fetch_native_1a4a356d();
- import_node_url3 = require("url");
- import_node_net2 = require("net");
- import_node_fs5 = require("fs");
- import_node_path5 = require("path");
+ import_node_url2 = require("url");
+ import_node_net = require("net");
+ import_node_fs4 = require("fs");
+ import_node_path3 = require("path");
As = Object.defineProperty;
n2 = (i, o3) => As(i, "name", { value: o3, configurable: true });
fi = (i, o3, a2) => {
@@ -11503,14 +11493,14 @@ var init_node = __esm({
const a2 = new URL(o3).protocol, u2 = new URL(i).protocol;
return a2 === u2;
}, "isSameProtocol");
- Zs = (0, import_node_util3.promisify)(import_node_stream3.default.pipeline);
+ Zs = (0, import_node_util2.promisify)(import_node_stream2.default.pipeline);
H = Symbol("Body internals");
Nn = class Nn2 {
constructor(o3, { size: a2 = 0 } = {}) {
let u2 = null;
- o3 === null ? o3 = null : yi(o3) ? o3 = import_node_buffer2.Buffer.from(o3.toString()) : yr(o3) || import_node_buffer2.Buffer.isBuffer(o3) || (import_node_util3.types.isAnyArrayBuffer(o3) ? o3 = import_node_buffer2.Buffer.from(o3) : ArrayBuffer.isView(o3) ? o3 = import_node_buffer2.Buffer.from(o3.buffer, o3.byteOffset, o3.byteLength) : o3 instanceof import_node_stream3.default || (o3 instanceof br ? (o3 = Vs(o3), u2 = o3.type.split("=")[1]) : o3 = import_node_buffer2.Buffer.from(String(o3))));
+ o3 === null ? o3 = null : yi(o3) ? o3 = import_node_buffer.Buffer.from(o3.toString()) : yr(o3) || import_node_buffer.Buffer.isBuffer(o3) || (import_node_util2.types.isAnyArrayBuffer(o3) ? o3 = import_node_buffer.Buffer.from(o3) : ArrayBuffer.isView(o3) ? o3 = import_node_buffer.Buffer.from(o3.buffer, o3.byteOffset, o3.byteLength) : o3 instanceof import_node_stream2.default || (o3 instanceof br ? (o3 = Vs(o3), u2 = o3.type.split("=")[1]) : o3 = import_node_buffer.Buffer.from(String(o3))));
let l2 = o3;
- import_node_buffer2.Buffer.isBuffer(o3) ? l2 = import_node_stream3.default.Readable.from(o3) : yr(o3) && (l2 = import_node_stream3.default.Readable.from(o3.stream())), this[H] = { body: o3, stream: l2, boundary: u2, disturbed: false, error: null }, this.size = a2, o3 instanceof import_node_stream3.default && o3.on("error", (p) => {
+ import_node_buffer.Buffer.isBuffer(o3) ? l2 = import_node_stream2.default.Readable.from(o3) : yr(o3) && (l2 = import_node_stream2.default.Readable.from(o3.stream())), this[H] = { body: o3, stream: l2, boundary: u2, disturbed: false, error: null }, this.size = a2, o3 instanceof import_node_stream2.default && o3.on("error", (p) => {
const h = p instanceof ft ? p : new G(`Invalid response body while trying to fetch ${this.url}: ${p.message}`, "system", p);
this[H].error = h;
});
@@ -11563,30 +11553,30 @@ var init_node = __esm({
};
n2(Nn, "Body");
Ue = Nn;
- Ue.prototype.buffer = (0, import_node_util3.deprecate)(Ue.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer"), Object.defineProperties(Ue.prototype, { body: { enumerable: true }, bodyUsed: { enumerable: true }, arrayBuffer: { enumerable: true }, blob: { enumerable: true }, json: { enumerable: true }, text: { enumerable: true }, data: { get: (0, import_node_util3.deprecate)(() => {
+ Ue.prototype.buffer = (0, import_node_util2.deprecate)(Ue.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer"), Object.defineProperties(Ue.prototype, { body: { enumerable: true }, bodyUsed: { enumerable: true }, arrayBuffer: { enumerable: true }, blob: { enumerable: true }, json: { enumerable: true }, text: { enumerable: true }, data: { get: (0, import_node_util2.deprecate)(() => {
}, "data doesn't exist, use json(), text(), arrayBuffer(), or body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (response)") } });
n2(In, "consumeBody");
Fn = n2((i, o3) => {
let a2, u2, { body: l2 } = i[H];
if (i.bodyUsed) throw new Error("cannot clone body after it is used");
- return l2 instanceof import_node_stream3.default && typeof l2.getBoundary != "function" && (a2 = new import_node_stream3.PassThrough({ highWaterMark: o3 }), u2 = new import_node_stream3.PassThrough({ highWaterMark: o3 }), l2.pipe(a2), l2.pipe(u2), i[H].stream = a2, l2 = u2), l2;
+ return l2 instanceof import_node_stream2.default && typeof l2.getBoundary != "function" && (a2 = new import_node_stream2.PassThrough({ highWaterMark: o3 }), u2 = new import_node_stream2.PassThrough({ highWaterMark: o3 }), l2.pipe(a2), l2.pipe(u2), i[H].stream = a2, l2 = u2), l2;
}, "clone");
- Ks = (0, import_node_util3.deprecate)((i) => i.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167");
- gi = n2((i, o3) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : yi(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : yr(i) ? i.type || null : import_node_buffer2.Buffer.isBuffer(i) || import_node_util3.types.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof br ? `multipart/form-data; boundary=${o3[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${Ks(i)}` : i instanceof import_node_stream3.default ? null : "text/plain;charset=UTF-8", "extractContentType");
+ Ks = (0, import_node_util2.deprecate)((i) => i.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167");
+ gi = n2((i, o3) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : yi(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : yr(i) ? i.type || null : import_node_buffer.Buffer.isBuffer(i) || import_node_util2.types.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof br ? `multipart/form-data; boundary=${o3[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${Ks(i)}` : i instanceof import_node_stream2.default ? null : "text/plain;charset=UTF-8", "extractContentType");
Js = n2((i) => {
const { body: o3 } = i[H];
- return o3 === null ? 0 : yr(o3) ? o3.size : import_node_buffer2.Buffer.isBuffer(o3) ? o3.length : o3 && typeof o3.getLengthSync == "function" && o3.hasKnownLength && o3.hasKnownLength() ? o3.getLengthSync() : null;
+ return o3 === null ? 0 : yr(o3) ? o3.size : import_node_buffer.Buffer.isBuffer(o3) ? o3.length : o3 && typeof o3.getLengthSync == "function" && o3.hasKnownLength && o3.hasKnownLength() ? o3.getLengthSync() : null;
}, "getTotalBytes");
Xs = n2((_0, _1) => __async(null, [_0, _1], function* (i, { body: o3 }) {
o3 === null ? i.end() : yield Zs(o3, i);
}), "writeToStream");
- gr = typeof import_node_http2.default.validateHeaderName == "function" ? import_node_http2.default.validateHeaderName : (i) => {
+ gr = typeof import_node_http.default.validateHeaderName == "function" ? import_node_http.default.validateHeaderName : (i) => {
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(i)) {
const o3 = new TypeError(`Header name must be a valid HTTP token [${i}]`);
throw Object.defineProperty(o3, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o3;
}
};
- jn = typeof import_node_http2.default.validateHeaderValue == "function" ? import_node_http2.default.validateHeaderValue : (i, o3) => {
+ jn = typeof import_node_http.default.validateHeaderValue == "function" ? import_node_http.default.validateHeaderValue : (i, o3) => {
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o3)) {
const a2 = new TypeError(`Invalid character in header content ["${i}"]`);
throw Object.defineProperty(a2, "code", { value: "ERR_INVALID_CHAR" }), a2;
@@ -11598,13 +11588,13 @@ var init_node = __esm({
if (o3 instanceof Pr2) {
const u2 = o3.raw();
for (const [l2, p] of Object.entries(u2)) a2.push(...p.map((h) => [l2, h]));
- } else if (o3 != null) if (typeof o3 == "object" && !import_node_util3.types.isBoxedPrimitive(o3)) {
+ } else if (o3 != null) if (typeof o3 == "object" && !import_node_util2.types.isBoxedPrimitive(o3)) {
const u2 = o3[Symbol.iterator];
if (u2 == null) a2.push(...Object.entries(o3));
else {
if (typeof u2 != "function") throw new TypeError("Header pairs must be iterable");
a2 = [...o3].map((l2) => {
- if (typeof l2 != "object" || import_node_util3.types.isBoxedPrimitive(l2)) throw new TypeError("Each header pair must be an iterable object");
+ if (typeof l2 != "object" || import_node_util2.types.isBoxedPrimitive(l2)) throw new TypeError("Each header pair must be an iterable object");
return [...l2];
}).map((l2) => {
if (l2.length !== 2) throw new TypeError("Each header pair must be a name/value tuple");
@@ -11742,7 +11732,7 @@ var init_node = __esm({
n2(sl, "parseReferrerPolicyFromHeader");
$2 = Symbol("Request internals");
At = n2((i) => typeof i == "object" && typeof i[$2] == "object", "isRequest");
- ll = (0, import_node_util3.deprecate)(() => {
+ ll = (0, import_node_util2.deprecate)(() => {
}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)");
vr = class vr2 extends Ue {
constructor(o3, a2 = {}) {
@@ -11771,7 +11761,7 @@ var init_node = __esm({
return this[$2].method;
}
get url() {
- return (0, import_node_url3.format)(this[$2].parsedURL);
+ return (0, import_node_url2.format)(this[$2].parsedURL);
}
get headers() {
return this[$2].headers;
@@ -11832,13 +11822,13 @@ var init_node = __esm({
}
fl = globalThis.DOMException;
cl = f(fl);
- ({ stat: $n } = import_node_fs5.promises);
- dl = n2((i, o3) => wi((0, import_node_fs5.statSync)(i), i, o3), "blobFromSync");
+ ({ stat: $n } = import_node_fs4.promises);
+ dl = n2((i, o3) => wi((0, import_node_fs4.statSync)(i), i, o3), "blobFromSync");
hl = n2((i, o3) => $n(i).then((a2) => wi(a2, i, o3)), "blobFrom");
pl = n2((i, o3) => $n(i).then((a2) => Ri(a2, i, o3)), "fileFrom");
- bl = n2((i, o3) => Ri((0, import_node_fs5.statSync)(i), i, o3), "fileFromSync");
+ bl = n2((i, o3) => Ri((0, import_node_fs4.statSync)(i), i, o3), "fileFromSync");
wi = n2((i, o3, a2 = "") => new ut([new Sr({ path: o3, size: i.size, lastModified: i.mtimeMs, start: 0 })], { type: a2 }), "fromBlob");
- Ri = n2((i, o3, a2 = "") => new On([new Sr({ path: o3, size: i.size, lastModified: i.mtimeMs, start: 0 })], (0, import_node_path5.basename)(o3), { type: a2, lastModified: i.mtimeMs }), "fromFile");
+ Ri = n2((i, o3, a2 = "") => new On([new Sr({ path: o3, size: i.size, lastModified: i.mtimeMs, start: 0 })], (0, import_node_path3.basename)(o3), { type: a2, lastModified: i.mtimeMs }), "fromFile");
Er = class Er2 {
constructor(o3) {
be(this, Ne, void 0);
@@ -11852,7 +11842,7 @@ var init_node = __esm({
return __asyncGenerator(this, null, function* () {
const { mtimeMs: o3 } = yield new __await($n(O(this, Ne)));
if (o3 > this.lastModified) throw new cl("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError");
- yield* __yieldStar((0, import_node_fs5.createReadStream)(O(this, Ne), { start: O(this, He), end: O(this, He) + this.size - 1 }));
+ yield* __yieldStar((0, import_node_fs4.createReadStream)(O(this, Ne), { start: O(this, He), end: O(this, He) + this.size - 1 }));
});
}
get [Symbol.toStringTag]() {
@@ -12259,7 +12249,7 @@ module.exports = __toCommonJS(vendor_extra_exports);
// node_modules/globby/index.js
var import_node_process2 = __toESM(require("process"), 1);
var import_node_fs3 = __toESM(require("fs"), 1);
-var import_node_path3 = __toESM(require("path"), 1);
+var import_node_path2 = __toESM(require("path"), 1);
// node_modules/@sindresorhus/merge-streams/index.js
var import_node_events = require("events");
@@ -12504,7 +12494,6 @@ var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
// node_modules/unicorn-magic/node.js
var import_node_util = require("util");
var import_node_child_process = require("child_process");
-var import_node_path = __toESM(require("path"), 1);
var import_node_url = require("url");
var execFileOriginal = (0, import_node_util.promisify)(import_node_child_process.execFile);
function toPath(urlOrPath) {
@@ -12516,17 +12505,17 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
var import_node_process = __toESM(require("process"), 1);
var import_node_fs2 = __toESM(require("fs"), 1);
var import_promises3 = __toESM(require("fs").promises, 1);
-var import_node_path2 = __toESM(require("path"), 1);
+var import_node_path = __toESM(require("path"), 1);
var import_fast_glob = __toESM(require_out4(), 1);
var import_ignore = __toESM(require_ignore(), 1);
// node_modules/slash/index.js
-function slash(path4) {
- const isExtendedLengthPath = path4.startsWith("\\\\?\\");
+function slash(path3) {
+ const isExtendedLengthPath = path3.startsWith("\\\\?\\");
if (isExtendedLengthPath) {
- return path4;
+ return path3;
}
- return path4.replace(/\\/g, "/");
+ return path3.replace(/\\/g, "/");
}
// node_modules/globby/utilities.js
@@ -12544,16 +12533,16 @@ var ignoreFilesGlobOptions = {
dot: true
};
var GITIGNORE_FILES_PATTERN = "**/.gitignore";
-var applyBaseToPattern = (pattern, base) => isNegativePattern(pattern) ? "!" + import_node_path2.default.posix.join(base, pattern.slice(1)) : import_node_path2.default.posix.join(base, pattern);
+var applyBaseToPattern = (pattern, base) => isNegativePattern(pattern) ? "!" + import_node_path.default.posix.join(base, pattern.slice(1)) : import_node_path.default.posix.join(base, pattern);
var parseIgnoreFile = (file, cwd) => {
- const base = slash(import_node_path2.default.relative(cwd, import_node_path2.default.dirname(file.filePath)));
+ const base = slash(import_node_path.default.relative(cwd, import_node_path.default.dirname(file.filePath)));
return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
};
var toRelativePath = (fileOrDirectory, cwd) => {
cwd = slash(cwd);
- if (import_node_path2.default.isAbsolute(fileOrDirectory)) {
+ if (import_node_path.default.isAbsolute(fileOrDirectory)) {
if (slash(fileOrDirectory).startsWith(cwd)) {
- return import_node_path2.default.relative(cwd, fileOrDirectory);
+ return import_node_path.default.relative(cwd, fileOrDirectory);
}
throw new Error(`Path ${fileOrDirectory} is not in cwd ${cwd}`);
}
@@ -12619,12 +12608,12 @@ var assertPatternsInput = (patterns) => {
}
};
var normalizePathForDirectoryGlob = (filePath, cwd) => {
- const path4 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
- return import_node_path3.default.isAbsolute(path4) ? path4 : import_node_path3.default.join(cwd, path4);
+ const path3 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
+ return import_node_path2.default.isAbsolute(path3) ? path3 : import_node_path2.default.join(cwd, path3);
};
var getDirectoryGlob = ({ directoryPath, files, extensions }) => {
const extensionGlob = (extensions == null ? void 0 : extensions.length) > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
- return files ? files.map((file) => import_node_path3.default.posix.join(directoryPath, `**/${import_node_path3.default.extname(file) ? file : `${file}${extensionGlob}`}`)) : [import_node_path3.default.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
+ return files ? files.map((file) => import_node_path2.default.posix.join(directoryPath, `**/${import_node_path2.default.extname(file) ? file : `${file}${extensionGlob}`}`)) : [import_node_path2.default.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
};
var directoryToGlob = (_0, ..._1) => __async(null, [_0, ..._1], function* (directoryPaths, {
cwd = import_node_process2.default.cwd(),
@@ -12700,7 +12689,7 @@ var createFilterFunction = (isIgnored) => {
const seen = /* @__PURE__ */ new Set();
return (fastGlobResult) => {
var _a2;
- const pathKey = import_node_path3.default.normalize((_a2 = fastGlobResult.path) != null ? _a2 : fastGlobResult);
+ const pathKey = import_node_path2.default.normalize((_a2 = fastGlobResult.path) != null ? _a2 : fastGlobResult);
if (seen.has(pathKey) || isIgnored && isIgnored(pathKey)) {
return false;
}
@@ -12924,17 +12913,17 @@ function visit(node, visitor) {
visit.BREAK = BREAK;
visit.SKIP = SKIP;
visit.REMOVE = REMOVE;
-function visit_(key, node, visitor, path4) {
- const ctrl = callVisitor(key, node, visitor, path4);
+function visit_(key, node, visitor, path3) {
+ const ctrl = callVisitor(key, node, visitor, path3);
if (isNode(ctrl) || isPair(ctrl)) {
- replaceNode(key, path4, ctrl);
- return visit_(key, ctrl, visitor, path4);
+ replaceNode(key, path3, ctrl);
+ return visit_(key, ctrl, visitor, path3);
}
if (typeof ctrl !== "symbol") {
if (isCollection(node)) {
- path4 = Object.freeze(path4.concat(node));
+ path3 = Object.freeze(path3.concat(node));
for (let i = 0; i < node.items.length; ++i) {
- const ci2 = visit_(i, node.items[i], visitor, path4);
+ const ci2 = visit_(i, node.items[i], visitor, path3);
if (typeof ci2 === "number")
i = ci2 - 1;
else if (ci2 === BREAK)
@@ -12945,13 +12934,13 @@ function visit_(key, node, visitor, path4) {
}
}
} else if (isPair(node)) {
- path4 = Object.freeze(path4.concat(node));
- const ck = visit_("key", node.key, visitor, path4);
+ path3 = Object.freeze(path3.concat(node));
+ const ck = visit_("key", node.key, visitor, path3);
if (ck === BREAK)
return BREAK;
else if (ck === REMOVE)
node.key = null;
- const cv = visit_("value", node.value, visitor, path4);
+ const cv = visit_("value", node.value, visitor, path3);
if (cv === BREAK)
return BREAK;
else if (cv === REMOVE)
@@ -12974,18 +12963,18 @@ function visitAsync(node, visitor) {
visitAsync.BREAK = BREAK;
visitAsync.SKIP = SKIP;
visitAsync.REMOVE = REMOVE;
-function visitAsync_(key, node, visitor, path4) {
+function visitAsync_(key, node, visitor, path3) {
return __async(this, null, function* () {
- const ctrl = yield callVisitor(key, node, visitor, path4);
+ const ctrl = yield callVisitor(key, node, visitor, path3);
if (isNode(ctrl) || isPair(ctrl)) {
- replaceNode(key, path4, ctrl);
- return visitAsync_(key, ctrl, visitor, path4);
+ replaceNode(key, path3, ctrl);
+ return visitAsync_(key, ctrl, visitor, path3);
}
if (typeof ctrl !== "symbol") {
if (isCollection(node)) {
- path4 = Object.freeze(path4.concat(node));
+ path3 = Object.freeze(path3.concat(node));
for (let i = 0; i < node.items.length; ++i) {
- const ci2 = yield visitAsync_(i, node.items[i], visitor, path4);
+ const ci2 = yield visitAsync_(i, node.items[i], visitor, path3);
if (typeof ci2 === "number")
i = ci2 - 1;
else if (ci2 === BREAK)
@@ -12996,13 +12985,13 @@ function visitAsync_(key, node, visitor, path4) {
}
}
} else if (isPair(node)) {
- path4 = Object.freeze(path4.concat(node));
- const ck = yield visitAsync_("key", node.key, visitor, path4);
+ path3 = Object.freeze(path3.concat(node));
+ const ck = yield visitAsync_("key", node.key, visitor, path3);
if (ck === BREAK)
return BREAK;
else if (ck === REMOVE)
node.key = null;
- const cv = yield visitAsync_("value", node.value, visitor, path4);
+ const cv = yield visitAsync_("value", node.value, visitor, path3);
if (cv === BREAK)
return BREAK;
else if (cv === REMOVE)
@@ -13030,24 +13019,24 @@ function initVisitor(visitor) {
}
return visitor;
}
-function callVisitor(key, node, visitor, path4) {
+function callVisitor(key, node, visitor, path3) {
var _a2, _b2, _c, _d, _e;
if (typeof visitor === "function")
- return visitor(key, node, path4);
+ return visitor(key, node, path3);
if (isMap(node))
- return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path4);
+ return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path3);
if (isSeq(node))
- return (_b2 = visitor.Seq) == null ? void 0 : _b2.call(visitor, key, node, path4);
+ return (_b2 = visitor.Seq) == null ? void 0 : _b2.call(visitor, key, node, path3);
if (isPair(node))
- return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path4);
+ return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path3);
if (isScalar(node))
- return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path4);
+ return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path3);
if (isAlias(node))
- return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path4);
+ return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path3);
return void 0;
}
-function replaceNode(key, path4, node) {
- const parent = path4[path4.length - 1];
+function replaceNode(key, path3, node) {
+ const parent = path3[path3.length - 1];
if (isCollection(parent)) {
parent.items[key] = node;
} else if (isPair(parent)) {
@@ -13579,10 +13568,10 @@ function createNode(value, tagName, ctx) {
}
// node_modules/yaml/browser/dist/nodes/Collection.js
-function collectionFromPath(schema4, path4, value) {
+function collectionFromPath(schema4, path3, value) {
let v2 = value;
- for (let i = path4.length - 1; i >= 0; --i) {
- const k2 = path4[i];
+ for (let i = path3.length - 1; i >= 0; --i) {
+ const k2 = path3[i];
if (typeof k2 === "number" && Number.isInteger(k2) && k2 >= 0) {
const a2 = [];
a2[k2] = v2;
@@ -13601,7 +13590,7 @@ function collectionFromPath(schema4, path4, value) {
sourceObjects: /* @__PURE__ */ new Map()
});
}
-var isEmptyPath = (path4) => path4 == null || typeof path4 === "object" && !!path4[Symbol.iterator]().next().done;
+var isEmptyPath = (path3) => path3 == null || typeof path3 === "object" && !!path3[Symbol.iterator]().next().done;
var Collection = class extends NodeBase {
constructor(type, schema4) {
super(type);
@@ -13631,11 +13620,11 @@ var Collection = class extends NodeBase {
* be a Pair instance or a `{ key, value }` object, which may not have a key
* that already exists in the map.
*/
- addIn(path4, value) {
- if (isEmptyPath(path4))
+ addIn(path3, value) {
+ if (isEmptyPath(path3))
this.add(value);
else {
- const [key, ...rest] = path4;
+ const [key, ...rest] = path3;
const node = this.get(key, true);
if (isCollection(node))
node.addIn(rest, value);
@@ -13649,8 +13638,8 @@ var Collection = class extends NodeBase {
* Removes a value from the collection.
* @returns `true` if the item was found and removed.
*/
- deleteIn(path4) {
- const [key, ...rest] = path4;
+ deleteIn(path3) {
+ const [key, ...rest] = path3;
if (rest.length === 0)
return this.delete(key);
const node = this.get(key, true);
@@ -13664,8 +13653,8 @@ var Collection = class extends NodeBase {
* scalar values from their surrounding node; to disable set `keepScalar` to
* `true` (collections are always returned intact).
*/
- getIn(path4, keepScalar) {
- const [key, ...rest] = path4;
+ getIn(path3, keepScalar) {
+ const [key, ...rest] = path3;
const node = this.get(key, true);
if (rest.length === 0)
return !keepScalar && isScalar(node) ? node.value : node;
@@ -13683,8 +13672,8 @@ var Collection = class extends NodeBase {
/**
* Checks if the collection includes a value with the key `key`.
*/
- hasIn(path4) {
- const [key, ...rest] = path4;
+ hasIn(path3) {
+ const [key, ...rest] = path3;
if (rest.length === 0)
return this.has(key);
const node = this.get(key, true);
@@ -13694,8 +13683,8 @@ var Collection = class extends NodeBase {
* Sets a value in this collection. For `!!set`, `value` needs to be a
* boolean to add/remove the item from the set.
*/
- setIn(path4, value) {
- const [key, ...rest] = path4;
+ setIn(path3, value) {
+ const [key, ...rest] = path3;
if (rest.length === 0) {
this.set(key, value);
} else {
@@ -15841,9 +15830,9 @@ var Document = class _Document {
this.contents.add(value);
}
/** Adds a value to the document. */
- addIn(path4, value) {
+ addIn(path3, value) {
if (assertCollection(this.contents))
- this.contents.addIn(path4, value);
+ this.contents.addIn(path3, value);
}
/**
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -15918,14 +15907,14 @@ var Document = class _Document {
* Removes a value from the document.
* @returns `true` if the item was found and removed.
*/
- deleteIn(path4) {
- if (isEmptyPath(path4)) {
+ deleteIn(path3) {
+ if (isEmptyPath(path3)) {
if (this.contents == null)
return false;
this.contents = null;
return true;
}
- return assertCollection(this.contents) ? this.contents.deleteIn(path4) : false;
+ return assertCollection(this.contents) ? this.contents.deleteIn(path3) : false;
}
/**
* Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -15940,10 +15929,10 @@ var Document = class _Document {
* scalar values from their surrounding node; to disable set `keepScalar` to
* `true` (collections are always returned intact).
*/
- getIn(path4, keepScalar) {
- if (isEmptyPath(path4))
+ getIn(path3, keepScalar) {
+ if (isEmptyPath(path3))
return !keepScalar && isScalar(this.contents) ? this.contents.value : this.contents;
- return isCollection(this.contents) ? this.contents.getIn(path4, keepScalar) : void 0;
+ return isCollection(this.contents) ? this.contents.getIn(path3, keepScalar) : void 0;
}
/**
* Checks if the document includes a value with the key `key`.
@@ -15954,10 +15943,10 @@ var Document = class _Document {
/**
* Checks if the document includes a value at `path`.
*/
- hasIn(path4) {
- if (isEmptyPath(path4))
+ hasIn(path3) {
+ if (isEmptyPath(path3))
return this.contents !== void 0;
- return isCollection(this.contents) ? this.contents.hasIn(path4) : false;
+ return isCollection(this.contents) ? this.contents.hasIn(path3) : false;
}
/**
* Sets a value in this document. For `!!set`, `value` needs to be a
@@ -15974,13 +15963,13 @@ var Document = class _Document {
* Sets a value in this document. For `!!set`, `value` needs to be a
* boolean to add/remove the item from the set.
*/
- setIn(path4, value) {
- if (isEmptyPath(path4)) {
+ setIn(path3, value) {
+ if (isEmptyPath(path3)) {
this.contents = value;
} else if (this.contents == null) {
- this.contents = collectionFromPath(this.schema, Array.from(path4), value);
+ this.contents = collectionFromPath(this.schema, Array.from(path3), value);
} else if (assertCollection(this.contents)) {
- this.contents.setIn(path4, value);
+ this.contents.setIn(path3, value);
}
}
/**
@@ -17783,9 +17772,9 @@ function visit2(cst, visitor) {
visit2.BREAK = BREAK2;
visit2.SKIP = SKIP2;
visit2.REMOVE = REMOVE2;
-visit2.itemAtPath = (cst, path4) => {
+visit2.itemAtPath = (cst, path3) => {
let item = cst;
- for (const [field, index] of path4) {
+ for (const [field, index] of path3) {
const tok = item == null ? void 0 : item[field];
if (tok && "items" in tok) {
item = tok.items[index];
@@ -17794,23 +17783,23 @@ visit2.itemAtPath = (cst, path4) => {
}
return item;
};
-visit2.parentCollection = (cst, path4) => {
- const parent = visit2.itemAtPath(cst, path4.slice(0, -1));
- const field = path4[path4.length - 1][0];
+visit2.parentCollection = (cst, path3) => {
+ const parent = visit2.itemAtPath(cst, path3.slice(0, -1));
+ const field = path3[path3.length - 1][0];
const coll = parent == null ? void 0 : parent[field];
if (coll && "items" in coll)
return coll;
throw new Error("Parent collection not found");
};
-function _visit(path4, item, visitor) {
- let ctrl = visitor(item, path4);
+function _visit(path3, item, visitor) {
+ let ctrl = visitor(item, path3);
if (typeof ctrl === "symbol")
return ctrl;
for (const field of ["key", "value"]) {
const token = item[field];
if (token && "items" in token) {
for (let i = 0; i < token.items.length; ++i) {
- const ci2 = _visit(Object.freeze(path4.concat([[field, i]])), token.items[i], visitor);
+ const ci2 = _visit(Object.freeze(path3.concat([[field, i]])), token.items[i], visitor);
if (typeof ci2 === "number")
i = ci2 - 1;
else if (ci2 === BREAK2)
@@ -17821,10 +17810,10 @@ function _visit(path4, item, visitor) {
}
}
if (typeof ctrl === "function" && field === "key")
- ctrl = ctrl(item, path4);
+ ctrl = ctrl(item, path3);
}
}
- return typeof ctrl === "function" ? ctrl(item, path4) : ctrl;
+ return typeof ctrl === "function" ? ctrl(item, path3) : ctrl;
}
// node_modules/yaml/browser/dist/parse/cst.js
@@ -19458,17 +19447,7 @@ var import_create_require = __toESM(require_create_require(), 1);
// node_modules/node-fetch-native/dist/index.mjs
init_node();
init_node();
-var import_node_http3 = require("http");
-var import_node_https3 = require("https");
-var import_node_zlib3 = require("zlib");
-var import_node_stream4 = require("stream");
-var import_node_buffer3 = require("buffer");
-var import_node_util4 = require("util");
init_node_fetch_native_1a4a356d();
-var import_node_url4 = require("url");
-var import_node_net3 = require("net");
-var import_node_fs6 = require("fs");
-var import_node_path6 = require("path");
var a = Object.defineProperty;
var t3 = (e, r) => a(e, "name", { value: r, configurable: true });
var f2 = Object.defineProperty;
@@ -19563,16 +19542,16 @@ var extract = (readable, _opts) => {
var import_minimist = __toESM(require_minimist(), 1);
// node_modules/envapi/target/esm/index.mjs
-var import_node_fs7 = __toESM(require("fs"), 1);
-var import_node_path7 = __toESM(require("path"), 1);
-var import_node_util5 = require("util");
+var import_node_fs5 = __toESM(require("fs"), 1);
+var import_node_path4 = __toESM(require("path"), 1);
+var import_node_util3 = require("util");
var DOTENV = ".env";
var Q1 = '"';
var Q2 = "'";
var Q3 = "`";
var KR = /^[a-zA-Z_]\w*$/;
var SR = /\s/;
-var decoder = new import_node_util5.TextDecoder();
+var decoder = new import_node_util3.TextDecoder();
var parse2 = (content) => {
const e = {};
let k2 = "";
@@ -19641,39 +19620,19 @@ var formatValue = (v2) => {
return `${Q3}${v2}${Q3}`;
};
var stringify4 = (env) => Object.entries(env).map(([k2, v2]) => `${k2}=${formatValue(v2 || "")}`).join("\n");
-var _load = (read, ...files) => files.reverse().reduce((m2, f3) => Object.assign(m2, parse2(read(import_node_path7.default.resolve(f3)))), {});
-var load = (...files) => _load((file) => import_node_fs7.default.readFileSync(file, "utf8"), ...files);
+var _load = (read, ...files) => files.reverse().reduce((m2, f3) => Object.assign(m2, parse2(read(import_node_path4.default.resolve(f3)))), {});
+var load = (...files) => _load((file) => import_node_fs5.default.readFileSync(file, "utf8"), ...files);
var loadSafe = (...files) => _load(
- (file) => import_node_fs7.default.existsSync(file) ? import_node_fs7.default.readFileSync(file, "utf8") : "",
+ (file) => import_node_fs5.default.existsSync(file) ? import_node_fs5.default.readFileSync(file, "utf8") : "",
...files
);
var populate = (env, extra) => Object.assign(env, extra);
var config = (def = DOTENV, ...files) => populate(process.env, loadSafe(def, ...files));
var index_default = { parse: parse2, stringify: stringify4, load, loadSafe, config };
-// src/internals.ts
-var store = /* @__PURE__ */ new Map();
-var override = store.set.bind(store);
-var wrap = (name, api) => {
- override(name, api);
- return new Proxy(api, {
- get(_, key) {
- var _a2, _b2;
- return store.get(name)[key] || ((_b2 = (_a2 = store.get(name)) == null ? void 0 : _a2.default) == null ? void 0 : _b2[key]);
- },
- apply(_, self2, args) {
- return store.get(name).apply(self2, args);
- }
- });
-};
-var bus = {
- override,
- store,
- wrap
-};
-
// src/vendor-extra.ts
-var { wrap: wrap2 } = bus;
+var import_internals = require("./internals.cjs");
+var { wrap } = import_internals.bus;
var globalVar = "Deno" in globalThis ? globalThis : global;
globalVar.AbortController = globalVar.AbortController || A;
var createRequire = import_create_require.default;
@@ -19693,13 +19652,13 @@ var _glob = Object.assign(function globby2(patterns, options) {
return globbyModule.globby(patterns, options);
}, globbyModule);
var _YAML = browser_exports;
-var depseek = wrap2("depseek", depseekSync);
-var dotenv = wrap2("dotenv", index_default);
-var fs5 = wrap2("fs", _fs);
-var YAML = wrap2("YAML", _YAML);
-var glob = wrap2("glob", _glob);
-var nodeFetch = wrap2("nodeFetch", s);
-var minimist = wrap2("minimist", import_minimist.default);
+var depseek = wrap("depseek", depseekSync);
+var dotenv = wrap("dotenv", index_default);
+var fs5 = wrap("fs", _fs);
+var YAML = wrap("YAML", _YAML);
+var glob = wrap("glob", _glob);
+var nodeFetch = wrap("nodeFetch", s);
+var minimist = wrap("minimist", import_minimist.default);
/* c8 ignore next 100 */
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
build/vendor-extra.d.ts
@@ -457,12 +457,12 @@ declare const fs$1: typeof import("fs-extra");
export declare const YAML: typeof _YAML;
export declare const glob: typeof _glob;
export declare const nodeFetch: typeof fetch$1;
-type Mininist = typeof minimist;
-type MininistOpts = Parameters<Mininist>[1];
-type MinimistParsedArgs = ReturnType<Mininist>;
-declare const minimist$1: Mininist;
+type Minimist = typeof minimist;
+type MinimistOpts = Parameters<Minimist>[1];
+type MinimistParsedArgs = ReturnType<Minimist>;
+declare const minimist$1: Minimist;
declare namespace minimist$1 {
- type Opts = MininistOpts;
+ type Opts = MinimistOpts;
type ParsedArgs = MinimistParsedArgs;
}
scripts/build-js.mjs
@@ -160,6 +160,7 @@ plugins.push(
'yield import("zx/globals")',
'yield require("./globals.cjs")'
)
+ .replace('require("./internals.ts")', 'require("./internals.cjs")')
},
},
],
src/vendor-extra.ts
@@ -129,11 +129,11 @@ export const YAML: typeof _YAML = wrap('YAML', _YAML)
export const glob: typeof _glob = wrap('glob', _glob)
export const nodeFetch: typeof _nodeFetch = wrap('nodeFetch', _nodeFetch)
-type Mininist = typeof _minimist
-type MininistOpts = Parameters<Mininist>[1]
-type MinimistParsedArgs = ReturnType<Mininist>
-export const minimist: Mininist = wrap('minimist', _minimist)
+type Minimist = typeof _minimist
+type MinimistOpts = Parameters<Minimist>[1]
+type MinimistParsedArgs = ReturnType<Minimist>
+export const minimist: Minimist = wrap('minimist', _minimist)
export namespace minimist {
- export type Opts = MininistOpts
+ export type Opts = MinimistOpts
export type ParsedArgs = MinimistParsedArgs
}
.size-limit.json
@@ -15,7 +15,7 @@
"README.md",
"LICENSE"
],
- "limit": "121.05 kB",
+ "limit": "120.60 kB",
"brotli": false,
"gzip": false
},
@@ -29,7 +29,7 @@
"build/globals.js",
"build/deno.js"
],
- "limit": "815.0 kB",
+ "limit": "813.0 kB",
"brotli": false,
"gzip": false
},
@@ -43,7 +43,7 @@
{
"name": "vendor",
"path": "build/vendor-*.{cjs,d.ts}",
- "limit": "767.65 kB",
+ "limit": "765.65 kB",
"brotli": false,
"gzip": false
},
@@ -62,7 +62,7 @@
"README.md",
"LICENSE"
],
- "limit": "870.45 kB",
+ "limit": "868.45 kB",
"brotli": false,
"gzip": false
}
package.json
@@ -72,7 +72,7 @@
"prebuild": "rm -rf build",
"build": "npm run build:js && npm run build:dts && npm run build:tests",
"build:js": "node scripts/build-js.mjs --format=cjs --hybrid --entry=src/*.ts:!src/error.ts:!src/repl.ts:!src/md.ts:!src/log.ts:!src/globals-jsr.ts:!src/goods.ts && npm run build:vendor",
- "build:vendor": "node scripts/build-js.mjs --format=cjs --entry=src/vendor-*.ts --bundle=all",
+ "build:vendor": "node scripts/build-js.mjs --format=cjs --entry=src/vendor-*.ts --bundle=all --external='./internals.ts'",
"build:tests": "node scripts/build-tests.mjs",
"build:dts": "tsc --project tsconfig.json && rm build/error.d.ts build/repl.d.ts build/globals-jsr.d.ts && node scripts/build-dts.mjs",
"build:dcr": "docker build -f ./dcr/Dockerfile . -t zx",