From 45b0464234d0e51bab81e1abb859f4ad816bc8d7 Mon Sep 17 00:00:00 2001 From: Proudust Date: Mon, 5 Feb 2024 23:02:40 +0900 Subject: [PATCH] :arrow_up: Bump std from 0.171.0 to 0.213.0 --- cli/main.node.ts | 2 +- cli/main.ts | 2 +- core/search_tags.test.ts | 2 +- core/to_regexp_array.ts | 2 +- deno.lock | 45 +- dist/actions.js | 1842 +++++++------------------------------- dist/cli.js | 1710 +++++++---------------------------- 7 files changed, 720 insertions(+), 2885 deletions(-) diff --git a/cli/main.node.ts b/cli/main.node.ts index 5ef3b24..724df22 100644 --- a/cli/main.node.ts +++ b/cli/main.node.ts @@ -4,7 +4,7 @@ * @module */ -import { dirname } from "https://deno.land/std@0.171.0/path/mod.ts"; +import { dirname } from "https://deno.land/std@0.213.0/path/mod.ts"; import * as git from "../git-wrapper/mod.ts"; import { ghDescribeCli } from "./cli.ts"; diff --git a/cli/main.ts b/cli/main.ts index 74a89b2..1e9ad36 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -1,4 +1,4 @@ -import { dirname, fromFileUrl } from "https://deno.land/std@0.171.0/path/mod.ts"; +import { dirname, fromFileUrl } from "https://deno.land/std@0.213.0/path/mod.ts"; import * as git from "../git-wrapper/mod.ts"; import { ghDescribeCli } from "./cli.ts"; diff --git a/core/search_tags.test.ts b/core/search_tags.test.ts index b8cb679..c4e420c 100644 --- a/core/search_tags.test.ts +++ b/core/search_tags.test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.171.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.213.0/testing/asserts.ts"; import { searchTag } from "./search_tags.ts"; Deno.test("function searchTag(tags, histories)", async (ctx) => { diff --git a/core/to_regexp_array.ts b/core/to_regexp_array.ts index ce10a32..f903df6 100644 --- a/core/to_regexp_array.ts +++ b/core/to_regexp_array.ts @@ -1,4 +1,4 @@ -import { globToRegExp } from "https://deno.land/std@0.171.0/path/glob.ts"; +import { globToRegExp } from "https://deno.land/std@0.213.0/path/glob.ts"; export function toReqExpArray(glob?: string | RegExp | (string | RegExp)[]): RegExp[] { if (!glob) { diff --git a/deno.lock b/deno.lock index 4536a91..a8e904c 100644 --- a/deno.lock +++ b/deno.lock @@ -59,21 +59,6 @@ "https://deno.land/std@0.140.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", "https://deno.land/std@0.140.0/path/win32.ts": "31811536855e19ba37a999cd8d1b62078235548d67902ece4aa6b814596dd757", "https://deno.land/std@0.140.0/streams/conversion.ts": "712585bfa0172a97fb68dd46e784ae8ad59d11b88079d6a4ab098ff42e697d21", - "https://deno.land/std@0.171.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", - "https://deno.land/std@0.171.0/_util/os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", - "https://deno.land/std@0.171.0/fmt/colors.ts": "938c5d44d889fb82eff6c358bea8baa7e85950a16c9f6dae3ec3a7a729164471", - "https://deno.land/std@0.171.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", - "https://deno.land/std@0.171.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", - "https://deno.land/std@0.171.0/path/_util.ts": "86c2375a996c1931b2f2ac71fefd5ddf0cf0e579fa4ab12d3e4c552d4223b8d8", - "https://deno.land/std@0.171.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", - "https://deno.land/std@0.171.0/path/glob.ts": "d479e0a695621c94d3fd7fe7abd4f9499caf32a8de13f25073451c6ef420a4e1", - "https://deno.land/std@0.171.0/path/mod.ts": "4b83694ac500d7d31b0cdafc927080a53dc0c3027eb2895790fb155082b0d232", - "https://deno.land/std@0.171.0/path/posix.ts": "2ecc259e6f34013889b7638ff90339a82d8178f629155761ce6001e41af55a43", - "https://deno.land/std@0.171.0/path/separator.ts": "0fb679739d0d1d7bf45b68dacfb4ec7563597a902edbaf3c59b50d5bcadd93b1", - "https://deno.land/std@0.171.0/path/win32.ts": "99170a0eb0e2b1ce41499c1e86bb55320cb6606299ad947f57ee0a291cdb93d5", - "https://deno.land/std@0.171.0/testing/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea", - "https://deno.land/std@0.171.0/testing/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7", - "https://deno.land/std@0.171.0/testing/asserts.ts": "984ab0bfb3faeed92ffaa3a6b06536c66811185328c5dd146257c702c41b01ab", "https://deno.land/std@0.181.0/_util/asserts.ts": "178dfc49a464aee693a7e285567b3d0b555dc805ff490505a8aae34f9cfb1462", "https://deno.land/std@0.181.0/_util/os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", "https://deno.land/std@0.181.0/fmt/colors.ts": "d67e3cd9f472535241a8e410d33423980bec45047e343577554d3356e1f0ef4e", @@ -98,8 +83,37 @@ "https://deno.land/std@0.196.0/console/unicode_width.ts": "10661c0f2eeab802d16b8b85ed8825bbc573991bbfb6affed32dc1ff994f54f9", "https://deno.land/std@0.196.0/encoding/base64.ts": "144ae6234c1fbe5b68666c711dc15b1e9ee2aef6d42b3b4345bf9a6c91d70d0d", "https://deno.land/std@0.196.0/fmt/colors.ts": "a7eecffdf3d1d54db890723b303847b6e0a1ab4b528ba6958b8f2e754cf1b3bc", + "https://deno.land/std@0.213.0/assert/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975", + "https://deno.land/std@0.213.0/assert/_diff.ts": "dcc63d94ca289aec80644030cf88ccbf7acaa6fbd7b0f22add93616b36593840", + "https://deno.land/std@0.213.0/assert/_format.ts": "0ba808961bf678437fb486b56405b6fefad2cf87b5809667c781ddee8c32aff4", "https://deno.land/std@0.213.0/assert/assert.ts": "bec068b2fccdd434c138a555b19a2c2393b71dfaada02b7d568a01541e67cdc5", + "https://deno.land/std@0.213.0/assert/assert_almost_equals.ts": "8b96b7385cc117668b0720115eb6ee73d04c9bcb2f5d2344d674918c9113688f", + "https://deno.land/std@0.213.0/assert/assert_array_includes.ts": "1688d76317fd45b7e93ef9e2765f112fdf2b7c9821016cdfb380b9445374aed1", + "https://deno.land/std@0.213.0/assert/assert_equals.ts": "4497c56fe7d2993b0d447926702802fc0becb44e319079e8eca39b482ee01b4e", + "https://deno.land/std@0.213.0/assert/assert_exists.ts": "24a7bf965e634f909242cd09fbaf38bde6b791128ece08e33ab08586a7cc55c9", + "https://deno.land/std@0.213.0/assert/assert_false.ts": "6f382568e5128c0f855e5f7dbda8624c1ed9af4fcc33ef4a9afeeedcdce99769", + "https://deno.land/std@0.213.0/assert/assert_greater.ts": "4945cf5729f1a38874d7e589e0fe5cc5cd5abe5573ca2ddca9d3791aa891856c", + "https://deno.land/std@0.213.0/assert/assert_greater_or_equal.ts": "573ed8823283b8d94b7443eb69a849a3c369a8eb9666b2d1db50c33763a5d219", + "https://deno.land/std@0.213.0/assert/assert_instance_of.ts": "72dc1faff1e248692d873c89382fa1579dd7b53b56d52f37f9874a75b11ba444", + "https://deno.land/std@0.213.0/assert/assert_is_error.ts": "6596f2b5ba89ba2fe9b074f75e9318cda97a2381e59d476812e30077fbdb6ed2", + "https://deno.land/std@0.213.0/assert/assert_less.ts": "2b4b3fe7910f65f7be52212f19c3977ecb8ba5b2d6d0a296c83cde42920bb005", + "https://deno.land/std@0.213.0/assert/assert_less_or_equal.ts": "b93d212fe669fbde959e35b3437ac9a4468f2e6b77377e7b6ea2cfdd825d38a0", + "https://deno.land/std@0.213.0/assert/assert_match.ts": "ec2d9680ed3e7b9746ec57ec923a17eef6d476202f339ad91d22277d7f1d16e1", + "https://deno.land/std@0.213.0/assert/assert_not_equals.ts": "f3edda73043bc2c9fae6cbfaa957d5c69bbe76f5291a5b0466ed132c8789df4c", + "https://deno.land/std@0.213.0/assert/assert_not_instance_of.ts": "8f720d92d83775c40b2542a8d76c60c2d4aeddaf8713c8d11df8984af2604931", + "https://deno.land/std@0.213.0/assert/assert_not_match.ts": "b4b7c77f146963e2b673c1ce4846473703409eb93f5ab0eb60f6e6f8aeffe39f", + "https://deno.land/std@0.213.0/assert/assert_not_strict_equals.ts": "da0b8ab60a45d5a9371088378e5313f624799470c3b54c76e8b8abeec40a77be", + "https://deno.land/std@0.213.0/assert/assert_object_match.ts": "e85e5eef62a56ce364c3afdd27978ccab979288a3e772e6855c270a7b118fa49", + "https://deno.land/std@0.213.0/assert/assert_rejects.ts": "e9e0c8d9c3e164c7ac962c37b3be50577c5a2010db107ed272c4c1afb1269f54", + "https://deno.land/std@0.213.0/assert/assert_strict_equals.ts": "0425a98f70badccb151644c902384c12771a93e65f8ff610244b8147b03a2366", + "https://deno.land/std@0.213.0/assert/assert_string_includes.ts": "dfb072a890167146f8e5bdd6fde887ce4657098e9f71f12716ef37f35fb6f4a7", + "https://deno.land/std@0.213.0/assert/assert_throws.ts": "edddd86b39606c342164b49ad88dd39a26e72a26655e07545d172f164b617fa7", "https://deno.land/std@0.213.0/assert/assertion_error.ts": "9f689a101ee586c4ce92f52fa7ddd362e86434ffdf1f848e45987dc7689976b8", + "https://deno.land/std@0.213.0/assert/equal.ts": "fae5e8a52a11d3ac694bbe1a53e13a7969e3f60791262312e91a3e741ae519e2", + "https://deno.land/std@0.213.0/assert/fail.ts": "f310e51992bac8e54f5fd8e44d098638434b2edb802383690e0d7a9be1979f1c", + "https://deno.land/std@0.213.0/assert/mod.ts": "325df8c0683ad83a873b9691aa66b812d6275fc9fec0b2d180ac68a2c5efed3b", + "https://deno.land/std@0.213.0/assert/unimplemented.ts": "47ca67d1c6dc53abd0bd729b71a31e0825fc452dbcd4fde4ca06789d5644e7fd", + "https://deno.land/std@0.213.0/assert/unreachable.ts": "38cfecb95d8b06906022d2f9474794fca4161a994f83354fd079cac9032b5145", "https://deno.land/std@0.213.0/bytes/concat.ts": "9cac3b4376afbef98ff03588eb3cf948e0d1eb6c27cfe81a7651ab6dd3adc54a", "https://deno.land/std@0.213.0/bytes/copy.ts": "f29c03168853720dfe82eaa57793d0b9e3543ebfe5306684182f0f1e3bfd422a", "https://deno.land/std@0.213.0/fmt/colors.ts": "aeaee795471b56fc62a3cb2e174ed33e91551b535f44677f6320336aabb54fbb", @@ -209,6 +223,7 @@ "https://deno.land/std@0.213.0/path/windows/to_namespaced_path.ts": "4ffa4fb6fae321448d5fe810b3ca741d84df4d7897e61ee29be961a6aac89a4c", "https://deno.land/std@0.213.0/streams/reader_from_stream_reader.ts": "f981cf94a42133e5c6ace8c3b500565750806c4fc9802262ee63746abc528b0d", "https://deno.land/std@0.213.0/streams/writer_from_stream_writer.ts": "b0e39ef607dfdc5abdfb627edf61a9672809463e2bb022afcbaf0cd006c40feb", + "https://deno.land/std@0.213.0/testing/asserts.ts": "0cb9c745d9b157bed062a4aa8647168d2221f6456c385a548b0ca24de9e0f3ca", "https://deno.land/x/cliffy@v1.0.0-rc.3/_utils/distance.ts": "02af166952c7c358ac83beae397aa2fbca4ad630aecfcd38d92edb1ea429f004", "https://deno.land/x/cliffy@v1.0.0-rc.3/ansi/ansi.ts": "481e382126922ff686dd664f4bae6bc44df44bc5ed883c0f5f8a8b3776e5a983", "https://deno.land/x/cliffy@v1.0.0-rc.3/ansi/ansi_escapes.ts": "193b3c3a4e520274bd8322ca4cab1c3ce38070bed1898cb2ade12a585dddd7c9", diff --git a/dist/actions.js b/dist/actions.js index 344ccde..f247ad4 100644 --- a/dist/actions.js +++ b/dist/actions.js @@ -255,9 +255,9 @@ var require_stat = __commonJS({ }; } exports2.denoifyFileInfo = denoifyFileInfo; - var stat = async (path2) => { + var stat = async (path) => { try { - return denoifyFileInfo(await (0, promises_1.stat)(path2)); + return denoifyFileInfo(await (0, promises_1.stat)(path)); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -1068,7 +1068,7 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, read: chain((p) => { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { process.stdin.resume(); process.stdin.on("error", onerror); process.stdin.once("readable", () => { @@ -1077,9 +1077,9 @@ var require_std = __commonJS({ const data = (_a = process.stdin.read(p.length)) !== null && _a !== void 0 ? _a : process.stdin.read(); if (data) { p.set(data); - resolve3(data.length > 0 ? data.length : null); + resolve(data.length > 0 ? data.length : null); } else { - resolve3(null); + resolve(null); } }); function onerror(error) { @@ -1114,12 +1114,12 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, write: chain((p) => { - return new Promise((resolve3) => { + return new Promise((resolve) => { const result = process.stdout.write(p); if (!result) { - process.stdout.once("drain", () => resolve3(p.length)); + process.stdout.once("drain", () => resolve(p.length)); } else { - resolve3(p.length); + resolve(p.length); } }); }), @@ -1143,12 +1143,12 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, write: chain((p) => { - return new Promise((resolve3) => { + return new Promise((resolve) => { const result = process.stderr.write(p); if (!result) { - process.stderr.once("drain", () => resolve3(p.length)); + process.stderr.once("drain", () => resolve(p.length)); } else { - resolve3(p.length); + resolve(p.length); } }); }), @@ -1321,12 +1321,12 @@ var require_chdir = __commonJS({ var url_1 = require("url"); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var chdir = function(path2) { + var chdir = function(path) { try { - return process.chdir(path2 instanceof URL ? (0, url_1.fileURLToPath)(path2) : path2); + return process.chdir(path instanceof URL ? (0, url_1.fileURLToPath)(path) : path); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), chdir '${path2}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), chdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -1460,7 +1460,7 @@ var require_chown = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.chown = void 0; var fs = __importStar(require("fs/promises")); - var chown = async (path2, uid, gid) => await fs.chown(path2, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); + var chown = async (path, uid, gid) => await fs.chown(path, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); exports2.chown = chown; } }); @@ -1504,7 +1504,7 @@ var require_chownSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.chownSync = void 0; var fs = __importStar(require("fs")); - var chownSync = (path2, uid, gid) => fs.chownSync(path2, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); + var chownSync = (path, uid, gid) => fs.chownSync(path, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); exports2.chownSync = chownSync; } }); @@ -1590,7 +1590,7 @@ var require_Conn = __commonJS({ this.close(); } async closeWrite() { - await new Promise((resolve3) => __classPrivateFieldGet(this, _Conn_socket, "f").end(resolve3)); + await new Promise((resolve) => __classPrivateFieldGet(this, _Conn_socket, "f").end(resolve)); } setNoDelay(enable) { __classPrivateFieldGet(this, _Conn_socket, "f").setNoDelay(enable); @@ -1636,7 +1636,7 @@ var require_connect = __commonJS({ } const socket = (0, net_1.createConnection)({ port, host: hostname }); socket.on("error", (err) => console.error(err)); - return new Promise((resolve3) => { + return new Promise((resolve) => { socket.once("connect", () => { const rid = socket._handle.fd; const localAddr = { @@ -1651,7 +1651,7 @@ var require_connect = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve3(new Conn_js_1.Conn(rid, localAddr, remoteAddr, socket)); + resolve(new Conn_js_1.Conn(rid, localAddr, remoteAddr, socket)); }); }); }; @@ -1670,9 +1670,9 @@ var require_readTextFile = __commonJS({ exports2.readTextFile = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readTextFile = async (path2, { signal } = {}) => { + var readTextFile = async (path, { signal } = {}) => { try { - return await (0, promises_1.readFile)(path2, { encoding: "utf8", signal }); + return await (0, promises_1.readFile)(path, { encoding: "utf8", signal }); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -1693,7 +1693,7 @@ var require_connectTls = __commonJS({ var connectTls = async function connectTls2({ port, hostname = "127.0.0.1", certFile }) { const cert = certFile && await (0, readTextFile_js_1.readTextFile)(certFile); const socket = (0, tls_1.connect)({ port, host: hostname, cert }); - return new Promise((resolve3) => { + return new Promise((resolve) => { socket.on("connect", () => { const rid = socket._handle.fd; const localAddr = { @@ -1708,7 +1708,7 @@ var require_connectTls = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve3(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr, socket)); + resolve(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr, socket)); }); }); }; @@ -2007,7 +2007,7 @@ var require_open = __commonJS({ var fs_flags_js_1 = require_fs_flags(); var errorMap_js_1 = __importDefault(require_errorMap()); var nodeOpen = (0, util_1.promisify)(fs_1.open); - var open = async function open2(path2, { read, write, append, truncate, create, createNew, mode = 438 } = { + var open = async function open2(path, { read, write, append, truncate, create, createNew, mode = 438 } = { read: true }) { const flagMode = (0, fs_flags_js_1.getFsFlag)({ @@ -2019,7 +2019,7 @@ var require_open = __commonJS({ createNew }); try { - const fd = await nodeOpen(path2, flagMode, mode); + const fd = await nodeOpen(path, flagMode, mode); return new FsFile_js_1.File(fd); } catch (err) { throw (0, errorMap_js_1.default)(err); @@ -2036,8 +2036,8 @@ var require_create = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.create = void 0; var open_js_1 = require_open(); - var create = async function create2(path2) { - return await (0, open_js_1.open)(path2, { write: true, create: true, truncate: true }); + var create = async function create2(path) { + return await (0, open_js_1.open)(path, { write: true, create: true, truncate: true }); }; exports2.create = create; } @@ -2056,7 +2056,7 @@ var require_openSync = __commonJS({ var FsFile_js_1 = require_FsFile(); var fs_flags_js_1 = require_fs_flags(); var errorMap_js_1 = __importDefault(require_errorMap()); - var openSync = function openSync2(path2, { read, write, append, truncate, create, createNew, mode = 438 } = { + var openSync = function openSync2(path, { read, write, append, truncate, create, createNew, mode = 438 } = { read: true }) { const flagMode = (0, fs_flags_js_1.getFsFlag)({ @@ -2068,7 +2068,7 @@ var require_openSync = __commonJS({ createNew }); try { - const fd = (0, fs_1.openSync)(path2, flagMode, mode); + const fd = (0, fs_1.openSync)(path, flagMode, mode); return new FsFile_js_1.File(fd); } catch (err) { throw (0, errorMap_js_1.default)(err); @@ -2085,8 +2085,8 @@ var require_createSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createSync = void 0; var openSync_js_1 = require_openSync(); - var createSync = function createSync2(path2) { - return (0, openSync_js_1.openSync)(path2, { + var createSync = function createSync2(path) { + return (0, openSync_js_1.openSync)(path, { create: true, truncate: true, read: true, @@ -2115,10 +2115,10 @@ var require_posix = __commonJS({ exports2.sync = exports2.isexe = void 0; var fs_1 = require("fs"); var promises_1 = require("fs/promises"); - var isexe = async (path2, options = {}) => { + var isexe = async (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat(await (0, promises_1.stat)(path2), options); + return checkStat(await (0, promises_1.stat)(path), options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2127,10 +2127,10 @@ var require_posix = __commonJS({ } }; exports2.isexe = isexe; - var sync = (path2, options = {}) => { + var sync = (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat((0, fs_1.statSync)(path2), options); + return checkStat((0, fs_1.statSync)(path), options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2168,10 +2168,10 @@ var require_win32 = __commonJS({ exports2.sync = exports2.isexe = void 0; var fs_1 = require("fs"); var promises_1 = require("fs/promises"); - var isexe = async (path2, options = {}) => { + var isexe = async (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat(await (0, promises_1.stat)(path2), path2, options); + return checkStat(await (0, promises_1.stat)(path), path, options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2180,10 +2180,10 @@ var require_win32 = __commonJS({ } }; exports2.isexe = isexe; - var sync = (path2, options = {}) => { + var sync = (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat((0, fs_1.statSync)(path2), path2, options); + return checkStat((0, fs_1.statSync)(path), path, options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2192,7 +2192,7 @@ var require_win32 = __commonJS({ } }; exports2.sync = sync; - var checkPathExt = (path2, options) => { + var checkPathExt = (path, options) => { const { pathExt = process.env.PATHEXT || "" } = options; const peSplit = pathExt.split(";"); if (peSplit.indexOf("") !== -1) { @@ -2200,14 +2200,14 @@ var require_win32 = __commonJS({ } for (let i = 0; i < peSplit.length; i++) { const p = peSplit[i].toLowerCase(); - const ext = path2.substring(path2.length - p.length).toLowerCase(); + const ext = path.substring(path.length - p.length).toLowerCase(); if (p && ext === p) { return true; } } return false; }; - var checkStat = (stat, path2, options) => stat.isFile() && checkPathExt(path2, options); + var checkStat = (stat, path, options) => stat.isFile() && checkPathExt(path, options); } }); @@ -2278,15 +2278,15 @@ var require_cjs = __commonJS({ var require_lib = __commonJS({ "dist/dnt/node_modules/which/lib/index.js"(exports2, module2) { var { isexe, sync: isexeSync } = require_cjs(); - var { join: join4, delimiter: delimiter3, sep: sep3, posix } = require("path"); + var { join: join3, delimiter, sep, posix } = require("path"); var isWindows2 = process.platform === "win32"; - var rSlash = new RegExp(`[${posix.sep}${sep3 === posix.sep ? "" : sep3}]`.replace(/(\\)/g, "\\$1")); + var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1")); var rRel = new RegExp(`^\\.${rSlash.source}`); var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); var getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, - delimiter: optDelimiter = delimiter3 + delimiter: optDelimiter = delimiter }) => { const pathEnv = cmd.match(rSlash) ? [""] : [ // windows always checks the cwd first @@ -2307,7 +2307,7 @@ var require_lib = __commonJS({ var getPathPart = (raw, cmd) => { const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw; const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ""; - return prefix + join4(pathPart, cmd); + return prefix + join3(pathPart, cmd); }; var which = async (cmd, opt = {}) => { const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); @@ -2753,7 +2753,7 @@ var require_listen = __commonJS({ async function* _listen(server, waitFor) { await waitFor; while (server.listening) { - yield new Promise((resolve3) => server.once("connection", (socket) => { + yield new Promise((resolve) => server.once("connection", (socket) => { socket.on("error", (err) => console.error(err)); const rid = socket._handle.fd; const localAddr = { @@ -2768,7 +2768,7 @@ var require_listen = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve3(new Conn_js_1.Conn(rid, localAddr, remoteAddr)); + resolve(new Conn_js_1.Conn(rid, localAddr, remoteAddr)); })); } } @@ -2781,9 +2781,9 @@ var require_listen = __commonJS({ throw new Error("Deno.listen is only implemented for transport: tcp"); } const server = (0, net_1.createServer)(); - const waitFor = new Promise((resolve3) => ( + const waitFor = new Promise((resolve) => ( // server._handle.fd is assigned immediately on .listen() - server.listen(port, hostname, resolve3) + server.listen(port, hostname, resolve) )); const listener = new Listener_js_1.Listener(server._handle.fd, { hostname, @@ -2839,9 +2839,9 @@ var require_readTextFileSync = __commonJS({ exports2.readTextFileSync = void 0; var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); - var readTextFileSync = function(path2) { + var readTextFileSync = function(path) { try { - return fs.readFileSync(path2, "utf8"); + return fs.readFileSync(path, "utf8"); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -2863,7 +2863,7 @@ var require_listenTls = __commonJS({ async function* _listen(server, waitFor) { await waitFor; while (server.listening) { - yield new Promise((resolve3) => server.once("secureConnection", (socket) => { + yield new Promise((resolve) => server.once("secureConnection", (socket) => { socket.on("error", (err) => console.error(err)); const rid = socket._handle.fd; const localAddr = { @@ -2878,7 +2878,7 @@ var require_listenTls = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve3(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr)); + resolve(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr)); })); } } @@ -2888,9 +2888,9 @@ var require_listenTls = __commonJS({ } const [cert, key] = [certFile, keyFile].map((f) => f == null ? void 0 : (0, readTextFileSync_js_1.readTextFileSync)(f)); const server = (0, tls_1.createServer)({ cert, key }); - const waitFor = new Promise((resolve3) => ( + const waitFor = new Promise((resolve) => ( // server._handle.fd is assigned immediately on .listen() - server.listen(port, hostname, resolve3) + server.listen(port, hostname, resolve) )); const listener = new Listener_js_1.Listener(server._handle.fd, { hostname, @@ -2993,9 +2993,9 @@ var require_lstat = __commonJS({ var fs = __importStar(require("fs/promises")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var lstat = async (path2) => { + var lstat = async (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path2)); + return (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path)); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -3048,9 +3048,9 @@ var require_lstatSync = __commonJS({ var fs = __importStar(require("fs")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var lstatSync = (path2) => { + var lstatSync = (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path2)); + return (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path)); } catch (err) { throw (0, errorMap_js_1.default)(err); } @@ -3149,7 +3149,7 @@ var require_writeTextFile = __commonJS({ var fs = __importStar(require("fs/promises")); var errorMap_js_1 = __importDefault(require_errorMap()); var fs_flags_js_1 = require_fs_flags(); - var writeTextFile = async function writeTextFile2(path2, data, { append = false, create = true, createNew = false, mode, signal } = {}) { + var writeTextFile = async function writeTextFile2(path, data, { append = false, create = true, createNew = false, mode, signal } = {}) { const truncate = create && !append; const flag = (0, fs_flags_js_1.getFsFlag)({ append, @@ -3159,9 +3159,9 @@ var require_writeTextFile = __commonJS({ write: true }); try { - await fs.writeFile(path2, data, { flag, mode, signal }); + await fs.writeFile(path, data, { flag, mode, signal }); if (mode !== void 0) - await fs.chmod(path2, mode); + await fs.chmod(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -3232,12 +3232,12 @@ var require_writeTextFileSync = __commonJS({ exports2.writeTextFileSync = void 0; var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); - var writeTextFileSync = (path2, data, { append = false, create = true, mode } = {}) => { + var writeTextFileSync = (path, data, { append = false, create = true, mode } = {}) => { const flag = create ? append ? "a" : "w" : "r+"; try { - fs.writeFileSync(path2, data, { flag, mode }); + fs.writeFileSync(path, data, { flag, mode }); if (mode !== void 0) - fs.chmodSync(path2, mode); + fs.chmodSync(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -3287,12 +3287,12 @@ var require_mkdir = __commonJS({ var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var mkdir = async function mkdir2(path2, options) { + var mkdir = async function mkdir2(path, options) { try { - await (0, promises_1.mkdir)(path2, options); + await (0, promises_1.mkdir)(path, options); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "EEXIST") { - throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path2}'`); + throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -3345,12 +3345,12 @@ var require_mkdirSync = __commonJS({ var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var mkdirSync = (path2, options) => { + var mkdirSync = (path, options) => { try { - fs.mkdirSync(path2, options); + fs.mkdirSync(path, options); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "EEXIST") { - throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path2}'`); + throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -3398,9 +3398,9 @@ var require_readDir = __commonJS({ exports2.readDir = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readDir = async function* readDir2(path2) { + var readDir = async function* readDir2(path) { try { - for await (const e of await (0, promises_1.opendir)(String(path2))) { + for await (const e of await (0, promises_1.opendir)(String(path))) { const ent = { name: e.name, isFile: e.isFile(), @@ -3428,9 +3428,9 @@ var require_readDirSync = __commonJS({ exports2.readDirSync = void 0; var fs_1 = require("fs"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readDirSync = function* readDir(path2) { + var readDirSync = function* readDir(path) { try { - for (const e of (0, fs_1.readdirSync)(String(path2), { withFileTypes: true })) { + for (const e of (0, fs_1.readdirSync)(String(path), { withFileTypes: true })) { const ent = { name: e.name, isFile: e.isFile(), @@ -3458,9 +3458,9 @@ var require_readFile = __commonJS({ exports2.readFile = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readFile = async function readFile2(path2, { signal } = {}) { + var readFile = async function readFile2(path, { signal } = {}) { try { - const buf = await (0, promises_1.readFile)(path2, { signal }); + const buf = await (0, promises_1.readFile)(path, { signal }); return new Uint8Array(buf.buffer, buf.byteOffset, buf.length); } catch (e) { throw (0, errorMap_js_1.default)(e); @@ -3481,9 +3481,9 @@ var require_readFileSync = __commonJS({ exports2.readFileSync = void 0; var fs_1 = require("fs"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readFileSync = function readFileSync2(path2) { + var readFileSync = function readFileSync2(path) { try { - const buf = (0, fs_1.readFileSync)(path2); + const buf = (0, fs_1.readFileSync)(path); return new Uint8Array(buf.buffer, buf.byteOffset, buf.length); } catch (e) { throw (0, errorMap_js_1.default)(e); @@ -3672,13 +3672,13 @@ var require_remove = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.remove = void 0; var promises_1 = require("fs/promises"); - var remove = async function remove2(path2, options = {}) { + var remove = async function remove2(path, options = {}) { const innerOptions = options.recursive ? { recursive: true, force: true } : {}; try { - return await (0, promises_1.rm)(path2, innerOptions); + return await (0, promises_1.rm)(path, innerOptions); } catch (err) { if (err.code === "ERR_FS_EISDIR") { - return await (0, promises_1.rmdir)(path2, innerOptions); + return await (0, promises_1.rmdir)(path, innerOptions); } else { throw err; } @@ -3744,13 +3744,13 @@ var require_removeSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.removeSync = void 0; var fs = __importStar(require("fs")); - var removeSync = (path2, options = {}) => { + var removeSync = (path, options = {}) => { const innerOptions = options.recursive ? { recursive: true, force: true } : {}; try { - fs.rmSync(path2, innerOptions); + fs.rmSync(path, innerOptions); } catch (err) { if (err.code === "ERR_FS_EISDIR") { - fs.rmdirSync(path2, innerOptions); + fs.rmdirSync(path, innerOptions); } else { throw err; } @@ -3837,12 +3837,12 @@ var require_resolveDns = __commonJS({ case "CNAME": case "NS": case "PTR": - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { dns_1.default.resolve(query, recordType, (err, addresses) => { if (err) { reject(err); } else { - resolve3(addresses); + resolve(addresses); } }); }); @@ -3912,7 +3912,7 @@ var require_streams = __commonJS({ }); } readAll() { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { const chunks = []; const action = () => { if (__classPrivateFieldGet(this, _BufferStreamReader_error, "f")) { @@ -3925,7 +3925,7 @@ var require_streams = __commonJS({ __classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action); } else if (__classPrivateFieldGet(this, _BufferStreamReader_ended, "f")) { const result = Buffer.concat(chunks); - resolve3(result); + resolve(result); } else { __classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action); } @@ -3934,7 +3934,7 @@ var require_streams = __commonJS({ }); } read(p) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { const action = () => { if (__classPrivateFieldGet(this, _BufferStreamReader_error, "f")) { reject(__classPrivateFieldGet(this, _BufferStreamReader_error, "f")); @@ -3943,11 +3943,11 @@ var require_streams = __commonJS({ const readBuffer = __classPrivateFieldGet(this, _BufferStreamReader_stream, "f").read(p.byteLength); if (readBuffer && readBuffer.byteLength > 0) { readBuffer.copy(p, 0, 0, readBuffer.byteLength); - resolve3(readBuffer.byteLength); + resolve(readBuffer.byteLength); return; } if (__classPrivateFieldGet(this, _BufferStreamReader_ended, "f")) { - resolve3(null); + resolve(null); } else { __classPrivateFieldGet(this, _BufferStreamReader_pendingActions, "f").push(action); } @@ -3976,12 +3976,12 @@ var require_streams = __commonJS({ __classPrivateFieldSet(this, _StreamWriter_stream, stream, "f"); } write(p) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { __classPrivateFieldGet(this, _StreamWriter_stream, "f").write(p, (err) => { if (err) { reject(err); } else { - resolve3(p.byteLength); + resolve(p.byteLength); } }); }); @@ -4281,7 +4281,7 @@ var require_shutdown = __commonJS({ exports2.shutdown = void 0; var net_1 = require("net"); var shutdown = async function shutdown2(rid) { - await new Promise((resolve3) => new net_1.Socket({ fd: rid }).end(resolve3)); + await new Promise((resolve) => new net_1.Socket({ fd: rid }).end(resolve)); }; exports2.shutdown = shutdown; } @@ -4331,9 +4331,9 @@ var require_statSync = __commonJS({ var fs = __importStar(require("fs")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var statSync = (path2) => { + var statSync = (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(fs.statSync(path2)); + return (0, stat_js_1.denoifyFileInfo)(fs.statSync(path)); } catch (err) { throw (0, errorMap_js_1.default)(err); } @@ -4758,9 +4758,9 @@ var require_watchFs = __commonJS({ const ac = new AbortController(); const { signal } = ac; const rid = -1; - const masterWatcher = (0, iterutil_js_1.merge)(paths.map((path2) => (0, iterutil_js_1.mapAsync)((0, iterutil_js_1.filterAsync)((0, promises_1.watch)(path2, { recursive: options === null || options === void 0 ? void 0 : options.recursive, signal }), (info2) => info2.filename != null), (info2) => ({ + const masterWatcher = (0, iterutil_js_1.merge)(paths.map((path) => (0, iterutil_js_1.mapAsync)((0, iterutil_js_1.filterAsync)((0, promises_1.watch)(path, { recursive: options === null || options === void 0 ? void 0 : options.recursive, signal }), (info2) => info2.filename != null), (info2) => ({ kind: "modify", - paths: [(0, path_1.resolve)(path2, info2.filename)] + paths: [(0, path_1.resolve)(path, info2.filename)] })))); function close() { ac.abort(); @@ -4819,13 +4819,13 @@ var require_writeFile = __commonJS({ var fs = __importStar(require("fs/promises")); var errorMap_js_1 = __importDefault(require_errorMap()); var fs_flags_js_1 = require_fs_flags(); - var writeFile = async function writeFile2(path2, data, { append = false, create = true, createNew = false, mode, signal } = {}) { + var writeFile = async function writeFile2(path, data, { append = false, create = true, createNew = false, mode, signal } = {}) { const truncate = create && !append; const flag = (0, fs_flags_js_1.getFsFlag)({ append, create, createNew, truncate, write: true }); try { - await fs.writeFile(path2, data, { flag, signal }); + await fs.writeFile(path, data, { flag, signal }); if (mode != null) - await fs.chmod(path2, mode); + await fs.chmod(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -4848,12 +4848,12 @@ var require_writeFileSync = __commonJS({ var errorMap_js_1 = __importDefault(require_errorMap()); var statSync_js_1 = require_statSync(); var chmodSync_js_1 = require_chmodSync(); - var writeFileSync = function writeFileSync2(path2, data, options = {}) { + var writeFileSync = function writeFileSync2(path, data, options = {}) { try { if (options.create !== void 0) { const create = !!options.create; if (!create) { - (0, statSync_js_1.statSync)(path2); + (0, statSync_js_1.statSync)(path); } } const openOptions = { @@ -4863,9 +4863,9 @@ var require_writeFileSync = __commonJS({ append: !!options.append, truncate: !options.append }; - const file = (0, openSync_js_1.openSync)(path2, openOptions); + const file = (0, openSync_js_1.openSync)(path, openOptions); if (options.mode !== void 0 && options.mode !== null && (0, os_1.platform)() !== "win32") { - (0, chmodSync_js_1.chmodSync)(path2, options.mode); + (0, chmodSync_js_1.chmodSync)(path, options.mode); } let nwritten = 0; while (nwritten < data.length) { @@ -5248,12 +5248,12 @@ var require_functions = __commonJS({ } }); var futime = async function(rid, atime, mtime) { try { - await new Promise((resolve3, reject) => { + await new Promise((resolve, reject) => { fs_1.default.futimes(rid, atime, mtime, (err) => { if (err) { reject(err); } else { - resolve3(); + resolve(); } }); }); @@ -5270,23 +5270,23 @@ var require_functions = __commonJS({ } }; exports2.futimeSync = futimeSync; - var utime = async function(path2, atime, mtime) { + var utime = async function(path, atime, mtime) { try { - await fs_1.default.promises.utimes(path2, atime, mtime); + await fs_1.default.promises.utimes(path, atime, mtime); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path2}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path}'`); } throw (0, errorMap_js_1.default)(error); } }; exports2.utime = utime; - var utimeSync = function(path2, atime, mtime) { + var utimeSync = function(path, atime, mtime) { try { - fs_1.default.utimesSync(path2, atime, mtime); + fs_1.default.utimesSync(path, atime, mtime); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path2}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -5911,15 +5911,15 @@ var require_file_command = __commonJS({ } exports2.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter3 = `ghadelimiter_${uuid_1.v4()}`; + const delimiter = `ghadelimiter_${uuid_1.v4()}`; const convertedValue = utils_1.toCommandValue(value); - if (key.includes(delimiter3)) { - throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter3}"`); + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); } - if (convertedValue.includes(delimiter3)) { - throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter3}"`); + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); } - return `${key}<<${delimiter3}${os.EOL}${convertedValue}${os.EOL}${delimiter3}`; + return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; } exports2.prepareKeyValueMessage = prepareKeyValueMessage; } @@ -6579,14 +6579,14 @@ var require_util = __commonJS({ } const port = url.port != null ? url.port : url.protocol === "https:" ? 443 : 80; let origin = url.origin != null ? url.origin : `${url.protocol}//${url.hostname}:${port}`; - let path2 = url.path != null ? url.path : `${url.pathname || ""}${url.search || ""}`; + let path = url.path != null ? url.path : `${url.pathname || ""}${url.search || ""}`; if (origin.endsWith("/")) { origin = origin.substring(0, origin.length - 1); } - if (path2 && !path2.startsWith("/")) { - path2 = `/${path2}`; + if (path && !path.startsWith("/")) { + path = `/${path}`; } - url = new URL(origin + path2); + url = new URL(origin + path); } return url; } @@ -8198,19 +8198,19 @@ var require_parseParams = __commonJS({ var require_basename = __commonJS({ "dist/dnt/node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module2) { "use strict"; - module2.exports = function basename3(path2) { - if (typeof path2 !== "string") { + module2.exports = function basename(path) { + if (typeof path !== "string") { return ""; } - for (var i = path2.length - 1; i >= 0; --i) { - switch (path2.charCodeAt(i)) { + for (var i = path.length - 1; i >= 0; --i) { + switch (path.charCodeAt(i)) { case 47: case 92: - path2 = path2.slice(i + 1); - return path2 === ".." || path2 === "." ? "" : path2; + path = path.slice(i + 1); + return path === ".." || path === "." ? "" : path; } } - return path2 === ".." || path2 === "." ? "" : path2; + return path === ".." || path === "." ? "" : path; }; } }); @@ -8224,7 +8224,7 @@ var require_multipart = __commonJS({ var Dicer = require_Dicer(); var parseParams = require_parseParams(); var decodeText = require_decodeText(); - var basename3 = require_basename(); + var basename = require_basename(); var getLimit = require_getLimit(); var RE_BOUNDARY = /^boundary$/i; var RE_FIELD = /^form-data$/i; @@ -8341,7 +8341,7 @@ var require_multipart = __commonJS({ } else if (RE_FILENAME.test(parsed[i][0])) { filename = parsed[i][1]; if (!preservePath) { - filename = basename3(filename); + filename = basename(filename); } } } @@ -9552,8 +9552,8 @@ var require_util2 = __commonJS({ function createDeferredPromise() { let res; let rej; - const promise = new Promise((resolve3, reject) => { - res = resolve3; + const promise = new Promise((resolve, reject) => { + res = resolve; rej = reject; }); return { promise, resolve: res, reject: rej }; @@ -11054,8 +11054,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r }); } }); - const busboyResolve = new Promise((resolve3, reject) => { - busboy.on("finish", resolve3); + const busboyResolve = new Promise((resolve, reject) => { + busboy.on("finish", resolve); busboy.on("error", (err) => reject(new TypeError(err))); }); if (this.body !== null) @@ -11188,7 +11188,7 @@ var require_request = __commonJS({ } var Request = class _Request { constructor(origin, { - path: path2, + path, method, body, headers, @@ -11202,11 +11202,11 @@ var require_request = __commonJS({ throwOnError, expectContinue }, handler) { - if (typeof path2 !== "string") { + if (typeof path !== "string") { throw new InvalidArgumentError("path must be a string"); - } else if (path2[0] !== "/" && !(path2.startsWith("http://") || path2.startsWith("https://")) && method !== "CONNECT") { + } else if (path[0] !== "/" && !(path.startsWith("http://") || path.startsWith("https://")) && method !== "CONNECT") { throw new InvalidArgumentError("path must be an absolute URL or start with a slash"); - } else if (invalidPathRegex.exec(path2) !== null) { + } else if (invalidPathRegex.exec(path) !== null) { throw new InvalidArgumentError("invalid request path"); } if (typeof method !== "string") { @@ -11269,7 +11269,7 @@ var require_request = __commonJS({ this.completed = false; this.aborted = false; this.upgrade = upgrade || null; - this.path = query ? util.buildURL(path2, query) : path2; + this.path = query ? util.buildURL(path, query) : path; this.origin = origin; this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent; this.blocking = blocking == null ? false : blocking; @@ -11600,9 +11600,9 @@ var require_dispatcher_base = __commonJS({ } close(callback) { if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { this.close((err, data) => { - return err ? reject(err) : resolve3(data); + return err ? reject(err) : resolve(data); }); }); } @@ -11640,12 +11640,12 @@ var require_dispatcher_base = __commonJS({ err = null; } if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { this.destroy(err, (err2, data) => { return err2 ? ( /* istanbul ignore next: should never error */ reject(err2) - ) : resolve3(data); + ) : resolve(data); }); }); } @@ -12286,9 +12286,9 @@ var require_RedirectHandler = __commonJS({ return this.handler.onHeaders(statusCode, headers, resume, statusText); } const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin))); - const path2 = search ? `${pathname}${search}` : pathname; + const path = search ? `${pathname}${search}` : pathname; this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin); - this.opts.path = path2; + this.opts.path = path; this.opts.origin = origin; this.opts.maxRedirections = 0; this.opts.query = null; @@ -12695,16 +12695,16 @@ var require_client = __commonJS({ return this[kNeedDrain] < 2; } async [kClose]() { - return new Promise((resolve3) => { + return new Promise((resolve) => { if (!this[kSize]) { - resolve3(null); + resolve(null); } else { - this[kClosedResolve] = resolve3; + this[kClosedResolve] = resolve; } }); } async [kDestroy](err) { - return new Promise((resolve3) => { + return new Promise((resolve) => { const requests = this[kQueue].splice(this[kPendingIdx]); for (let i = 0; i < requests.length; i++) { const request = requests[i]; @@ -12715,7 +12715,7 @@ var require_client = __commonJS({ this[kClosedResolve](); this[kClosedResolve] = null; } - resolve3(); + resolve(); }; if (this[kHTTP2Session] != null) { util.destroy(this[kHTTP2Session], err); @@ -12774,7 +12774,7 @@ var require_client = __commonJS({ ); resume(client); } - var constants = require_constants2(); + var constants3 = require_constants2(); var createRedirectInterceptor = require_redirectInterceptor(); var EMPTY_BUF = Buffer.alloc(0); async function lazyllhttp() { @@ -12841,7 +12841,7 @@ var require_client = __commonJS({ constructor(client, socket, { exports: exports3 }) { assert2(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0); this.llhttp = exports3; - this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE); + this.ptr = this.llhttp.llhttp_alloc(constants3.TYPE.RESPONSE); this.client = client; this.socket = socket; this.timeout = null; @@ -12933,19 +12933,19 @@ var require_client = __commonJS({ currentBufferRef = null; } const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr; - if (ret === constants.ERROR.PAUSED_UPGRADE) { + if (ret === constants3.ERROR.PAUSED_UPGRADE) { this.onUpgrade(data.slice(offset)); - } else if (ret === constants.ERROR.PAUSED) { + } else if (ret === constants3.ERROR.PAUSED) { this.paused = true; socket.unshift(data.slice(offset)); - } else if (ret !== constants.ERROR.OK) { + } else if (ret !== constants3.ERROR.OK) { const ptr = llhttp.llhttp_get_error_reason(this.ptr); let message = ""; if (ptr) { const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0); message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")"; } - throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset)); + throw new HTTPParserError(message, constants3.ERROR[ret], data.slice(offset)); } } catch (err) { util.destroy(socket, err); @@ -13115,7 +13115,7 @@ var require_client = __commonJS({ socket[kBlocking] = false; resume(client); } - return pause ? constants.ERROR.PAUSED : 0; + return pause ? constants3.ERROR.PAUSED : 0; } onBody(buf) { const { client, socket, statusCode, maxResponseSize } = this; @@ -13137,7 +13137,7 @@ var require_client = __commonJS({ } this.bytesRead += buf.length; if (request.onData(buf) === false) { - return constants.ERROR.PAUSED; + return constants3.ERROR.PAUSED; } } onMessageComplete() { @@ -13172,13 +13172,13 @@ var require_client = __commonJS({ if (socket[kWriting]) { assert2.strictEqual(client[kRunning], 0); util.destroy(socket, new InformationalError("reset")); - return constants.ERROR.PAUSED; + return constants3.ERROR.PAUSED; } else if (!shouldKeepAlive) { util.destroy(socket, new InformationalError("reset")); - return constants.ERROR.PAUSED; + return constants3.ERROR.PAUSED; } else if (socket[kReset] && client[kRunning] === 0) { util.destroy(socket, new InformationalError("reset")); - return constants.ERROR.PAUSED; + return constants3.ERROR.PAUSED; } else if (client[kPipelining] === 1) { setImmediate(resume, client); } else { @@ -13295,7 +13295,7 @@ var require_client = __commonJS({ }); } try { - const socket = await new Promise((resolve3, reject) => { + const socket = await new Promise((resolve, reject) => { client[kConnector]({ host, hostname, @@ -13307,7 +13307,7 @@ var require_client = __commonJS({ if (err) { reject(err); } else { - resolve3(socket2); + resolve(socket2); } }); }); @@ -13518,7 +13518,7 @@ var require_client = __commonJS({ writeH2(client, client[kHTTP2Session], request); return; } - const { body, method, path: path2, host, upgrade, headers, blocking, reset } = request; + const { body, method, path, host, upgrade, headers, blocking, reset } = request; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body && typeof body.read === "function") { body.read(0); @@ -13568,7 +13568,7 @@ var require_client = __commonJS({ if (blocking) { socket[kBlocking] = true; } - let header = `${method} ${path2} HTTP/1.1\r + let header = `${method} ${path} HTTP/1.1\r `; if (typeof host === "string") { header += `host: ${host}\r @@ -13631,7 +13631,7 @@ upgrade: ${upgrade}\r return true; } function writeH2(client, session, request) { - const { body, method, path: path2, host, upgrade, expectContinue, signal, headers: reqHeaders } = request; + const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request; let headers; if (typeof reqHeaders === "string") headers = Request[kHTTP2CopyHeaders](reqHeaders.trim()); @@ -13677,7 +13677,7 @@ upgrade: ${upgrade}\r }); return true; } - headers[HTTP2_HEADER_PATH] = path2; + headers[HTTP2_HEADER_PATH] = path; headers[HTTP2_HEADER_SCHEME] = "https"; const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH"; if (body && typeof body.read === "function") { @@ -13934,12 +13934,12 @@ upgrade: ${upgrade}\r cb(); } } - const waitForDrain = () => new Promise((resolve3, reject) => { + const waitForDrain = () => new Promise((resolve, reject) => { assert2(callback === null); if (socket[kError]) { reject(socket[kError]); } else { - callback = resolve3; + callback = resolve; } }); if (client[kHTTPConnVersion] === "h2") { @@ -14284,8 +14284,8 @@ var require_pool_base = __commonJS({ if (this[kQueue].isEmpty()) { return Promise.all(this[kClients].map((c) => c.close())); } else { - return new Promise((resolve3) => { - this[kClosedResolve] = resolve3; + return new Promise((resolve) => { + this[kClosedResolve] = resolve; }); } } @@ -14856,7 +14856,7 @@ var require_readable = __commonJS({ if (this.closed) { return Promise.resolve(null); } - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { const signalListenerCleanup = signal ? util.addAbortListener(signal, () => { this.destroy(); }) : noop; @@ -14865,7 +14865,7 @@ var require_readable = __commonJS({ if (signal && signal.aborted) { reject(signal.reason || Object.assign(new Error("The operation was aborted"), { name: "AbortError" })); } else { - resolve3(null); + resolve(null); } }).on("error", noop).on("data", function(chunk) { limit -= chunk.length; @@ -14887,11 +14887,11 @@ var require_readable = __commonJS({ throw new TypeError("unusable"); } assert2(!stream[kConsume]); - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { stream[kConsume] = { type, stream, - resolve: resolve3, + resolve, reject, length: 0, body: [] @@ -14926,12 +14926,12 @@ var require_readable = __commonJS({ } } function consumeEnd(consume2) { - const { type, body, resolve: resolve3, stream, length } = consume2; + const { type, body, resolve, stream, length } = consume2; try { if (type === "text") { - resolve3(toUSVString(Buffer.concat(body))); + resolve(toUSVString(Buffer.concat(body))); } else if (type === "json") { - resolve3(JSON.parse(Buffer.concat(body))); + resolve(JSON.parse(Buffer.concat(body))); } else if (type === "arrayBuffer") { const dst = new Uint8Array(length); let pos = 0; @@ -14939,12 +14939,12 @@ var require_readable = __commonJS({ dst.set(buf, pos); pos += buf.byteLength; } - resolve3(dst.buffer); + resolve(dst.buffer); } else if (type === "blob") { if (!Blob2) { Blob2 = require("buffer").Blob; } - resolve3(new Blob2(body, { type: stream[kContentType] })); + resolve(new Blob2(body, { type: stream[kContentType] })); } consumeFinish(consume2); } catch (err) { @@ -15199,9 +15199,9 @@ var require_api_request = __commonJS({ }; function request(opts, callback) { if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { request.call(this, opts, (err, data) => { - return err ? reject(err) : resolve3(data); + return err ? reject(err) : resolve(data); }); }); } @@ -15374,9 +15374,9 @@ var require_api_stream = __commonJS({ }; function stream(opts, factory, callback) { if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { stream.call(this, opts, factory, (err, data) => { - return err ? reject(err) : resolve3(data); + return err ? reject(err) : resolve(data); }); }); } @@ -15657,9 +15657,9 @@ var require_api_upgrade = __commonJS({ }; function upgrade(opts, callback) { if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { upgrade.call(this, opts, (err, data) => { - return err ? reject(err) : resolve3(data); + return err ? reject(err) : resolve(data); }); }); } @@ -15748,9 +15748,9 @@ var require_api_connect = __commonJS({ }; function connect(opts, callback) { if (callback === void 0) { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { connect.call(this, opts, (err, data) => { - return err ? reject(err) : resolve3(data); + return err ? reject(err) : resolve(data); }); }); } @@ -15910,20 +15910,20 @@ var require_mock_utils = __commonJS({ } return true; } - function safeUrl(path2) { - if (typeof path2 !== "string") { - return path2; + function safeUrl(path) { + if (typeof path !== "string") { + return path; } - const pathSegments = path2.split("?"); + const pathSegments = path.split("?"); if (pathSegments.length !== 2) { - return path2; + return path; } const qp = new URLSearchParams(pathSegments.pop()); qp.sort(); return [...pathSegments, qp.toString()].join("?"); } - function matchKey(mockDispatch2, { path: path2, method, body, headers }) { - const pathMatch = matchValue(mockDispatch2.path, path2); + function matchKey(mockDispatch2, { path, method, body, headers }) { + const pathMatch = matchValue(mockDispatch2.path, path); const methodMatch = matchValue(mockDispatch2.method, method); const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true; const headersMatch = matchHeaders(mockDispatch2, headers); @@ -15941,7 +15941,7 @@ var require_mock_utils = __commonJS({ function getMockDispatch(mockDispatches, key) { const basePath = key.query ? buildURL(key.path, key.query) : key.path; const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath; - let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path2 }) => matchValue(safeUrl(path2), resolvedPath)); + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath)); if (matchedMockDispatches.length === 0) { throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`); } @@ -15978,9 +15978,9 @@ var require_mock_utils = __commonJS({ } } function buildKey(opts) { - const { path: path2, method, body, headers, query } = opts; + const { path, method, body, headers, query } = opts; return { - path: path2, + path, method, body, headers, @@ -16429,10 +16429,10 @@ var require_pending_interceptors_formatter = __commonJS({ } format(pendingInterceptors) { const withPrettyHeaders = pendingInterceptors.map( - ({ method, path: path2, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ + ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ Method: method, Origin: origin, - Path: path2, + Path: path, "Status code": statusCode, Persistent: persist ? "\u2705" : "\u274C", Invocations: timesInvoked, @@ -17172,10 +17172,10 @@ var require_headers = __commonJS({ const lowercaseName = name.toLowerCase(); const exists = this[kHeadersMap].get(lowercaseName); if (exists) { - const delimiter3 = lowercaseName === "cookie" ? "; " : ", "; + const delimiter = lowercaseName === "cookie" ? "; " : ", "; this[kHeadersMap].set(lowercaseName, { name: exists.name, - value: `${exists.value}${delimiter3}${value}` + value: `${exists.value}${delimiter}${value}` }); } else { this[kHeadersMap].set(lowercaseName, { name, value }); @@ -19371,7 +19371,7 @@ var require_fetch = __commonJS({ async function dispatch({ body }) { const url = requestCurrentURL(request); const agent = fetchParams.controller.dispatcher; - return new Promise((resolve3, reject) => agent.dispatch( + return new Promise((resolve, reject) => agent.dispatch( { path: url.pathname + url.search, origin: url.origin, @@ -19447,7 +19447,7 @@ var require_fetch = __commonJS({ } } } - resolve3({ + resolve({ status, statusText, headersList: headers[kHeadersList], @@ -19490,7 +19490,7 @@ var require_fetch = __commonJS({ const val = headersList[n + 1].toString("latin1"); headers[kHeadersList].append(key, val); } - resolve3({ + resolve({ status, statusText: STATUS_CODES[status], headersList: headers[kHeadersList], @@ -21067,8 +21067,8 @@ var require_util6 = __commonJS({ } } } - function validateCookiePath(path2) { - for (const char of path2) { + function validateCookiePath(path) { + for (const char of path) { const code = char.charCodeAt(0); if (code < 33 || char === ";") { throw new Error("Invalid cookie path"); @@ -22783,11 +22783,11 @@ var require_undici = __commonJS({ if (typeof opts.path !== "string") { throw new InvalidArgumentError("invalid opts.path"); } - let path2 = opts.path; + let path = opts.path; if (!opts.path.startsWith("/")) { - path2 = `/${path2}`; + path = `/${path}`; } - url = new URL(util.parseOrigin(url).origin + path2); + url = new URL(util.parseOrigin(url).origin + path); } else { if (!opts) { opts = typeof url === "object" ? url : {}; @@ -22900,11 +22900,11 @@ var require_lib2 = __commonJS({ }; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve3) { - resolve3(value); + return value instanceof P ? value : new P(function(resolve) { + resolve(value); }); } - return new (P || (P = Promise))(function(resolve3, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -22920,7 +22920,7 @@ var require_lib2 = __commonJS({ } } function step(result) { - result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -23006,26 +23006,26 @@ var require_lib2 = __commonJS({ } readBody() { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve3) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { let output = Buffer.alloc(0); this.message.on("data", (chunk) => { output = Buffer.concat([output, chunk]); }); this.message.on("end", () => { - resolve3(output.toString()); + resolve(output.toString()); }); })); }); } readBodyBuffer() { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve3) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { const chunks = []; this.message.on("data", (chunk) => { chunks.push(chunk); }); this.message.on("end", () => { - resolve3(Buffer.concat(chunks)); + resolve(Buffer.concat(chunks)); }); })); }); @@ -23234,14 +23234,14 @@ var require_lib2 = __commonJS({ */ requestRaw(info2, data) { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve3, reject) => { + return new Promise((resolve, reject) => { function callbackForResult(err, res) { if (err) { reject(err); } else if (!res) { reject(new Error("Unknown error")); } else { - resolve3(res); + resolve(res); } } this.requestRawWithCallback(info2, data, callbackForResult); @@ -23426,12 +23426,12 @@ var require_lib2 = __commonJS({ return __awaiter(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise((resolve3) => setTimeout(() => resolve3(), ms)); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); }); } _processResponse(res, options) { return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve3, reject) => __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { const statusCode = res.message.statusCode || 0; const response = { statusCode, @@ -23439,7 +23439,7 @@ var require_lib2 = __commonJS({ headers: {} }; if (statusCode === HttpCodes.NotFound) { - resolve3(response); + resolve(response); } function dateTimeDeserializer(key, value) { if (typeof value === "string") { @@ -23478,7 +23478,7 @@ var require_lib2 = __commonJS({ err.result = response.result; reject(err); } else { - resolve3(response); + resolve(response); } })); }); @@ -23495,11 +23495,11 @@ var require_auth = __commonJS({ "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve3) { - resolve3(value); + return value instanceof P ? value : new P(function(resolve) { + resolve(value); }); } - return new (P || (P = Promise))(function(resolve3, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -23515,7 +23515,7 @@ var require_auth = __commonJS({ } } function step(result) { - result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -23599,11 +23599,11 @@ var require_oidc_utils = __commonJS({ "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve3) { - resolve3(value); + return value instanceof P ? value : new P(function(resolve) { + resolve(value); }); } - return new (P || (P = Promise))(function(resolve3, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -23619,7 +23619,7 @@ var require_oidc_utils = __commonJS({ } } function step(result) { - result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -23697,11 +23697,11 @@ var require_summary = __commonJS({ "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve3) { - resolve3(value); + return value instanceof P ? value : new P(function(resolve) { + resolve(value); }); } - return new (P || (P = Promise))(function(resolve3, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -23717,7 +23717,7 @@ var require_summary = __commonJS({ } } function step(result) { - result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -24019,7 +24019,7 @@ var require_path_utils = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; - var path2 = __importStar(require("path")); + var path = __importStar(require("path")); function toPosixPath(pth) { return pth.replace(/[\\]/g, "/"); } @@ -24029,7 +24029,7 @@ var require_path_utils = __commonJS({ } exports2.toWin32Path = toWin32Path; function toPlatformPath(pth) { - return pth.replace(/[/\\]/g, path2.sep); + return pth.replace(/[/\\]/g, path.sep); } exports2.toPlatformPath = toPlatformPath; } @@ -24069,11 +24069,11 @@ var require_core = __commonJS({ }; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve3) { - resolve3(value); + return value instanceof P ? value : new P(function(resolve) { + resolve(value); }); } - return new (P || (P = Promise))(function(resolve3, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -24089,7 +24089,7 @@ var require_core = __commonJS({ } } function step(result) { - result.done ? resolve3(result.value) : adopt(result.value).then(fulfilled, rejected); + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); @@ -24100,7 +24100,7 @@ var require_core = __commonJS({ var file_command_1 = require_file_command(); var utils_1 = require_utils(); var os = __importStar(require("os")); - var path2 = __importStar(require("path")); + var path = __importStar(require("path")); var oidc_utils_1 = require_oidc_utils(); var ExitCode; (function(ExitCode2) { @@ -24128,7 +24128,7 @@ var require_core = __commonJS({ } else { command_1.issueCommand("add-path", {}, inputPath); } - process.env["PATH"] = `${inputPath}${path2.delimiter}${process.env["PATH"]}`; + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; } exports2.addPath = addPath; function getInput2(name, options) { @@ -24556,7 +24556,7 @@ async function fetchSha(args) { } } -// dist/dnt/esm/deps/deno.land/std@0.171.0/_util/os.js +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_os.js var osType = (() => { const { Deno: Deno3 } = dntGlobalThis; if (typeof Deno3?.build?.os === "string") { @@ -24570,1201 +24570,7 @@ var osType = (() => { })(); var isWindows = osType === "windows"; -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/win32.js -var win32_exports = {}; -__export(win32_exports, { - basename: () => basename, - delimiter: () => delimiter, - dirname: () => dirname, - extname: () => extname, - format: () => format, - fromFileUrl: () => fromFileUrl, - isAbsolute: () => isAbsolute, - join: () => join, - normalize: () => normalize, - parse: () => parse2, - relative: () => relative, - resolve: () => resolve, - sep: () => sep, - toFileUrl: () => toFileUrl, - toNamespacedPath: () => toNamespacedPath -}); - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/_constants.js -var CHAR_UPPERCASE_A = 65; -var CHAR_LOWERCASE_A = 97; -var CHAR_UPPERCASE_Z = 90; -var CHAR_LOWERCASE_Z = 122; -var CHAR_DOT = 46; -var CHAR_FORWARD_SLASH = 47; -var CHAR_BACKWARD_SLASH = 92; -var CHAR_COLON = 58; -var CHAR_QUESTION_MARK = 63; - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/_util.js -function assertPath(path2) { - if (typeof path2 !== "string") { - throw new TypeError(`Path must be a string. Received ${JSON.stringify(path2)}`); - } -} -function isPosixPathSeparator(code) { - return code === CHAR_FORWARD_SLASH; -} -function isPathSeparator(code) { - return isPosixPathSeparator(code) || code === CHAR_BACKWARD_SLASH; -} -function isWindowsDeviceRoot(code) { - return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z; -} -function normalizeString(path2, allowAboveRoot, separator, isPathSeparator2) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let code; - for (let i = 0, len = path2.length; i <= len; ++i) { - if (i < len) - code = path2.charCodeAt(i); - else if (isPathSeparator2(code)) - break; - else - code = CHAR_FORWARD_SLASH; - if (isPathSeparator2(code)) { - if (lastSlash === i - 1 || dots === 1) { - } else if (lastSlash !== i - 1 && dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf(separator); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); - } - lastSlash = i; - dots = 0; - continue; - } else if (res.length === 2 || res.length === 1) { - res = ""; - lastSegmentLength = 0; - lastSlash = i; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - if (res.length > 0) - res += `${separator}..`; - else - res = ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) - res += separator + path2.slice(lastSlash + 1, i); - else - res = path2.slice(lastSlash + 1, i); - lastSegmentLength = i - lastSlash - 1; - } - lastSlash = i; - dots = 0; - } else if (code === CHAR_DOT && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -function _format(sep3, pathObject) { - const dir = pathObject.dir || pathObject.root; - const base = pathObject.base || (pathObject.name || "") + (pathObject.ext || ""); - if (!dir) - return base; - if (dir === pathObject.root) - return dir + base; - return dir + sep3 + base; -} -var WHITESPACE_ENCODINGS = { - " ": "%09", - "\n": "%0A", - "\v": "%0B", - "\f": "%0C", - "\r": "%0D", - " ": "%20" -}; -function encodeWhitespace(string) { - return string.replaceAll(/[\s]/g, (c) => { - return WHITESPACE_ENCODINGS[c] ?? c; - }); -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/_util/asserts.js -var DenoStdInternalError = class extends Error { - constructor(message) { - super(message); - this.name = "DenoStdInternalError"; - } -}; -function assert(expr, msg = "") { - if (!expr) { - throw new DenoStdInternalError(msg); - } -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/win32.js -var sep = "\\"; -var delimiter = ";"; -function resolve(...pathSegments) { - let resolvedDevice = ""; - let resolvedTail = ""; - let resolvedAbsolute = false; - for (let i = pathSegments.length - 1; i >= -1; i--) { - let path2; - const { Deno: Deno3 } = dntGlobalThis; - if (i >= 0) { - path2 = pathSegments[i]; - } else if (!resolvedDevice) { - if (typeof Deno3?.cwd !== "function") { - throw new TypeError("Resolved a drive-letter-less path without a CWD."); - } - path2 = Deno3.cwd(); - } else { - if (typeof Deno3?.env?.get !== "function" || typeof Deno3?.cwd !== "function") { - throw new TypeError("Resolved a relative path without a CWD."); - } - path2 = Deno3.cwd(); - if (path2 === void 0 || path2.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) { - path2 = `${resolvedDevice}\\`; - } - } - assertPath(path2); - const len = path2.length; - if (len === 0) - continue; - let rootEnd = 0; - let device = ""; - let isAbsolute3 = false; - const code = path2.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code)) { - isAbsolute3 = true; - if (isPathSeparator(path2.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - const firstPart = path2.slice(last, j); - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j === len) { - device = `\\\\${firstPart}\\${path2.slice(last)}`; - rootEnd = j; - } else if (j !== last) { - device = `\\\\${firstPart}\\${path2.slice(last, j)}`; - rootEnd = j; - } - } - } - } else { - rootEnd = 1; - } - } else if (isWindowsDeviceRoot(code)) { - if (path2.charCodeAt(1) === CHAR_COLON) { - device = path2.slice(0, 2); - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path2.charCodeAt(2))) { - isAbsolute3 = true; - rootEnd = 3; - } - } - } - } - } else if (isPathSeparator(code)) { - rootEnd = 1; - isAbsolute3 = true; - } - if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) { - continue; - } - if (resolvedDevice.length === 0 && device.length > 0) { - resolvedDevice = device; - } - if (!resolvedAbsolute) { - resolvedTail = `${path2.slice(rootEnd)}\\${resolvedTail}`; - resolvedAbsolute = isAbsolute3; - } - if (resolvedAbsolute && resolvedDevice.length > 0) - break; - } - resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator); - return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || "."; -} -function normalize(path2) { - assertPath(path2); - const len = path2.length; - if (len === 0) - return "."; - let rootEnd = 0; - let device; - let isAbsolute3 = false; - const code = path2.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code)) { - isAbsolute3 = true; - if (isPathSeparator(path2.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - const firstPart = path2.slice(last, j); - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j === len) { - return `\\\\${firstPart}\\${path2.slice(last)}\\`; - } else if (j !== last) { - device = `\\\\${firstPart}\\${path2.slice(last, j)}`; - rootEnd = j; - } - } - } - } else { - rootEnd = 1; - } - } else if (isWindowsDeviceRoot(code)) { - if (path2.charCodeAt(1) === CHAR_COLON) { - device = path2.slice(0, 2); - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path2.charCodeAt(2))) { - isAbsolute3 = true; - rootEnd = 3; - } - } - } - } - } else if (isPathSeparator(code)) { - return "\\"; - } - let tail; - if (rootEnd < len) { - tail = normalizeString(path2.slice(rootEnd), !isAbsolute3, "\\", isPathSeparator); - } else { - tail = ""; - } - if (tail.length === 0 && !isAbsolute3) - tail = "."; - if (tail.length > 0 && isPathSeparator(path2.charCodeAt(len - 1))) { - tail += "\\"; - } - if (device === void 0) { - if (isAbsolute3) { - if (tail.length > 0) - return `\\${tail}`; - else - return "\\"; - } else if (tail.length > 0) { - return tail; - } else { - return ""; - } - } else if (isAbsolute3) { - if (tail.length > 0) - return `${device}\\${tail}`; - else - return `${device}\\`; - } else if (tail.length > 0) { - return device + tail; - } else { - return device; - } -} -function isAbsolute(path2) { - assertPath(path2); - const len = path2.length; - if (len === 0) - return false; - const code = path2.charCodeAt(0); - if (isPathSeparator(code)) { - return true; - } else if (isWindowsDeviceRoot(code)) { - if (len > 2 && path2.charCodeAt(1) === CHAR_COLON) { - if (isPathSeparator(path2.charCodeAt(2))) - return true; - } - } - return false; -} -function join(...paths) { - const pathsCount = paths.length; - if (pathsCount === 0) - return "."; - let joined; - let firstPart = null; - for (let i = 0; i < pathsCount; ++i) { - const path2 = paths[i]; - assertPath(path2); - if (path2.length > 0) { - if (joined === void 0) - joined = firstPart = path2; - else - joined += `\\${path2}`; - } - } - if (joined === void 0) - return "."; - let needsReplace = true; - let slashCount = 0; - assert(firstPart != null); - if (isPathSeparator(firstPart.charCodeAt(0))) { - ++slashCount; - const firstLen = firstPart.length; - if (firstLen > 1) { - if (isPathSeparator(firstPart.charCodeAt(1))) { - ++slashCount; - if (firstLen > 2) { - if (isPathSeparator(firstPart.charCodeAt(2))) - ++slashCount; - else { - needsReplace = false; - } - } - } - } - } - if (needsReplace) { - for (; slashCount < joined.length; ++slashCount) { - if (!isPathSeparator(joined.charCodeAt(slashCount))) - break; - } - if (slashCount >= 2) - joined = `\\${joined.slice(slashCount)}`; - } - return normalize(joined); -} -function relative(from, to) { - assertPath(from); - assertPath(to); - if (from === to) - return ""; - const fromOrig = resolve(from); - const toOrig = resolve(to); - if (fromOrig === toOrig) - return ""; - from = fromOrig.toLowerCase(); - to = toOrig.toLowerCase(); - if (from === to) - return ""; - let fromStart = 0; - let fromEnd = from.length; - for (; fromStart < fromEnd; ++fromStart) { - if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) - break; - } - for (; fromEnd - 1 > fromStart; --fromEnd) { - if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) - break; - } - const fromLen = fromEnd - fromStart; - let toStart = 0; - let toEnd = to.length; - for (; toStart < toEnd; ++toStart) { - if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) - break; - } - for (; toEnd - 1 > toStart; --toEnd) { - if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) - break; - } - const toLen = toEnd - toStart; - const length = fromLen < toLen ? fromLen : toLen; - let lastCommonSep = -1; - let i = 0; - for (; i <= length; ++i) { - if (i === length) { - if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) { - return toOrig.slice(toStart + i + 1); - } else if (i === 2) { - return toOrig.slice(toStart + i); - } - } - if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) { - lastCommonSep = i; - } else if (i === 2) { - lastCommonSep = 3; - } - } - break; - } - const fromCode = from.charCodeAt(fromStart + i); - const toCode = to.charCodeAt(toStart + i); - if (fromCode !== toCode) - break; - else if (fromCode === CHAR_BACKWARD_SLASH) - lastCommonSep = i; - } - if (i !== length && lastCommonSep === -1) { - return toOrig; - } - let out = ""; - if (lastCommonSep === -1) - lastCommonSep = 0; - for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { - if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) { - if (out.length === 0) - out += ".."; - else - out += "\\.."; - } - } - if (out.length > 0) { - return out + toOrig.slice(toStart + lastCommonSep, toEnd); - } else { - toStart += lastCommonSep; - if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) - ++toStart; - return toOrig.slice(toStart, toEnd); - } -} -function toNamespacedPath(path2) { - if (typeof path2 !== "string") - return path2; - if (path2.length === 0) - return ""; - const resolvedPath = resolve(path2); - if (resolvedPath.length >= 3) { - if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) { - if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) { - const code = resolvedPath.charCodeAt(2); - if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) { - return `\\\\?\\UNC\\${resolvedPath.slice(2)}`; - } - } - } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) { - if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) { - return `\\\\?\\${resolvedPath}`; - } - } - } - return path2; -} -function dirname(path2) { - assertPath(path2); - const len = path2.length; - if (len === 0) - return "."; - let rootEnd = -1; - let end = -1; - let matchedSlash = true; - let offset = 0; - const code = path2.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code)) { - rootEnd = offset = 1; - if (isPathSeparator(path2.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j === len) { - return path2; - } - if (j !== last) { - rootEnd = offset = j + 1; - } - } - } - } - } else if (isWindowsDeviceRoot(code)) { - if (path2.charCodeAt(1) === CHAR_COLON) { - rootEnd = offset = 2; - if (len > 2) { - if (isPathSeparator(path2.charCodeAt(2))) - rootEnd = offset = 3; - } - } - } - } else if (isPathSeparator(code)) { - return path2; - } - for (let i = len - 1; i >= offset; --i) { - if (isPathSeparator(path2.charCodeAt(i))) { - if (!matchedSlash) { - end = i; - break; - } - } else { - matchedSlash = false; - } - } - if (end === -1) { - if (rootEnd === -1) - return "."; - else - end = rootEnd; - } - return path2.slice(0, end); -} -function basename(path2, ext = "") { - if (ext !== void 0 && typeof ext !== "string") { - throw new TypeError('"ext" argument must be a string'); - } - assertPath(path2); - let start = 0; - let end = -1; - let matchedSlash = true; - let i; - if (path2.length >= 2) { - const drive = path2.charCodeAt(0); - if (isWindowsDeviceRoot(drive)) { - if (path2.charCodeAt(1) === CHAR_COLON) - start = 2; - } - } - if (ext !== void 0 && ext.length > 0 && ext.length <= path2.length) { - if (ext.length === path2.length && ext === path2) - return ""; - let extIdx = ext.length - 1; - let firstNonSlashEnd = -1; - for (i = path2.length - 1; i >= start; --i) { - const code = path2.charCodeAt(i); - if (isPathSeparator(code)) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else { - if (firstNonSlashEnd === -1) { - matchedSlash = false; - firstNonSlashEnd = i + 1; - end = firstNonSlashEnd; - } - if (extIdx >= 0) { - if (code === ext.charCodeAt(extIdx)) { - if (--extIdx === -1) { - end = i; - } - } else { - extIdx = -1; - } - } - } - } - if (start === end) - end = firstNonSlashEnd; - else if (end === -1) - end = path2.length; - return path2.slice(start, end); - } else { - for (i = path2.length - 1; i >= start; --i) { - if (isPathSeparator(path2.charCodeAt(i))) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - matchedSlash = false; - end = i + 1; - } - } - if (end === -1) - return ""; - return path2.slice(start, end); - } -} -function extname(path2) { - assertPath(path2); - let start = 0; - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let preDotState = 0; - if (path2.length >= 2 && path2.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path2.charCodeAt(0))) { - start = startPart = 2; - } - for (let i = path2.length - 1; i >= start; --i) { - const code = path2.charCodeAt(i); - if (isPathSeparator(code)) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ""; - } - return path2.slice(startDot, end); -} -function format(pathObject) { - if (pathObject === null || typeof pathObject !== "object") { - throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`); - } - return _format("\\", pathObject); -} -function parse2(path2) { - assertPath(path2); - const ret = { root: "", dir: "", base: "", ext: "", name: "" }; - const len = path2.length; - if (len === 0) - return ret; - let rootEnd = 0; - let code = path2.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code)) { - rootEnd = 1; - if (isPathSeparator(path2.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path2.charCodeAt(j))) - break; - } - if (j === len) { - rootEnd = j; - } else if (j !== last) { - rootEnd = j + 1; - } - } - } - } - } else if (isWindowsDeviceRoot(code)) { - if (path2.charCodeAt(1) === CHAR_COLON) { - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path2.charCodeAt(2))) { - if (len === 3) { - ret.root = ret.dir = path2; - return ret; - } - rootEnd = 3; - } - } else { - ret.root = ret.dir = path2; - return ret; - } - } - } - } else if (isPathSeparator(code)) { - ret.root = ret.dir = path2; - return ret; - } - if (rootEnd > 0) - ret.root = path2.slice(0, rootEnd); - let startDot = -1; - let startPart = rootEnd; - let end = -1; - let matchedSlash = true; - let i = path2.length - 1; - let preDotState = 0; - for (; i >= rootEnd; --i) { - code = path2.charCodeAt(i); - if (isPathSeparator(code)) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - if (end !== -1) { - ret.base = ret.name = path2.slice(startPart, end); - } - } else { - ret.name = path2.slice(startPart, startDot); - ret.base = path2.slice(startPart, end); - ret.ext = path2.slice(startDot, end); - } - if (startPart > 0 && startPart !== rootEnd) { - ret.dir = path2.slice(0, startPart - 1); - } else - ret.dir = ret.root; - return ret; -} -function fromFileUrl(url) { - url = url instanceof URL ? url : new URL(url); - if (url.protocol != "file:") { - throw new TypeError("Must be a file URL."); - } - let path2 = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\"); - if (url.hostname != "") { - path2 = `\\\\${url.hostname}${path2}`; - } - return path2; -} -function toFileUrl(path2) { - if (!isAbsolute(path2)) { - throw new TypeError("Must be an absolute path."); - } - const [, hostname, pathname] = path2.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/); - const url = new URL("file:///"); - url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25")); - if (hostname != null && hostname != "localhost") { - url.hostname = hostname; - if (!url.hostname) { - throw new TypeError("Invalid hostname."); - } - } - return url; -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/posix.js -var posix_exports = {}; -__export(posix_exports, { - basename: () => basename2, - delimiter: () => delimiter2, - dirname: () => dirname2, - extname: () => extname2, - format: () => format2, - fromFileUrl: () => fromFileUrl2, - isAbsolute: () => isAbsolute2, - join: () => join2, - normalize: () => normalize2, - parse: () => parse3, - relative: () => relative2, - resolve: () => resolve2, - sep: () => sep2, - toFileUrl: () => toFileUrl2, - toNamespacedPath: () => toNamespacedPath2 -}); -var sep2 = "/"; -var delimiter2 = ":"; -function resolve2(...pathSegments) { - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - let path2; - if (i >= 0) - path2 = pathSegments[i]; - else { - const { Deno: Deno3 } = dntGlobalThis; - if (typeof Deno3?.cwd !== "function") { - throw new TypeError("Resolved a relative path without a CWD."); - } - path2 = Deno3.cwd(); - } - assertPath(path2); - if (path2.length === 0) { - continue; - } - resolvedPath = `${path2}/${resolvedPath}`; - resolvedAbsolute = path2.charCodeAt(0) === CHAR_FORWARD_SLASH; - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator); - if (resolvedAbsolute) { - if (resolvedPath.length > 0) - return `/${resolvedPath}`; - else - return "/"; - } else if (resolvedPath.length > 0) - return resolvedPath; - else - return "."; -} -function normalize2(path2) { - assertPath(path2); - if (path2.length === 0) - return "."; - const isAbsolute3 = path2.charCodeAt(0) === CHAR_FORWARD_SLASH; - const trailingSeparator = path2.charCodeAt(path2.length - 1) === CHAR_FORWARD_SLASH; - path2 = normalizeString(path2, !isAbsolute3, "/", isPosixPathSeparator); - if (path2.length === 0 && !isAbsolute3) - path2 = "."; - if (path2.length > 0 && trailingSeparator) - path2 += "/"; - if (isAbsolute3) - return `/${path2}`; - return path2; -} -function isAbsolute2(path2) { - assertPath(path2); - return path2.length > 0 && path2.charCodeAt(0) === CHAR_FORWARD_SLASH; -} -function join2(...paths) { - if (paths.length === 0) - return "."; - let joined; - for (let i = 0, len = paths.length; i < len; ++i) { - const path2 = paths[i]; - assertPath(path2); - if (path2.length > 0) { - if (!joined) - joined = path2; - else - joined += `/${path2}`; - } - } - if (!joined) - return "."; - return normalize2(joined); -} -function relative2(from, to) { - assertPath(from); - assertPath(to); - if (from === to) - return ""; - from = resolve2(from); - to = resolve2(to); - if (from === to) - return ""; - let fromStart = 1; - const fromEnd = from.length; - for (; fromStart < fromEnd; ++fromStart) { - if (from.charCodeAt(fromStart) !== CHAR_FORWARD_SLASH) - break; - } - const fromLen = fromEnd - fromStart; - let toStart = 1; - const toEnd = to.length; - for (; toStart < toEnd; ++toStart) { - if (to.charCodeAt(toStart) !== CHAR_FORWARD_SLASH) - break; - } - const toLen = toEnd - toStart; - const length = fromLen < toLen ? fromLen : toLen; - let lastCommonSep = -1; - let i = 0; - for (; i <= length; ++i) { - if (i === length) { - if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) { - return to.slice(toStart + i + 1); - } else if (i === 0) { - return to.slice(toStart + i); - } - } else if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) { - lastCommonSep = i; - } else if (i === 0) { - lastCommonSep = 0; - } - } - break; - } - const fromCode = from.charCodeAt(fromStart + i); - const toCode = to.charCodeAt(toStart + i); - if (fromCode !== toCode) - break; - else if (fromCode === CHAR_FORWARD_SLASH) - lastCommonSep = i; - } - let out = ""; - for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { - if (i === fromEnd || from.charCodeAt(i) === CHAR_FORWARD_SLASH) { - if (out.length === 0) - out += ".."; - else - out += "/.."; - } - } - if (out.length > 0) - return out + to.slice(toStart + lastCommonSep); - else { - toStart += lastCommonSep; - if (to.charCodeAt(toStart) === CHAR_FORWARD_SLASH) - ++toStart; - return to.slice(toStart); - } -} -function toNamespacedPath2(path2) { - return path2; -} -function dirname2(path2) { - assertPath(path2); - if (path2.length === 0) - return "."; - const hasRoot = path2.charCodeAt(0) === CHAR_FORWARD_SLASH; - let end = -1; - let matchedSlash = true; - for (let i = path2.length - 1; i >= 1; --i) { - if (path2.charCodeAt(i) === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - end = i; - break; - } - } else { - matchedSlash = false; - } - } - if (end === -1) - return hasRoot ? "/" : "."; - if (hasRoot && end === 1) - return "//"; - return path2.slice(0, end); -} -function basename2(path2, ext = "") { - if (ext !== void 0 && typeof ext !== "string") { - throw new TypeError('"ext" argument must be a string'); - } - assertPath(path2); - let start = 0; - let end = -1; - let matchedSlash = true; - let i; - if (ext !== void 0 && ext.length > 0 && ext.length <= path2.length) { - if (ext.length === path2.length && ext === path2) - return ""; - let extIdx = ext.length - 1; - let firstNonSlashEnd = -1; - for (i = path2.length - 1; i >= 0; --i) { - const code = path2.charCodeAt(i); - if (isPosixPathSeparator(code)) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else { - if (firstNonSlashEnd === -1) { - matchedSlash = false; - firstNonSlashEnd = i + 1; - end = firstNonSlashEnd; - } - if (extIdx >= 0) { - if (code === ext.charCodeAt(extIdx)) { - if (--extIdx === -1) { - end = i; - } - } else { - extIdx = -1; - } - } - } - } - if (start === end) - end = firstNonSlashEnd; - else if (end === -1) - end = path2.length; - return path2.slice(start, end); - } else { - for (i = path2.length - 1; i >= 0; --i) { - if (isPosixPathSeparator(path2.charCodeAt(i))) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - matchedSlash = false; - end = i + 1; - } - } - if (end === -1) - return ""; - return path2.slice(start, end); - } -} -function extname2(path2) { - assertPath(path2); - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let preDotState = 0; - for (let i = path2.length - 1; i >= 0; --i) { - const code = path2.charCodeAt(i); - if (code === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ""; - } - return path2.slice(startDot, end); -} -function format2(pathObject) { - if (pathObject === null || typeof pathObject !== "object") { - throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`); - } - return _format("/", pathObject); -} -function parse3(path2) { - assertPath(path2); - const ret = { root: "", dir: "", base: "", ext: "", name: "" }; - if (path2.length === 0) - return ret; - const isAbsolute3 = path2.charCodeAt(0) === CHAR_FORWARD_SLASH; - let start; - if (isAbsolute3) { - ret.root = "/"; - start = 1; - } else { - start = 0; - } - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let i = path2.length - 1; - let preDotState = 0; - for (; i >= start; --i) { - const code = path2.charCodeAt(i); - if (code === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - if (end !== -1) { - if (startPart === 0 && isAbsolute3) { - ret.base = ret.name = path2.slice(1, end); - } else { - ret.base = ret.name = path2.slice(startPart, end); - } - } - } else { - if (startPart === 0 && isAbsolute3) { - ret.name = path2.slice(1, startDot); - ret.base = path2.slice(1, end); - } else { - ret.name = path2.slice(startPart, startDot); - ret.base = path2.slice(startPart, end); - } - ret.ext = path2.slice(startDot, end); - } - if (startPart > 0) - ret.dir = path2.slice(0, startPart - 1); - else if (isAbsolute3) - ret.dir = "/"; - return ret; -} -function fromFileUrl2(url) { - url = url instanceof URL ? url : new URL(url); - if (url.protocol != "file:") { - throw new TypeError("Must be a file URL."); - } - return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25")); -} -function toFileUrl2(path2) { - if (!isAbsolute2(path2)) { - throw new TypeError("Must be an absolute path."); - } - const url = new URL("file:///"); - url.pathname = encodeWhitespace(path2.replace(/%/g, "%25").replace(/\\/g, "%5C")); - return url; -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/glob.js -var path = isWindows ? win32_exports : posix_exports; -var { join: join3, normalize: normalize3 } = path; +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/glob_to_reg_exp.js var regExpEscapeChars = [ "!", "$", @@ -25782,18 +24588,17 @@ var regExpEscapeChars = [ "|" ]; var rangeEscapeChars = ["-", "\\", "]"]; -function globToRegExp(glob, { extended = true, globstar: globstarOption = true, os = osType, caseInsensitive = false } = {}) { - if (glob == "") { +function _globToRegExp(c, glob, { + extended = true, + globstar: globstarOption = true, + // os = osType, + caseInsensitive = false +} = {}) { + if (glob === "") { return /(?!)/; } - const sep3 = os == "windows" ? "(?:\\\\|/)+" : "/+"; - const sepMaybe = os == "windows" ? "(?:\\\\|/)*" : "/*"; - const seps = os == "windows" ? ["\\", "/"] : ["/"]; - const globstar = os == "windows" ? "(?:[^\\\\/]*(?:\\\\|/|$)+)*" : "(?:[^/]*(?:/|$)+)*"; - const wildcard = os == "windows" ? "[^\\\\/]*" : "[^/]*"; - const escapePrefix = os == "windows" ? "`" : "\\"; let newLength = glob.length; - for (; newLength > 1 && seps.includes(glob[newLength - 1]); newLength--) + for (; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--) ; glob = glob.slice(0, newLength); let regExpString = ""; @@ -25804,111 +24609,111 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, let inEscape = false; let endsWithSep = false; let i = j; - for (; i < glob.length && !seps.includes(glob[i]); i++) { + for (; i < glob.length && !c.seps.includes(glob[i]); i++) { if (inEscape) { inEscape = false; const escapeChars = inRange ? rangeEscapeChars : regExpEscapeChars; segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; continue; } - if (glob[i] == escapePrefix) { + if (glob[i] === c.escapePrefix) { inEscape = true; continue; } - if (glob[i] == "[") { + if (glob[i] === "[") { if (!inRange) { inRange = true; segment += "["; - if (glob[i + 1] == "!") { + if (glob[i + 1] === "!") { i++; segment += "^"; - } else if (glob[i + 1] == "^") { + } else if (glob[i + 1] === "^") { i++; segment += "\\^"; } continue; - } else if (glob[i + 1] == ":") { + } else if (glob[i + 1] === ":") { let k = i + 1; let value = ""; - while (glob[k + 1] != null && glob[k + 1] != ":") { + while (glob[k + 1] !== void 0 && glob[k + 1] !== ":") { value += glob[k + 1]; k++; } - if (glob[k + 1] == ":" && glob[k + 2] == "]") { + if (glob[k + 1] === ":" && glob[k + 2] === "]") { i = k + 2; - if (value == "alnum") + if (value === "alnum") segment += "\\dA-Za-z"; - else if (value == "alpha") + else if (value === "alpha") segment += "A-Za-z"; - else if (value == "ascii") + else if (value === "ascii") segment += "\0-\x7F"; - else if (value == "blank") + else if (value === "blank") segment += " "; - else if (value == "cntrl") + else if (value === "cntrl") segment += "\0-\x7F"; - else if (value == "digit") + else if (value === "digit") segment += "\\d"; - else if (value == "graph") + else if (value === "graph") segment += "!-~"; - else if (value == "lower") + else if (value === "lower") segment += "a-z"; - else if (value == "print") + else if (value === "print") segment += " -~"; - else if (value == "punct") { + else if (value === "punct") { segment += `!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_\u2018{|}~`; - } else if (value == "space") + } else if (value === "space") segment += "\\s\v"; - else if (value == "upper") + else if (value === "upper") segment += "A-Z"; - else if (value == "word") + else if (value === "word") segment += "\\w"; - else if (value == "xdigit") + else if (value === "xdigit") segment += "\\dA-Fa-f"; continue; } } } - if (glob[i] == "]" && inRange) { + if (glob[i] === "]" && inRange) { inRange = false; segment += "]"; continue; } if (inRange) { - if (glob[i] == "\\") { + if (glob[i] === "\\") { segment += `\\\\`; } else { segment += glob[i]; } continue; } - if (glob[i] == ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] != "BRACE") { + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { segment += ")"; const type = groupStack.pop(); - if (type == "!") { - segment += wildcard; - } else if (type != "@") { + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { segment += type; } continue; } - if (glob[i] == "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] != "BRACE") { + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { segment += "|"; continue; } - if (glob[i] == "+" && extended && glob[i + 1] == "(") { + if (glob[i] === "+" && extended && glob[i + 1] === "(") { i++; groupStack.push("+"); segment += "(?:"; continue; } - if (glob[i] == "@" && extended && glob[i + 1] == "(") { + if (glob[i] === "@" && extended && glob[i + 1] === "(") { i++; groupStack.push("@"); segment += "(?:"; continue; } - if (glob[i] == "?") { - if (extended && glob[i + 1] == "(") { + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { i++; groupStack.push("?"); segment += "(?:"; @@ -25917,44 +24722,44 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, } continue; } - if (glob[i] == "!" && extended && glob[i + 1] == "(") { + if (glob[i] === "!" && extended && glob[i + 1] === "(") { i++; groupStack.push("!"); segment += "(?!"; continue; } - if (glob[i] == "{") { + if (glob[i] === "{") { groupStack.push("BRACE"); segment += "(?:"; continue; } - if (glob[i] == "}" && groupStack[groupStack.length - 1] == "BRACE") { + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { groupStack.pop(); segment += ")"; continue; } - if (glob[i] == "," && groupStack[groupStack.length - 1] == "BRACE") { + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { segment += "|"; continue; } - if (glob[i] == "*") { - if (extended && glob[i + 1] == "(") { + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { i++; groupStack.push("*"); segment += "(?:"; } else { const prevChar = glob[i - 1]; let numStars = 1; - while (glob[i + 1] == "*") { + while (glob[i + 1] === "*") { i++; numStars++; } const nextChar = glob[i + 1]; - if (globstarOption && numStars == 2 && [...seps, void 0].includes(prevChar) && [...seps, void 0].includes(nextChar)) { - segment += globstar; + if (globstarOption && numStars === 2 && [...c.seps, void 0].includes(prevChar) && [...c.seps, void 0].includes(nextChar)) { + segment += c.globstar; endsWithSep = true; } else { - segment += wildcard; + segment += c.wildcard; } } continue; @@ -25963,17 +24768,17 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, } if (groupStack.length > 0 || inRange || inEscape) { segment = ""; - for (const c of glob.slice(j, i)) { - segment += regExpEscapeChars.includes(c) ? `\\${c}` : c; + for (const c2 of glob.slice(j, i)) { + segment += regExpEscapeChars.includes(c2) ? `\\${c2}` : c2; endsWithSep = false; } } regExpString += segment; if (!endsWithSep) { - regExpString += i < glob.length ? sep3 : sepMaybe; + regExpString += i < glob.length ? c.sep : c.sepMaybe; endsWithSep = true; } - while (seps.includes(glob[i])) + while (c.seps.includes(glob[i])) i++; if (!(i > j)) { throw new Error("Assertion failure: i > j (potential infinite loop)"); @@ -25984,6 +24789,37 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, return new RegExp(regExpString, caseInsensitive ? "i" : ""); } +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/posix/glob_to_regexp.js +var constants = { + sep: "/+", + sepMaybe: "/*", + seps: ["/"], + globstar: "(?:[^/]*(?:/|$)+)*", + wildcard: "[^/]*", + escapePrefix: "\\" +}; +function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/windows/glob_to_regexp.js +var constants2 = { + sep: "(?:\\\\|/)+", + sepMaybe: "(?:\\\\|/)*", + seps: ["\\", "/"], + globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*", + wildcard: "[^\\\\/]*", + escapePrefix: "`" +}; +function globToRegExp2(glob, options = {}) { + return _globToRegExp(constants2, glob, options); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/glob_to_regexp.js +function globToRegExp3(glob, options = {}) { + return options.os === "windows" || !options.os && isWindows ? globToRegExp2(glob, options) : globToRegExp(glob, options); +} + // dist/dnt/esm/core/to_regexp_array.js function toReqExpArray(glob) { if (!glob) { @@ -25992,7 +24828,7 @@ function toReqExpArray(glob) { if (!(glob instanceof Array)) { glob = [glob]; } - return glob.map((x) => x instanceof RegExp ? x : globToRegExp(x)); + return glob.map((x) => x instanceof RegExp ? x : globToRegExp3(x)); } // dist/dnt/esm/core/fetch_tags.js @@ -26048,7 +24884,7 @@ var GitHubRepository = class { } } }; -function parse4(repo) { +function parse2(repo) { if (isUrl(repo)) { return parseFromUrl(repo); } else { @@ -26095,7 +24931,7 @@ async function getOrigin() { // dist/dnt/esm/core/resolve_repo.js async function resolveRepo(repo) { if (typeof repo === "string") { - return parse4(repo); + return parse2(repo); } try { return await getOrigin(); diff --git a/dist/cli.js b/dist/cli.js index 9e32342..19a7a6e 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -224,9 +224,9 @@ var require_stat = __commonJS({ }; } exports2.denoifyFileInfo = denoifyFileInfo; - var stat = async (path3) => { + var stat = async (path) => { try { - return denoifyFileInfo(await (0, promises_1.stat)(path3)); + return denoifyFileInfo(await (0, promises_1.stat)(path)); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -1037,7 +1037,7 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, read: chain((p) => { - return new Promise((resolve4, reject) => { + return new Promise((resolve3, reject) => { process.stdin.resume(); process.stdin.on("error", onerror); process.stdin.once("readable", () => { @@ -1046,9 +1046,9 @@ var require_std = __commonJS({ const data = (_a = process.stdin.read(p.length)) !== null && _a !== void 0 ? _a : process.stdin.read(); if (data) { p.set(data); - resolve4(data.length > 0 ? data.length : null); + resolve3(data.length > 0 ? data.length : null); } else { - resolve4(null); + resolve3(null); } }); function onerror(error) { @@ -1083,12 +1083,12 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, write: chain((p) => { - return new Promise((resolve4) => { + return new Promise((resolve3) => { const result = process.stdout.write(p); if (!result) { - process.stdout.once("drain", () => resolve4(p.length)); + process.stdout.once("drain", () => resolve3(p.length)); } else { - resolve4(p.length); + resolve3(p.length); } }); }), @@ -1112,12 +1112,12 @@ var require_std = __commonJS({ return node_tty_1.default.isatty(this.rid); }, write: chain((p) => { - return new Promise((resolve4) => { + return new Promise((resolve3) => { const result = process.stderr.write(p); if (!result) { - process.stderr.once("drain", () => resolve4(p.length)); + process.stderr.once("drain", () => resolve3(p.length)); } else { - resolve4(p.length); + resolve3(p.length); } }); }), @@ -1290,12 +1290,12 @@ var require_chdir = __commonJS({ var url_1 = require("url"); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var chdir = function(path3) { + var chdir = function(path) { try { - return process.chdir(path3 instanceof URL ? (0, url_1.fileURLToPath)(path3) : path3); + return process.chdir(path instanceof URL ? (0, url_1.fileURLToPath)(path) : path); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), chdir '${path3}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), chdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -1429,7 +1429,7 @@ var require_chown = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.chown = void 0; var fs = __importStar(require("fs/promises")); - var chown = async (path3, uid, gid) => await fs.chown(path3, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); + var chown = async (path, uid, gid) => await fs.chown(path, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); exports2.chown = chown; } }); @@ -1473,7 +1473,7 @@ var require_chownSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.chownSync = void 0; var fs = __importStar(require("fs")); - var chownSync = (path3, uid, gid) => fs.chownSync(path3, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); + var chownSync = (path, uid, gid) => fs.chownSync(path, uid !== null && uid !== void 0 ? uid : -1, gid !== null && gid !== void 0 ? gid : -1); exports2.chownSync = chownSync; } }); @@ -1559,7 +1559,7 @@ var require_Conn = __commonJS({ this.close(); } async closeWrite() { - await new Promise((resolve4) => __classPrivateFieldGet2(this, _Conn_socket, "f").end(resolve4)); + await new Promise((resolve3) => __classPrivateFieldGet2(this, _Conn_socket, "f").end(resolve3)); } setNoDelay(enable) { __classPrivateFieldGet2(this, _Conn_socket, "f").setNoDelay(enable); @@ -1605,7 +1605,7 @@ var require_connect = __commonJS({ } const socket = (0, net_1.createConnection)({ port, host: hostname }); socket.on("error", (err) => console.error(err)); - return new Promise((resolve4) => { + return new Promise((resolve3) => { socket.once("connect", () => { const rid = socket._handle.fd; const localAddr = { @@ -1620,7 +1620,7 @@ var require_connect = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve4(new Conn_js_1.Conn(rid, localAddr, remoteAddr, socket)); + resolve3(new Conn_js_1.Conn(rid, localAddr, remoteAddr, socket)); }); }); }; @@ -1639,9 +1639,9 @@ var require_readTextFile = __commonJS({ exports2.readTextFile = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readTextFile = async (path3, { signal } = {}) => { + var readTextFile = async (path, { signal } = {}) => { try { - return await (0, promises_1.readFile)(path3, { encoding: "utf8", signal }); + return await (0, promises_1.readFile)(path, { encoding: "utf8", signal }); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -1662,7 +1662,7 @@ var require_connectTls = __commonJS({ var connectTls = async function connectTls2({ port, hostname = "127.0.0.1", certFile }) { const cert = certFile && await (0, readTextFile_js_1.readTextFile)(certFile); const socket = (0, tls_1.connect)({ port, host: hostname, cert }); - return new Promise((resolve4) => { + return new Promise((resolve3) => { socket.on("connect", () => { const rid = socket._handle.fd; const localAddr = { @@ -1677,7 +1677,7 @@ var require_connectTls = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve4(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr, socket)); + resolve3(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr, socket)); }); }); }; @@ -1976,7 +1976,7 @@ var require_open = __commonJS({ var fs_flags_js_1 = require_fs_flags(); var errorMap_js_1 = __importDefault(require_errorMap()); var nodeOpen = (0, util_1.promisify)(fs_1.open); - var open = async function open2(path3, { read, write, append, truncate, create, createNew, mode = 438 } = { + var open = async function open2(path, { read, write, append, truncate, create, createNew, mode = 438 } = { read: true }) { const flagMode = (0, fs_flags_js_1.getFsFlag)({ @@ -1988,7 +1988,7 @@ var require_open = __commonJS({ createNew }); try { - const fd = await nodeOpen(path3, flagMode, mode); + const fd = await nodeOpen(path, flagMode, mode); return new FsFile_js_1.File(fd); } catch (err) { throw (0, errorMap_js_1.default)(err); @@ -2005,8 +2005,8 @@ var require_create = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.create = void 0; var open_js_1 = require_open(); - var create = async function create2(path3) { - return await (0, open_js_1.open)(path3, { write: true, create: true, truncate: true }); + var create = async function create2(path) { + return await (0, open_js_1.open)(path, { write: true, create: true, truncate: true }); }; exports2.create = create; } @@ -2025,7 +2025,7 @@ var require_openSync = __commonJS({ var FsFile_js_1 = require_FsFile(); var fs_flags_js_1 = require_fs_flags(); var errorMap_js_1 = __importDefault(require_errorMap()); - var openSync = function openSync2(path3, { read, write, append, truncate, create, createNew, mode = 438 } = { + var openSync = function openSync2(path, { read, write, append, truncate, create, createNew, mode = 438 } = { read: true }) { const flagMode = (0, fs_flags_js_1.getFsFlag)({ @@ -2037,7 +2037,7 @@ var require_openSync = __commonJS({ createNew }); try { - const fd = (0, fs_1.openSync)(path3, flagMode, mode); + const fd = (0, fs_1.openSync)(path, flagMode, mode); return new FsFile_js_1.File(fd); } catch (err) { throw (0, errorMap_js_1.default)(err); @@ -2054,8 +2054,8 @@ var require_createSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.createSync = void 0; var openSync_js_1 = require_openSync(); - var createSync = function createSync2(path3) { - return (0, openSync_js_1.openSync)(path3, { + var createSync = function createSync2(path) { + return (0, openSync_js_1.openSync)(path, { create: true, truncate: true, read: true, @@ -2084,10 +2084,10 @@ var require_posix = __commonJS({ exports2.sync = exports2.isexe = void 0; var fs_1 = require("fs"); var promises_1 = require("fs/promises"); - var isexe = async (path3, options = {}) => { + var isexe = async (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat(await (0, promises_1.stat)(path3), options); + return checkStat(await (0, promises_1.stat)(path), options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2096,10 +2096,10 @@ var require_posix = __commonJS({ } }; exports2.isexe = isexe; - var sync = (path3, options = {}) => { + var sync = (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat((0, fs_1.statSync)(path3), options); + return checkStat((0, fs_1.statSync)(path), options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2137,10 +2137,10 @@ var require_win32 = __commonJS({ exports2.sync = exports2.isexe = void 0; var fs_1 = require("fs"); var promises_1 = require("fs/promises"); - var isexe = async (path3, options = {}) => { + var isexe = async (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat(await (0, promises_1.stat)(path3), path3, options); + return checkStat(await (0, promises_1.stat)(path), path, options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2149,10 +2149,10 @@ var require_win32 = __commonJS({ } }; exports2.isexe = isexe; - var sync = (path3, options = {}) => { + var sync = (path, options = {}) => { const { ignoreErrors = false } = options; try { - return checkStat((0, fs_1.statSync)(path3), path3, options); + return checkStat((0, fs_1.statSync)(path), path, options); } catch (e) { const er = e; if (ignoreErrors || er.code === "EACCES") @@ -2161,7 +2161,7 @@ var require_win32 = __commonJS({ } }; exports2.sync = sync; - var checkPathExt = (path3, options) => { + var checkPathExt = (path, options) => { const { pathExt = process.env.PATHEXT || "" } = options; const peSplit = pathExt.split(";"); if (peSplit.indexOf("") !== -1) { @@ -2169,14 +2169,14 @@ var require_win32 = __commonJS({ } for (let i = 0; i < peSplit.length; i++) { const p = peSplit[i].toLowerCase(); - const ext = path3.substring(path3.length - p.length).toLowerCase(); + const ext = path.substring(path.length - p.length).toLowerCase(); if (p && ext === p) { return true; } } return false; }; - var checkStat = (stat, path3, options) => stat.isFile() && checkPathExt(path3, options); + var checkStat = (stat, path, options) => stat.isFile() && checkPathExt(path, options); } }); @@ -2247,15 +2247,15 @@ var require_cjs = __commonJS({ var require_lib = __commonJS({ "dist/dnt/node_modules/which/lib/index.js"(exports2, module2) { var { isexe, sync: isexeSync } = require_cjs(); - var { join: join5, delimiter: delimiter4, sep: sep4, posix } = require("path"); + var { join: join3, delimiter, sep, posix } = require("path"); var isWindows2 = process.platform === "win32"; - var rSlash = new RegExp(`[${posix.sep}${sep4 === posix.sep ? "" : sep4}]`.replace(/(\\)/g, "\\$1")); + var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1")); var rRel = new RegExp(`^\\.${rSlash.source}`); var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); var getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, - delimiter: optDelimiter = delimiter4 + delimiter: optDelimiter = delimiter }) => { const pathEnv = cmd.match(rSlash) ? [""] : [ // windows always checks the cwd first @@ -2276,7 +2276,7 @@ var require_lib = __commonJS({ var getPathPart = (raw, cmd) => { const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw; const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ""; - return prefix + join5(pathPart, cmd); + return prefix + join3(pathPart, cmd); }; var which = async (cmd, opt = {}) => { const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); @@ -2722,7 +2722,7 @@ var require_listen = __commonJS({ async function* _listen(server, waitFor) { await waitFor; while (server.listening) { - yield new Promise((resolve4) => server.once("connection", (socket) => { + yield new Promise((resolve3) => server.once("connection", (socket) => { socket.on("error", (err) => console.error(err)); const rid = socket._handle.fd; const localAddr = { @@ -2737,7 +2737,7 @@ var require_listen = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve4(new Conn_js_1.Conn(rid, localAddr, remoteAddr)); + resolve3(new Conn_js_1.Conn(rid, localAddr, remoteAddr)); })); } } @@ -2750,9 +2750,9 @@ var require_listen = __commonJS({ throw new Error("Deno.listen is only implemented for transport: tcp"); } const server = (0, net_1.createServer)(); - const waitFor = new Promise((resolve4) => ( + const waitFor = new Promise((resolve3) => ( // server._handle.fd is assigned immediately on .listen() - server.listen(port, hostname, resolve4) + server.listen(port, hostname, resolve3) )); const listener = new Listener_js_1.Listener(server._handle.fd, { hostname, @@ -2808,9 +2808,9 @@ var require_readTextFileSync = __commonJS({ exports2.readTextFileSync = void 0; var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); - var readTextFileSync = function(path3) { + var readTextFileSync = function(path) { try { - return fs.readFileSync(path3, "utf8"); + return fs.readFileSync(path, "utf8"); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -2832,7 +2832,7 @@ var require_listenTls = __commonJS({ async function* _listen(server, waitFor) { await waitFor; while (server.listening) { - yield new Promise((resolve4) => server.once("secureConnection", (socket) => { + yield new Promise((resolve3) => server.once("secureConnection", (socket) => { socket.on("error", (err) => console.error(err)); const rid = socket._handle.fd; const localAddr = { @@ -2847,7 +2847,7 @@ var require_listenTls = __commonJS({ port: socket.remotePort, transport: "tcp" }; - resolve4(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr)); + resolve3(new Conn_js_1.TlsConn(rid, localAddr, remoteAddr)); })); } } @@ -2857,9 +2857,9 @@ var require_listenTls = __commonJS({ } const [cert, key] = [certFile, keyFile].map((f) => f == null ? void 0 : (0, readTextFileSync_js_1.readTextFileSync)(f)); const server = (0, tls_1.createServer)({ cert, key }); - const waitFor = new Promise((resolve4) => ( + const waitFor = new Promise((resolve3) => ( // server._handle.fd is assigned immediately on .listen() - server.listen(port, hostname, resolve4) + server.listen(port, hostname, resolve3) )); const listener = new Listener_js_1.Listener(server._handle.fd, { hostname, @@ -2962,9 +2962,9 @@ var require_lstat = __commonJS({ var fs = __importStar(require("fs/promises")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var lstat = async (path3) => { + var lstat = async (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path3)); + return (0, stat_js_1.denoifyFileInfo)(await fs.lstat(path)); } catch (e) { throw (0, errorMap_js_1.default)(e); } @@ -3017,9 +3017,9 @@ var require_lstatSync = __commonJS({ var fs = __importStar(require("fs")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var lstatSync = (path3) => { + var lstatSync = (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path3)); + return (0, stat_js_1.denoifyFileInfo)(fs.lstatSync(path)); } catch (err) { throw (0, errorMap_js_1.default)(err); } @@ -3118,7 +3118,7 @@ var require_writeTextFile = __commonJS({ var fs = __importStar(require("fs/promises")); var errorMap_js_1 = __importDefault(require_errorMap()); var fs_flags_js_1 = require_fs_flags(); - var writeTextFile = async function writeTextFile2(path3, data, { append = false, create = true, createNew = false, mode, signal } = {}) { + var writeTextFile = async function writeTextFile2(path, data, { append = false, create = true, createNew = false, mode, signal } = {}) { const truncate = create && !append; const flag = (0, fs_flags_js_1.getFsFlag)({ append, @@ -3128,9 +3128,9 @@ var require_writeTextFile = __commonJS({ write: true }); try { - await fs.writeFile(path3, data, { flag, mode, signal }); + await fs.writeFile(path, data, { flag, mode, signal }); if (mode !== void 0) - await fs.chmod(path3, mode); + await fs.chmod(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -3201,12 +3201,12 @@ var require_writeTextFileSync = __commonJS({ exports2.writeTextFileSync = void 0; var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); - var writeTextFileSync = (path3, data, { append = false, create = true, mode } = {}) => { + var writeTextFileSync = (path, data, { append = false, create = true, mode } = {}) => { const flag = create ? append ? "a" : "w" : "r+"; try { - fs.writeFileSync(path3, data, { flag, mode }); + fs.writeFileSync(path, data, { flag, mode }); if (mode !== void 0) - fs.chmodSync(path3, mode); + fs.chmodSync(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -3256,12 +3256,12 @@ var require_mkdir = __commonJS({ var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var mkdir = async function mkdir2(path3, options) { + var mkdir = async function mkdir2(path, options) { try { - await (0, promises_1.mkdir)(path3, options); + await (0, promises_1.mkdir)(path, options); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "EEXIST") { - throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path3}'`); + throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -3314,12 +3314,12 @@ var require_mkdirSync = __commonJS({ var fs = __importStar(require("fs")); var errorMap_js_1 = __importDefault(require_errorMap()); var variables_js_1 = require_variables(); - var mkdirSync = (path3, options) => { + var mkdirSync = (path, options) => { try { - fs.mkdirSync(path3, options); + fs.mkdirSync(path, options); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "EEXIST") { - throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path3}'`); + throw new variables_js_1.errors.AlreadyExists(`File exists (os error 17), mkdir '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -3367,9 +3367,9 @@ var require_readDir = __commonJS({ exports2.readDir = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readDir = async function* readDir2(path3) { + var readDir = async function* readDir2(path) { try { - for await (const e of await (0, promises_1.opendir)(String(path3))) { + for await (const e of await (0, promises_1.opendir)(String(path))) { const ent = { name: e.name, isFile: e.isFile(), @@ -3397,9 +3397,9 @@ var require_readDirSync = __commonJS({ exports2.readDirSync = void 0; var fs_1 = require("fs"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readDirSync = function* readDir(path3) { + var readDirSync = function* readDir(path) { try { - for (const e of (0, fs_1.readdirSync)(String(path3), { withFileTypes: true })) { + for (const e of (0, fs_1.readdirSync)(String(path), { withFileTypes: true })) { const ent = { name: e.name, isFile: e.isFile(), @@ -3427,9 +3427,9 @@ var require_readFile = __commonJS({ exports2.readFile = void 0; var promises_1 = require("fs/promises"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readFile = async function readFile2(path3, { signal } = {}) { + var readFile = async function readFile2(path, { signal } = {}) { try { - const buf = await (0, promises_1.readFile)(path3, { signal }); + const buf = await (0, promises_1.readFile)(path, { signal }); return new Uint8Array(buf.buffer, buf.byteOffset, buf.length); } catch (e) { throw (0, errorMap_js_1.default)(e); @@ -3450,9 +3450,9 @@ var require_readFileSync = __commonJS({ exports2.readFileSync = void 0; var fs_1 = require("fs"); var errorMap_js_1 = __importDefault(require_errorMap()); - var readFileSync = function readFileSync2(path3) { + var readFileSync = function readFileSync2(path) { try { - const buf = (0, fs_1.readFileSync)(path3); + const buf = (0, fs_1.readFileSync)(path); return new Uint8Array(buf.buffer, buf.byteOffset, buf.length); } catch (e) { throw (0, errorMap_js_1.default)(e); @@ -3641,13 +3641,13 @@ var require_remove = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.remove = void 0; var promises_1 = require("fs/promises"); - var remove = async function remove2(path3, options = {}) { + var remove = async function remove2(path, options = {}) { const innerOptions = options.recursive ? { recursive: true, force: true } : {}; try { - return await (0, promises_1.rm)(path3, innerOptions); + return await (0, promises_1.rm)(path, innerOptions); } catch (err) { if (err.code === "ERR_FS_EISDIR") { - return await (0, promises_1.rmdir)(path3, innerOptions); + return await (0, promises_1.rmdir)(path, innerOptions); } else { throw err; } @@ -3713,13 +3713,13 @@ var require_removeSync = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.removeSync = void 0; var fs = __importStar(require("fs")); - var removeSync = (path3, options = {}) => { + var removeSync = (path, options = {}) => { const innerOptions = options.recursive ? { recursive: true, force: true } : {}; try { - fs.rmSync(path3, innerOptions); + fs.rmSync(path, innerOptions); } catch (err) { if (err.code === "ERR_FS_EISDIR") { - fs.rmdirSync(path3, innerOptions); + fs.rmdirSync(path, innerOptions); } else { throw err; } @@ -3806,12 +3806,12 @@ var require_resolveDns = __commonJS({ case "CNAME": case "NS": case "PTR": - return new Promise((resolve4, reject) => { + return new Promise((resolve3, reject) => { dns_1.default.resolve(query, recordType, (err, addresses) => { if (err) { reject(err); } else { - resolve4(addresses); + resolve3(addresses); } }); }); @@ -3881,7 +3881,7 @@ var require_streams = __commonJS({ }); } readAll() { - return new Promise((resolve4, reject) => { + return new Promise((resolve3, reject) => { const chunks = []; const action = () => { if (__classPrivateFieldGet2(this, _BufferStreamReader_error, "f")) { @@ -3894,7 +3894,7 @@ var require_streams = __commonJS({ __classPrivateFieldGet2(this, _BufferStreamReader_pendingActions, "f").push(action); } else if (__classPrivateFieldGet2(this, _BufferStreamReader_ended, "f")) { const result = Buffer.concat(chunks); - resolve4(result); + resolve3(result); } else { __classPrivateFieldGet2(this, _BufferStreamReader_pendingActions, "f").push(action); } @@ -3903,7 +3903,7 @@ var require_streams = __commonJS({ }); } read(p) { - return new Promise((resolve4, reject) => { + return new Promise((resolve3, reject) => { const action = () => { if (__classPrivateFieldGet2(this, _BufferStreamReader_error, "f")) { reject(__classPrivateFieldGet2(this, _BufferStreamReader_error, "f")); @@ -3912,11 +3912,11 @@ var require_streams = __commonJS({ const readBuffer = __classPrivateFieldGet2(this, _BufferStreamReader_stream, "f").read(p.byteLength); if (readBuffer && readBuffer.byteLength > 0) { readBuffer.copy(p, 0, 0, readBuffer.byteLength); - resolve4(readBuffer.byteLength); + resolve3(readBuffer.byteLength); return; } if (__classPrivateFieldGet2(this, _BufferStreamReader_ended, "f")) { - resolve4(null); + resolve3(null); } else { __classPrivateFieldGet2(this, _BufferStreamReader_pendingActions, "f").push(action); } @@ -3945,12 +3945,12 @@ var require_streams = __commonJS({ __classPrivateFieldSet(this, _StreamWriter_stream, stream, "f"); } write(p) { - return new Promise((resolve4, reject) => { + return new Promise((resolve3, reject) => { __classPrivateFieldGet2(this, _StreamWriter_stream, "f").write(p, (err) => { if (err) { reject(err); } else { - resolve4(p.byteLength); + resolve3(p.byteLength); } }); }); @@ -4250,7 +4250,7 @@ var require_shutdown = __commonJS({ exports2.shutdown = void 0; var net_1 = require("net"); var shutdown = async function shutdown2(rid) { - await new Promise((resolve4) => new net_1.Socket({ fd: rid }).end(resolve4)); + await new Promise((resolve3) => new net_1.Socket({ fd: rid }).end(resolve3)); }; exports2.shutdown = shutdown; } @@ -4300,9 +4300,9 @@ var require_statSync = __commonJS({ var fs = __importStar(require("fs")); var stat_js_1 = require_stat(); var errorMap_js_1 = __importDefault(require_errorMap()); - var statSync = (path3) => { + var statSync = (path) => { try { - return (0, stat_js_1.denoifyFileInfo)(fs.statSync(path3)); + return (0, stat_js_1.denoifyFileInfo)(fs.statSync(path)); } catch (err) { throw (0, errorMap_js_1.default)(err); } @@ -4727,9 +4727,9 @@ var require_watchFs = __commonJS({ const ac = new AbortController(); const { signal } = ac; const rid = -1; - const masterWatcher = (0, iterutil_js_1.merge)(paths.map((path3) => (0, iterutil_js_1.mapAsync)((0, iterutil_js_1.filterAsync)((0, promises_1.watch)(path3, { recursive: options === null || options === void 0 ? void 0 : options.recursive, signal }), (info) => info.filename != null), (info) => ({ + const masterWatcher = (0, iterutil_js_1.merge)(paths.map((path) => (0, iterutil_js_1.mapAsync)((0, iterutil_js_1.filterAsync)((0, promises_1.watch)(path, { recursive: options === null || options === void 0 ? void 0 : options.recursive, signal }), (info) => info.filename != null), (info) => ({ kind: "modify", - paths: [(0, path_1.resolve)(path3, info.filename)] + paths: [(0, path_1.resolve)(path, info.filename)] })))); function close() { ac.abort(); @@ -4788,13 +4788,13 @@ var require_writeFile = __commonJS({ var fs = __importStar(require("fs/promises")); var errorMap_js_1 = __importDefault(require_errorMap()); var fs_flags_js_1 = require_fs_flags(); - var writeFile = async function writeFile2(path3, data, { append = false, create = true, createNew = false, mode, signal } = {}) { + var writeFile = async function writeFile2(path, data, { append = false, create = true, createNew = false, mode, signal } = {}) { const truncate = create && !append; const flag = (0, fs_flags_js_1.getFsFlag)({ append, create, createNew, truncate, write: true }); try { - await fs.writeFile(path3, data, { flag, signal }); + await fs.writeFile(path, data, { flag, signal }); if (mode != null) - await fs.chmod(path3, mode); + await fs.chmod(path, mode); } catch (error) { throw (0, errorMap_js_1.default)(error); } @@ -4817,12 +4817,12 @@ var require_writeFileSync = __commonJS({ var errorMap_js_1 = __importDefault(require_errorMap()); var statSync_js_1 = require_statSync(); var chmodSync_js_1 = require_chmodSync(); - var writeFileSync = function writeFileSync2(path3, data, options = {}) { + var writeFileSync = function writeFileSync2(path, data, options = {}) { try { if (options.create !== void 0) { const create = !!options.create; if (!create) { - (0, statSync_js_1.statSync)(path3); + (0, statSync_js_1.statSync)(path); } } const openOptions = { @@ -4832,9 +4832,9 @@ var require_writeFileSync = __commonJS({ append: !!options.append, truncate: !options.append }; - const file = (0, openSync_js_1.openSync)(path3, openOptions); + const file = (0, openSync_js_1.openSync)(path, openOptions); if (options.mode !== void 0 && options.mode !== null && (0, os_1.platform)() !== "win32") { - (0, chmodSync_js_1.chmodSync)(path3, options.mode); + (0, chmodSync_js_1.chmodSync)(path, options.mode); } let nwritten = 0; while (nwritten < data.length) { @@ -5217,12 +5217,12 @@ var require_functions = __commonJS({ } }); var futime = async function(rid, atime, mtime) { try { - await new Promise((resolve4, reject) => { + await new Promise((resolve3, reject) => { fs_1.default.futimes(rid, atime, mtime, (err) => { if (err) { reject(err); } else { - resolve4(); + resolve3(); } }); }); @@ -5239,23 +5239,23 @@ var require_functions = __commonJS({ } }; exports2.futimeSync = futimeSync; - var utime = async function(path3, atime, mtime) { + var utime = async function(path, atime, mtime) { try { - await fs_1.default.promises.utimes(path3, atime, mtime); + await fs_1.default.promises.utimes(path, atime, mtime); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path3}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path}'`); } throw (0, errorMap_js_1.default)(error); } }; exports2.utime = utime; - var utimeSync = function(path3, atime, mtime) { + var utimeSync = function(path, atime, mtime) { try { - fs_1.default.utimesSync(path3, atime, mtime); + fs_1.default.utimesSync(path, atime, mtime); } catch (error) { if ((error === null || error === void 0 ? void 0 : error.code) === "ENOENT") { - throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path3}'`); + throw new variables_js_1.errors.NotFound(`No such file or directory (os error 2), utime '${path}'`); } throw (0, errorMap_js_1.default)(error); } @@ -5376,621 +5376,89 @@ var require_dist2 = __commonJS({ } }); -// dist/dnt/esm/_dnt.shims.js -var import_shim_deno = __toESM(require_dist2(), 1); -var import_shim_deno2 = __toESM(require_dist2(), 1); -var dntGlobals = { - Deno: import_shim_deno.Deno -}; -var dntGlobalThis = createMergeProxy(globalThis, dntGlobals); -function createMergeProxy(baseObj, extObj) { - return new Proxy(baseObj, { - get(_target, prop, _receiver) { - if (prop in extObj) { - return extObj[prop]; - } else { - return baseObj[prop]; - } - }, - set(_target, prop, value) { - if (prop in extObj) { - delete extObj[prop]; - } - baseObj[prop] = value; - return true; - }, - deleteProperty(_target, prop) { - let success = false; - if (prop in extObj) { - delete extObj[prop]; - success = true; - } - if (prop in baseObj) { - delete baseObj[prop]; - success = true; - } - return success; - }, - ownKeys(_target) { - const baseKeys = Reflect.ownKeys(baseObj); - const extKeys = Reflect.ownKeys(extObj); - const extKeysSet = new Set(extKeys); - return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys]; - }, - defineProperty(_target, prop, desc) { - if (prop in extObj) { - delete extObj[prop]; - } - Reflect.defineProperty(baseObj, prop, desc); - return true; - }, - getOwnPropertyDescriptor(_target, prop) { - if (prop in extObj) { - return Reflect.getOwnPropertyDescriptor(extObj, prop); - } else { - return Reflect.getOwnPropertyDescriptor(baseObj, prop); - } - }, - has(_target, prop) { - return prop in extObj || prop in baseObj; - } - }); -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/_util/os.js -var osType = (() => { - const { Deno: Deno4 } = dntGlobalThis; - if (typeof Deno4?.build?.os === "string") { - return Deno4.build.os; - } - const { navigator } = dntGlobalThis; - if (navigator?.appVersion?.includes?.("Win")) { - return "windows"; +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/assert_path.js +function assertPath(path) { + if (typeof path !== "string") { + throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`); } - return "linux"; -})(); -var isWindows = osType === "windows"; +} -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/win32.js -var win32_exports = {}; -__export(win32_exports, { - basename: () => basename, - delimiter: () => delimiter, - dirname: () => dirname, - extname: () => extname, - format: () => format, - fromFileUrl: () => fromFileUrl, - isAbsolute: () => isAbsolute, - join: () => join, - normalize: () => normalize, - parse: () => parse, - relative: () => relative, - resolve: () => resolve, - sep: () => sep, - toFileUrl: () => toFileUrl, - toNamespacedPath: () => toNamespacedPath -}); - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/_constants.js +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/constants.js var CHAR_UPPERCASE_A = 65; var CHAR_LOWERCASE_A = 97; var CHAR_UPPERCASE_Z = 90; var CHAR_LOWERCASE_Z = 122; -var CHAR_DOT = 46; var CHAR_FORWARD_SLASH = 47; var CHAR_BACKWARD_SLASH = 92; var CHAR_COLON = 58; -var CHAR_QUESTION_MARK = 63; -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/_util.js -function assertPath(path3) { - if (typeof path3 !== "string") { - throw new TypeError(`Path must be a string. Received ${JSON.stringify(path3)}`); +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/strip_trailing_separators.js +function stripTrailingSeparators(segment, isSep) { + if (segment.length <= 1) { + return segment; + } + let end = segment.length; + for (let i = segment.length - 1; i > 0; i--) { + if (isSep(segment.charCodeAt(i))) { + end = i; + } else { + break; + } } + return segment.slice(0, end); } + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/windows/_util.js function isPosixPathSeparator(code2) { return code2 === CHAR_FORWARD_SLASH; } function isPathSeparator(code2) { - return isPosixPathSeparator(code2) || code2 === CHAR_BACKWARD_SLASH; + return code2 === CHAR_FORWARD_SLASH || code2 === CHAR_BACKWARD_SLASH; } function isWindowsDeviceRoot(code2) { return code2 >= CHAR_LOWERCASE_A && code2 <= CHAR_LOWERCASE_Z || code2 >= CHAR_UPPERCASE_A && code2 <= CHAR_UPPERCASE_Z; } -function normalizeString(path3, allowAboveRoot, separator, isPathSeparator2) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let code2; - for (let i = 0, len = path3.length; i <= len; ++i) { - if (i < len) - code2 = path3.charCodeAt(i); - else if (isPathSeparator2(code2)) - break; - else - code2 = CHAR_FORWARD_SLASH; - if (isPathSeparator2(code2)) { - if (lastSlash === i - 1 || dots === 1) { - } else if (lastSlash !== i - 1 && dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf(separator); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf(separator); - } - lastSlash = i; - dots = 0; - continue; - } else if (res.length === 2 || res.length === 1) { - res = ""; - lastSegmentLength = 0; - lastSlash = i; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - if (res.length > 0) - res += `${separator}..`; - else - res = ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) - res += separator + path3.slice(lastSlash + 1, i); - else - res = path3.slice(lastSlash + 1, i); - lastSegmentLength = i - lastSlash - 1; - } - lastSlash = i; - dots = 0; - } else if (code2 === CHAR_DOT && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -function _format(sep4, pathObject) { - const dir = pathObject.dir || pathObject.root; - const base = pathObject.base || (pathObject.name || "") + (pathObject.ext || ""); - if (!dir) - return base; - if (dir === pathObject.root) - return dir + base; - return dir + sep4 + base; -} -var WHITESPACE_ENCODINGS = { - " ": "%09", - "\n": "%0A", - "\v": "%0B", - "\f": "%0C", - "\r": "%0D", - " ": "%20" -}; -function encodeWhitespace(string2) { - return string2.replaceAll(/[\s]/g, (c) => { - return WHITESPACE_ENCODINGS[c] ?? c; - }); -} -// dist/dnt/esm/deps/deno.land/std@0.171.0/_util/asserts.js -var DenoStdInternalError = class extends Error { - constructor(message) { - super(message); - this.name = "DenoStdInternalError"; - } -}; -function assert(expr, msg = "") { - if (!expr) { - throw new DenoStdInternalError(msg); - } -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/win32.js -var sep = "\\"; -var delimiter = ";"; -function resolve(...pathSegments) { - let resolvedDevice = ""; - let resolvedTail = ""; - let resolvedAbsolute = false; - for (let i = pathSegments.length - 1; i >= -1; i--) { - let path3; - const { Deno: Deno4 } = dntGlobalThis; - if (i >= 0) { - path3 = pathSegments[i]; - } else if (!resolvedDevice) { - if (typeof Deno4?.cwd !== "function") { - throw new TypeError("Resolved a drive-letter-less path without a CWD."); - } - path3 = Deno4.cwd(); - } else { - if (typeof Deno4?.env?.get !== "function" || typeof Deno4?.cwd !== "function") { - throw new TypeError("Resolved a relative path without a CWD."); - } - path3 = Deno4.cwd(); - if (path3 === void 0 || path3.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) { - path3 = `${resolvedDevice}\\`; - } - } - assertPath(path3); - const len = path3.length; - if (len === 0) - continue; - let rootEnd = 0; - let device = ""; - let isAbsolute4 = false; - const code2 = path3.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code2)) { - isAbsolute4 = true; - if (isPathSeparator(path3.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - const firstPart = path3.slice(last, j); - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j === len) { - device = `\\\\${firstPart}\\${path3.slice(last)}`; - rootEnd = j; - } else if (j !== last) { - device = `\\\\${firstPart}\\${path3.slice(last, j)}`; - rootEnd = j; - } - } - } - } else { - rootEnd = 1; - } - } else if (isWindowsDeviceRoot(code2)) { - if (path3.charCodeAt(1) === CHAR_COLON) { - device = path3.slice(0, 2); - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path3.charCodeAt(2))) { - isAbsolute4 = true; - rootEnd = 3; - } - } - } - } - } else if (isPathSeparator(code2)) { - rootEnd = 1; - isAbsolute4 = true; - } - if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) { - continue; - } - if (resolvedDevice.length === 0 && device.length > 0) { - resolvedDevice = device; - } - if (!resolvedAbsolute) { - resolvedTail = `${path3.slice(rootEnd)}\\${resolvedTail}`; - resolvedAbsolute = isAbsolute4; - } - if (resolvedAbsolute && resolvedDevice.length > 0) - break; - } - resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator); - return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || "."; -} -function normalize(path3) { - assertPath(path3); - const len = path3.length; - if (len === 0) +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/dirname.js +function assertArg(path) { + assertPath(path); + if (path.length === 0) return "."; - let rootEnd = 0; - let device; - let isAbsolute4 = false; - const code2 = path3.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code2)) { - isAbsolute4 = true; - if (isPathSeparator(path3.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - const firstPart = path3.slice(last, j); - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j === len) { - return `\\\\${firstPart}\\${path3.slice(last)}\\`; - } else if (j !== last) { - device = `\\\\${firstPart}\\${path3.slice(last, j)}`; - rootEnd = j; - } - } - } - } else { - rootEnd = 1; - } - } else if (isWindowsDeviceRoot(code2)) { - if (path3.charCodeAt(1) === CHAR_COLON) { - device = path3.slice(0, 2); - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path3.charCodeAt(2))) { - isAbsolute4 = true; - rootEnd = 3; - } - } - } - } - } else if (isPathSeparator(code2)) { - return "\\"; - } - let tail; - if (rootEnd < len) { - tail = normalizeString(path3.slice(rootEnd), !isAbsolute4, "\\", isPathSeparator); - } else { - tail = ""; - } - if (tail.length === 0 && !isAbsolute4) - tail = "."; - if (tail.length > 0 && isPathSeparator(path3.charCodeAt(len - 1))) { - tail += "\\"; - } - if (device === void 0) { - if (isAbsolute4) { - if (tail.length > 0) - return `\\${tail}`; - else - return "\\"; - } else if (tail.length > 0) { - return tail; - } else { - return ""; - } - } else if (isAbsolute4) { - if (tail.length > 0) - return `${device}\\${tail}`; - else - return `${device}\\`; - } else if (tail.length > 0) { - return device + tail; - } else { - return device; - } -} -function isAbsolute(path3) { - assertPath(path3); - const len = path3.length; - if (len === 0) - return false; - const code2 = path3.charCodeAt(0); - if (isPathSeparator(code2)) { - return true; - } else if (isWindowsDeviceRoot(code2)) { - if (len > 2 && path3.charCodeAt(1) === CHAR_COLON) { - if (isPathSeparator(path3.charCodeAt(2))) - return true; - } - } - return false; -} -function join(...paths) { - const pathsCount = paths.length; - if (pathsCount === 0) - return "."; - let joined; - let firstPart = null; - for (let i = 0; i < pathsCount; ++i) { - const path3 = paths[i]; - assertPath(path3); - if (path3.length > 0) { - if (joined === void 0) - joined = firstPart = path3; - else - joined += `\\${path3}`; - } - } - if (joined === void 0) - return "."; - let needsReplace = true; - let slashCount = 0; - assert(firstPart != null); - if (isPathSeparator(firstPart.charCodeAt(0))) { - ++slashCount; - const firstLen = firstPart.length; - if (firstLen > 1) { - if (isPathSeparator(firstPart.charCodeAt(1))) { - ++slashCount; - if (firstLen > 2) { - if (isPathSeparator(firstPart.charCodeAt(2))) - ++slashCount; - else { - needsReplace = false; - } - } - } - } - } - if (needsReplace) { - for (; slashCount < joined.length; ++slashCount) { - if (!isPathSeparator(joined.charCodeAt(slashCount))) - break; - } - if (slashCount >= 2) - joined = `\\${joined.slice(slashCount)}`; - } - return normalize(joined); -} -function relative(from, to) { - assertPath(from); - assertPath(to); - if (from === to) - return ""; - const fromOrig = resolve(from); - const toOrig = resolve(to); - if (fromOrig === toOrig) - return ""; - from = fromOrig.toLowerCase(); - to = toOrig.toLowerCase(); - if (from === to) - return ""; - let fromStart = 0; - let fromEnd = from.length; - for (; fromStart < fromEnd; ++fromStart) { - if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) - break; - } - for (; fromEnd - 1 > fromStart; --fromEnd) { - if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) - break; - } - const fromLen = fromEnd - fromStart; - let toStart = 0; - let toEnd = to.length; - for (; toStart < toEnd; ++toStart) { - if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) - break; - } - for (; toEnd - 1 > toStart; --toEnd) { - if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) - break; - } - const toLen = toEnd - toStart; - const length = fromLen < toLen ? fromLen : toLen; - let lastCommonSep = -1; - let i = 0; - for (; i <= length; ++i) { - if (i === length) { - if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) { - return toOrig.slice(toStart + i + 1); - } else if (i === 2) { - return toOrig.slice(toStart + i); - } - } - if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) { - lastCommonSep = i; - } else if (i === 2) { - lastCommonSep = 3; - } - } - break; - } - const fromCode = from.charCodeAt(fromStart + i); - const toCode = to.charCodeAt(toStart + i); - if (fromCode !== toCode) - break; - else if (fromCode === CHAR_BACKWARD_SLASH) - lastCommonSep = i; - } - if (i !== length && lastCommonSep === -1) { - return toOrig; - } - let out = ""; - if (lastCommonSep === -1) - lastCommonSep = 0; - for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { - if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) { - if (out.length === 0) - out += ".."; - else - out += "\\.."; - } - } - if (out.length > 0) { - return out + toOrig.slice(toStart + lastCommonSep, toEnd); - } else { - toStart += lastCommonSep; - if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) - ++toStart; - return toOrig.slice(toStart, toEnd); - } } -function toNamespacedPath(path3) { - if (typeof path3 !== "string") - return path3; - if (path3.length === 0) - return ""; - const resolvedPath = resolve(path3); - if (resolvedPath.length >= 3) { - if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) { - if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) { - const code2 = resolvedPath.charCodeAt(2); - if (code2 !== CHAR_QUESTION_MARK && code2 !== CHAR_DOT) { - return `\\\\?\\UNC\\${resolvedPath.slice(2)}`; - } - } - } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) { - if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) { - return `\\\\?\\${resolvedPath}`; - } - } - } - return path3; -} -function dirname(path3) { - assertPath(path3); - const len = path3.length; - if (len === 0) - return "."; + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/windows/dirname.js +function dirname(path) { + assertArg(path); + const len = path.length; let rootEnd = -1; let end = -1; let matchedSlash = true; let offset = 0; - const code2 = path3.charCodeAt(0); + const code2 = path.charCodeAt(0); if (len > 1) { if (isPathSeparator(code2)) { rootEnd = offset = 1; - if (isPathSeparator(path3.charCodeAt(1))) { + if (isPathSeparator(path.charCodeAt(1))) { let j = 2; let last = j; for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) + if (isPathSeparator(path.charCodeAt(j))) break; } if (j < len && j !== last) { last = j; for (; j < len; ++j) { - if (!isPathSeparator(path3.charCodeAt(j))) + if (!isPathSeparator(path.charCodeAt(j))) break; } if (j < len && j !== last) { last = j; for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) + if (isPathSeparator(path.charCodeAt(j))) break; } if (j === len) { - return path3; + return path; } if (j !== last) { rootEnd = offset = j + 1; @@ -5999,19 +5467,19 @@ function dirname(path3) { } } } else if (isWindowsDeviceRoot(code2)) { - if (path3.charCodeAt(1) === CHAR_COLON) { + if (path.charCodeAt(1) === CHAR_COLON) { rootEnd = offset = 2; if (len > 2) { - if (isPathSeparator(path3.charCodeAt(2))) + if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3; } } } } else if (isPathSeparator(code2)) { - return path3; + return path; } for (let i = len - 1; i >= offset; --i) { - if (isPathSeparator(path3.charCodeAt(i))) { + if (isPathSeparator(path.charCodeAt(i))) { if (!matchedSlash) { end = i; break; @@ -6026,626 +5494,71 @@ function dirname(path3) { else end = rootEnd; } - return path3.slice(0, end); + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator); } -function basename(path3, ext = "") { - if (ext !== void 0 && typeof ext !== "string") { - throw new TypeError('"ext" argument must be a string'); - } - assertPath(path3); - let start = 0; - let end = -1; - let matchedSlash = true; - let i; - if (path3.length >= 2) { - const drive = path3.charCodeAt(0); - if (isWindowsDeviceRoot(drive)) { - if (path3.charCodeAt(1) === CHAR_COLON) - start = 2; - } - } - if (ext !== void 0 && ext.length > 0 && ext.length <= path3.length) { - if (ext.length === path3.length && ext === path3) - return ""; - let extIdx = ext.length - 1; - let firstNonSlashEnd = -1; - for (i = path3.length - 1; i >= start; --i) { - const code2 = path3.charCodeAt(i); - if (isPathSeparator(code2)) { - if (!matchedSlash) { - start = i + 1; - break; - } + +// dist/dnt/esm/_dnt.shims.js +var import_shim_deno = __toESM(require_dist2(), 1); +var import_shim_deno2 = __toESM(require_dist2(), 1); +var dntGlobals = { + Deno: import_shim_deno.Deno +}; +var dntGlobalThis = createMergeProxy(globalThis, dntGlobals); +function createMergeProxy(baseObj, extObj) { + return new Proxy(baseObj, { + get(_target, prop, _receiver) { + if (prop in extObj) { + return extObj[prop]; } else { - if (firstNonSlashEnd === -1) { - matchedSlash = false; - firstNonSlashEnd = i + 1; - end = firstNonSlashEnd; - } - if (extIdx >= 0) { - if (code2 === ext.charCodeAt(extIdx)) { - if (--extIdx === -1) { - end = i; - } - } else { - extIdx = -1; - } - } - } - } - if (start === end) - end = firstNonSlashEnd; - else if (end === -1) - end = path3.length; - return path3.slice(start, end); - } else { - for (i = path3.length - 1; i >= start; --i) { - if (isPathSeparator(path3.charCodeAt(i))) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - matchedSlash = false; - end = i + 1; - } - } - if (end === -1) - return ""; - return path3.slice(start, end); - } -} -function extname(path3) { - assertPath(path3); - let start = 0; - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let preDotState = 0; - if (path3.length >= 2 && path3.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path3.charCodeAt(0))) { - start = startPart = 2; - } - for (let i = path3.length - 1; i >= start; --i) { - const code2 = path3.charCodeAt(i); - if (isPathSeparator(code2)) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code2 === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ""; - } - return path3.slice(startDot, end); -} -function format(pathObject) { - if (pathObject === null || typeof pathObject !== "object") { - throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`); - } - return _format("\\", pathObject); -} -function parse(path3) { - assertPath(path3); - const ret = { root: "", dir: "", base: "", ext: "", name: "" }; - const len = path3.length; - if (len === 0) - return ret; - let rootEnd = 0; - let code2 = path3.charCodeAt(0); - if (len > 1) { - if (isPathSeparator(code2)) { - rootEnd = 1; - if (isPathSeparator(path3.charCodeAt(1))) { - let j = 2; - let last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (!isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j < len && j !== last) { - last = j; - for (; j < len; ++j) { - if (isPathSeparator(path3.charCodeAt(j))) - break; - } - if (j === len) { - rootEnd = j; - } else if (j !== last) { - rootEnd = j + 1; - } - } - } - } - } else if (isWindowsDeviceRoot(code2)) { - if (path3.charCodeAt(1) === CHAR_COLON) { - rootEnd = 2; - if (len > 2) { - if (isPathSeparator(path3.charCodeAt(2))) { - if (len === 3) { - ret.root = ret.dir = path3; - return ret; - } - rootEnd = 3; - } - } else { - ret.root = ret.dir = path3; - return ret; - } - } - } - } else if (isPathSeparator(code2)) { - ret.root = ret.dir = path3; - return ret; - } - if (rootEnd > 0) - ret.root = path3.slice(0, rootEnd); - let startDot = -1; - let startPart = rootEnd; - let end = -1; - let matchedSlash = true; - let i = path3.length - 1; - let preDotState = 0; - for (; i >= rootEnd; --i) { - code2 = path3.charCodeAt(i); - if (isPathSeparator(code2)) { - if (!matchedSlash) { - startPart = i + 1; - break; - } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code2 === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - if (end !== -1) { - ret.base = ret.name = path3.slice(startPart, end); - } - } else { - ret.name = path3.slice(startPart, startDot); - ret.base = path3.slice(startPart, end); - ret.ext = path3.slice(startDot, end); - } - if (startPart > 0 && startPart !== rootEnd) { - ret.dir = path3.slice(0, startPart - 1); - } else - ret.dir = ret.root; - return ret; -} -function fromFileUrl(url) { - url = url instanceof URL ? url : new URL(url); - if (url.protocol != "file:") { - throw new TypeError("Must be a file URL."); - } - let path3 = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\"); - if (url.hostname != "") { - path3 = `\\\\${url.hostname}${path3}`; - } - return path3; -} -function toFileUrl(path3) { - if (!isAbsolute(path3)) { - throw new TypeError("Must be an absolute path."); - } - const [, hostname, pathname] = path3.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/); - const url = new URL("file:///"); - url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25")); - if (hostname != null && hostname != "localhost") { - url.hostname = hostname; - if (!url.hostname) { - throw new TypeError("Invalid hostname."); - } - } - return url; -} - -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/posix.js -var posix_exports = {}; -__export(posix_exports, { - basename: () => basename2, - delimiter: () => delimiter2, - dirname: () => dirname2, - extname: () => extname2, - format: () => format2, - fromFileUrl: () => fromFileUrl2, - isAbsolute: () => isAbsolute2, - join: () => join2, - normalize: () => normalize2, - parse: () => parse2, - relative: () => relative2, - resolve: () => resolve2, - sep: () => sep2, - toFileUrl: () => toFileUrl2, - toNamespacedPath: () => toNamespacedPath2 -}); -var sep2 = "/"; -var delimiter2 = ":"; -function resolve2(...pathSegments) { - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - let path3; - if (i >= 0) - path3 = pathSegments[i]; - else { - const { Deno: Deno4 } = dntGlobalThis; - if (typeof Deno4?.cwd !== "function") { - throw new TypeError("Resolved a relative path without a CWD."); - } - path3 = Deno4.cwd(); - } - assertPath(path3); - if (path3.length === 0) { - continue; - } - resolvedPath = `${path3}/${resolvedPath}`; - resolvedAbsolute = path3.charCodeAt(0) === CHAR_FORWARD_SLASH; - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator); - if (resolvedAbsolute) { - if (resolvedPath.length > 0) - return `/${resolvedPath}`; - else - return "/"; - } else if (resolvedPath.length > 0) - return resolvedPath; - else - return "."; -} -function normalize2(path3) { - assertPath(path3); - if (path3.length === 0) - return "."; - const isAbsolute4 = path3.charCodeAt(0) === CHAR_FORWARD_SLASH; - const trailingSeparator = path3.charCodeAt(path3.length - 1) === CHAR_FORWARD_SLASH; - path3 = normalizeString(path3, !isAbsolute4, "/", isPosixPathSeparator); - if (path3.length === 0 && !isAbsolute4) - path3 = "."; - if (path3.length > 0 && trailingSeparator) - path3 += "/"; - if (isAbsolute4) - return `/${path3}`; - return path3; -} -function isAbsolute2(path3) { - assertPath(path3); - return path3.length > 0 && path3.charCodeAt(0) === CHAR_FORWARD_SLASH; -} -function join2(...paths) { - if (paths.length === 0) - return "."; - let joined; - for (let i = 0, len = paths.length; i < len; ++i) { - const path3 = paths[i]; - assertPath(path3); - if (path3.length > 0) { - if (!joined) - joined = path3; - else - joined += `/${path3}`; - } - } - if (!joined) - return "."; - return normalize2(joined); -} -function relative2(from, to) { - assertPath(from); - assertPath(to); - if (from === to) - return ""; - from = resolve2(from); - to = resolve2(to); - if (from === to) - return ""; - let fromStart = 1; - const fromEnd = from.length; - for (; fromStart < fromEnd; ++fromStart) { - if (from.charCodeAt(fromStart) !== CHAR_FORWARD_SLASH) - break; - } - const fromLen = fromEnd - fromStart; - let toStart = 1; - const toEnd = to.length; - for (; toStart < toEnd; ++toStart) { - if (to.charCodeAt(toStart) !== CHAR_FORWARD_SLASH) - break; - } - const toLen = toEnd - toStart; - const length = fromLen < toLen ? fromLen : toLen; - let lastCommonSep = -1; - let i = 0; - for (; i <= length; ++i) { - if (i === length) { - if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) { - return to.slice(toStart + i + 1); - } else if (i === 0) { - return to.slice(toStart + i); - } - } else if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) { - lastCommonSep = i; - } else if (i === 0) { - lastCommonSep = 0; - } - } - break; - } - const fromCode = from.charCodeAt(fromStart + i); - const toCode = to.charCodeAt(toStart + i); - if (fromCode !== toCode) - break; - else if (fromCode === CHAR_FORWARD_SLASH) - lastCommonSep = i; - } - let out = ""; - for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { - if (i === fromEnd || from.charCodeAt(i) === CHAR_FORWARD_SLASH) { - if (out.length === 0) - out += ".."; - else - out += "/.."; - } - } - if (out.length > 0) - return out + to.slice(toStart + lastCommonSep); - else { - toStart += lastCommonSep; - if (to.charCodeAt(toStart) === CHAR_FORWARD_SLASH) - ++toStart; - return to.slice(toStart); - } -} -function toNamespacedPath2(path3) { - return path3; -} -function dirname2(path3) { - assertPath(path3); - if (path3.length === 0) - return "."; - const hasRoot = path3.charCodeAt(0) === CHAR_FORWARD_SLASH; - let end = -1; - let matchedSlash = true; - for (let i = path3.length - 1; i >= 1; --i) { - if (path3.charCodeAt(i) === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - end = i; - break; + return baseObj[prop]; } - } else { - matchedSlash = false; - } - } - if (end === -1) - return hasRoot ? "/" : "."; - if (hasRoot && end === 1) - return "//"; - return path3.slice(0, end); -} -function basename2(path3, ext = "") { - if (ext !== void 0 && typeof ext !== "string") { - throw new TypeError('"ext" argument must be a string'); - } - assertPath(path3); - let start = 0; - let end = -1; - let matchedSlash = true; - let i; - if (ext !== void 0 && ext.length > 0 && ext.length <= path3.length) { - if (ext.length === path3.length && ext === path3) - return ""; - let extIdx = ext.length - 1; - let firstNonSlashEnd = -1; - for (i = path3.length - 1; i >= 0; --i) { - const code2 = path3.charCodeAt(i); - if (isPosixPathSeparator(code2)) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else { - if (firstNonSlashEnd === -1) { - matchedSlash = false; - firstNonSlashEnd = i + 1; - end = firstNonSlashEnd; - } - if (extIdx >= 0) { - if (code2 === ext.charCodeAt(extIdx)) { - if (--extIdx === -1) { - end = i; - } - } else { - extIdx = -1; - } - } + }, + set(_target, prop, value) { + if (prop in extObj) { + delete extObj[prop]; } - } - if (start === end) - end = firstNonSlashEnd; - else if (end === -1) - end = path3.length; - return path3.slice(start, end); - } else { - for (i = path3.length - 1; i >= 0; --i) { - if (isPosixPathSeparator(path3.charCodeAt(i))) { - if (!matchedSlash) { - start = i + 1; - break; - } - } else if (end === -1) { - matchedSlash = false; - end = i + 1; + baseObj[prop] = value; + return true; + }, + deleteProperty(_target, prop) { + let success = false; + if (prop in extObj) { + delete extObj[prop]; + success = true; } - } - if (end === -1) - return ""; - return path3.slice(start, end); - } -} -function extname2(path3) { - assertPath(path3); - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let preDotState = 0; - for (let i = path3.length - 1; i >= 0; --i) { - const code2 = path3.charCodeAt(i); - if (code2 === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - startPart = i + 1; - break; + if (prop in baseObj) { + delete baseObj[prop]; + success = true; } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code2 === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - return ""; - } - return path3.slice(startDot, end); -} -function format2(pathObject) { - if (pathObject === null || typeof pathObject !== "object") { - throw new TypeError(`The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`); - } - return _format("/", pathObject); -} -function parse2(path3) { - assertPath(path3); - const ret = { root: "", dir: "", base: "", ext: "", name: "" }; - if (path3.length === 0) - return ret; - const isAbsolute4 = path3.charCodeAt(0) === CHAR_FORWARD_SLASH; - let start; - if (isAbsolute4) { - ret.root = "/"; - start = 1; - } else { - start = 0; - } - let startDot = -1; - let startPart = 0; - let end = -1; - let matchedSlash = true; - let i = path3.length - 1; - let preDotState = 0; - for (; i >= start; --i) { - const code2 = path3.charCodeAt(i); - if (code2 === CHAR_FORWARD_SLASH) { - if (!matchedSlash) { - startPart = i + 1; - break; + return success; + }, + ownKeys(_target) { + const baseKeys = Reflect.ownKeys(baseObj); + const extKeys = Reflect.ownKeys(extObj); + const extKeysSet = new Set(extKeys); + return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys]; + }, + defineProperty(_target, prop, desc) { + if (prop in extObj) { + delete extObj[prop]; } - continue; - } - if (end === -1) { - matchedSlash = false; - end = i + 1; - } - if (code2 === CHAR_DOT) { - if (startDot === -1) - startDot = i; - else if (preDotState !== 1) - preDotState = 1; - } else if (startDot !== -1) { - preDotState = -1; - } - } - if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot - preDotState === 0 || // The (right-most) trimmed path component is exactly '..' - preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) { - if (end !== -1) { - if (startPart === 0 && isAbsolute4) { - ret.base = ret.name = path3.slice(1, end); + Reflect.defineProperty(baseObj, prop, desc); + return true; + }, + getOwnPropertyDescriptor(_target, prop) { + if (prop in extObj) { + return Reflect.getOwnPropertyDescriptor(extObj, prop); } else { - ret.base = ret.name = path3.slice(startPart, end); + return Reflect.getOwnPropertyDescriptor(baseObj, prop); } + }, + has(_target, prop) { + return prop in extObj || prop in baseObj; } - } else { - if (startPart === 0 && isAbsolute4) { - ret.name = path3.slice(1, startDot); - ret.base = path3.slice(1, end); - } else { - ret.name = path3.slice(startPart, startDot); - ret.base = path3.slice(startPart, end); - } - ret.ext = path3.slice(startDot, end); - } - if (startPart > 0) - ret.dir = path3.slice(0, startPart - 1); - else if (isAbsolute4) - ret.dir = "/"; - return ret; -} -function fromFileUrl2(url) { - url = url instanceof URL ? url : new URL(url); - if (url.protocol != "file:") { - throw new TypeError("Must be a file URL."); - } - return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25")); -} -function toFileUrl2(path3) { - if (!isAbsolute2(path3)) { - throw new TypeError("Must be an absolute path."); - } - const url = new URL("file:///"); - url.pathname = encodeWhitespace(path3.replace(/%/g, "%25").replace(/\\/g, "%5C")); - return url; + }); } -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/glob.js -var path = isWindows ? win32_exports : posix_exports; -var { join: join3, normalize: normalize3 } = path; +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_common/glob_to_reg_exp.js var regExpEscapeChars = [ "!", "$", @@ -6663,18 +5576,17 @@ var regExpEscapeChars = [ "|" ]; var rangeEscapeChars = ["-", "\\", "]"]; -function globToRegExp(glob, { extended = true, globstar: globstarOption = true, os = osType, caseInsensitive = false } = {}) { - if (glob == "") { +function _globToRegExp(c, glob, { + extended = true, + globstar: globstarOption = true, + // os = osType, + caseInsensitive = false +} = {}) { + if (glob === "") { return /(?!)/; } - const sep4 = os == "windows" ? "(?:\\\\|/)+" : "/+"; - const sepMaybe = os == "windows" ? "(?:\\\\|/)*" : "/*"; - const seps = os == "windows" ? ["\\", "/"] : ["/"]; - const globstar = os == "windows" ? "(?:[^\\\\/]*(?:\\\\|/|$)+)*" : "(?:[^/]*(?:/|$)+)*"; - const wildcard = os == "windows" ? "[^\\\\/]*" : "[^/]*"; - const escapePrefix = os == "windows" ? "`" : "\\"; let newLength = glob.length; - for (; newLength > 1 && seps.includes(glob[newLength - 1]); newLength--) + for (; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--) ; glob = glob.slice(0, newLength); let regExpString = ""; @@ -6685,111 +5597,111 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, let inEscape = false; let endsWithSep = false; let i = j; - for (; i < glob.length && !seps.includes(glob[i]); i++) { + for (; i < glob.length && !c.seps.includes(glob[i]); i++) { if (inEscape) { inEscape = false; const escapeChars = inRange ? rangeEscapeChars : regExpEscapeChars; segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i]; continue; } - if (glob[i] == escapePrefix) { + if (glob[i] === c.escapePrefix) { inEscape = true; continue; } - if (glob[i] == "[") { + if (glob[i] === "[") { if (!inRange) { inRange = true; segment += "["; - if (glob[i + 1] == "!") { + if (glob[i + 1] === "!") { i++; segment += "^"; - } else if (glob[i + 1] == "^") { + } else if (glob[i + 1] === "^") { i++; segment += "\\^"; } continue; - } else if (glob[i + 1] == ":") { + } else if (glob[i + 1] === ":") { let k = i + 1; let value = ""; - while (glob[k + 1] != null && glob[k + 1] != ":") { + while (glob[k + 1] !== void 0 && glob[k + 1] !== ":") { value += glob[k + 1]; k++; } - if (glob[k + 1] == ":" && glob[k + 2] == "]") { + if (glob[k + 1] === ":" && glob[k + 2] === "]") { i = k + 2; - if (value == "alnum") + if (value === "alnum") segment += "\\dA-Za-z"; - else if (value == "alpha") + else if (value === "alpha") segment += "A-Za-z"; - else if (value == "ascii") + else if (value === "ascii") segment += "\0-\x7F"; - else if (value == "blank") + else if (value === "blank") segment += " "; - else if (value == "cntrl") + else if (value === "cntrl") segment += "\0-\x7F"; - else if (value == "digit") + else if (value === "digit") segment += "\\d"; - else if (value == "graph") + else if (value === "graph") segment += "!-~"; - else if (value == "lower") + else if (value === "lower") segment += "a-z"; - else if (value == "print") + else if (value === "print") segment += " -~"; - else if (value == "punct") { + else if (value === "punct") { segment += `!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_\u2018{|}~`; - } else if (value == "space") + } else if (value === "space") segment += "\\s\v"; - else if (value == "upper") + else if (value === "upper") segment += "A-Z"; - else if (value == "word") + else if (value === "word") segment += "\\w"; - else if (value == "xdigit") + else if (value === "xdigit") segment += "\\dA-Fa-f"; continue; } } } - if (glob[i] == "]" && inRange) { + if (glob[i] === "]" && inRange) { inRange = false; segment += "]"; continue; } if (inRange) { - if (glob[i] == "\\") { + if (glob[i] === "\\") { segment += `\\\\`; } else { segment += glob[i]; } continue; } - if (glob[i] == ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] != "BRACE") { + if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { segment += ")"; const type = groupStack.pop(); - if (type == "!") { - segment += wildcard; - } else if (type != "@") { + if (type === "!") { + segment += c.wildcard; + } else if (type !== "@") { segment += type; } continue; } - if (glob[i] == "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] != "BRACE") { + if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") { segment += "|"; continue; } - if (glob[i] == "+" && extended && glob[i + 1] == "(") { + if (glob[i] === "+" && extended && glob[i + 1] === "(") { i++; groupStack.push("+"); segment += "(?:"; continue; } - if (glob[i] == "@" && extended && glob[i + 1] == "(") { + if (glob[i] === "@" && extended && glob[i + 1] === "(") { i++; groupStack.push("@"); segment += "(?:"; continue; } - if (glob[i] == "?") { - if (extended && glob[i + 1] == "(") { + if (glob[i] === "?") { + if (extended && glob[i + 1] === "(") { i++; groupStack.push("?"); segment += "(?:"; @@ -6798,44 +5710,44 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, } continue; } - if (glob[i] == "!" && extended && glob[i + 1] == "(") { + if (glob[i] === "!" && extended && glob[i + 1] === "(") { i++; groupStack.push("!"); segment += "(?!"; continue; } - if (glob[i] == "{") { + if (glob[i] === "{") { groupStack.push("BRACE"); segment += "(?:"; continue; } - if (glob[i] == "}" && groupStack[groupStack.length - 1] == "BRACE") { + if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") { groupStack.pop(); segment += ")"; continue; } - if (glob[i] == "," && groupStack[groupStack.length - 1] == "BRACE") { + if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") { segment += "|"; continue; } - if (glob[i] == "*") { - if (extended && glob[i + 1] == "(") { + if (glob[i] === "*") { + if (extended && glob[i + 1] === "(") { i++; groupStack.push("*"); segment += "(?:"; } else { const prevChar = glob[i - 1]; let numStars = 1; - while (glob[i + 1] == "*") { + while (glob[i + 1] === "*") { i++; numStars++; } const nextChar = glob[i + 1]; - if (globstarOption && numStars == 2 && [...seps, void 0].includes(prevChar) && [...seps, void 0].includes(nextChar)) { - segment += globstar; + if (globstarOption && numStars === 2 && [...c.seps, void 0].includes(prevChar) && [...c.seps, void 0].includes(nextChar)) { + segment += c.globstar; endsWithSep = true; } else { - segment += wildcard; + segment += c.wildcard; } } continue; @@ -6844,17 +5756,17 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, } if (groupStack.length > 0 || inRange || inEscape) { segment = ""; - for (const c of glob.slice(j, i)) { - segment += regExpEscapeChars.includes(c) ? `\\${c}` : c; + for (const c2 of glob.slice(j, i)) { + segment += regExpEscapeChars.includes(c2) ? `\\${c2}` : c2; endsWithSep = false; } } regExpString += segment; if (!endsWithSep) { - regExpString += i < glob.length ? sep4 : sepMaybe; + regExpString += i < glob.length ? c.sep : c.sepMaybe; endsWithSep = true; } - while (seps.includes(glob[i])) + while (c.seps.includes(glob[i])) i++; if (!(i > j)) { throw new Error("Assertion failure: i > j (potential infinite loop)"); @@ -6865,9 +5777,81 @@ function globToRegExp(glob, { extended = true, globstar: globstarOption = true, return new RegExp(regExpString, caseInsensitive ? "i" : ""); } -// dist/dnt/esm/deps/deno.land/std@0.171.0/path/mod.js -var path2 = isWindows ? win32_exports : posix_exports; -var { basename: basename3, delimiter: delimiter3, dirname: dirname3, extname: extname3, format: format3, fromFileUrl: fromFileUrl3, isAbsolute: isAbsolute3, join: join4, normalize: normalize4, parse: parse3, relative: relative3, resolve: resolve3, sep: sep3, toFileUrl: toFileUrl3, toNamespacedPath: toNamespacedPath3 } = path2; +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/windows/glob_to_regexp.js +var constants = { + sep: "(?:\\\\|/)+", + sepMaybe: "(?:\\\\|/)*", + seps: ["\\", "/"], + globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*", + wildcard: "[^\\\\/]*", + escapePrefix: "`" +}; +function globToRegExp(glob, options = {}) { + return _globToRegExp(constants, glob, options); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/posix/_util.js +function isPosixPathSeparator2(code2) { + return code2 === CHAR_FORWARD_SLASH; +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/posix/dirname.js +function dirname2(path) { + assertArg(path); + let end = -1; + let matchedNonSeparator = false; + for (let i = path.length - 1; i >= 1; --i) { + if (isPosixPathSeparator2(path.charCodeAt(i))) { + if (matchedNonSeparator) { + end = i; + break; + } + } else { + matchedNonSeparator = true; + } + } + if (end === -1) { + return isPosixPathSeparator2(path.charCodeAt(0)) ? "/" : "."; + } + return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator2); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/posix/glob_to_regexp.js +var constants2 = { + sep: "/+", + sepMaybe: "/*", + seps: ["/"], + globstar: "(?:[^/]*(?:/|$)+)*", + wildcard: "[^/]*", + escapePrefix: "\\" +}; +function globToRegExp2(glob, options = {}) { + return _globToRegExp(constants2, glob, options); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/_os.js +var osType = (() => { + const { Deno: Deno4 } = dntGlobalThis; + if (typeof Deno4?.build?.os === "string") { + return Deno4.build.os; + } + const { navigator } = dntGlobalThis; + if (navigator?.appVersion?.includes?.("Win")) { + return "windows"; + } + return "linux"; +})(); +var isWindows = osType === "windows"; + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/dirname.js +function dirname3(path) { + return isWindows ? dirname(path) : dirname2(path); +} + +// dist/dnt/esm/deps/deno.land/std@0.213.0/path/glob_to_regexp.js +function globToRegExp3(glob, options = {}) { + return options.os === "windows" || !options.os && isWindows ? globToRegExp(glob, options) : globToRegExp2(glob, options); +} // dist/dnt/esm/git-wrapper/exec.js async function exec(args) { @@ -7108,7 +6092,7 @@ function encode(data) { var ESC = "\x1B"; var CSI = `${ESC}[`; var OSC = `${ESC}]`; -var SEP2 = ";"; +var SEP = ";"; var bel = "\x07"; var cursorPosition = `${CSI}6n`; function cursorTo(x, y) { @@ -7184,15 +6168,15 @@ function link(text, url) { return [ OSC, "8", - SEP2, - SEP2, + SEP, + SEP, url, bel, text, OSC, "8", - SEP2, - SEP2, + SEP, + SEP, bel ].join(""); } @@ -11885,7 +10869,7 @@ function toReqExpArray(glob) { if (!(glob instanceof Array)) { glob = [glob]; } - return glob.map((x) => x instanceof RegExp ? x : globToRegExp(x)); + return glob.map((x) => x instanceof RegExp ? x : globToRegExp3(x)); } // dist/dnt/esm/core/fetch_tags.js @@ -11941,7 +10925,7 @@ var GitHubRepository = class { } } }; -function parse4(repo) { +function parse3(repo) { if (isUrl(repo)) { return parseFromUrl(repo); } else { @@ -11988,7 +10972,7 @@ async function getOrigin() { // dist/dnt/esm/core/resolve_repo.js async function resolveRepo(repo) { if (typeof repo === "string") { - return parse4(repo); + return parse3(repo); } try { return await getOrigin();