diff --git a/dist/index.js b/dist/index.js index a238b5b..d2da6f8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -868,9 +868,9 @@ var require_graceful_fs = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/fs/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js var require_fs = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) { "use strict"; var u = require_universalify().fromCallback; var fs4 = require_graceful_fs(); @@ -912,12 +912,7 @@ var require_fs = __commonJS({ ].filter((key) => { return typeof fs4[key] === "function"; }); - Object.keys(fs4).forEach((key) => { - if (key === "promises") { - return; - } - exports[key] = fs4[key]; - }); + Object.assign(exports, fs4); api.forEach((method) => { exports[method] = u(fs4[method]); }); @@ -953,46 +948,48 @@ var require_fs = __commonJS({ }); }); }; - if (typeof fs4.writev === "function") { - exports.writev = function(fd, buffers, ...args) { - if (typeof args[args.length - 1] === "function") { - return fs4.writev(fd, buffers, ...args); - } - return new Promise((resolve, reject) => { - fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => { - if (err) - return reject(err); - resolve({ bytesWritten, buffers: buffers2 }); - }); + exports.readv = function(fd, buffers, ...args) { + if (typeof args[args.length - 1] === "function") { + return fs4.readv(fd, buffers, ...args); + } + return new Promise((resolve, reject) => { + fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => { + if (err) + return reject(err); + resolve({ bytesRead, buffers: buffers2 }); }); - }; - } + }); + }; + exports.writev = function(fd, buffers, ...args) { + if (typeof args[args.length - 1] === "function") { + return fs4.writev(fd, buffers, ...args); + } + return new Promise((resolve, reject) => { + fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => { + if (err) + return reject(err); + resolve({ bytesWritten, buffers: buffers2 }); + }); + }); + }; if (typeof fs4.realpath.native === "function") { exports.realpath.native = u(fs4.realpath.native); + } else { + process.emitWarning( + "fs.realpath.native is not a function. Is fs being monkey-patched?", + "Warning", + "fs-extra-WARN0003" + ); } } }); -// node_modules/.pnpm/at-least-node@1.0.0/node_modules/at-least-node/index.js -var require_at_least_node = __commonJS({ - "node_modules/.pnpm/at-least-node@1.0.0/node_modules/at-least-node/index.js"(exports, module2) { - module2.exports = (r) => { - const n = process.versions.node.split(".").map((x) => parseInt(x, 10)); - r = r.split(".").map((x) => parseInt(x, 10)); - return n[0] > r[0] || n[0] === r[0] && (n[1] > r[1] || n[1] === r[1] && n[2] >= r[2]); - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js -var require_make_dir = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/utils.js +var require_utils = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) { "use strict"; - var fs4 = require_fs(); var path4 = require("path"); - var atLeastNode = require_at_least_node(); - var useNativeRecursiveOption = atLeastNode("10.12.0"); - var checkPath = (pth) => { + module2.exports.checkPath = function checkPath(pth) { if (process.platform === "win32") { const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, "")); if (pathHasInvalidWinCharacters) { @@ -1002,103 +999,41 @@ var require_make_dir = __commonJS({ } } }; - var processOptions = (options) => { + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js +var require_make_dir = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) { + "use strict"; + var fs4 = require_fs(); + var { checkPath } = require_utils(); + var getMode = (options) => { const defaults = { mode: 511 }; if (typeof options === "number") - options = { mode: options }; - return { ...defaults, ...options }; - }; - var permissionError = (pth) => { - const error = new Error(`operation not permitted, mkdir '${pth}'`); - error.code = "EPERM"; - error.errno = -4048; - error.path = pth; - error.syscall = "mkdir"; - return error; - }; - module2.exports.makeDir = async (input, options) => { - checkPath(input); - options = processOptions(options); - if (useNativeRecursiveOption) { - const pth = path4.resolve(input); - return fs4.mkdir(pth, { - mode: options.mode, - recursive: true - }); - } - const make = async (pth) => { - try { - await fs4.mkdir(pth, options.mode); - } catch (error) { - if (error.code === "EPERM") { - throw error; - } - if (error.code === "ENOENT") { - if (path4.dirname(pth) === pth) { - throw permissionError(pth); - } - if (error.message.includes("null bytes")) { - throw error; - } - await make(path4.dirname(pth)); - return make(pth); - } - try { - const stats = await fs4.stat(pth); - if (!stats.isDirectory()) { - throw new Error("The path is not a directory"); - } - } catch { - throw error; - } - } - }; - return make(path4.resolve(input)); - }; - module2.exports.makeDirSync = (input, options) => { - checkPath(input); - options = processOptions(options); - if (useNativeRecursiveOption) { - const pth = path4.resolve(input); - return fs4.mkdirSync(pth, { - mode: options.mode, - recursive: true - }); - } - const make = (pth) => { - try { - fs4.mkdirSync(pth, options.mode); - } catch (error) { - if (error.code === "EPERM") { - throw error; - } - if (error.code === "ENOENT") { - if (path4.dirname(pth) === pth) { - throw permissionError(pth); - } - if (error.message.includes("null bytes")) { - throw error; - } - make(path4.dirname(pth)); - return make(pth); - } - try { - if (!fs4.statSync(pth).isDirectory()) { - throw new Error("The path is not a directory"); - } - } catch { - throw error; - } - } - }; - return make(path4.resolve(input)); + return options; + return { ...defaults, ...options }.mode; + }; + module2.exports.makeDir = async (dir, options) => { + checkPath(dir); + return fs4.mkdir(dir, { + mode: getMode(options), + recursive: true + }); + }; + module2.exports.makeDirSync = (dir, options) => { + checkPath(dir); + return fs4.mkdirSync(dir, { + mode: getMode(options), + recursive: true + }); }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/index.js var require_mkdirs = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) { "use strict"; var u = require_universalify().fromPromise; var { makeDir: _makeDir, makeDirSync } = require_make_dir(); @@ -1114,9 +1049,25 @@ var require_mkdirs = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/utimes.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/path-exists/index.js +var require_path_exists = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) { + "use strict"; + var u = require_universalify().fromPromise; + var fs4 = require_fs(); + function pathExists(path4) { + return fs4.access(path4).then(() => true).catch(() => false); + } + module2.exports = { + pathExists: u(pathExists), + pathExistsSync: fs4.existsSync + }; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js var require_utimes = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) { "use strict"; var fs4 = require_graceful_fs(); function utimesMillis(path4, atime, mtime, callback) { @@ -1143,32 +1094,30 @@ var require_utimes = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/stat.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/stat.js var require_stat = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) { "use strict"; var fs4 = require_fs(); var path4 = require("path"); var util = require("util"); - var atLeastNode = require_at_least_node(); - var nodeSupportsBigInt = atLeastNode("10.5.0"); - var stat = (file) => nodeSupportsBigInt ? fs4.stat(file, { bigint: true }) : fs4.stat(file); - var statSync = (file) => nodeSupportsBigInt ? fs4.statSync(file, { bigint: true }) : fs4.statSync(file); - function getStats(src, dest) { + function getStats(src, dest, opts) { + const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true }); return Promise.all([ - stat(src), - stat(dest).catch((err) => { + statFunc(src), + statFunc(dest).catch((err) => { if (err.code === "ENOENT") return null; throw err; }) ]).then(([srcStat, destStat]) => ({ srcStat, destStat })); } - function getStatsSync(src, dest) { + function getStatsSync(src, dest, opts) { let destStat; - const srcStat = statSync(src); + const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true }); + const srcStat = statFunc(src); try { - destStat = statSync(dest); + destStat = statFunc(dest); } catch (err) { if (err.code === "ENOENT") return { srcStat, destStat: null }; @@ -1176,13 +1125,26 @@ var require_stat = __commonJS({ } return { srcStat, destStat }; } - function checkPaths(src, dest, funcName, cb) { - util.callbackify(getStats)(src, dest, (err, stats) => { + function checkPaths(src, dest, funcName, opts, cb) { + util.callbackify(getStats)(src, dest, opts, (err, stats) => { if (err) return cb(err); const { srcStat, destStat } = stats; - if (destStat && areIdentical(srcStat, destStat)) { - return cb(new Error("Source and destination must not be the same.")); + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path4.basename(src); + const destBaseName = path4.basename(dest); + if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return cb(null, { srcStat, destStat, isChangingCase: true }); + } + return cb(new Error("Source and destination must not be the same.")); + } + if (srcStat.isDirectory() && !destStat.isDirectory()) { + return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)); + } + if (!srcStat.isDirectory() && destStat.isDirectory()) { + return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`)); + } } if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { return cb(new Error(errMsg(src, dest, funcName))); @@ -1190,10 +1152,23 @@ var require_stat = __commonJS({ return cb(null, { srcStat, destStat }); }); } - function checkPathsSync(src, dest, funcName) { - const { srcStat, destStat } = getStatsSync(src, dest); - if (destStat && areIdentical(srcStat, destStat)) { - throw new Error("Source and destination must not be the same."); + function checkPathsSync(src, dest, funcName, opts) { + const { srcStat, destStat } = getStatsSync(src, dest, opts); + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path4.basename(src); + const destBaseName = path4.basename(dest); + if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return { srcStat, destStat, isChangingCase: true }; + } + throw new Error("Source and destination must not be the same."); + } + if (srcStat.isDirectory() && !destStat.isDirectory()) { + throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`); + } + if (!srcStat.isDirectory() && destStat.isDirectory()) { + throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`); + } } if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { throw new Error(errMsg(src, dest, funcName)); @@ -1205,7 +1180,7 @@ var require_stat = __commonJS({ const destParent = path4.resolve(path4.dirname(dest)); if (destParent === srcParent || destParent === path4.parse(destParent).root) return cb(); - const callback = (err, destStat) => { + fs4.stat(destParent, { bigint: true }, (err, destStat) => { if (err) { if (err.code === "ENOENT") return cb(); @@ -1215,11 +1190,7 @@ var require_stat = __commonJS({ return cb(new Error(errMsg(src, dest, funcName))); } return checkParentPaths(src, srcStat, destParent, funcName, cb); - }; - if (nodeSupportsBigInt) - fs4.stat(destParent, { bigint: true }, callback); - else - fs4.stat(destParent, callback); + }); } function checkParentPathsSync(src, srcStat, dest, funcName) { const srcParent = path4.resolve(path4.dirname(src)); @@ -1228,7 +1199,7 @@ var require_stat = __commonJS({ return; let destStat; try { - destStat = statSync(destParent); + destStat = fs4.statSync(destParent, { bigint: true }); } catch (err) { if (err.code === "ENOENT") return; @@ -1240,15 +1211,7 @@ var require_stat = __commonJS({ return checkParentPathsSync(src, srcStat, destParent, funcName); } function areIdentical(srcStat, destStat) { - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - if (nodeSupportsBigInt || destStat.ino < Number.MAX_SAFE_INTEGER) { - return true; - } - if (destStat.size === srcStat.size && destStat.mode === srcStat.mode && destStat.nlink === srcStat.nlink && destStat.atimeMs === srcStat.atimeMs && destStat.mtimeMs === srcStat.mtimeMs && destStat.ctimeMs === srcStat.ctimeMs && destStat.birthtimeMs === srcStat.birthtimeMs) { - return true; - } - } - return false; + return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev; } function isSrcSubdir(src, dest) { const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i); @@ -1263,183 +1226,15 @@ var require_stat = __commonJS({ checkPathsSync, checkParentPaths, checkParentPathsSync, - isSrcSubdir - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js -var require_copy_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path4 = require("path"); - var mkdirsSync = require_mkdirs().mkdirsSync; - var utimesMillisSync = require_utimes().utimesMillisSync; - var stat = require_stat(); - function copySync(src, dest, opts) { - if (typeof opts === "function") { - opts = { filter: opts }; - } - opts = opts || {}; - opts.clobber = "clobber" in opts ? !!opts.clobber : true; - opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; - if (opts.preserveTimestamps && process.arch === "ia32") { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`); - } - const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy"); - stat.checkParentPathsSync(src, srcStat, dest, "copy"); - return handleFilterAndCopy(destStat, src, dest, opts); - } - function handleFilterAndCopy(destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) - return; - const destParent = path4.dirname(dest); - if (!fs4.existsSync(destParent)) - mkdirsSync(destParent); - return startCopy(destStat, src, dest, opts); - } - function startCopy(destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) - return; - return getStats(destStat, src, dest, opts); - } - function getStats(destStat, src, dest, opts) { - const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync; - const srcStat = statSync(src); - if (srcStat.isDirectory()) - return onDir(srcStat, destStat, src, dest, opts); - else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) - return onFile(srcStat, destStat, src, dest, opts); - else if (srcStat.isSymbolicLink()) - return onLink(destStat, src, dest, opts); - } - function onFile(srcStat, destStat, src, dest, opts) { - if (!destStat) - return copyFile(srcStat, src, dest, opts); - return mayCopyFile(srcStat, src, dest, opts); - } - function mayCopyFile(srcStat, src, dest, opts) { - if (opts.overwrite) { - fs4.unlinkSync(dest); - return copyFile(srcStat, src, dest, opts); - } else if (opts.errorOnExist) { - throw new Error(`'${dest}' already exists`); - } - } - function copyFile(srcStat, src, dest, opts) { - fs4.copyFileSync(src, dest); - if (opts.preserveTimestamps) - handleTimestamps(srcStat.mode, src, dest); - return setDestMode(dest, srcStat.mode); - } - function handleTimestamps(srcMode, src, dest) { - if (fileIsNotWritable(srcMode)) - makeFileWritable(dest, srcMode); - return setDestTimestamps(src, dest); - } - function fileIsNotWritable(srcMode) { - return (srcMode & 128) === 0; - } - function makeFileWritable(dest, srcMode) { - return setDestMode(dest, srcMode | 128); - } - function setDestMode(dest, srcMode) { - return fs4.chmodSync(dest, srcMode); - } - function setDestTimestamps(src, dest) { - const updatedSrcStat = fs4.statSync(src); - return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime); - } - function onDir(srcStat, destStat, src, dest, opts) { - if (!destStat) - return mkDirAndCopy(srcStat.mode, src, dest, opts); - if (destStat && !destStat.isDirectory()) { - throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`); - } - return copyDir(src, dest, opts); - } - function mkDirAndCopy(srcMode, src, dest, opts) { - fs4.mkdirSync(dest); - copyDir(src, dest, opts); - return setDestMode(dest, srcMode); - } - function copyDir(src, dest, opts) { - fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts)); - } - function copyDirItem(item, src, dest, opts) { - const srcItem = path4.join(src, item); - const destItem = path4.join(dest, item); - const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy"); - return startCopy(destStat, srcItem, destItem, opts); - } - function onLink(destStat, src, dest, opts) { - let resolvedSrc = fs4.readlinkSync(src); - if (opts.dereference) { - resolvedSrc = path4.resolve(process.cwd(), resolvedSrc); - } - if (!destStat) { - return fs4.symlinkSync(resolvedSrc, dest); - } else { - let resolvedDest; - try { - resolvedDest = fs4.readlinkSync(dest); - } catch (err) { - if (err.code === "EINVAL" || err.code === "UNKNOWN") - return fs4.symlinkSync(resolvedSrc, dest); - throw err; - } - if (opts.dereference) { - resolvedDest = path4.resolve(process.cwd(), resolvedDest); - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`); - } - if (fs4.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`); - } - return copyLink(resolvedSrc, dest); - } - } - function copyLink(resolvedSrc, dest) { - fs4.unlinkSync(dest); - return fs4.symlinkSync(resolvedSrc, dest); - } - module2.exports = copySync; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/index.js -var require_copy_sync2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/index.js"(exports, module2) { - "use strict"; - module2.exports = { - copySync: require_copy_sync() + isSrcSubdir, + areIdentical }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/path-exists/index.js -var require_path_exists = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromPromise; - var fs4 = require_fs(); - function pathExists(path4) { - return fs4.access(path4).then(() => true).catch(() => false); - } - module2.exports = { - pathExists: u(pathExists), - pathExistsSync: fs4.existsSync - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/copy.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js var require_copy = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) { "use strict"; var fs4 = require_graceful_fs(); var path4 = require("path"); @@ -1460,20 +1255,26 @@ var require_copy = __commonJS({ opts.clobber = "clobber" in opts ? !!opts.clobber : true; opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; if (opts.preserveTimestamps && process.arch === "ia32") { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`); + process.emitWarning( + "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", + "Warning", + "fs-extra-WARN0001" + ); } - stat.checkPaths(src, dest, "copy", (err, stats) => { + stat.checkPaths(src, dest, "copy", opts, (err, stats) => { if (err) return cb(err); const { srcStat, destStat } = stats; stat.checkParentPaths(src, srcStat, dest, "copy", (err2) => { if (err2) return cb(err2); - if (opts.filter) - return handleFilter(checkParentDir, destStat, src, dest, opts, cb); - return checkParentDir(destStat, src, dest, opts, cb); + runFilter(src, dest, opts, (err3, include) => { + if (err3) + return cb(err3); + if (!include) + return cb(); + checkParentDir(destStat, src, dest, opts, cb); + }); }); }); } @@ -1483,25 +1284,18 @@ var require_copy = __commonJS({ if (err) return cb(err); if (dirExists) - return startCopy(destStat, src, dest, opts, cb); + return getStats(destStat, src, dest, opts, cb); mkdirs(destParent, (err2) => { if (err2) return cb(err2); - return startCopy(destStat, src, dest, opts, cb); + return getStats(destStat, src, dest, opts, cb); }); }); } - function handleFilter(onInclude, destStat, src, dest, opts, cb) { - Promise.resolve(opts.filter(src, dest)).then((include) => { - if (include) - return onInclude(destStat, src, dest, opts, cb); - return cb(); - }, (error) => cb(error)); - } - function startCopy(destStat, src, dest, opts, cb) { - if (opts.filter) - return handleFilter(getStats, destStat, src, dest, opts, cb); - return getStats(destStat, src, dest, opts, cb); + function runFilter(src, dest, opts, cb) { + if (!opts.filter) + return cb(null, true); + Promise.resolve(opts.filter(src, dest)).then((include) => cb(null, include), (error) => cb(error)); } function getStats(destStat, src, dest, opts, cb) { const stat2 = opts.dereference ? fs4.stat : fs4.lstat; @@ -1514,6 +1308,11 @@ var require_copy = __commonJS({ return onFile(srcStat, destStat, src, dest, opts, cb); else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb); + else if (srcStat.isSocket()) + return cb(new Error(`Cannot copy a socket file: ${src}`)); + else if (srcStat.isFIFO()) + return cb(new Error(`Cannot copy a FIFO pipe: ${src}`)); + return cb(new Error(`Unknown file: ${src}`)); }); } function onFile(srcStat, destStat, src, dest, opts, cb) { @@ -1578,9 +1377,6 @@ var require_copy = __commonJS({ function onDir(srcStat, destStat, src, dest, opts, cb) { if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb); - if (destStat && !destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)); - } return copyDir(src, dest, opts, cb); } function mkDirAndCopy(srcMode, src, dest, opts, cb) { @@ -1610,14 +1406,20 @@ var require_copy = __commonJS({ function copyDirItem(items, item, src, dest, opts, cb) { const srcItem = path4.join(src, item); const destItem = path4.join(dest, item); - stat.checkPaths(srcItem, destItem, "copy", (err, stats) => { + runFilter(srcItem, destItem, opts, (err, include) => { if (err) return cb(err); - const { destStat } = stats; - startCopy(destStat, srcItem, destItem, opts, (err2) => { + if (!include) + return copyDirItems(items, src, dest, opts, cb); + stat.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => { if (err2) return cb(err2); - return copyDirItems(items, src, dest, opts, cb); + const { destStat } = stats; + getStats(destStat, srcItem, destItem, opts, (err3) => { + if (err3) + return cb(err3); + return copyDirItems(items, src, dest, opts, cb); + }); }); }); } @@ -1643,7 +1445,7 @@ var require_copy = __commonJS({ if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)); } - if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)); } return copyLink(resolvedSrc, dest, cb); @@ -1662,297 +1464,195 @@ var require_copy = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/index.js -var require_copy2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - module2.exports = { - copy: u(require_copy()) - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/rimraf.js -var require_rimraf = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js +var require_copy_sync = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) { "use strict"; var fs4 = require_graceful_fs(); var path4 = require("path"); - var assert = require("assert"); - var isWindows = process.platform === "win32"; - function defaults(options) { - const methods = [ - "unlink", - "chmod", - "stat", - "lstat", - "rmdir", - "readdir" - ]; - methods.forEach((m) => { - options[m] = options[m] || fs4[m]; - m = m + "Sync"; - options[m] = options[m] || fs4[m]; - }); - options.maxBusyTries = options.maxBusyTries || 3; - } - function rimraf(p, options, cb) { - let busyTries = 0; - if (typeof options === "function") { - cb = options; - options = {}; - } - assert(p, "rimraf: missing path"); - assert.strictEqual(typeof p, "string", "rimraf: path should be a string"); - assert.strictEqual(typeof cb, "function", "rimraf: callback function required"); - assert(options, "rimraf: invalid options argument provided"); - assert.strictEqual(typeof options, "object", "rimraf: options should be object"); - defaults(options); - rimraf_(p, options, function CB(er) { - if (er) { - if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) { - busyTries++; - const time = busyTries * 100; - return setTimeout(() => rimraf_(p, options, CB), time); - } - if (er.code === "ENOENT") - er = null; - } - cb(er); - }); + var mkdirsSync = require_mkdirs().mkdirsSync; + var utimesMillisSync = require_utimes().utimesMillisSync; + var stat = require_stat(); + function copySync(src, dest, opts) { + if (typeof opts === "function") { + opts = { filter: opts }; + } + opts = opts || {}; + opts.clobber = "clobber" in opts ? !!opts.clobber : true; + opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; + if (opts.preserveTimestamps && process.arch === "ia32") { + process.emitWarning( + "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", + "Warning", + "fs-extra-WARN0002" + ); + } + const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts); + stat.checkParentPathsSync(src, srcStat, dest, "copy"); + if (opts.filter && !opts.filter(src, dest)) + return; + const destParent = path4.dirname(dest); + if (!fs4.existsSync(destParent)) + mkdirsSync(destParent); + return getStats(destStat, src, dest, opts); + } + function getStats(destStat, src, dest, opts) { + const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync; + const srcStat = statSync(src); + if (srcStat.isDirectory()) + return onDir(srcStat, destStat, src, dest, opts); + else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) + return onFile(srcStat, destStat, src, dest, opts); + else if (srcStat.isSymbolicLink()) + return onLink(destStat, src, dest, opts); + else if (srcStat.isSocket()) + throw new Error(`Cannot copy a socket file: ${src}`); + else if (srcStat.isFIFO()) + throw new Error(`Cannot copy a FIFO pipe: ${src}`); + throw new Error(`Unknown file: ${src}`); + } + function onFile(srcStat, destStat, src, dest, opts) { + if (!destStat) + return copyFile(srcStat, src, dest, opts); + return mayCopyFile(srcStat, src, dest, opts); + } + function mayCopyFile(srcStat, src, dest, opts) { + if (opts.overwrite) { + fs4.unlinkSync(dest); + return copyFile(srcStat, src, dest, opts); + } else if (opts.errorOnExist) { + throw new Error(`'${dest}' already exists`); + } + } + function copyFile(srcStat, src, dest, opts) { + fs4.copyFileSync(src, dest); + if (opts.preserveTimestamps) + handleTimestamps(srcStat.mode, src, dest); + return setDestMode(dest, srcStat.mode); + } + function handleTimestamps(srcMode, src, dest) { + if (fileIsNotWritable(srcMode)) + makeFileWritable(dest, srcMode); + return setDestTimestamps(src, dest); + } + function fileIsNotWritable(srcMode) { + return (srcMode & 128) === 0; + } + function makeFileWritable(dest, srcMode) { + return setDestMode(dest, srcMode | 128); + } + function setDestMode(dest, srcMode) { + return fs4.chmodSync(dest, srcMode); + } + function setDestTimestamps(src, dest) { + const updatedSrcStat = fs4.statSync(src); + return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime); } - function rimraf_(p, options, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.lstat(p, (er, st) => { - if (er && er.code === "ENOENT") { - return cb(null); - } - if (er && er.code === "EPERM" && isWindows) { - return fixWinEPERM(p, options, er, cb); - } - if (st && st.isDirectory()) { - return rmdir(p, options, er, cb); - } - options.unlink(p, (er2) => { - if (er2) { - if (er2.code === "ENOENT") { - return cb(null); - } - if (er2.code === "EPERM") { - return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb); - } - if (er2.code === "EISDIR") { - return rmdir(p, options, er2, cb); - } - } - return cb(er2); - }); - }); + function onDir(srcStat, destStat, src, dest, opts) { + if (!destStat) + return mkDirAndCopy(srcStat.mode, src, dest, opts); + return copyDir(src, dest, opts); } - function fixWinEPERM(p, options, er, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.chmod(p, 438, (er2) => { - if (er2) { - cb(er2.code === "ENOENT" ? null : er); - } else { - options.stat(p, (er3, stats) => { - if (er3) { - cb(er3.code === "ENOENT" ? null : er); - } else if (stats.isDirectory()) { - rmdir(p, options, er, cb); - } else { - options.unlink(p, cb); - } - }); - } - }); + function mkDirAndCopy(srcMode, src, dest, opts) { + fs4.mkdirSync(dest); + copyDir(src, dest, opts); + return setDestMode(dest, srcMode); } - function fixWinEPERMSync(p, options, er) { - let stats; - assert(p); - assert(options); - try { - options.chmodSync(p, 438); - } catch (er2) { - if (er2.code === "ENOENT") { - return; - } else { - throw er; - } - } - try { - stats = options.statSync(p); - } catch (er3) { - if (er3.code === "ENOENT") { - return; - } else { - throw er; - } - } - if (stats.isDirectory()) { - rmdirSync(p, options, er); - } else { - options.unlinkSync(p); - } - } - function rmdir(p, options, originalEr, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.rmdir(p, (er) => { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) { - rmkids(p, options, cb); - } else if (er && er.code === "ENOTDIR") { - cb(originalEr); - } else { - cb(er); - } - }); + function copyDir(src, dest, opts) { + fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts)); } - function rmkids(p, options, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.readdir(p, (er, files) => { - if (er) - return cb(er); - let n = files.length; - let errState; - if (n === 0) - return options.rmdir(p, cb); - files.forEach((f) => { - rimraf(path4.join(p, f), options, (er2) => { - if (errState) { - return; - } - if (er2) - return cb(errState = er2); - if (--n === 0) { - options.rmdir(p, cb); - } - }); - }); - }); + function copyDirItem(item, src, dest, opts) { + const srcItem = path4.join(src, item); + const destItem = path4.join(dest, item); + if (opts.filter && !opts.filter(srcItem, destItem)) + return; + const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts); + return getStats(destStat, srcItem, destItem, opts); } - function rimrafSync(p, options) { - let st; - options = options || {}; - defaults(options); - assert(p, "rimraf: missing path"); - assert.strictEqual(typeof p, "string", "rimraf: path should be a string"); - assert(options, "rimraf: missing options"); - assert.strictEqual(typeof options, "object", "rimraf: options should be object"); - try { - st = options.lstatSync(p); - } catch (er) { - if (er.code === "ENOENT") { - return; + function onLink(destStat, src, dest, opts) { + let resolvedSrc = fs4.readlinkSync(src); + if (opts.dereference) { + resolvedSrc = path4.resolve(process.cwd(), resolvedSrc); + } + if (!destStat) { + return fs4.symlinkSync(resolvedSrc, dest); + } else { + let resolvedDest; + try { + resolvedDest = fs4.readlinkSync(dest); + } catch (err) { + if (err.code === "EINVAL" || err.code === "UNKNOWN") + return fs4.symlinkSync(resolvedSrc, dest); + throw err; } - if (er.code === "EPERM" && isWindows) { - fixWinEPERMSync(p, options, er); + if (opts.dereference) { + resolvedDest = path4.resolve(process.cwd(), resolvedDest); } - } - try { - if (st && st.isDirectory()) { - rmdirSync(p, options, null); - } else { - options.unlinkSync(p); + if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { + throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`); } - } catch (er) { - if (er.code === "ENOENT") { - return; - } else if (er.code === "EPERM") { - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er); - } else if (er.code !== "EISDIR") { - throw er; + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`); } - rmdirSync(p, options, er); + return copyLink(resolvedSrc, dest); } } - function rmdirSync(p, options, originalEr) { - assert(p); - assert(options); - try { - options.rmdirSync(p); - } catch (er) { - if (er.code === "ENOTDIR") { - throw originalEr; - } else if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") { - rmkidsSync(p, options); - } else if (er.code !== "ENOENT") { - throw er; - } - } - } - function rmkidsSync(p, options) { - assert(p); - assert(options); - options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options)); - if (isWindows) { - const startTime = Date.now(); - do { - try { - const ret = options.rmdirSync(p, options); - return ret; - } catch { - } - } while (Date.now() - startTime < 500); - } else { - const ret = options.rmdirSync(p, options); - return ret; - } + function copyLink(resolvedSrc, dest) { + fs4.unlinkSync(dest); + return fs4.symlinkSync(resolvedSrc, dest); } - module2.exports = rimraf; - rimraf.sync = rimrafSync; + module2.exports = copySync; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/index.js +var require_copy2 = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/index.js"(exports, module2) { + "use strict"; + var u = require_universalify().fromCallback; + module2.exports = { + copy: u(require_copy()), + copySync: require_copy_sync() + }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js var require_remove = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js"(exports, module2) { "use strict"; + var fs4 = require_graceful_fs(); var u = require_universalify().fromCallback; - var rimraf = require_rimraf(); + function remove(path4, callback) { + fs4.rm(path4, { recursive: true, force: true }, callback); + } + function removeSync(path4) { + fs4.rmSync(path4, { recursive: true, force: true }); + } module2.exports = { - remove: u(rimraf), - removeSync: rimraf.sync + remove: u(remove), + removeSync }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/empty/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/empty/index.js var require_empty = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/empty/index.js"(exports, module2) { "use strict"; - var u = require_universalify().fromCallback; - var fs4 = require_graceful_fs(); + var u = require_universalify().fromPromise; + var fs4 = require_fs(); var path4 = require("path"); var mkdir = require_mkdirs(); var remove = require_remove(); - var emptyDir = u(function emptyDir2(dir, callback) { - callback = callback || function() { - }; - fs4.readdir(dir, (err, items) => { - if (err) - return mkdir.mkdirs(dir, callback); - items = items.map((item) => path4.join(dir, item)); - deleteItem(); - function deleteItem() { - const item = items.pop(); - if (!item) - return callback(); - remove.remove(item, (err2) => { - if (err2) - return callback(err2); - deleteItem(); - }); - } - }); + var emptyDir = u(async function emptyDir2(dir) { + let items; + try { + items = await fs4.readdir(dir); + } catch { + return mkdir.mkdirs(dir); + } + return Promise.all(items.map((item) => remove.remove(path4.join(dir, item)))); }); function emptyDirSync(dir) { let items; @@ -1975,9 +1675,9 @@ var require_empty = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/file.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js var require_file = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) { "use strict"; var u = require_universalify().fromCallback; var path4 = require("path"); @@ -2045,15 +1745,16 @@ var require_file = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/link.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js var require_link = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) { "use strict"; var u = require_universalify().fromCallback; var path4 = require("path"); var fs4 = require_graceful_fs(); var mkdir = require_mkdirs(); var pathExists = require_path_exists().pathExists; + var { areIdentical } = require_stat(); function createLink(srcpath, dstpath, callback) { function makeLink(srcpath2, dstpath2) { fs4.link(srcpath2, dstpath2, (err) => { @@ -2062,25 +1763,23 @@ var require_link = __commonJS({ callback(null); }); } - pathExists(dstpath, (err, destinationExists) => { - if (err) - return callback(err); - if (destinationExists) - return callback(null); - fs4.lstat(srcpath, (err2) => { - if (err2) { - err2.message = err2.message.replace("lstat", "ensureLink"); - return callback(err2); + fs4.lstat(dstpath, (_, dstStat) => { + fs4.lstat(srcpath, (err, srcStat) => { + if (err) { + err.message = err.message.replace("lstat", "ensureLink"); + return callback(err); } + if (dstStat && areIdentical(srcStat, dstStat)) + return callback(null); const dir = path4.dirname(dstpath); - pathExists(dir, (err3, dirExists) => { - if (err3) - return callback(err3); + pathExists(dir, (err2, dirExists) => { + if (err2) + return callback(err2); if (dirExists) return makeLink(srcpath, dstpath); - mkdir.mkdirs(dir, (err4) => { - if (err4) - return callback(err4); + mkdir.mkdirs(dir, (err3) => { + if (err3) + return callback(err3); makeLink(srcpath, dstpath); }); }); @@ -2088,11 +1787,15 @@ var require_link = __commonJS({ }); } function createLinkSync(srcpath, dstpath) { - const destinationExists = fs4.existsSync(dstpath); - if (destinationExists) - return void 0; + let dstStat; try { - fs4.lstatSync(srcpath); + dstStat = fs4.lstatSync(dstpath); + } catch { + } + try { + const srcStat = fs4.lstatSync(srcpath); + if (dstStat && areIdentical(srcStat, dstStat)) + return; } catch (err) { err.message = err.message.replace("lstat", "ensureLink"); throw err; @@ -2111,9 +1814,9 @@ var require_link = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js var require_symlink_paths = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) { "use strict"; var path4 = require("path"); var fs4 = require_graceful_fs(); @@ -2193,9 +1896,9 @@ var require_symlink_paths = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js var require_symlink_type = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) { "use strict"; var fs4 = require_graceful_fs(); function symlinkType(srcpath, type, callback) { @@ -2228,13 +1931,13 @@ var require_symlink_type = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink.js var require_symlink = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) { "use strict"; var u = require_universalify().fromCallback; var path4 = require("path"); - var fs4 = require_graceful_fs(); + var fs4 = require_fs(); var _mkdirs = require_mkdirs(); var mkdirs = _mkdirs.mkdirs; var mkdirsSync = _mkdirs.mkdirsSync; @@ -2245,41 +1948,59 @@ var require_symlink = __commonJS({ var symlinkType = _symlinkType.symlinkType; var symlinkTypeSync = _symlinkType.symlinkTypeSync; var pathExists = require_path_exists().pathExists; + var { areIdentical } = require_stat(); function createSymlink(srcpath, dstpath, type, callback) { callback = typeof type === "function" ? type : callback; type = typeof type === "function" ? false : type; - pathExists(dstpath, (err, destinationExists) => { + fs4.lstat(dstpath, (err, stats) => { + if (!err && stats.isSymbolicLink()) { + Promise.all([ + fs4.stat(srcpath), + fs4.stat(dstpath) + ]).then(([srcStat, dstStat]) => { + if (areIdentical(srcStat, dstStat)) + return callback(null); + _createSymlink(srcpath, dstpath, type, callback); + }); + } else + _createSymlink(srcpath, dstpath, type, callback); + }); + } + function _createSymlink(srcpath, dstpath, type, callback) { + symlinkPaths(srcpath, dstpath, (err, relative) => { if (err) return callback(err); - if (destinationExists) - return callback(null); - symlinkPaths(srcpath, dstpath, (err2, relative) => { + srcpath = relative.toDst; + symlinkType(relative.toCwd, type, (err2, type2) => { if (err2) return callback(err2); - srcpath = relative.toDst; - symlinkType(relative.toCwd, type, (err3, type2) => { + const dir = path4.dirname(dstpath); + pathExists(dir, (err3, dirExists) => { if (err3) return callback(err3); - const dir = path4.dirname(dstpath); - pathExists(dir, (err4, dirExists) => { + if (dirExists) + return fs4.symlink(srcpath, dstpath, type2, callback); + mkdirs(dir, (err4) => { if (err4) return callback(err4); - if (dirExists) - return fs4.symlink(srcpath, dstpath, type2, callback); - mkdirs(dir, (err5) => { - if (err5) - return callback(err5); - fs4.symlink(srcpath, dstpath, type2, callback); - }); + fs4.symlink(srcpath, dstpath, type2, callback); }); }); }); }); } function createSymlinkSync(srcpath, dstpath, type) { - const destinationExists = fs4.existsSync(dstpath); - if (destinationExists) - return void 0; + let stats; + try { + stats = fs4.lstatSync(dstpath); + } catch { + } + if (stats && stats.isSymbolicLink()) { + const srcStat = fs4.statSync(srcpath); + const dstStat = fs4.statSync(dstpath); + if (areIdentical(srcStat, dstStat)) + return; + } const relative = symlinkPathsSync(srcpath, dstpath); srcpath = relative.toDst; type = symlinkTypeSync(relative.toCwd, type); @@ -2297,32 +2018,32 @@ var require_symlink = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/index.js var require_ensure = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) { "use strict"; - var file = require_file(); - var link = require_link(); - var symlink = require_symlink(); + var { createFile, createFileSync } = require_file(); + var { createLink, createLinkSync } = require_link(); + var { createSymlink, createSymlinkSync } = require_symlink(); module2.exports = { - createFile: file.createFile, - createFileSync: file.createFileSync, - ensureFile: file.createFile, - ensureFileSync: file.createFileSync, - createLink: link.createLink, - createLinkSync: link.createLinkSync, - ensureLink: link.createLink, - ensureLinkSync: link.createLinkSync, - createSymlink: symlink.createSymlink, - createSymlinkSync: symlink.createSymlinkSync, - ensureSymlink: symlink.createSymlink, - ensureSymlinkSync: symlink.createSymlinkSync + createFile, + createFileSync, + ensureFile: createFile, + ensureFileSync: createFileSync, + createLink, + createLinkSync, + ensureLink: createLink, + ensureLinkSync: createLinkSync, + createSymlink, + createSymlinkSync, + ensureSymlink: createSymlink, + ensureSymlinkSync: createSymlinkSync }; } }); // node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js -var require_utils = __commonJS({ +var require_utils2 = __commonJS({ "node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) { function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) { const EOF = finalEOL ? EOL : ""; @@ -2348,7 +2069,7 @@ var require_jsonfile = __commonJS({ _fs = require("fs"); } var universalify = require_universalify(); - var { stringify, stripBom } = require_utils(); + var { stringify, stripBom } = require_utils2(); async function _readFile(file, options = {}) { if (typeof options === "string") { options = { encoding: options }; @@ -2411,9 +2132,9 @@ var require_jsonfile = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/jsonfile.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/jsonfile.js var require_jsonfile2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) { "use strict"; var jsonFile = require_jsonfile(); module2.exports = { @@ -2425,9 +2146,9 @@ var require_jsonfile2 = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/output/index.js -var require_output = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/output/index.js"(exports, module2) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js +var require_output_file = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) { "use strict"; var u = require_universalify().fromCallback; var fs4 = require_graceful_fs(); @@ -2467,12 +2188,12 @@ var require_output = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json.js var require_output_json = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) { "use strict"; - var { stringify } = require_utils(); - var { outputFile } = require_output(); + var { stringify } = require_utils2(); + var { outputFile } = require_output_file(); async function outputJson(file, data, options = {}) { const str = stringify(data, options); await outputFile(file, str, options); @@ -2481,12 +2202,12 @@ var require_output_json = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json-sync.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json-sync.js var require_output_json_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) { "use strict"; - var { stringify } = require_utils(); - var { outputFileSync } = require_output(); + var { stringify } = require_utils2(); + var { outputFileSync } = require_output_file(); function outputJsonSync(file, data, options) { const str = stringify(data, options); outputFileSync(file, str, options); @@ -2495,9 +2216,9 @@ var require_output_json_sync = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/index.js var require_json = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/index.js"(exports, module2) { "use strict"; var u = require_universalify().fromPromise; var jsonFile = require_jsonfile2(); @@ -2513,67 +2234,9 @@ var require_json = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js -var require_move_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path4 = require("path"); - var copySync = require_copy_sync2().copySync; - var removeSync = require_remove().removeSync; - var mkdirpSync = require_mkdirs().mkdirpSync; - var stat = require_stat(); - function moveSync(src, dest, opts) { - opts = opts || {}; - const overwrite = opts.overwrite || opts.clobber || false; - const { srcStat } = stat.checkPathsSync(src, dest, "move"); - stat.checkParentPathsSync(src, srcStat, dest, "move"); - mkdirpSync(path4.dirname(dest)); - return doRename(src, dest, overwrite); - } - function doRename(src, dest, overwrite) { - if (overwrite) { - removeSync(dest); - return rename(src, dest, overwrite); - } - if (fs4.existsSync(dest)) - throw new Error("dest already exists."); - return rename(src, dest, overwrite); - } - function rename(src, dest, overwrite) { - try { - fs4.renameSync(src, dest); - } catch (err) { - if (err.code !== "EXDEV") - throw err; - return moveAcrossDevice(src, dest, overwrite); - } - } - function moveAcrossDevice(src, dest, overwrite) { - const opts = { - overwrite, - errorOnExist: true - }; - copySync(src, dest, opts); - return removeSync(src); - } - module2.exports = moveSync; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/index.js -var require_move_sync2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/index.js"(exports, module2) { - "use strict"; - module2.exports = { - moveSync: require_move_sync() - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/move.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js var require_move = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) { "use strict"; var fs4 = require_graceful_fs(); var path4 = require("path"); @@ -2587,23 +2250,33 @@ var require_move = __commonJS({ cb = opts; opts = {}; } + opts = opts || {}; const overwrite = opts.overwrite || opts.clobber || false; - stat.checkPaths(src, dest, "move", (err, stats) => { + stat.checkPaths(src, dest, "move", opts, (err, stats) => { if (err) return cb(err); - const { srcStat } = stats; + const { srcStat, isChangingCase = false } = stats; stat.checkParentPaths(src, srcStat, dest, "move", (err2) => { if (err2) return cb(err2); + if (isParentRoot(dest)) + return doRename(src, dest, overwrite, isChangingCase, cb); mkdirp(path4.dirname(dest), (err3) => { if (err3) return cb(err3); - return doRename(src, dest, overwrite, cb); + return doRename(src, dest, overwrite, isChangingCase, cb); }); }); }); } - function doRename(src, dest, overwrite, cb) { + function isParentRoot(dest) { + const parent = path4.dirname(dest); + const parsedPath = path4.parse(parent); + return parsedPath.root === parent; + } + function doRename(src, dest, overwrite, isChangingCase, cb) { + if (isChangingCase) + return rename(src, dest, overwrite, cb); if (overwrite) { return remove(dest, (err) => { if (err) @@ -2643,43 +2316,90 @@ var require_move = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js +var require_move_sync = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) { + "use strict"; + var fs4 = require_graceful_fs(); + var path4 = require("path"); + var copySync = require_copy2().copySync; + var removeSync = require_remove().removeSync; + var mkdirpSync = require_mkdirs().mkdirpSync; + var stat = require_stat(); + function moveSync(src, dest, opts) { + opts = opts || {}; + const overwrite = opts.overwrite || opts.clobber || false; + const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts); + stat.checkParentPathsSync(src, srcStat, dest, "move"); + if (!isParentRoot(dest)) + mkdirpSync(path4.dirname(dest)); + return doRename(src, dest, overwrite, isChangingCase); + } + function isParentRoot(dest) { + const parent = path4.dirname(dest); + const parsedPath = path4.parse(parent); + return parsedPath.root === parent; + } + function doRename(src, dest, overwrite, isChangingCase) { + if (isChangingCase) + return rename(src, dest, overwrite); + if (overwrite) { + removeSync(dest); + return rename(src, dest, overwrite); + } + if (fs4.existsSync(dest)) + throw new Error("dest already exists."); + return rename(src, dest, overwrite); + } + function rename(src, dest, overwrite) { + try { + fs4.renameSync(src, dest); + } catch (err) { + if (err.code !== "EXDEV") + throw err; + return moveAcrossDevice(src, dest, overwrite); + } + } + function moveAcrossDevice(src, dest, overwrite) { + const opts = { + overwrite, + errorOnExist: true + }; + copySync(src, dest, opts); + return removeSync(src); + } + module2.exports = moveSync; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/index.js var require_move2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/index.js"(exports, module2) { "use strict"; var u = require_universalify().fromCallback; module2.exports = { - move: u(require_move()) + move: u(require_move()), + moveSync: require_move_sync() }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/index.js var require_lib = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/index.js"(exports, module2) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/index.js"(exports, module2) { "use strict"; module2.exports = { ...require_fs(), - ...require_copy_sync2(), ...require_copy2(), ...require_empty(), ...require_ensure(), ...require_json(), ...require_mkdirs(), - ...require_move_sync2(), ...require_move2(), - ...require_output(), + ...require_output_file(), ...require_path_exists(), ...require_remove() }; - var fs4 = require("fs"); - if (Object.getOwnPropertyDescriptor(fs4, "promises")) { - Object.defineProperty(module2.exports, "promises", { - get() { - return fs4.promises; - } - }); - } } }); @@ -10658,7 +10378,7 @@ var require_decoder = __commonJS({ }); // node_modules/.pnpm/needle@3.2.0/node_modules/needle/lib/utils.js -var require_utils2 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/.pnpm/needle@3.2.0/node_modules/needle/lib/utils.js"(exports, module2) { var fs4 = require("fs"); var url = require("url"); @@ -10838,7 +10558,7 @@ var require_needle = __commonJS({ var cookies = require_cookies(); var parsers = require_parsers(); var decoder = require_decoder(); - var utils = require_utils2(); + var utils = require_utils3(); var version = require_package().version; var user_agent = "Needle/" + version; user_agent += " (Node.js " + process.version + "; " + process.platform + " " + process.arch + ")"; @@ -12377,7 +12097,7 @@ var require_dist = __commonJS({ }); // node_modules/.pnpm/less@4.1.3/node_modules/less/lib/less/utils.js -var require_utils3 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/.pnpm/less@4.1.3/node_modules/less/lib/less/utils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -12511,7 +12231,7 @@ var require_less_error = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require_tslib(); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var anonymousFunc = /(|Function):(\d+):(\d+)/; var LessError = function(e, fileContentMap, currentFilename) { Error.call(this); @@ -13256,7 +12976,7 @@ var require_ruleset = __commonJS({ var function_registry_1 = tslib_1.__importDefault(require_function_registry()); var default_1 = tslib_1.__importDefault(require_default()); var debug_info_1 = tslib_1.__importDefault(require_debug_info()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Ruleset = function(selectors, rules, strictImports, visibilityInfo) { this.selectors = selectors; this.rules = rules; @@ -14021,7 +13741,7 @@ var require_detached_ruleset = __commonJS({ var tslib_1 = require_tslib(); var node_1 = tslib_1.__importDefault(require_node()); var contexts_1 = tslib_1.__importDefault(require_contexts()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var DetachedRuleset = function(ruleset, frames) { this.ruleset = ruleset; this.frames = frames; @@ -14053,7 +13773,7 @@ var require_unit = __commonJS({ var tslib_1 = require_tslib(); var node_1 = tslib_1.__importDefault(require_node()); var unit_conversions_1 = tslib_1.__importDefault(require_unit_conversions()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Unit = function(numerator, denominator, backupUnit) { this.numerator = numerator ? utils.copyArray(numerator).sort() : []; this.denominator = denominator ? utils.copyArray(denominator).sort() : []; @@ -14902,7 +14622,7 @@ var require_media = __commonJS({ var anonymous_1 = tslib_1.__importDefault(require_anonymous()); var expression_1 = tslib_1.__importDefault(require_expression()); var atrule_1 = tslib_1.__importDefault(require_atrule()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Media = function(value, features, index, currentFileInfo, visibilityInfo) { this._index = index; this._fileInfo = currentFileInfo; @@ -15027,7 +14747,7 @@ var require_import = __commonJS({ var quoted_1 = tslib_1.__importDefault(require_quoted()); var ruleset_1 = tslib_1.__importDefault(require_ruleset()); var anonymous_1 = tslib_1.__importDefault(require_anonymous()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var less_error_1 = tslib_1.__importDefault(require_less_error()); var Import = function(path4, features, options, index, currentFileInfo, visibilityInfo) { this.options = options; @@ -15593,7 +15313,7 @@ var require_mixin_definition = __commonJS({ var detached_ruleset_1 = tslib_1.__importDefault(require_detached_ruleset()); var expression_1 = tslib_1.__importDefault(require_expression()); var contexts_1 = tslib_1.__importDefault(require_contexts()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Definition = function(name, params, rules, condition, variadic, frames, visibilityInfo) { this.name = name || "anonymous mixin"; this.selectors = [new selector_1.default([new element_1.default(null, name, false, this._index, this._fileInfo)])]; @@ -16439,7 +16159,7 @@ var require_import_visitor = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var visitor_1 = tslib_1.__importDefault(require_visitor()); var import_sequencer_1 = tslib_1.__importDefault(require_import_sequencer()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var ImportVisitor = function(importer, finish) { this._visitor = new visitor_1.default(this); this._importer = importer; @@ -16656,7 +16376,7 @@ var require_extend_visitor = __commonJS({ var tree_1 = tslib_1.__importDefault(require_tree()); var visitor_1 = tslib_1.__importDefault(require_visitor()); var logger_1 = tslib_1.__importDefault(require_logger()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var ExtendFinderVisitor = function() { function ExtendFinderVisitor2() { this._visitor = new visitor_1.default(this); @@ -17905,7 +17625,7 @@ var require_parser = __commonJS({ var tree_1 = tslib_1.__importDefault(require_tree()); var visitors_1 = tslib_1.__importDefault(require_visitors()); var parser_input_1 = tslib_1.__importDefault(require_parser_input()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var function_registry_1 = tslib_1.__importDefault(require_function_registry()); var Parser = function Parser2(context2, imports, fileInfo) { var parsers; @@ -20155,7 +19875,7 @@ var require_data_uri = __commonJS({ var tslib_1 = require_tslib(); var quoted_1 = tslib_1.__importDefault(require_quoted()); var url_1 = tslib_1.__importDefault(require_url()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var logger_1 = tslib_1.__importDefault(require_logger()); exports.default = function(environment) { var fallback = function(functionThis, node) { @@ -21228,7 +20948,7 @@ var require_import_manager = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var parser_1 = tslib_1.__importDefault(require_parser()); var less_error_1 = tslib_1.__importDefault(require_less_error()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var logger_1 = tslib_1.__importDefault(require_logger()); function default_1(environment) { var ImportManager = function() { @@ -21365,7 +21085,7 @@ var require_parse = __commonJS({ var parser_1 = tslib_1.__importDefault(require_parser()); var plugin_manager_1 = tslib_1.__importDefault(require_plugin_manager()); var less_error_1 = tslib_1.__importDefault(require_less_error()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); function default_1(environment, ParseTree, ImportManager) { var parse = function(input, options, callback) { if (typeof options === "function") { @@ -21444,7 +21164,7 @@ var require_render = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require_tslib(); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); function default_1(environment, ParseTree, ImportManager) { var render = function(input, options, callback) { if (typeof options === "function") { @@ -21668,7 +21388,7 @@ var require_less = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var less_error_1 = tslib_1.__importDefault(require_less_error()); var transform_tree_1 = tslib_1.__importDefault(require_transform_tree()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var plugin_manager_1 = tslib_1.__importDefault(require_plugin_manager()); var logger_1 = tslib_1.__importDefault(require_logger()); var source_map_output_1 = tslib_1.__importDefault(require_source_map_output()); diff --git a/dist/index.mjs b/dist/index.mjs index d3e5585..411792d 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -874,9 +874,9 @@ var require_graceful_fs = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/fs/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js var require_fs = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/fs/index.js"(exports) { "use strict"; var u = require_universalify().fromCallback; var fs4 = require_graceful_fs(); @@ -918,12 +918,7 @@ var require_fs = __commonJS({ ].filter((key) => { return typeof fs4[key] === "function"; }); - Object.keys(fs4).forEach((key) => { - if (key === "promises") { - return; - } - exports[key] = fs4[key]; - }); + Object.assign(exports, fs4); api.forEach((method) => { exports[method] = u(fs4[method]); }); @@ -959,46 +954,48 @@ var require_fs = __commonJS({ }); }); }; - if (typeof fs4.writev === "function") { - exports.writev = function(fd, buffers, ...args) { - if (typeof args[args.length - 1] === "function") { - return fs4.writev(fd, buffers, ...args); - } - return new Promise((resolve, reject) => { - fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => { - if (err) - return reject(err); - resolve({ bytesWritten, buffers: buffers2 }); - }); + exports.readv = function(fd, buffers, ...args) { + if (typeof args[args.length - 1] === "function") { + return fs4.readv(fd, buffers, ...args); + } + return new Promise((resolve, reject) => { + fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => { + if (err) + return reject(err); + resolve({ bytesRead, buffers: buffers2 }); }); - }; - } + }); + }; + exports.writev = function(fd, buffers, ...args) { + if (typeof args[args.length - 1] === "function") { + return fs4.writev(fd, buffers, ...args); + } + return new Promise((resolve, reject) => { + fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => { + if (err) + return reject(err); + resolve({ bytesWritten, buffers: buffers2 }); + }); + }); + }; if (typeof fs4.realpath.native === "function") { exports.realpath.native = u(fs4.realpath.native); + } else { + process.emitWarning( + "fs.realpath.native is not a function. Is fs being monkey-patched?", + "Warning", + "fs-extra-WARN0003" + ); } } }); -// node_modules/.pnpm/at-least-node@1.0.0/node_modules/at-least-node/index.js -var require_at_least_node = __commonJS({ - "node_modules/.pnpm/at-least-node@1.0.0/node_modules/at-least-node/index.js"(exports, module) { - module.exports = (r) => { - const n = process.versions.node.split(".").map((x) => parseInt(x, 10)); - r = r.split(".").map((x) => parseInt(x, 10)); - return n[0] > r[0] || n[0] === r[0] && (n[1] > r[1] || n[1] === r[1] && n[2] >= r[2]); - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js -var require_make_dir = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/utils.js +var require_utils = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) { "use strict"; - var fs4 = require_fs(); var path4 = __require("path"); - var atLeastNode = require_at_least_node(); - var useNativeRecursiveOption = atLeastNode("10.12.0"); - var checkPath = (pth) => { + module.exports.checkPath = function checkPath(pth) { if (process.platform === "win32") { const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, "")); if (pathHasInvalidWinCharacters) { @@ -1008,103 +1005,41 @@ var require_make_dir = __commonJS({ } } }; - var processOptions = (options) => { + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js +var require_make_dir = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) { + "use strict"; + var fs4 = require_fs(); + var { checkPath } = require_utils(); + var getMode = (options) => { const defaults = { mode: 511 }; if (typeof options === "number") - options = { mode: options }; - return { ...defaults, ...options }; - }; - var permissionError = (pth) => { - const error = new Error(`operation not permitted, mkdir '${pth}'`); - error.code = "EPERM"; - error.errno = -4048; - error.path = pth; - error.syscall = "mkdir"; - return error; - }; - module.exports.makeDir = async (input, options) => { - checkPath(input); - options = processOptions(options); - if (useNativeRecursiveOption) { - const pth = path4.resolve(input); - return fs4.mkdir(pth, { - mode: options.mode, - recursive: true - }); - } - const make = async (pth) => { - try { - await fs4.mkdir(pth, options.mode); - } catch (error) { - if (error.code === "EPERM") { - throw error; - } - if (error.code === "ENOENT") { - if (path4.dirname(pth) === pth) { - throw permissionError(pth); - } - if (error.message.includes("null bytes")) { - throw error; - } - await make(path4.dirname(pth)); - return make(pth); - } - try { - const stats = await fs4.stat(pth); - if (!stats.isDirectory()) { - throw new Error("The path is not a directory"); - } - } catch { - throw error; - } - } - }; - return make(path4.resolve(input)); - }; - module.exports.makeDirSync = (input, options) => { - checkPath(input); - options = processOptions(options); - if (useNativeRecursiveOption) { - const pth = path4.resolve(input); - return fs4.mkdirSync(pth, { - mode: options.mode, - recursive: true - }); - } - const make = (pth) => { - try { - fs4.mkdirSync(pth, options.mode); - } catch (error) { - if (error.code === "EPERM") { - throw error; - } - if (error.code === "ENOENT") { - if (path4.dirname(pth) === pth) { - throw permissionError(pth); - } - if (error.message.includes("null bytes")) { - throw error; - } - make(path4.dirname(pth)); - return make(pth); - } - try { - if (!fs4.statSync(pth).isDirectory()) { - throw new Error("The path is not a directory"); - } - } catch { - throw error; - } - } - }; - return make(path4.resolve(input)); + return options; + return { ...defaults, ...options }.mode; + }; + module.exports.makeDir = async (dir, options) => { + checkPath(dir); + return fs4.mkdir(dir, { + mode: getMode(options), + recursive: true + }); + }; + module.exports.makeDirSync = (dir, options) => { + checkPath(dir); + return fs4.mkdirSync(dir, { + mode: getMode(options), + recursive: true + }); }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/index.js var require_mkdirs = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) { "use strict"; var u = require_universalify().fromPromise; var { makeDir: _makeDir, makeDirSync } = require_make_dir(); @@ -1120,9 +1055,25 @@ var require_mkdirs = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/utimes.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/path-exists/index.js +var require_path_exists = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) { + "use strict"; + var u = require_universalify().fromPromise; + var fs4 = require_fs(); + function pathExists(path4) { + return fs4.access(path4).then(() => true).catch(() => false); + } + module.exports = { + pathExists: u(pathExists), + pathExistsSync: fs4.existsSync + }; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js var require_utimes = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module) { "use strict"; var fs4 = require_graceful_fs(); function utimesMillis(path4, atime, mtime, callback) { @@ -1149,32 +1100,30 @@ var require_utimes = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/stat.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/stat.js var require_stat = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module) { "use strict"; var fs4 = require_fs(); var path4 = __require("path"); var util = __require("util"); - var atLeastNode = require_at_least_node(); - var nodeSupportsBigInt = atLeastNode("10.5.0"); - var stat = (file) => nodeSupportsBigInt ? fs4.stat(file, { bigint: true }) : fs4.stat(file); - var statSync = (file) => nodeSupportsBigInt ? fs4.statSync(file, { bigint: true }) : fs4.statSync(file); - function getStats(src, dest) { + function getStats(src, dest, opts) { + const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true }); return Promise.all([ - stat(src), - stat(dest).catch((err) => { + statFunc(src), + statFunc(dest).catch((err) => { if (err.code === "ENOENT") return null; throw err; }) ]).then(([srcStat, destStat]) => ({ srcStat, destStat })); } - function getStatsSync(src, dest) { + function getStatsSync(src, dest, opts) { let destStat; - const srcStat = statSync(src); + const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true }); + const srcStat = statFunc(src); try { - destStat = statSync(dest); + destStat = statFunc(dest); } catch (err) { if (err.code === "ENOENT") return { srcStat, destStat: null }; @@ -1182,13 +1131,26 @@ var require_stat = __commonJS({ } return { srcStat, destStat }; } - function checkPaths(src, dest, funcName, cb) { - util.callbackify(getStats)(src, dest, (err, stats) => { + function checkPaths(src, dest, funcName, opts, cb) { + util.callbackify(getStats)(src, dest, opts, (err, stats) => { if (err) return cb(err); const { srcStat, destStat } = stats; - if (destStat && areIdentical(srcStat, destStat)) { - return cb(new Error("Source and destination must not be the same.")); + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path4.basename(src); + const destBaseName = path4.basename(dest); + if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return cb(null, { srcStat, destStat, isChangingCase: true }); + } + return cb(new Error("Source and destination must not be the same.")); + } + if (srcStat.isDirectory() && !destStat.isDirectory()) { + return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)); + } + if (!srcStat.isDirectory() && destStat.isDirectory()) { + return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`)); + } } if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { return cb(new Error(errMsg(src, dest, funcName))); @@ -1196,10 +1158,23 @@ var require_stat = __commonJS({ return cb(null, { srcStat, destStat }); }); } - function checkPathsSync(src, dest, funcName) { - const { srcStat, destStat } = getStatsSync(src, dest); - if (destStat && areIdentical(srcStat, destStat)) { - throw new Error("Source and destination must not be the same."); + function checkPathsSync(src, dest, funcName, opts) { + const { srcStat, destStat } = getStatsSync(src, dest, opts); + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path4.basename(src); + const destBaseName = path4.basename(dest); + if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return { srcStat, destStat, isChangingCase: true }; + } + throw new Error("Source and destination must not be the same."); + } + if (srcStat.isDirectory() && !destStat.isDirectory()) { + throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`); + } + if (!srcStat.isDirectory() && destStat.isDirectory()) { + throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`); + } } if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { throw new Error(errMsg(src, dest, funcName)); @@ -1211,7 +1186,7 @@ var require_stat = __commonJS({ const destParent = path4.resolve(path4.dirname(dest)); if (destParent === srcParent || destParent === path4.parse(destParent).root) return cb(); - const callback = (err, destStat) => { + fs4.stat(destParent, { bigint: true }, (err, destStat) => { if (err) { if (err.code === "ENOENT") return cb(); @@ -1221,11 +1196,7 @@ var require_stat = __commonJS({ return cb(new Error(errMsg(src, dest, funcName))); } return checkParentPaths(src, srcStat, destParent, funcName, cb); - }; - if (nodeSupportsBigInt) - fs4.stat(destParent, { bigint: true }, callback); - else - fs4.stat(destParent, callback); + }); } function checkParentPathsSync(src, srcStat, dest, funcName) { const srcParent = path4.resolve(path4.dirname(src)); @@ -1234,7 +1205,7 @@ var require_stat = __commonJS({ return; let destStat; try { - destStat = statSync(destParent); + destStat = fs4.statSync(destParent, { bigint: true }); } catch (err) { if (err.code === "ENOENT") return; @@ -1246,15 +1217,7 @@ var require_stat = __commonJS({ return checkParentPathsSync(src, srcStat, destParent, funcName); } function areIdentical(srcStat, destStat) { - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - if (nodeSupportsBigInt || destStat.ino < Number.MAX_SAFE_INTEGER) { - return true; - } - if (destStat.size === srcStat.size && destStat.mode === srcStat.mode && destStat.nlink === srcStat.nlink && destStat.atimeMs === srcStat.atimeMs && destStat.mtimeMs === srcStat.mtimeMs && destStat.ctimeMs === srcStat.ctimeMs && destStat.birthtimeMs === srcStat.birthtimeMs) { - return true; - } - } - return false; + return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev; } function isSrcSubdir(src, dest) { const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i); @@ -1269,183 +1232,15 @@ var require_stat = __commonJS({ checkPathsSync, checkParentPaths, checkParentPathsSync, - isSrcSubdir - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js -var require_copy_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module) { - "use strict"; - var fs4 = require_graceful_fs(); - var path4 = __require("path"); - var mkdirsSync = require_mkdirs().mkdirsSync; - var utimesMillisSync = require_utimes().utimesMillisSync; - var stat = require_stat(); - function copySync(src, dest, opts) { - if (typeof opts === "function") { - opts = { filter: opts }; - } - opts = opts || {}; - opts.clobber = "clobber" in opts ? !!opts.clobber : true; - opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; - if (opts.preserveTimestamps && process.arch === "ia32") { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`); - } - const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy"); - stat.checkParentPathsSync(src, srcStat, dest, "copy"); - return handleFilterAndCopy(destStat, src, dest, opts); - } - function handleFilterAndCopy(destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) - return; - const destParent = path4.dirname(dest); - if (!fs4.existsSync(destParent)) - mkdirsSync(destParent); - return startCopy(destStat, src, dest, opts); - } - function startCopy(destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) - return; - return getStats(destStat, src, dest, opts); - } - function getStats(destStat, src, dest, opts) { - const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync; - const srcStat = statSync(src); - if (srcStat.isDirectory()) - return onDir(srcStat, destStat, src, dest, opts); - else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) - return onFile(srcStat, destStat, src, dest, opts); - else if (srcStat.isSymbolicLink()) - return onLink(destStat, src, dest, opts); - } - function onFile(srcStat, destStat, src, dest, opts) { - if (!destStat) - return copyFile(srcStat, src, dest, opts); - return mayCopyFile(srcStat, src, dest, opts); - } - function mayCopyFile(srcStat, src, dest, opts) { - if (opts.overwrite) { - fs4.unlinkSync(dest); - return copyFile(srcStat, src, dest, opts); - } else if (opts.errorOnExist) { - throw new Error(`'${dest}' already exists`); - } - } - function copyFile(srcStat, src, dest, opts) { - fs4.copyFileSync(src, dest); - if (opts.preserveTimestamps) - handleTimestamps(srcStat.mode, src, dest); - return setDestMode(dest, srcStat.mode); - } - function handleTimestamps(srcMode, src, dest) { - if (fileIsNotWritable(srcMode)) - makeFileWritable(dest, srcMode); - return setDestTimestamps(src, dest); - } - function fileIsNotWritable(srcMode) { - return (srcMode & 128) === 0; - } - function makeFileWritable(dest, srcMode) { - return setDestMode(dest, srcMode | 128); - } - function setDestMode(dest, srcMode) { - return fs4.chmodSync(dest, srcMode); - } - function setDestTimestamps(src, dest) { - const updatedSrcStat = fs4.statSync(src); - return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime); - } - function onDir(srcStat, destStat, src, dest, opts) { - if (!destStat) - return mkDirAndCopy(srcStat.mode, src, dest, opts); - if (destStat && !destStat.isDirectory()) { - throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`); - } - return copyDir(src, dest, opts); - } - function mkDirAndCopy(srcMode, src, dest, opts) { - fs4.mkdirSync(dest); - copyDir(src, dest, opts); - return setDestMode(dest, srcMode); - } - function copyDir(src, dest, opts) { - fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts)); - } - function copyDirItem(item, src, dest, opts) { - const srcItem = path4.join(src, item); - const destItem = path4.join(dest, item); - const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy"); - return startCopy(destStat, srcItem, destItem, opts); - } - function onLink(destStat, src, dest, opts) { - let resolvedSrc = fs4.readlinkSync(src); - if (opts.dereference) { - resolvedSrc = path4.resolve(process.cwd(), resolvedSrc); - } - if (!destStat) { - return fs4.symlinkSync(resolvedSrc, dest); - } else { - let resolvedDest; - try { - resolvedDest = fs4.readlinkSync(dest); - } catch (err) { - if (err.code === "EINVAL" || err.code === "UNKNOWN") - return fs4.symlinkSync(resolvedSrc, dest); - throw err; - } - if (opts.dereference) { - resolvedDest = path4.resolve(process.cwd(), resolvedDest); - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`); - } - if (fs4.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`); - } - return copyLink(resolvedSrc, dest); - } - } - function copyLink(resolvedSrc, dest) { - fs4.unlinkSync(dest); - return fs4.symlinkSync(resolvedSrc, dest); - } - module.exports = copySync; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/index.js -var require_copy_sync2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy-sync/index.js"(exports, module) { - "use strict"; - module.exports = { - copySync: require_copy_sync() + isSrcSubdir, + areIdentical }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/path-exists/index.js -var require_path_exists = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) { - "use strict"; - var u = require_universalify().fromPromise; - var fs4 = require_fs(); - function pathExists(path4) { - return fs4.access(path4).then(() => true).catch(() => false); - } - module.exports = { - pathExists: u(pathExists), - pathExistsSync: fs4.existsSync - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/copy.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js var require_copy = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) { "use strict"; var fs4 = require_graceful_fs(); var path4 = __require("path"); @@ -1466,20 +1261,26 @@ var require_copy = __commonJS({ opts.clobber = "clobber" in opts ? !!opts.clobber : true; opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; if (opts.preserveTimestamps && process.arch === "ia32") { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`); + process.emitWarning( + "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", + "Warning", + "fs-extra-WARN0001" + ); } - stat.checkPaths(src, dest, "copy", (err, stats) => { + stat.checkPaths(src, dest, "copy", opts, (err, stats) => { if (err) return cb(err); const { srcStat, destStat } = stats; stat.checkParentPaths(src, srcStat, dest, "copy", (err2) => { if (err2) return cb(err2); - if (opts.filter) - return handleFilter(checkParentDir, destStat, src, dest, opts, cb); - return checkParentDir(destStat, src, dest, opts, cb); + runFilter(src, dest, opts, (err3, include) => { + if (err3) + return cb(err3); + if (!include) + return cb(); + checkParentDir(destStat, src, dest, opts, cb); + }); }); }); } @@ -1489,25 +1290,18 @@ var require_copy = __commonJS({ if (err) return cb(err); if (dirExists) - return startCopy(destStat, src, dest, opts, cb); + return getStats(destStat, src, dest, opts, cb); mkdirs(destParent, (err2) => { if (err2) return cb(err2); - return startCopy(destStat, src, dest, opts, cb); + return getStats(destStat, src, dest, opts, cb); }); }); } - function handleFilter(onInclude, destStat, src, dest, opts, cb) { - Promise.resolve(opts.filter(src, dest)).then((include) => { - if (include) - return onInclude(destStat, src, dest, opts, cb); - return cb(); - }, (error) => cb(error)); - } - function startCopy(destStat, src, dest, opts, cb) { - if (opts.filter) - return handleFilter(getStats, destStat, src, dest, opts, cb); - return getStats(destStat, src, dest, opts, cb); + function runFilter(src, dest, opts, cb) { + if (!opts.filter) + return cb(null, true); + Promise.resolve(opts.filter(src, dest)).then((include) => cb(null, include), (error) => cb(error)); } function getStats(destStat, src, dest, opts, cb) { const stat2 = opts.dereference ? fs4.stat : fs4.lstat; @@ -1520,6 +1314,11 @@ var require_copy = __commonJS({ return onFile(srcStat, destStat, src, dest, opts, cb); else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb); + else if (srcStat.isSocket()) + return cb(new Error(`Cannot copy a socket file: ${src}`)); + else if (srcStat.isFIFO()) + return cb(new Error(`Cannot copy a FIFO pipe: ${src}`)); + return cb(new Error(`Unknown file: ${src}`)); }); } function onFile(srcStat, destStat, src, dest, opts, cb) { @@ -1584,9 +1383,6 @@ var require_copy = __commonJS({ function onDir(srcStat, destStat, src, dest, opts, cb) { if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb); - if (destStat && !destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)); - } return copyDir(src, dest, opts, cb); } function mkDirAndCopy(srcMode, src, dest, opts, cb) { @@ -1616,14 +1412,20 @@ var require_copy = __commonJS({ function copyDirItem(items, item, src, dest, opts, cb) { const srcItem = path4.join(src, item); const destItem = path4.join(dest, item); - stat.checkPaths(srcItem, destItem, "copy", (err, stats) => { + runFilter(srcItem, destItem, opts, (err, include) => { if (err) return cb(err); - const { destStat } = stats; - startCopy(destStat, srcItem, destItem, opts, (err2) => { + if (!include) + return copyDirItems(items, src, dest, opts, cb); + stat.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => { if (err2) return cb(err2); - return copyDirItems(items, src, dest, opts, cb); + const { destStat } = stats; + getStats(destStat, srcItem, destItem, opts, (err3) => { + if (err3) + return cb(err3); + return copyDirItems(items, src, dest, opts, cb); + }); }); }); } @@ -1649,7 +1451,7 @@ var require_copy = __commonJS({ if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)); } - if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)); } return copyLink(resolvedSrc, dest, cb); @@ -1668,297 +1470,195 @@ var require_copy = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/index.js -var require_copy2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/copy/index.js"(exports, module) { - "use strict"; - var u = require_universalify().fromCallback; - module.exports = { - copy: u(require_copy()) - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/rimraf.js -var require_rimraf = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js +var require_copy_sync = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) { "use strict"; var fs4 = require_graceful_fs(); var path4 = __require("path"); - var assert = __require("assert"); - var isWindows = process.platform === "win32"; - function defaults(options) { - const methods = [ - "unlink", - "chmod", - "stat", - "lstat", - "rmdir", - "readdir" - ]; - methods.forEach((m) => { - options[m] = options[m] || fs4[m]; - m = m + "Sync"; - options[m] = options[m] || fs4[m]; - }); - options.maxBusyTries = options.maxBusyTries || 3; - } - function rimraf(p, options, cb) { - let busyTries = 0; - if (typeof options === "function") { - cb = options; - options = {}; - } - assert(p, "rimraf: missing path"); - assert.strictEqual(typeof p, "string", "rimraf: path should be a string"); - assert.strictEqual(typeof cb, "function", "rimraf: callback function required"); - assert(options, "rimraf: invalid options argument provided"); - assert.strictEqual(typeof options, "object", "rimraf: options should be object"); - defaults(options); - rimraf_(p, options, function CB(er) { - if (er) { - if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && busyTries < options.maxBusyTries) { - busyTries++; - const time = busyTries * 100; - return setTimeout(() => rimraf_(p, options, CB), time); - } - if (er.code === "ENOENT") - er = null; - } - cb(er); - }); + var mkdirsSync = require_mkdirs().mkdirsSync; + var utimesMillisSync = require_utimes().utimesMillisSync; + var stat = require_stat(); + function copySync(src, dest, opts) { + if (typeof opts === "function") { + opts = { filter: opts }; + } + opts = opts || {}; + opts.clobber = "clobber" in opts ? !!opts.clobber : true; + opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; + if (opts.preserveTimestamps && process.arch === "ia32") { + process.emitWarning( + "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", + "Warning", + "fs-extra-WARN0002" + ); + } + const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts); + stat.checkParentPathsSync(src, srcStat, dest, "copy"); + if (opts.filter && !opts.filter(src, dest)) + return; + const destParent = path4.dirname(dest); + if (!fs4.existsSync(destParent)) + mkdirsSync(destParent); + return getStats(destStat, src, dest, opts); + } + function getStats(destStat, src, dest, opts) { + const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync; + const srcStat = statSync(src); + if (srcStat.isDirectory()) + return onDir(srcStat, destStat, src, dest, opts); + else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) + return onFile(srcStat, destStat, src, dest, opts); + else if (srcStat.isSymbolicLink()) + return onLink(destStat, src, dest, opts); + else if (srcStat.isSocket()) + throw new Error(`Cannot copy a socket file: ${src}`); + else if (srcStat.isFIFO()) + throw new Error(`Cannot copy a FIFO pipe: ${src}`); + throw new Error(`Unknown file: ${src}`); + } + function onFile(srcStat, destStat, src, dest, opts) { + if (!destStat) + return copyFile(srcStat, src, dest, opts); + return mayCopyFile(srcStat, src, dest, opts); + } + function mayCopyFile(srcStat, src, dest, opts) { + if (opts.overwrite) { + fs4.unlinkSync(dest); + return copyFile(srcStat, src, dest, opts); + } else if (opts.errorOnExist) { + throw new Error(`'${dest}' already exists`); + } + } + function copyFile(srcStat, src, dest, opts) { + fs4.copyFileSync(src, dest); + if (opts.preserveTimestamps) + handleTimestamps(srcStat.mode, src, dest); + return setDestMode(dest, srcStat.mode); + } + function handleTimestamps(srcMode, src, dest) { + if (fileIsNotWritable(srcMode)) + makeFileWritable(dest, srcMode); + return setDestTimestamps(src, dest); + } + function fileIsNotWritable(srcMode) { + return (srcMode & 128) === 0; + } + function makeFileWritable(dest, srcMode) { + return setDestMode(dest, srcMode | 128); + } + function setDestMode(dest, srcMode) { + return fs4.chmodSync(dest, srcMode); + } + function setDestTimestamps(src, dest) { + const updatedSrcStat = fs4.statSync(src); + return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime); } - function rimraf_(p, options, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.lstat(p, (er, st) => { - if (er && er.code === "ENOENT") { - return cb(null); - } - if (er && er.code === "EPERM" && isWindows) { - return fixWinEPERM(p, options, er, cb); - } - if (st && st.isDirectory()) { - return rmdir(p, options, er, cb); - } - options.unlink(p, (er2) => { - if (er2) { - if (er2.code === "ENOENT") { - return cb(null); - } - if (er2.code === "EPERM") { - return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb); - } - if (er2.code === "EISDIR") { - return rmdir(p, options, er2, cb); - } - } - return cb(er2); - }); - }); + function onDir(srcStat, destStat, src, dest, opts) { + if (!destStat) + return mkDirAndCopy(srcStat.mode, src, dest, opts); + return copyDir(src, dest, opts); } - function fixWinEPERM(p, options, er, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.chmod(p, 438, (er2) => { - if (er2) { - cb(er2.code === "ENOENT" ? null : er); - } else { - options.stat(p, (er3, stats) => { - if (er3) { - cb(er3.code === "ENOENT" ? null : er); - } else if (stats.isDirectory()) { - rmdir(p, options, er, cb); - } else { - options.unlink(p, cb); - } - }); - } - }); + function mkDirAndCopy(srcMode, src, dest, opts) { + fs4.mkdirSync(dest); + copyDir(src, dest, opts); + return setDestMode(dest, srcMode); } - function fixWinEPERMSync(p, options, er) { - let stats; - assert(p); - assert(options); - try { - options.chmodSync(p, 438); - } catch (er2) { - if (er2.code === "ENOENT") { - return; - } else { - throw er; - } - } - try { - stats = options.statSync(p); - } catch (er3) { - if (er3.code === "ENOENT") { - return; - } else { - throw er; - } - } - if (stats.isDirectory()) { - rmdirSync(p, options, er); - } else { - options.unlinkSync(p); - } - } - function rmdir(p, options, originalEr, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.rmdir(p, (er) => { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) { - rmkids(p, options, cb); - } else if (er && er.code === "ENOTDIR") { - cb(originalEr); - } else { - cb(er); - } - }); + function copyDir(src, dest, opts) { + fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts)); } - function rmkids(p, options, cb) { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.readdir(p, (er, files) => { - if (er) - return cb(er); - let n = files.length; - let errState; - if (n === 0) - return options.rmdir(p, cb); - files.forEach((f) => { - rimraf(path4.join(p, f), options, (er2) => { - if (errState) { - return; - } - if (er2) - return cb(errState = er2); - if (--n === 0) { - options.rmdir(p, cb); - } - }); - }); - }); + function copyDirItem(item, src, dest, opts) { + const srcItem = path4.join(src, item); + const destItem = path4.join(dest, item); + if (opts.filter && !opts.filter(srcItem, destItem)) + return; + const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts); + return getStats(destStat, srcItem, destItem, opts); } - function rimrafSync(p, options) { - let st; - options = options || {}; - defaults(options); - assert(p, "rimraf: missing path"); - assert.strictEqual(typeof p, "string", "rimraf: path should be a string"); - assert(options, "rimraf: missing options"); - assert.strictEqual(typeof options, "object", "rimraf: options should be object"); - try { - st = options.lstatSync(p); - } catch (er) { - if (er.code === "ENOENT") { - return; + function onLink(destStat, src, dest, opts) { + let resolvedSrc = fs4.readlinkSync(src); + if (opts.dereference) { + resolvedSrc = path4.resolve(process.cwd(), resolvedSrc); + } + if (!destStat) { + return fs4.symlinkSync(resolvedSrc, dest); + } else { + let resolvedDest; + try { + resolvedDest = fs4.readlinkSync(dest); + } catch (err) { + if (err.code === "EINVAL" || err.code === "UNKNOWN") + return fs4.symlinkSync(resolvedSrc, dest); + throw err; } - if (er.code === "EPERM" && isWindows) { - fixWinEPERMSync(p, options, er); + if (opts.dereference) { + resolvedDest = path4.resolve(process.cwd(), resolvedDest); } - } - try { - if (st && st.isDirectory()) { - rmdirSync(p, options, null); - } else { - options.unlinkSync(p); + if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { + throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`); } - } catch (er) { - if (er.code === "ENOENT") { - return; - } else if (er.code === "EPERM") { - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er); - } else if (er.code !== "EISDIR") { - throw er; + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`); } - rmdirSync(p, options, er); + return copyLink(resolvedSrc, dest); } } - function rmdirSync(p, options, originalEr) { - assert(p); - assert(options); - try { - options.rmdirSync(p); - } catch (er) { - if (er.code === "ENOTDIR") { - throw originalEr; - } else if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") { - rmkidsSync(p, options); - } else if (er.code !== "ENOENT") { - throw er; - } - } - } - function rmkidsSync(p, options) { - assert(p); - assert(options); - options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options)); - if (isWindows) { - const startTime = Date.now(); - do { - try { - const ret = options.rmdirSync(p, options); - return ret; - } catch { - } - } while (Date.now() - startTime < 500); - } else { - const ret = options.rmdirSync(p, options); - return ret; - } + function copyLink(resolvedSrc, dest) { + fs4.unlinkSync(dest); + return fs4.symlinkSync(resolvedSrc, dest); } - module.exports = rimraf; - rimraf.sync = rimrafSync; + module.exports = copySync; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/index.js +var require_copy2 = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/copy/index.js"(exports, module) { + "use strict"; + var u = require_universalify().fromCallback; + module.exports = { + copy: u(require_copy()), + copySync: require_copy_sync() + }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js var require_remove = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/remove/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/remove/index.js"(exports, module) { "use strict"; + var fs4 = require_graceful_fs(); var u = require_universalify().fromCallback; - var rimraf = require_rimraf(); + function remove(path4, callback) { + fs4.rm(path4, { recursive: true, force: true }, callback); + } + function removeSync(path4) { + fs4.rmSync(path4, { recursive: true, force: true }); + } module.exports = { - remove: u(rimraf), - removeSync: rimraf.sync + remove: u(remove), + removeSync }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/empty/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/empty/index.js var require_empty = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/empty/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/empty/index.js"(exports, module) { "use strict"; - var u = require_universalify().fromCallback; - var fs4 = require_graceful_fs(); + var u = require_universalify().fromPromise; + var fs4 = require_fs(); var path4 = __require("path"); var mkdir = require_mkdirs(); var remove = require_remove(); - var emptyDir = u(function emptyDir2(dir, callback) { - callback = callback || function() { - }; - fs4.readdir(dir, (err, items) => { - if (err) - return mkdir.mkdirs(dir, callback); - items = items.map((item) => path4.join(dir, item)); - deleteItem(); - function deleteItem() { - const item = items.pop(); - if (!item) - return callback(); - remove.remove(item, (err2) => { - if (err2) - return callback(err2); - deleteItem(); - }); - } - }); + var emptyDir = u(async function emptyDir2(dir) { + let items; + try { + items = await fs4.readdir(dir); + } catch { + return mkdir.mkdirs(dir); + } + return Promise.all(items.map((item) => remove.remove(path4.join(dir, item)))); }); function emptyDirSync(dir) { let items; @@ -1981,9 +1681,9 @@ var require_empty = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/file.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js var require_file = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) { "use strict"; var u = require_universalify().fromCallback; var path4 = __require("path"); @@ -2051,15 +1751,16 @@ var require_file = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/link.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js var require_link = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) { "use strict"; var u = require_universalify().fromCallback; var path4 = __require("path"); var fs4 = require_graceful_fs(); var mkdir = require_mkdirs(); var pathExists = require_path_exists().pathExists; + var { areIdentical } = require_stat(); function createLink(srcpath, dstpath, callback) { function makeLink(srcpath2, dstpath2) { fs4.link(srcpath2, dstpath2, (err) => { @@ -2068,25 +1769,23 @@ var require_link = __commonJS({ callback(null); }); } - pathExists(dstpath, (err, destinationExists) => { - if (err) - return callback(err); - if (destinationExists) - return callback(null); - fs4.lstat(srcpath, (err2) => { - if (err2) { - err2.message = err2.message.replace("lstat", "ensureLink"); - return callback(err2); + fs4.lstat(dstpath, (_, dstStat) => { + fs4.lstat(srcpath, (err, srcStat) => { + if (err) { + err.message = err.message.replace("lstat", "ensureLink"); + return callback(err); } + if (dstStat && areIdentical(srcStat, dstStat)) + return callback(null); const dir = path4.dirname(dstpath); - pathExists(dir, (err3, dirExists) => { - if (err3) - return callback(err3); + pathExists(dir, (err2, dirExists) => { + if (err2) + return callback(err2); if (dirExists) return makeLink(srcpath, dstpath); - mkdir.mkdirs(dir, (err4) => { - if (err4) - return callback(err4); + mkdir.mkdirs(dir, (err3) => { + if (err3) + return callback(err3); makeLink(srcpath, dstpath); }); }); @@ -2094,11 +1793,15 @@ var require_link = __commonJS({ }); } function createLinkSync(srcpath, dstpath) { - const destinationExists = fs4.existsSync(dstpath); - if (destinationExists) - return void 0; + let dstStat; try { - fs4.lstatSync(srcpath); + dstStat = fs4.lstatSync(dstpath); + } catch { + } + try { + const srcStat = fs4.lstatSync(srcpath); + if (dstStat && areIdentical(srcStat, dstStat)) + return; } catch (err) { err.message = err.message.replace("lstat", "ensureLink"); throw err; @@ -2117,9 +1820,9 @@ var require_link = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js var require_symlink_paths = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) { "use strict"; var path4 = __require("path"); var fs4 = require_graceful_fs(); @@ -2199,9 +1902,9 @@ var require_symlink_paths = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js var require_symlink_type = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) { "use strict"; var fs4 = require_graceful_fs(); function symlinkType(srcpath, type, callback) { @@ -2234,13 +1937,13 @@ var require_symlink_type = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink.js var require_symlink = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) { "use strict"; var u = require_universalify().fromCallback; var path4 = __require("path"); - var fs4 = require_graceful_fs(); + var fs4 = require_fs(); var _mkdirs = require_mkdirs(); var mkdirs = _mkdirs.mkdirs; var mkdirsSync = _mkdirs.mkdirsSync; @@ -2251,41 +1954,59 @@ var require_symlink = __commonJS({ var symlinkType = _symlinkType.symlinkType; var symlinkTypeSync = _symlinkType.symlinkTypeSync; var pathExists = require_path_exists().pathExists; + var { areIdentical } = require_stat(); function createSymlink(srcpath, dstpath, type, callback) { callback = typeof type === "function" ? type : callback; type = typeof type === "function" ? false : type; - pathExists(dstpath, (err, destinationExists) => { + fs4.lstat(dstpath, (err, stats) => { + if (!err && stats.isSymbolicLink()) { + Promise.all([ + fs4.stat(srcpath), + fs4.stat(dstpath) + ]).then(([srcStat, dstStat]) => { + if (areIdentical(srcStat, dstStat)) + return callback(null); + _createSymlink(srcpath, dstpath, type, callback); + }); + } else + _createSymlink(srcpath, dstpath, type, callback); + }); + } + function _createSymlink(srcpath, dstpath, type, callback) { + symlinkPaths(srcpath, dstpath, (err, relative) => { if (err) return callback(err); - if (destinationExists) - return callback(null); - symlinkPaths(srcpath, dstpath, (err2, relative) => { + srcpath = relative.toDst; + symlinkType(relative.toCwd, type, (err2, type2) => { if (err2) return callback(err2); - srcpath = relative.toDst; - symlinkType(relative.toCwd, type, (err3, type2) => { + const dir = path4.dirname(dstpath); + pathExists(dir, (err3, dirExists) => { if (err3) return callback(err3); - const dir = path4.dirname(dstpath); - pathExists(dir, (err4, dirExists) => { + if (dirExists) + return fs4.symlink(srcpath, dstpath, type2, callback); + mkdirs(dir, (err4) => { if (err4) return callback(err4); - if (dirExists) - return fs4.symlink(srcpath, dstpath, type2, callback); - mkdirs(dir, (err5) => { - if (err5) - return callback(err5); - fs4.symlink(srcpath, dstpath, type2, callback); - }); + fs4.symlink(srcpath, dstpath, type2, callback); }); }); }); }); } function createSymlinkSync(srcpath, dstpath, type) { - const destinationExists = fs4.existsSync(dstpath); - if (destinationExists) - return void 0; + let stats; + try { + stats = fs4.lstatSync(dstpath); + } catch { + } + if (stats && stats.isSymbolicLink()) { + const srcStat = fs4.statSync(srcpath); + const dstStat = fs4.statSync(dstpath); + if (areIdentical(srcStat, dstStat)) + return; + } const relative = symlinkPathsSync(srcpath, dstpath); srcpath = relative.toDst; type = symlinkTypeSync(relative.toCwd, type); @@ -2303,32 +2024,32 @@ var require_symlink = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/index.js var require_ensure = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module) { "use strict"; - var file = require_file(); - var link = require_link(); - var symlink = require_symlink(); + var { createFile, createFileSync } = require_file(); + var { createLink, createLinkSync } = require_link(); + var { createSymlink, createSymlinkSync } = require_symlink(); module.exports = { - createFile: file.createFile, - createFileSync: file.createFileSync, - ensureFile: file.createFile, - ensureFileSync: file.createFileSync, - createLink: link.createLink, - createLinkSync: link.createLinkSync, - ensureLink: link.createLink, - ensureLinkSync: link.createLinkSync, - createSymlink: symlink.createSymlink, - createSymlinkSync: symlink.createSymlinkSync, - ensureSymlink: symlink.createSymlink, - ensureSymlinkSync: symlink.createSymlinkSync + createFile, + createFileSync, + ensureFile: createFile, + ensureFileSync: createFileSync, + createLink, + createLinkSync, + ensureLink: createLink, + ensureLinkSync: createLinkSync, + createSymlink, + createSymlinkSync, + ensureSymlink: createSymlink, + ensureSymlinkSync: createSymlinkSync }; } }); // node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js -var require_utils = __commonJS({ +var require_utils2 = __commonJS({ "node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module) { function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) { const EOF = finalEOL ? EOL : ""; @@ -2354,7 +2075,7 @@ var require_jsonfile = __commonJS({ _fs = __require("fs"); } var universalify = require_universalify(); - var { stringify, stripBom } = require_utils(); + var { stringify, stripBom } = require_utils2(); async function _readFile(file, options = {}) { if (typeof options === "string") { options = { encoding: options }; @@ -2417,9 +2138,9 @@ var require_jsonfile = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/jsonfile.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/jsonfile.js var require_jsonfile2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) { "use strict"; var jsonFile = require_jsonfile(); module.exports = { @@ -2431,9 +2152,9 @@ var require_jsonfile2 = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/output/index.js -var require_output = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/output/index.js"(exports, module) { +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js +var require_output_file = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module) { "use strict"; var u = require_universalify().fromCallback; var fs4 = require_graceful_fs(); @@ -2473,12 +2194,12 @@ var require_output = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json.js var require_output_json = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module) { "use strict"; - var { stringify } = require_utils(); - var { outputFile } = require_output(); + var { stringify } = require_utils2(); + var { outputFile } = require_output_file(); async function outputJson(file, data, options = {}) { const str = stringify(data, options); await outputFile(file, str, options); @@ -2487,12 +2208,12 @@ var require_output_json = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json-sync.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json-sync.js var require_output_json_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) { "use strict"; - var { stringify } = require_utils(); - var { outputFileSync } = require_output(); + var { stringify } = require_utils2(); + var { outputFileSync } = require_output_file(); function outputJsonSync(file, data, options) { const str = stringify(data, options); outputFileSync(file, str, options); @@ -2501,9 +2222,9 @@ var require_output_json_sync = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/index.js var require_json = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/json/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/json/index.js"(exports, module) { "use strict"; var u = require_universalify().fromPromise; var jsonFile = require_jsonfile2(); @@ -2519,67 +2240,9 @@ var require_json = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js -var require_move_sync = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module) { - "use strict"; - var fs4 = require_graceful_fs(); - var path4 = __require("path"); - var copySync = require_copy_sync2().copySync; - var removeSync = require_remove().removeSync; - var mkdirpSync = require_mkdirs().mkdirpSync; - var stat = require_stat(); - function moveSync(src, dest, opts) { - opts = opts || {}; - const overwrite = opts.overwrite || opts.clobber || false; - const { srcStat } = stat.checkPathsSync(src, dest, "move"); - stat.checkParentPathsSync(src, srcStat, dest, "move"); - mkdirpSync(path4.dirname(dest)); - return doRename(src, dest, overwrite); - } - function doRename(src, dest, overwrite) { - if (overwrite) { - removeSync(dest); - return rename(src, dest, overwrite); - } - if (fs4.existsSync(dest)) - throw new Error("dest already exists."); - return rename(src, dest, overwrite); - } - function rename(src, dest, overwrite) { - try { - fs4.renameSync(src, dest); - } catch (err) { - if (err.code !== "EXDEV") - throw err; - return moveAcrossDevice(src, dest, overwrite); - } - } - function moveAcrossDevice(src, dest, overwrite) { - const opts = { - overwrite, - errorOnExist: true - }; - copySync(src, dest, opts); - return removeSync(src); - } - module.exports = moveSync; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/index.js -var require_move_sync2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move-sync/index.js"(exports, module) { - "use strict"; - module.exports = { - moveSync: require_move_sync() - }; - } -}); - -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/move.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js var require_move = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module) { "use strict"; var fs4 = require_graceful_fs(); var path4 = __require("path"); @@ -2593,23 +2256,33 @@ var require_move = __commonJS({ cb = opts; opts = {}; } + opts = opts || {}; const overwrite = opts.overwrite || opts.clobber || false; - stat.checkPaths(src, dest, "move", (err, stats) => { + stat.checkPaths(src, dest, "move", opts, (err, stats) => { if (err) return cb(err); - const { srcStat } = stats; + const { srcStat, isChangingCase = false } = stats; stat.checkParentPaths(src, srcStat, dest, "move", (err2) => { if (err2) return cb(err2); + if (isParentRoot(dest)) + return doRename(src, dest, overwrite, isChangingCase, cb); mkdirp(path4.dirname(dest), (err3) => { if (err3) return cb(err3); - return doRename(src, dest, overwrite, cb); + return doRename(src, dest, overwrite, isChangingCase, cb); }); }); }); } - function doRename(src, dest, overwrite, cb) { + function isParentRoot(dest) { + const parent = path4.dirname(dest); + const parsedPath = path4.parse(parent); + return parsedPath.root === parent; + } + function doRename(src, dest, overwrite, isChangingCase, cb) { + if (isChangingCase) + return rename(src, dest, overwrite, cb); if (overwrite) { return remove(dest, (err) => { if (err) @@ -2649,43 +2322,90 @@ var require_move = __commonJS({ } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js +var require_move_sync = __commonJS({ + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) { + "use strict"; + var fs4 = require_graceful_fs(); + var path4 = __require("path"); + var copySync = require_copy2().copySync; + var removeSync = require_remove().removeSync; + var mkdirpSync = require_mkdirs().mkdirpSync; + var stat = require_stat(); + function moveSync(src, dest, opts) { + opts = opts || {}; + const overwrite = opts.overwrite || opts.clobber || false; + const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts); + stat.checkParentPathsSync(src, srcStat, dest, "move"); + if (!isParentRoot(dest)) + mkdirpSync(path4.dirname(dest)); + return doRename(src, dest, overwrite, isChangingCase); + } + function isParentRoot(dest) { + const parent = path4.dirname(dest); + const parsedPath = path4.parse(parent); + return parsedPath.root === parent; + } + function doRename(src, dest, overwrite, isChangingCase) { + if (isChangingCase) + return rename(src, dest, overwrite); + if (overwrite) { + removeSync(dest); + return rename(src, dest, overwrite); + } + if (fs4.existsSync(dest)) + throw new Error("dest already exists."); + return rename(src, dest, overwrite); + } + function rename(src, dest, overwrite) { + try { + fs4.renameSync(src, dest); + } catch (err) { + if (err.code !== "EXDEV") + throw err; + return moveAcrossDevice(src, dest, overwrite); + } + } + function moveAcrossDevice(src, dest, overwrite) { + const opts = { + overwrite, + errorOnExist: true + }; + copySync(src, dest, opts); + return removeSync(src); + } + module.exports = moveSync; + } +}); + +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/index.js var require_move2 = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/move/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/move/index.js"(exports, module) { "use strict"; var u = require_universalify().fromCallback; module.exports = { - move: u(require_move()) + move: u(require_move()), + moveSync: require_move_sync() }; } }); -// node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/index.js +// node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/index.js var require_lib = __commonJS({ - "node_modules/.pnpm/fs-extra@9.1.0/node_modules/fs-extra/lib/index.js"(exports, module) { + "node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/index.js"(exports, module) { "use strict"; module.exports = { ...require_fs(), - ...require_copy_sync2(), ...require_copy2(), ...require_empty(), ...require_ensure(), ...require_json(), ...require_mkdirs(), - ...require_move_sync2(), ...require_move2(), - ...require_output(), + ...require_output_file(), ...require_path_exists(), ...require_remove() }; - var fs4 = __require("fs"); - if (Object.getOwnPropertyDescriptor(fs4, "promises")) { - Object.defineProperty(module.exports, "promises", { - get() { - return fs4.promises; - } - }); - } } }); @@ -10664,7 +10384,7 @@ var require_decoder = __commonJS({ }); // node_modules/.pnpm/needle@3.2.0/node_modules/needle/lib/utils.js -var require_utils2 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/.pnpm/needle@3.2.0/node_modules/needle/lib/utils.js"(exports, module) { var fs4 = __require("fs"); var url = __require("url"); @@ -10844,7 +10564,7 @@ var require_needle = __commonJS({ var cookies = require_cookies(); var parsers = require_parsers(); var decoder = require_decoder(); - var utils = require_utils2(); + var utils = require_utils3(); var version = require_package().version; var user_agent = "Needle/" + version; user_agent += " (Node.js " + process.version + "; " + process.platform + " " + process.arch + ")"; @@ -12383,7 +12103,7 @@ var require_dist = __commonJS({ }); // node_modules/.pnpm/less@4.1.3/node_modules/less/lib/less/utils.js -var require_utils3 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/.pnpm/less@4.1.3/node_modules/less/lib/less/utils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -12517,7 +12237,7 @@ var require_less_error = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require_tslib(); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var anonymousFunc = /(|Function):(\d+):(\d+)/; var LessError = function(e, fileContentMap, currentFilename) { Error.call(this); @@ -13262,7 +12982,7 @@ var require_ruleset = __commonJS({ var function_registry_1 = tslib_1.__importDefault(require_function_registry()); var default_1 = tslib_1.__importDefault(require_default()); var debug_info_1 = tslib_1.__importDefault(require_debug_info()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Ruleset = function(selectors, rules, strictImports, visibilityInfo) { this.selectors = selectors; this.rules = rules; @@ -14027,7 +13747,7 @@ var require_detached_ruleset = __commonJS({ var tslib_1 = require_tslib(); var node_1 = tslib_1.__importDefault(require_node()); var contexts_1 = tslib_1.__importDefault(require_contexts()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var DetachedRuleset = function(ruleset, frames) { this.ruleset = ruleset; this.frames = frames; @@ -14059,7 +13779,7 @@ var require_unit = __commonJS({ var tslib_1 = require_tslib(); var node_1 = tslib_1.__importDefault(require_node()); var unit_conversions_1 = tslib_1.__importDefault(require_unit_conversions()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Unit = function(numerator, denominator, backupUnit) { this.numerator = numerator ? utils.copyArray(numerator).sort() : []; this.denominator = denominator ? utils.copyArray(denominator).sort() : []; @@ -14908,7 +14628,7 @@ var require_media = __commonJS({ var anonymous_1 = tslib_1.__importDefault(require_anonymous()); var expression_1 = tslib_1.__importDefault(require_expression()); var atrule_1 = tslib_1.__importDefault(require_atrule()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Media = function(value, features, index, currentFileInfo, visibilityInfo) { this._index = index; this._fileInfo = currentFileInfo; @@ -15033,7 +14753,7 @@ var require_import = __commonJS({ var quoted_1 = tslib_1.__importDefault(require_quoted()); var ruleset_1 = tslib_1.__importDefault(require_ruleset()); var anonymous_1 = tslib_1.__importDefault(require_anonymous()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var less_error_1 = tslib_1.__importDefault(require_less_error()); var Import = function(path4, features, options, index, currentFileInfo, visibilityInfo) { this.options = options; @@ -15599,7 +15319,7 @@ var require_mixin_definition = __commonJS({ var detached_ruleset_1 = tslib_1.__importDefault(require_detached_ruleset()); var expression_1 = tslib_1.__importDefault(require_expression()); var contexts_1 = tslib_1.__importDefault(require_contexts()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var Definition = function(name, params, rules, condition, variadic, frames, visibilityInfo) { this.name = name || "anonymous mixin"; this.selectors = [new selector_1.default([new element_1.default(null, name, false, this._index, this._fileInfo)])]; @@ -16445,7 +16165,7 @@ var require_import_visitor = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var visitor_1 = tslib_1.__importDefault(require_visitor()); var import_sequencer_1 = tslib_1.__importDefault(require_import_sequencer()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var ImportVisitor = function(importer, finish) { this._visitor = new visitor_1.default(this); this._importer = importer; @@ -16662,7 +16382,7 @@ var require_extend_visitor = __commonJS({ var tree_1 = tslib_1.__importDefault(require_tree()); var visitor_1 = tslib_1.__importDefault(require_visitor()); var logger_1 = tslib_1.__importDefault(require_logger()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var ExtendFinderVisitor = function() { function ExtendFinderVisitor2() { this._visitor = new visitor_1.default(this); @@ -17911,7 +17631,7 @@ var require_parser = __commonJS({ var tree_1 = tslib_1.__importDefault(require_tree()); var visitors_1 = tslib_1.__importDefault(require_visitors()); var parser_input_1 = tslib_1.__importDefault(require_parser_input()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var function_registry_1 = tslib_1.__importDefault(require_function_registry()); var Parser = function Parser2(context2, imports, fileInfo) { var parsers; @@ -20161,7 +19881,7 @@ var require_data_uri = __commonJS({ var tslib_1 = require_tslib(); var quoted_1 = tslib_1.__importDefault(require_quoted()); var url_1 = tslib_1.__importDefault(require_url()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var logger_1 = tslib_1.__importDefault(require_logger()); exports.default = function(environment) { var fallback = function(functionThis, node) { @@ -21234,7 +20954,7 @@ var require_import_manager = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var parser_1 = tslib_1.__importDefault(require_parser()); var less_error_1 = tslib_1.__importDefault(require_less_error()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var logger_1 = tslib_1.__importDefault(require_logger()); function default_1(environment) { var ImportManager = function() { @@ -21371,7 +21091,7 @@ var require_parse = __commonJS({ var parser_1 = tslib_1.__importDefault(require_parser()); var plugin_manager_1 = tslib_1.__importDefault(require_plugin_manager()); var less_error_1 = tslib_1.__importDefault(require_less_error()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); function default_1(environment, ParseTree, ImportManager) { var parse = function(input, options, callback) { if (typeof options === "function") { @@ -21450,7 +21170,7 @@ var require_render = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require_tslib(); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); function default_1(environment, ParseTree, ImportManager) { var render = function(input, options, callback) { if (typeof options === "function") { @@ -21674,7 +21394,7 @@ var require_less = __commonJS({ var contexts_1 = tslib_1.__importDefault(require_contexts()); var less_error_1 = tslib_1.__importDefault(require_less_error()); var transform_tree_1 = tslib_1.__importDefault(require_transform_tree()); - var utils = tslib_1.__importStar(require_utils3()); + var utils = tslib_1.__importStar(require_utils4()); var plugin_manager_1 = tslib_1.__importDefault(require_plugin_manager()); var logger_1 = tslib_1.__importDefault(require_logger()); var source_map_output_1 = tslib_1.__importDefault(require_source_map_output()); diff --git a/es/client.js b/es/client.js index beeaaab..92a547d 100644 --- a/es/client.js +++ b/es/client.js @@ -9,154 +9,159 @@ const injectTo = colorPluginOptions.injectTo; const debounceThemeRender = debounce(200, renderTheme); export let darkCssIsReady = false; (() => { - if (!window[globalField]) { - window[globalField] = { - styleIdMap: new Map(), - styleRenderQueueMap: new Map(), - }; - } - setGlobalOptions("replaceStyleVariables", replaceStyleVariables); - if (!getGlobalOptions("defaultOptions")) { - // assign defines - setGlobalOptions("defaultOptions", colorPluginOptions); - } + if (!window[globalField]) { + window[globalField] = { + styleIdMap: new Map(), + styleRenderQueueMap: new Map(), + }; + } + setGlobalOptions("replaceStyleVariables", replaceStyleVariables); + if (!getGlobalOptions("defaultOptions")) { + // assign defines + setGlobalOptions("defaultOptions", colorPluginOptions); + } })(); export function addCssToQueue(id, styleString) { - const styleIdMap = getGlobalOptions("styleIdMap"); - if (!styleIdMap.get(id)) { - window[globalField].styleRenderQueueMap.set(id, styleString); - debounceThemeRender(); - } + const styleIdMap = getGlobalOptions("styleIdMap"); + if (!styleIdMap.get(id)) { + window[globalField].styleRenderQueueMap.set(id, styleString); + debounceThemeRender(); + } } function renderTheme() { - const variables = getGlobalOptions("colorVariables"); - if (!variables) { - return; - } - const styleRenderQueueMap = getGlobalOptions("styleRenderQueueMap"); - const styleDom = getStyleDom(styleTagId); - let html = styleDom.innerHTML; - for (const [id, css] of styleRenderQueueMap.entries()) { - html += css; - window[globalField].styleRenderQueueMap.delete(id); - window[globalField].styleIdMap.set(id, css); - } - replaceCssColors(html, variables).then((processCss) => { - appendCssToDom(styleDom, processCss, injectTo); - }); -} -export async function replaceStyleVariables({ colorVariables, customCssHandler }) { - setGlobalOptions("colorVariables", colorVariables); - const styleIdMap = getGlobalOptions("styleIdMap"); - const styleRenderQueueMap = getGlobalOptions("styleRenderQueueMap"); - if (!isProd) { - for (const [id, css] of styleIdMap.entries()) { - styleRenderQueueMap.set(id, css); + const variables = getGlobalOptions("colorVariables"); + if (!variables) { + return; } - renderTheme(); - } else { - const cssText = await fetchCss(colorPluginOutputFileName); + const styleRenderQueueMap = getGlobalOptions("styleRenderQueueMap"); const styleDom = getStyleDom(styleTagId); - const processCss = await replaceCssColors(cssText, colorVariables, customCssHandler); - appendCssToDom(styleDom, processCss, injectTo); - } + let html = styleDom.innerHTML; + for (const [id, css] of styleRenderQueueMap.entries()) { + html += css; + window[globalField].styleRenderQueueMap.delete(id); + window[globalField].styleIdMap.set(id, css); + } + replaceCssColors(html, variables).then((processCss) => { + appendCssToDom(styleDom, processCss, injectTo); + }); +} +export async function replaceStyleVariables({ colorVariables, customCssHandler, }) { + setGlobalOptions("colorVariables", colorVariables); + const styleIdMap = getGlobalOptions("styleIdMap"); + const styleRenderQueueMap = getGlobalOptions("styleRenderQueueMap"); + if (!isProd) { + for (const [id, css] of styleIdMap.entries()) { + styleRenderQueueMap.set(id, css); + } + renderTheme(); + } + else { + const cssText = await fetchCss(colorPluginOutputFileName); + const styleDom = getStyleDom(styleTagId); + const processCss = await replaceCssColors(cssText, colorVariables, customCssHandler); + appendCssToDom(styleDom, processCss, injectTo); + } } export async function loadDarkThemeCss() { - const isLoadLink = __ANTD_DARK_PLUGIN_LOAD_LINK__; - const extractCss = __ANTD_DARK_PLUGIN_EXTRACT_CSS__; - if (darkCssIsReady || !extractCss) { - return; - } - if (isLoadLink) { - const linkTag = document.getElementById(linkID); - if (linkTag) { - linkTag.removeAttribute("disabled"); - linkTag.setAttribute("rel", "stylesheet"); + const isLoadLink = __ANTD_DARK_PLUGIN_LOAD_LINK__; + const extractCss = __ANTD_DARK_PLUGIN_EXTRACT_CSS__; + if (darkCssIsReady || !extractCss) { + return; + } + if (isLoadLink) { + const linkTag = document.getElementById(linkID); + if (linkTag) { + linkTag.removeAttribute("disabled"); + linkTag.setAttribute("rel", "stylesheet"); + } + } + else { + const cssText = await fetchCss(__ANTD_DARK_PLUGIN_OUTPUT_FILE_NAME__); + const styleDom = getStyleDom(darkStyleTagId); + appendCssToDom(styleDom, cssText, injectTo); } - } else { - const cssText = await fetchCss(__ANTD_DARK_PLUGIN_OUTPUT_FILE_NAME__); - const styleDom = getStyleDom(darkStyleTagId); - appendCssToDom(styleDom, cssText, injectTo); - } - darkCssIsReady = true; + darkCssIsReady = true; } // Used to replace css color variables. Note that the order of the two arrays must be the same export async function replaceCssColors(css, colors, customCssHandler) { - let retCss = css; - const defaultOptions = getGlobalOptions("defaultOptions"); - const colorVariables = defaultOptions ? defaultOptions.colorVariables || [] : []; - colorVariables.forEach((color, index) => { - const reg = new RegExp(`${color.replace(/,/g, ",\\s*").replace(/\s/g, "").replace("(", "\\(").replace(")", "\\)")}([\\da-f]{2})?(\\b|\\)|,|\\s)?`, "ig"); - retCss = retCss.replace(reg, `${colors[index]}$1$2`).replace("$1$2", ""); - if (customCssHandler && typeof customCssHandler === "function") { - retCss = customCssHandler(retCss) || retCss; - } - }); - return retCss; + let retCss = css; + const defaultOptions = getGlobalOptions("defaultOptions"); + const colorVariables = defaultOptions ? defaultOptions.colorVariables || [] : []; + colorVariables.forEach((color, index) => { + const reg = new RegExp(`${color.replace(/,/g, ",\\s*").replace(/\s/g, "").replace("(", "\\(").replace(")", "\\)")}([\\da-f]{2})?(\\b|\\)|,|\\s)?`, "ig"); + retCss = retCss.replace(reg, `${colors[index]}$1$2`).replace("$1$2", ""); + if (customCssHandler && typeof customCssHandler === "function") { + retCss = customCssHandler(retCss) || retCss; + } + }); + return retCss; } export function setGlobalOptions(key, value) { - window[globalField][key] = value; + window[globalField][key] = value; } export function getGlobalOptions(key) { - return window[globalField][key]; + return window[globalField][key]; } export function getStyleDom(id) { - let style = document.getElementById(id); - if (!style) { - style = document.createElement("style"); - style.setAttribute("id", id); - } - return style; + let style = document.getElementById(id); + if (!style) { + style = document.createElement("style"); + style.setAttribute("id", id); + } + return style; } export async function appendCssToDom(styleDom, cssText, appendTo = "body") { - styleDom.innerHTML = cssText; - if (appendTo === "head") { - document.head.appendChild(styleDom); - } else if (appendTo === "body") { - document.body.appendChild(styleDom); - } else if (appendTo === "body-prepend") { - const firstChildren = document.body.firstChild; - document.body.insertBefore(styleDom, firstChildren); - } + styleDom.innerHTML = cssText; + if (appendTo === "head") { + document.head.appendChild(styleDom); + } + else if (appendTo === "body") { + document.body.appendChild(styleDom); + } + else if (appendTo === "body-prepend") { + const firstChildren = document.body.firstChild; + document.body.insertBefore(styleDom, firstChildren); + } } function fetchCss(fileName) { - return new Promise((resolve, reject) => { - const append = getGlobalOptions("appended"); - if (append) { - setGlobalOptions("appended", false); - resolve(""); - return; - } - const xhr = new XMLHttpRequest(); - xhr.onload = function () { - if (xhr.readyState === 4) { - if (xhr.status === 200) { - resolve(xhr.responseText); - } else { - reject(xhr.status); + return new Promise((resolve, reject) => { + const append = getGlobalOptions("appended"); + if (append) { + setGlobalOptions("appended", false); + resolve(""); + return; } - } - }; - xhr.onerror = function (e) { - reject(e); - }; - xhr.ontimeout = function (e) { - reject(e); - }; - xhr.open("GET", fileName, true); - xhr.send(); - }); + const xhr = new XMLHttpRequest(); + xhr.onload = function () { + if (xhr.readyState === 4) { + if (xhr.status === 200) { + resolve(xhr.responseText); + } + else { + reject(xhr.status); + } + } + }; + xhr.onerror = function (e) { + reject(e); + }; + xhr.ontimeout = function (e) { + reject(e); + }; + xhr.open("GET", fileName, true); + xhr.send(); + }); } // 防抖 function debounce(duration, fn) { - let timer = -1; - return function (...args) { - if (timer > -1) { - clearTimeout(timer); - } - timer = window.setTimeout(() => { - fn.bind(this)(...args); - timer = -1; - }, duration); - }; + let timer = -1; + return function (...args) { + if (timer > -1) { + clearTimeout(timer); + } + timer = window.setTimeout(() => { + fn.bind(this)(...args); + timer = -1; + }, duration); + }; } diff --git a/es/colorUtils.js b/es/colorUtils.js index 522cd50..555dddf 100644 --- a/es/colorUtils.js +++ b/es/colorUtils.js @@ -1,52 +1,52 @@ import tinycolor from "tinycolor2"; export function mixLighten(colorStr, weight) { - return mix("fff", colorStr, weight); + return mix("fff", colorStr, weight); } export function mixDarken(colorStr, weight) { - return mix("000", colorStr, weight); + return mix("000", colorStr, weight); } export function mix(color1, color2, weight, alpha1, alpha2) { - color1 = dropPrefix(color1); - color2 = dropPrefix(color2); - if (weight === undefined) { - weight = 0.5; - } - if (alpha1 === undefined) { - alpha1 = 1; - } - if (alpha2 === undefined) { - alpha2 = 1; - } - const w = 2 * weight - 1; - const alphaDelta = alpha1 - alpha2; - const w1 = ((w * alphaDelta === -1 ? w : (w + alphaDelta) / (1 + w * alphaDelta)) + 1) / 2; - const w2 = 1 - w1; - const rgb1 = toNum3(color1); - const rgb2 = toNum3(color2); - const r = Math.round(w1 * rgb1[0] + w2 * rgb2[0]); - const g = Math.round(w1 * rgb1[1] + w2 * rgb2[1]); - const b = Math.round(w1 * rgb1[2] + w2 * rgb2[2]); - return `#${pad2(r)}${pad2(g)}${pad2(b)}`; + color1 = dropPrefix(color1); + color2 = dropPrefix(color2); + if (weight === undefined) { + weight = 0.5; + } + if (alpha1 === undefined) { + alpha1 = 1; + } + if (alpha2 === undefined) { + alpha2 = 1; + } + const w = 2 * weight - 1; + const alphaDelta = alpha1 - alpha2; + const w1 = ((w * alphaDelta === -1 ? w : (w + alphaDelta) / (1 + w * alphaDelta)) + 1) / 2; + const w2 = 1 - w1; + const rgb1 = toNum3(color1); + const rgb2 = toNum3(color2); + const r = Math.round(w1 * rgb1[0] + w2 * rgb2[0]); + const g = Math.round(w1 * rgb1[1] + w2 * rgb2[1]); + const b = Math.round(w1 * rgb1[2] + w2 * rgb2[2]); + return `#${pad2(r)}${pad2(g)}${pad2(b)}`; } export function toNum3(colorStr) { - colorStr = dropPrefix(colorStr); - if (colorStr.length === 3) { - colorStr = colorStr[0] + colorStr[0] + colorStr[1] + colorStr[1] + colorStr[2] + colorStr[2]; - } - const r = parseInt(colorStr.slice(0, 2), 16); - const g = parseInt(colorStr.slice(2, 4), 16); - const b = parseInt(colorStr.slice(4, 6), 16); - return [r, g, b]; + colorStr = dropPrefix(colorStr); + if (colorStr.length === 3) { + colorStr = colorStr[0] + colorStr[0] + colorStr[1] + colorStr[1] + colorStr[2] + colorStr[2]; + } + const r = parseInt(colorStr.slice(0, 2), 16); + const g = parseInt(colorStr.slice(2, 4), 16); + const b = parseInt(colorStr.slice(4, 6), 16); + return [r, g, b]; } export function dropPrefix(colorStr) { - return colorStr.replace("#", ""); + return colorStr.replace("#", ""); } export function pad2(num) { - let t = num.toString(16); - if (t.length === 1) { - t = `0${t}`; - } - return t; + let t = num.toString(16); + if (t.length === 1) { + t = `0${t}`; + } + return t; } // export function isValid(color: string): boolean { // return tinycolor(color).isValid(); diff --git a/package.json b/package.json index 66305eb..8e7d8db 100644 --- a/package.json +++ b/package.json @@ -35,12 +35,12 @@ "vite": ">=3.2.0" }, "dependencies": { - "@types/node": "^14.17.1", - "@types/tinycolor2": "^1.4.2", - "clean-css": "^5.1.2", - "debug": "^4.3.2", - "esbuild": "^0.11.23", - "esbuild-plugin-alias": "^0.1.2", + "@types/node": "^18.11.10", + "@types/tinycolor2": "^1.4.3", + "clean-css": "^5.3.1", + "debug": "^4.3.4", + "esbuild": "^0.15.16", + "esbuild-plugin-alias": "^0.2.1", "picocolors": "^1.0.0", "tinycolor2": "^1.4.2" }, @@ -48,22 +48,22 @@ "@commitlint/cli": "^17.3.0", "@commitlint/config-conventional": "^17.3.0", "@kirklin/eslint-config": "^0.2.1", - "@types/debug": "^4.1.5", - "@types/fs-extra": "^9.0.11", - "@types/jest": "^26.0.23", - "@types/less": "^3.0.2", - "@types/node": "^14.17.1", - "@vue/compiler-sfc": "^3.0.11", - "commitizen": "^4.2.4", - "conventional-changelog-cli": "^2.1.1", - "eslint": "^8.28.0", - "fs-extra": "^9.1.0", - "less": "^4.1.1", - "lint-staged": "^10.5.4", + "@types/debug": "^4.1.7", + "@types/fs-extra": "^9.0.13", + "@types/jest": "^29.2.3", + "@types/less": "^3.0.3", + "@types/node": "^18.11.10", + "@vue/compiler-sfc": "^3.2.45", + "commitizen": "^4.2.5", + "conventional-changelog-cli": "^2.2.2", + "eslint": "^8.29.0", + "fs-extra": "^11.1.0", + "less": "^4.1.3", + "lint-staged": "^13.0.4", "pnpm": "^7.17.1", "rimraf": "^3.0.2", - "tsup": "^6.4.0", - "typescript": "^4.2.4", - "vite": "^3.2.0" + "tsup": "^6.5.0", + "typescript": "^4.9.3", + "vite": "^3.2.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1affc52..7d0a202 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,61 +4,61 @@ specifiers: '@commitlint/cli': ^17.3.0 '@commitlint/config-conventional': ^17.3.0 '@kirklin/eslint-config': ^0.2.1 - '@types/debug': ^4.1.5 - '@types/fs-extra': ^9.0.11 - '@types/jest': ^26.0.23 - '@types/less': ^3.0.2 - '@types/node': ^14.17.1 - '@types/tinycolor2': ^1.4.2 - '@vue/compiler-sfc': ^3.0.11 - clean-css: ^5.1.2 - commitizen: ^4.2.4 - conventional-changelog-cli: ^2.1.1 - debug: ^4.3.2 - esbuild: ^0.11.23 - esbuild-plugin-alias: ^0.1.2 - eslint: ^8.28.0 - fs-extra: ^9.1.0 - less: ^4.1.1 - lint-staged: ^10.5.4 + '@types/debug': ^4.1.7 + '@types/fs-extra': ^9.0.13 + '@types/jest': ^29.2.3 + '@types/less': ^3.0.3 + '@types/node': ^18.11.10 + '@types/tinycolor2': ^1.4.3 + '@vue/compiler-sfc': ^3.2.45 + clean-css: ^5.3.1 + commitizen: ^4.2.5 + conventional-changelog-cli: ^2.2.2 + debug: ^4.3.4 + esbuild: ^0.15.16 + esbuild-plugin-alias: ^0.2.1 + eslint: ^8.29.0 + fs-extra: ^11.1.0 + less: ^4.1.3 + lint-staged: ^13.0.4 picocolors: ^1.0.0 pnpm: ^7.17.1 rimraf: ^3.0.2 tinycolor2: ^1.4.2 - tsup: ^6.4.0 - typescript: ^4.2.4 - vite: ^3.2.0 + tsup: ^6.5.0 + typescript: ^4.9.3 + vite: ^3.2.4 dependencies: - '@types/node': 14.18.34 + '@types/node': 18.11.10 '@types/tinycolor2': 1.4.3 clean-css: 5.3.1 debug: 4.3.4 - esbuild: 0.11.23 - esbuild-plugin-alias: 0.1.2 + esbuild: 0.15.16 + esbuild-plugin-alias: 0.2.1 picocolors: 1.0.0 tinycolor2: 1.4.2 devDependencies: '@commitlint/cli': 17.3.0 '@commitlint/config-conventional': 17.3.0 - '@kirklin/eslint-config': 0.2.1_hsf322ms6xhhd4b5ne6lb74y4a + '@kirklin/eslint-config': 0.2.1_s5ps7njkmjlaqajutnox5ntcla '@types/debug': 4.1.7 '@types/fs-extra': 9.0.13 - '@types/jest': 26.0.24 + '@types/jest': 29.2.3 '@types/less': 3.0.3 '@vue/compiler-sfc': 3.2.45 commitizen: 4.2.5 conventional-changelog-cli: 2.2.2 - eslint: 8.28.0 - fs-extra: 9.1.0 + eslint: 8.29.0 + fs-extra: 11.1.0 less: 4.1.3 - lint-staged: 10.5.4 + lint-staged: 13.0.4 pnpm: 7.17.1 rimraf: 3.0.2 tsup: 6.5.0_typescript@4.9.3 typescript: 4.9.3 - vite: 3.2.4_3hcu2ymg52mccmxnjioacgv2vm + vite: 3.2.4_jli2cq6pksn2o7kwksfthnljyy packages: @@ -286,7 +286,6 @@ packages: cpu: [arm] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/linux-loong64/0.15.16: @@ -295,16 +294,15 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true - dev: true optional: true - /@eslint-community/eslint-utils/4.1.2_eslint@8.28.0: + /@eslint-community/eslint-utils/4.1.2_eslint@8.29.0: resolution: {integrity: sha512-7qELuQWWjVDdVsFQ5+beUl+KPczrEDA7S3zM4QUd/bJl7oXgsmpXaEVqrRTnOBqenOV4rWf2kVZk2Ot085zPWA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.28.0 + eslint: 8.29.0 eslint-visitor-keys: 3.3.0 dev: true @@ -350,14 +348,29 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@jest/types/26.6.2: - resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} - engines: {node: '>= 10.14.2'} + /@jest/expect-utils/29.3.1: + resolution: {integrity: sha512-wlrznINZI5sMjwvUoLVk617ll/UYfGIZNxmbU+Pa7wmkL4vYzhV9R2pwVqUh4NWWuLQWkI8+8mOkxs//prKQ3g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: + jest-get-type: 29.2.0 + dev: true + + /@jest/schemas/29.0.0: + resolution: {integrity: sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.24.51 + dev: true + + /@jest/types/29.3.1: + resolution: {integrity: sha512-d0S0jmmTpjnhCmNpApgX3jrUZgZ22ivKJRvL2lli5hpCRoNnp1f85r2/wpKfXuYu8E7Jjh1hGfhPyup1NM5AmA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/schemas': 29.0.0 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 14.18.34 - '@types/yargs': 15.0.14 + '@types/node': 18.11.10 + '@types/yargs': 17.0.15 chalk: 4.1.2 dev: true @@ -377,23 +390,23 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@kirklin/eslint-config-basic/0.2.1_czs5uoqkd3podpy6vgtsxfc7au: + /@kirklin/eslint-config-basic/0.2.1_yjegg5cyoezm3fzsmuszzhetym: resolution: {integrity: sha512-bc9EXJxxp5nEUnM7aCum+i5bHyWtrkzJV2j0pZc62pT+jKE/Y8ilVYFNbHbaS9oGuIsg0uA967UrfVntFp9JNQ==} peerDependencies: eslint: '>=7.4.0' dependencies: - eslint: 8.28.0 - eslint-plugin-eslint-comments: 3.2.0_eslint@8.28.0 + eslint: 8.29.0 + eslint-plugin-eslint-comments: 3.2.0_eslint@8.29.0 eslint-plugin-html: 7.1.0 - eslint-plugin-import: 2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq - eslint-plugin-jsonc: 2.5.0_eslint@8.28.0 - eslint-plugin-kirklin: 0.2.1_hsf322ms6xhhd4b5ne6lb74y4a - eslint-plugin-markdown: 3.0.0_eslint@8.28.0 - eslint-plugin-n: 15.5.1_eslint@8.28.0 + eslint-plugin-import: 2.26.0_ub3senzxbs32f65wl7xoyha6lu + eslint-plugin-jsonc: 2.5.0_eslint@8.29.0 + eslint-plugin-kirklin: 0.2.1_s5ps7njkmjlaqajutnox5ntcla + eslint-plugin-markdown: 3.0.0_eslint@8.29.0 + eslint-plugin-n: 15.5.1_eslint@8.29.0 eslint-plugin-no-only-tests: 3.1.0 - eslint-plugin-promise: 6.1.1_eslint@8.28.0 - eslint-plugin-unicorn: 45.0.1_eslint@8.28.0 - eslint-plugin-yml: 1.2.0_eslint@8.28.0 + eslint-plugin-promise: 6.1.1_eslint@8.29.0 + eslint-plugin-unicorn: 45.0.1_eslint@8.29.0 + eslint-plugin-yml: 1.2.0_eslint@8.29.0 jsonc-eslint-parser: 2.1.0 yaml-eslint-parser: 1.1.0 transitivePeerDependencies: @@ -404,16 +417,16 @@ packages: - typescript dev: true - /@kirklin/eslint-config-ts/0.2.1_hsf322ms6xhhd4b5ne6lb74y4a: + /@kirklin/eslint-config-ts/0.2.1_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-8H7ejZTs8Qz8fSquR9Wk+xAsRNFZFk73cOGC81aZSg4ZeXKsO0JIpleYR1UatKvVi/BRM0DDZOz9mDoVl8QOpA==} peerDependencies: eslint: '>=7.4.0' typescript: '>=3.9' dependencies: - '@kirklin/eslint-config-basic': 0.2.1_czs5uoqkd3podpy6vgtsxfc7au - '@typescript-eslint/eslint-plugin': 5.45.0_czs5uoqkd3podpy6vgtsxfc7au - '@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a - eslint: 8.28.0 + '@kirklin/eslint-config-basic': 0.2.1_yjegg5cyoezm3fzsmuszzhetym + '@typescript-eslint/eslint-plugin': 5.45.0_yjegg5cyoezm3fzsmuszzhetym + '@typescript-eslint/parser': 5.45.0_s5ps7njkmjlaqajutnox5ntcla + eslint: 8.29.0 typescript: 4.9.3 transitivePeerDependencies: - eslint-import-resolver-typescript @@ -421,15 +434,15 @@ packages: - supports-color dev: true - /@kirklin/eslint-config-vue/0.2.1_czs5uoqkd3podpy6vgtsxfc7au: + /@kirklin/eslint-config-vue/0.2.1_yjegg5cyoezm3fzsmuszzhetym: resolution: {integrity: sha512-ga44qsChNk+awDAuRABLEp9xnclQ+Y7Z6z0SjYrFB7H7hy96nB3WDCtj3On/wEpNRUjo2dZKIhs75ZzVbqGnVQ==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@kirklin/eslint-config-basic': 0.2.1_czs5uoqkd3podpy6vgtsxfc7au - '@kirklin/eslint-config-ts': 0.2.1_hsf322ms6xhhd4b5ne6lb74y4a - eslint: 8.28.0 - eslint-plugin-vue: 9.8.0_eslint@8.28.0 + '@kirklin/eslint-config-basic': 0.2.1_yjegg5cyoezm3fzsmuszzhetym + '@kirklin/eslint-config-ts': 0.2.1_s5ps7njkmjlaqajutnox5ntcla + eslint: 8.29.0 + eslint-plugin-vue: 9.8.0_eslint@8.29.0 local-pkg: 0.4.2 transitivePeerDependencies: - '@typescript-eslint/parser' @@ -439,24 +452,24 @@ packages: - typescript dev: true - /@kirklin/eslint-config/0.2.1_hsf322ms6xhhd4b5ne6lb74y4a: + /@kirklin/eslint-config/0.2.1_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-CI7RxxH/7QS1pFQZ3QTC8/2Qglyn/onx8ef6Ety7qRKXtXZUFBcKWM4i/PEzYQ4paM8WNFVcwYyUjqFO8rOmIA==} peerDependencies: eslint: '>=7.4.0' dependencies: - '@kirklin/eslint-config-vue': 0.2.1_czs5uoqkd3podpy6vgtsxfc7au - '@typescript-eslint/eslint-plugin': 5.45.0_czs5uoqkd3podpy6vgtsxfc7au - '@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a - eslint: 8.28.0 - eslint-plugin-eslint-comments: 3.2.0_eslint@8.28.0 + '@kirklin/eslint-config-vue': 0.2.1_yjegg5cyoezm3fzsmuszzhetym + '@typescript-eslint/eslint-plugin': 5.45.0_yjegg5cyoezm3fzsmuszzhetym + '@typescript-eslint/parser': 5.45.0_s5ps7njkmjlaqajutnox5ntcla + eslint: 8.29.0 + eslint-plugin-eslint-comments: 3.2.0_eslint@8.29.0 eslint-plugin-html: 7.1.0 - eslint-plugin-import: 2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq - eslint-plugin-jsonc: 2.5.0_eslint@8.28.0 - eslint-plugin-n: 15.5.1_eslint@8.28.0 - eslint-plugin-promise: 6.1.1_eslint@8.28.0 - eslint-plugin-unicorn: 45.0.1_eslint@8.28.0 - eslint-plugin-vue: 9.8.0_eslint@8.28.0 - eslint-plugin-yml: 1.2.0_eslint@8.28.0 + eslint-plugin-import: 2.26.0_ub3senzxbs32f65wl7xoyha6lu + eslint-plugin-jsonc: 2.5.0_eslint@8.29.0 + eslint-plugin-n: 15.5.1_eslint@8.29.0 + eslint-plugin-promise: 6.1.1_eslint@8.29.0 + eslint-plugin-unicorn: 45.0.1_eslint@8.29.0 + eslint-plugin-vue: 9.8.0_eslint@8.29.0 + eslint-plugin-yml: 1.2.0_eslint@8.29.0 jsonc-eslint-parser: 2.1.0 yaml-eslint-parser: 1.1.0 transitivePeerDependencies: @@ -487,6 +500,10 @@ packages: fastq: 1.13.0 dev: true + /@sinclair/typebox/0.24.51: + resolution: {integrity: sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==} + dev: true + /@tsconfig/node10/1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} dev: true @@ -512,7 +529,7 @@ packages: /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.34 + '@types/node': 18.11.10 dev: true /@types/istanbul-lib-coverage/2.0.4: @@ -531,11 +548,11 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest/26.0.24: - resolution: {integrity: sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==} + /@types/jest/29.2.3: + resolution: {integrity: sha512-6XwoEbmatfyoCjWRX7z0fKMmgYKe9+/HrviJ5k0X/tjJWHGAezZOfYaxqQKuzG/TvQyr+ktjm4jgbk0s4/oF2w==} dependencies: - jest-diff: 26.6.2 - pretty-format: 26.6.2 + expect: 29.3.1 + pretty-format: 29.3.1 dev: true /@types/json-schema/7.0.11: @@ -566,6 +583,10 @@ packages: /@types/node/14.18.34: resolution: {integrity: sha512-hcU9AIQVHmPnmjRK+XUUYlILlr9pQrsqSrwov/JK1pnf3GTQowVBhx54FbvM0AU/VXGH4i3+vgXS5EguR7fysA==} + dev: true + + /@types/node/18.11.10: + resolution: {integrity: sha512-juG3RWMBOqcOuXC643OAdSA525V44cVgGV6dUDuiFtss+8Fk5x1hI93Rsld43VeJVIeqlP9I7Fn9/qaVqoEAuQ==} /@types/normalize-package-data/2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -579,6 +600,10 @@ packages: resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==} dev: true + /@types/stack-utils/2.0.1: + resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} + dev: true + /@types/tinycolor2/1.4.3: resolution: {integrity: sha512-Kf1w9NE5HEgGxCRyIcRXR/ZYtDv0V8FVPtYHwLxl0O+maGX0erE77pQlD0gpP+/KByMZ87mOA79SjifhSB3PjQ==} dev: false @@ -591,13 +616,13 @@ packages: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} dev: true - /@types/yargs/15.0.14: - resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} + /@types/yargs/17.0.15: + resolution: {integrity: sha512-ZHc4W2dnEQPfhn06TBEdWaiUHEZAocYaiVMfwOipY5jcJt/251wVrKCBWBetGZWO5CF8tdb7L3DmdxVlZ2BOIg==} dependencies: '@types/yargs-parser': 21.0.0 dev: true - /@typescript-eslint/eslint-plugin/5.45.0_czs5uoqkd3podpy6vgtsxfc7au: + /@typescript-eslint/eslint-plugin/5.45.0_yjegg5cyoezm3fzsmuszzhetym: resolution: {integrity: sha512-CXXHNlf0oL+Yg021cxgOdMHNTXD17rHkq7iW6RFHoybdFgQBjU3yIXhhcPpGwr1CjZlo6ET8C6tzX5juQoXeGA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -608,12 +633,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/parser': 5.45.0_s5ps7njkmjlaqajutnox5ntcla '@typescript-eslint/scope-manager': 5.45.0 - '@typescript-eslint/type-utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a - '@typescript-eslint/utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/type-utils': 5.45.0_s5ps7njkmjlaqajutnox5ntcla + '@typescript-eslint/utils': 5.45.0_s5ps7njkmjlaqajutnox5ntcla debug: 4.3.4 - eslint: 8.28.0 + eslint: 8.29.0 ignore: 5.2.1 natural-compare-lite: 1.4.0 regexpp: 3.2.0 @@ -624,7 +649,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a: + /@typescript-eslint/parser/5.45.0_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-brvs/WSM4fKUmF5Ot/gEve6qYiCMjm6w4HkHPfS6ZNmxTS0m0iNN4yOChImaCkqc1hRwFGqUyanMXuGal6oyyQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -638,7 +663,7 @@ packages: '@typescript-eslint/types': 5.45.0 '@typescript-eslint/typescript-estree': 5.45.0_typescript@4.9.3 debug: 4.3.4 - eslint: 8.28.0 + eslint: 8.29.0 typescript: 4.9.3 transitivePeerDependencies: - supports-color @@ -652,7 +677,7 @@ packages: '@typescript-eslint/visitor-keys': 5.45.0 dev: true - /@typescript-eslint/type-utils/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a: + /@typescript-eslint/type-utils/5.45.0_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-DY7BXVFSIGRGFZ574hTEyLPRiQIvI/9oGcN8t1A7f6zIs6ftbrU0nhyV26ZW//6f85avkwrLag424n+fkuoJ1Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -663,9 +688,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.45.0_typescript@4.9.3 - '@typescript-eslint/utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/utils': 5.45.0_s5ps7njkmjlaqajutnox5ntcla debug: 4.3.4 - eslint: 8.28.0 + eslint: 8.29.0 tsutils: 3.21.0_typescript@4.9.3 typescript: 4.9.3 transitivePeerDependencies: @@ -698,7 +723,7 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.45.0_hsf322ms6xhhd4b5ne6lb74y4a: + /@typescript-eslint/utils/5.45.0_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-OUg2JvsVI1oIee/SwiejTot2OxwU8a7UfTFMOdlhD2y+Hl6memUSL4s98bpUTo8EpVEr0lmwlU7JSu/p2QpSvA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -709,9 +734,9 @@ packages: '@typescript-eslint/scope-manager': 5.45.0 '@typescript-eslint/types': 5.45.0 '@typescript-eslint/typescript-estree': 5.45.0_typescript@4.9.3 - eslint: 8.28.0 + eslint: 8.29.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.28.0 + eslint-utils: 3.0.0_eslint@8.29.0 semver: 7.3.8 transitivePeerDependencies: - supports-color @@ -835,11 +860,6 @@ packages: uri-js: 4.4.1 dev: true - /ansi-colors/4.1.3: - resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} - engines: {node: '>=6'} - dev: true - /ansi-escapes/4.3.2: resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} engines: {node: '>=8'} @@ -852,6 +872,11 @@ packages: engines: {node: '>=8'} dev: true + /ansi-regex/6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: true + /ansi-styles/3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -866,6 +891,16 @@ packages: color-convert: 2.0.1 dev: true + /ansi-styles/5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + dev: true + + /ansi-styles/6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: true + /any-promise/1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} dev: true @@ -1126,6 +1161,14 @@ packages: string-width: 4.2.3 dev: true + /cli-truncate/3.1.0: + resolution: {integrity: sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + slice-ansi: 5.0.0 + string-width: 5.1.2 + dev: true + /cli-width/3.0.0: resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} engines: {node: '>= 10'} @@ -1183,9 +1226,9 @@ packages: engines: {node: '>= 6'} dev: true - /commander/6.2.1: - resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} - engines: {node: '>= 6'} + /commander/9.4.1: + resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==} + engines: {node: ^12.20.0 || >=14} dev: true /commitizen/4.2.5: @@ -1553,9 +1596,9 @@ packages: engines: {node: '>=8'} dev: true - /diff-sequences/26.6.2: - resolution: {integrity: sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==} - engines: {node: '>= 10.14.2'} + /diff-sequences/29.3.1: + resolution: {integrity: sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true /diff/4.0.2: @@ -1618,21 +1661,16 @@ packages: is-obj: 2.0.0 dev: true - /emoji-regex/8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + /eastasianwidth/0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /end-of-stream/1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - dependencies: - once: 1.4.0 + /emoji-regex/8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: true - /enquirer/2.3.6: - resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==} - engines: {node: '>=8.6'} - dependencies: - ansi-colors: 4.1.3 + /emoji-regex/9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} dev: true /entities/4.4.0: @@ -1706,7 +1744,6 @@ packages: cpu: [x64] os: [android] requiresBuild: true - dev: true optional: true /esbuild-android-arm64/0.15.16: @@ -1715,7 +1752,6 @@ packages: cpu: [arm64] os: [android] requiresBuild: true - dev: true optional: true /esbuild-darwin-64/0.15.16: @@ -1724,7 +1760,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /esbuild-darwin-arm64/0.15.16: @@ -1733,7 +1768,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /esbuild-freebsd-64/0.15.16: @@ -1742,7 +1776,6 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true - dev: true optional: true /esbuild-freebsd-arm64/0.15.16: @@ -1751,7 +1784,6 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true - dev: true optional: true /esbuild-linux-32/0.15.16: @@ -1760,7 +1792,6 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-64/0.15.16: @@ -1769,7 +1800,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-arm/0.15.16: @@ -1778,7 +1808,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-arm64/0.15.16: @@ -1787,7 +1816,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-mips64le/0.15.16: @@ -1796,7 +1824,6 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-ppc64le/0.15.16: @@ -1805,7 +1832,6 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-riscv64/0.15.16: @@ -1814,7 +1840,6 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-linux-s390x/0.15.16: @@ -1823,7 +1848,6 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true - dev: true optional: true /esbuild-netbsd-64/0.15.16: @@ -1832,7 +1856,6 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true - dev: true optional: true /esbuild-openbsd-64/0.15.16: @@ -1841,11 +1864,10 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true - dev: true optional: true - /esbuild-plugin-alias/0.1.2: - resolution: {integrity: sha512-WsX0OJy8IGOsGZV+4oHEU5B6XQUpxOsZN1iSoYf9COTDbY7WXcOwd1oCLYNWUIWCExyGXSghIGq2k7sXBldxwQ==} + /esbuild-plugin-alias/0.2.1: + resolution: {integrity: sha512-jyfL/pwPqaFXyKnj8lP8iLk6Z0m099uXR45aSN8Av1XD4vhvQutxxPzgA2bTcAwQpa1zCXDcWOlhFgyP3GKqhQ==} dev: false /esbuild-sunos-64/0.15.16: @@ -1854,7 +1876,6 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true - dev: true optional: true /esbuild-windows-32/0.15.16: @@ -1863,7 +1884,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /esbuild-windows-64/0.15.16: @@ -1872,7 +1892,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true /esbuild-windows-arm64/0.15.16: @@ -1881,15 +1900,8 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true - /esbuild/0.11.23: - resolution: {integrity: sha512-iaiZZ9vUF5wJV8ob1tl+5aJTrwDczlvGP0JoMmnpC2B0ppiMCu8n8gmy5ZTGl5bcG081XBVn+U+jP+mPFm5T5Q==} - hasBin: true - requiresBuild: true - dev: false - /esbuild/0.15.16: resolution: {integrity: sha512-o6iS9zxdHrrojjlj6pNGC2NAg86ECZqIETswTM5KmJitq+R1YmahhWtMumeQp9lHqJaROGnsBi2RLawGnfo5ZQ==} engines: {node: '>=12'} @@ -1918,7 +1930,6 @@ packages: esbuild-windows-32: 0.15.16 esbuild-windows-64: 0.15.16 esbuild-windows-arm64: 0.15.16 - dev: true /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -1930,6 +1941,11 @@ packages: engines: {node: '>=0.8.0'} dev: true + /escape-string-regexp/2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + dev: true + /escape-string-regexp/4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -1944,7 +1960,7 @@ packages: - supports-color dev: true - /eslint-module-utils/2.7.4_kr6tb4mi2cmpd7whrqyyy67tyi: + /eslint-module-utils/2.7.4_ka2zl4kbfnnb6pzn3mgzpmhlt4: resolution: {integrity: sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==} engines: {node: '>=4'} peerDependencies: @@ -1965,33 +1981,33 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/parser': 5.45.0_s5ps7njkmjlaqajutnox5ntcla debug: 3.2.7 - eslint: 8.28.0 + eslint: 8.29.0 eslint-import-resolver-node: 0.3.6 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-es/4.1.0_eslint@8.28.0: + /eslint-plugin-es/4.1.0_eslint@8.29.0: resolution: {integrity: sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=4.19.1' dependencies: - eslint: 8.28.0 + eslint: 8.29.0 eslint-utils: 2.1.0 regexpp: 3.2.0 dev: true - /eslint-plugin-eslint-comments/3.2.0_eslint@8.28.0: + /eslint-plugin-eslint-comments/3.2.0_eslint@8.29.0: resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==} engines: {node: '>=6.5.0'} peerDependencies: eslint: '>=4.19.1' dependencies: escape-string-regexp: 1.0.5 - eslint: 8.28.0 + eslint: 8.29.0 ignore: 5.2.1 dev: true @@ -2001,7 +2017,7 @@ packages: htmlparser2: 8.0.1 dev: true - /eslint-plugin-import/2.26.0_vbnhqcxlbs7ynbxw44hu2vq7eq: + /eslint-plugin-import/2.26.0_ub3senzxbs32f65wl7xoyha6lu: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: @@ -2011,14 +2027,14 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/parser': 5.45.0_s5ps7njkmjlaqajutnox5ntcla array-includes: 3.1.6 array.prototype.flat: 1.3.1 debug: 2.6.9 doctrine: 2.1.0 - eslint: 8.28.0 + eslint: 8.29.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.4_kr6tb4mi2cmpd7whrqyyy67tyi + eslint-module-utils: 2.7.4_ka2zl4kbfnnb6pzn3mgzpmhlt4 has: 1.0.3 is-core-module: 2.11.0 is-glob: 4.0.3 @@ -2032,50 +2048,50 @@ packages: - supports-color dev: true - /eslint-plugin-jsonc/2.5.0_eslint@8.28.0: + /eslint-plugin-jsonc/2.5.0_eslint@8.29.0: resolution: {integrity: sha512-G257khwkrOQ5MJpSzz4yQh5K12W4xFZRcHmVlhVFWh2GCLDX+JwHnmkQoUoFDbOieSPBMsPFZDTJScwrXiWlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '>=6.0.0' dependencies: - eslint: 8.28.0 - eslint-utils: 3.0.0_eslint@8.28.0 + eslint: 8.29.0 + eslint-utils: 3.0.0_eslint@8.29.0 jsonc-eslint-parser: 2.1.0 natural-compare: 1.4.0 dev: true - /eslint-plugin-kirklin/0.2.1_hsf322ms6xhhd4b5ne6lb74y4a: + /eslint-plugin-kirklin/0.2.1_s5ps7njkmjlaqajutnox5ntcla: resolution: {integrity: sha512-8GSLOx15h5xSjW2yEfCj3dmvq8HwQXcUS+kaoYyY8ySltCnJNXBgFxPoQqw+AL7aDBC7NHJrzeXLX+Z34i5uQg==} dependencies: - '@typescript-eslint/utils': 5.45.0_hsf322ms6xhhd4b5ne6lb74y4a + '@typescript-eslint/utils': 5.45.0_s5ps7njkmjlaqajutnox5ntcla transitivePeerDependencies: - eslint - supports-color - typescript dev: true - /eslint-plugin-markdown/3.0.0_eslint@8.28.0: + /eslint-plugin-markdown/3.0.0_eslint@8.29.0: resolution: {integrity: sha512-hRs5RUJGbeHDLfS7ELanT0e29Ocyssf/7kBM+p7KluY5AwngGkDf8Oyu4658/NZSGTTq05FZeWbkxXtbVyHPwg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.28.0 + eslint: 8.29.0 mdast-util-from-markdown: 0.8.5 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-n/15.5.1_eslint@8.28.0: + /eslint-plugin-n/15.5.1_eslint@8.29.0: resolution: {integrity: sha512-kAd+xhZm7brHoFLzKLB7/FGRFJNg/srmv67mqb7tto22rpr4wv/LV6RuXzAfv3jbab7+k1wi42PsIhGviywaaw==} engines: {node: '>=12.22.0'} peerDependencies: eslint: '>=7.0.0' dependencies: builtins: 5.0.1 - eslint: 8.28.0 - eslint-plugin-es: 4.1.0_eslint@8.28.0 - eslint-utils: 3.0.0_eslint@8.28.0 + eslint: 8.29.0 + eslint-plugin-es: 4.1.0_eslint@8.29.0 + eslint-utils: 3.0.0_eslint@8.29.0 ignore: 5.2.1 is-core-module: 2.11.0 minimatch: 3.1.2 @@ -2088,26 +2104,26 @@ packages: engines: {node: '>=5.0.0'} dev: true - /eslint-plugin-promise/6.1.1_eslint@8.28.0: + /eslint-plugin-promise/6.1.1_eslint@8.29.0: resolution: {integrity: sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.28.0 + eslint: 8.29.0 dev: true - /eslint-plugin-unicorn/45.0.1_eslint@8.28.0: + /eslint-plugin-unicorn/45.0.1_eslint@8.29.0: resolution: {integrity: sha512-tLnIw5oDJJc3ILYtlKtqOxPP64FZLTkZkgeuoN6e7x6zw+rhBjOxyvq2c7577LGxXuIhBYrwisZuKNqOOHp3BA==} engines: {node: '>=14.18'} peerDependencies: eslint: '>=8.28.0' dependencies: '@babel/helper-validator-identifier': 7.19.1 - '@eslint-community/eslint-utils': 4.1.2_eslint@8.28.0 + '@eslint-community/eslint-utils': 4.1.2_eslint@8.29.0 ci-info: 3.7.0 clean-regexp: 1.0.0 - eslint: 8.28.0 + eslint: 8.29.0 esquery: 1.4.0 indent-string: 4.0.0 is-builtin-module: 3.2.0 @@ -2122,32 +2138,32 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vue/9.8.0_eslint@8.28.0: + /eslint-plugin-vue/9.8.0_eslint@8.29.0: resolution: {integrity: sha512-E/AXwcTzunyzM83C2QqDHxepMzvI2y6x+mmeYHbVDQlKFqmKYvRrhaVixEeeG27uI44p9oKDFiyCRw4XxgtfHA==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.28.0 - eslint-utils: 3.0.0_eslint@8.28.0 + eslint: 8.29.0 + eslint-utils: 3.0.0_eslint@8.29.0 natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 6.0.11 semver: 7.3.8 - vue-eslint-parser: 9.1.0_eslint@8.28.0 + vue-eslint-parser: 9.1.0_eslint@8.29.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-yml/1.2.0_eslint@8.28.0: + /eslint-plugin-yml/1.2.0_eslint@8.29.0: resolution: {integrity: sha512-v0jAU/F5SJg28zkpxwGpY04eGZMWFP6os8u2qaEAIRjSH2GqrNl0yBR5+sMHLU/026kAduxVbvLSqmT3Mu3O0g==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: '>=6.0.0' dependencies: debug: 4.3.4 - eslint: 8.28.0 + eslint: 8.29.0 lodash: 4.17.21 natural-compare: 1.4.0 yaml-eslint-parser: 1.1.0 @@ -2178,13 +2194,13 @@ packages: eslint-visitor-keys: 1.3.0 dev: true - /eslint-utils/3.0.0_eslint@8.28.0: + /eslint-utils/3.0.0_eslint@8.29.0: resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.28.0 + eslint: 8.29.0 eslint-visitor-keys: 2.1.0 dev: true @@ -2203,8 +2219,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint/8.28.0: - resolution: {integrity: sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==} + /eslint/8.29.0: + resolution: {integrity: sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: @@ -2219,7 +2235,7 @@ packages: doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.1.1 - eslint-utils: 3.0.0_eslint@8.28.0 + eslint-utils: 3.0.0_eslint@8.29.0 eslint-visitor-keys: 3.3.0 espree: 9.4.1 esquery: 1.4.0 @@ -2293,13 +2309,13 @@ packages: engines: {node: '>=0.10.0'} dev: true - /execa/4.1.0: - resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==} + /execa/5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} dependencies: cross-spawn: 7.0.3 - get-stream: 5.2.0 - human-signals: 1.1.1 + get-stream: 6.0.1 + human-signals: 2.1.0 is-stream: 2.0.1 merge-stream: 2.0.0 npm-run-path: 4.0.1 @@ -2308,19 +2324,19 @@ packages: strip-final-newline: 2.0.0 dev: true - /execa/5.1.1: - resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} - engines: {node: '>=10'} + /execa/6.1.0: + resolution: {integrity: sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: cross-spawn: 7.0.3 get-stream: 6.0.1 - human-signals: 2.1.0 - is-stream: 2.0.1 + human-signals: 3.0.1 + is-stream: 3.0.0 merge-stream: 2.0.0 - npm-run-path: 4.0.1 - onetime: 5.1.2 + npm-run-path: 5.1.0 + onetime: 6.0.0 signal-exit: 3.0.7 - strip-final-newline: 2.0.0 + strip-final-newline: 3.0.0 dev: true /expand-tilde/2.0.2: @@ -2330,6 +2346,17 @@ packages: homedir-polyfill: 1.0.3 dev: true + /expect/29.3.1: + resolution: {integrity: sha512-gGb1yTgU30Q0O/tQq+z30KBWv24ApkMgFUpvKBkyLUBL68Wv8dHdJxTBZFl/iT8K/bqDHvUYRH6IIN3rToopPA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/expect-utils': 29.3.1 + jest-get-type: 29.2.0 + jest-matcher-utils: 29.3.1 + jest-message-util: 29.3.1 + jest-util: 29.3.1 + dev: true + /external-editor/3.1.0: resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} engines: {node: '>=4'} @@ -2454,6 +2481,15 @@ packages: universalify: 2.0.0 dev: true + /fs-extra/11.1.0: + resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==} + engines: {node: '>=14.14'} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + /fs-extra/9.1.0: resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} engines: {node: '>=10'} @@ -2507,10 +2543,6 @@ packages: has-symbols: 1.0.3 dev: true - /get-own-enumerable-property-symbols/3.0.2: - resolution: {integrity: sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==} - dev: true - /get-pkg-repo/4.2.1: resolution: {integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==} engines: {node: '>=6.9.0'} @@ -2522,13 +2554,6 @@ packages: yargs: 16.2.0 dev: true - /get-stream/5.2.0: - resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} - engines: {node: '>=8'} - dependencies: - pump: 3.0.0 - dev: true - /get-stream/6.0.1: resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} engines: {node: '>=10'} @@ -2751,16 +2776,16 @@ packages: entities: 4.4.0 dev: true - /human-signals/1.1.1: - resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} - engines: {node: '>=8.12.0'} - dev: true - /human-signals/2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} dev: true + /human-signals/3.0.1: + resolution: {integrity: sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==} + engines: {node: '>=12.20.0'} + dev: true + /iconv-lite/0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -2931,6 +2956,11 @@ packages: engines: {node: '>=8'} dev: true + /is-fullwidth-code-point/4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + dev: true + /is-glob/4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -2964,11 +2994,6 @@ packages: engines: {node: '>=0.12.0'} dev: true - /is-obj/1.0.1: - resolution: {integrity: sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==} - engines: {node: '>=0.10.0'} - dev: true - /is-obj/2.0.0: resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} engines: {node: '>=8'} @@ -2992,11 +3017,6 @@ packages: has-tostringtag: 1.0.0 dev: true - /is-regexp/1.0.0: - resolution: {integrity: sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==} - engines: {node: '>=0.10.0'} - dev: true - /is-shared-array-buffer/1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: @@ -3008,6 +3028,11 @@ packages: engines: {node: '>=8'} dev: true + /is-stream/3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /is-string/1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -3061,19 +3086,56 @@ packages: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true - /jest-diff/26.6.2: - resolution: {integrity: sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==} - engines: {node: '>= 10.14.2'} + /jest-diff/29.3.1: + resolution: {integrity: sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: chalk: 4.1.2 - diff-sequences: 26.6.2 - jest-get-type: 26.3.0 - pretty-format: 26.6.2 + diff-sequences: 29.3.1 + jest-get-type: 29.2.0 + pretty-format: 29.3.1 + dev: true + + /jest-get-type/29.2.0: + resolution: {integrity: sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true - /jest-get-type/26.3.0: - resolution: {integrity: sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==} - engines: {node: '>= 10.14.2'} + /jest-matcher-utils/29.3.1: + resolution: {integrity: sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + chalk: 4.1.2 + jest-diff: 29.3.1 + jest-get-type: 29.2.0 + pretty-format: 29.3.1 + dev: true + + /jest-message-util/29.3.1: + resolution: {integrity: sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@babel/code-frame': 7.18.6 + '@jest/types': 29.3.1 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.10 + micromatch: 4.0.5 + pretty-format: 29.3.1 + slash: 3.0.0 + stack-utils: 2.0.6 + dev: true + + /jest-util/29.3.1: + resolution: {integrity: sha512-7YOVZaiX7RJLv76ZfHt4nbNEzzTRiMW/IiOG7ZOKmTXmoGBxUDefgMAxQubu6WPVqP5zSzAdZG0FfLcC7HOIFQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@jest/types': 29.3.1 + '@types/node': 18.11.10 + chalk: 4.1.2 + ci-info: 3.7.0 + graceful-fs: 4.2.10 + picomatch: 2.3.1 dev: true /joycon/3.1.1: @@ -3203,32 +3265,32 @@ packages: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true - /lint-staged/10.5.4: - resolution: {integrity: sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==} + /lint-staged/13.0.4: + resolution: {integrity: sha512-HxlHCXoYRsq9QCby5wFozmZW00hMs/9e3l+/dz6Qr8Kle4UH0kJTdABAbqhzG+3pcG6QjL9kz7NgGBfph+a5dw==} + engines: {node: ^14.13.1 || >=16.0.0} hasBin: true dependencies: - chalk: 4.1.2 - cli-truncate: 2.1.0 - commander: 6.2.1 - cosmiconfig: 7.1.0 + cli-truncate: 3.1.0 + colorette: 2.0.19 + commander: 9.4.1 debug: 4.3.4 - dedent: 0.7.0 - enquirer: 2.3.6 - execa: 4.1.0 - listr2: 3.14.0_enquirer@2.3.6 - log-symbols: 4.1.0 + execa: 6.1.0 + lilconfig: 2.0.6 + listr2: 5.0.6 micromatch: 4.0.5 normalize-path: 3.0.0 - please-upgrade-node: 3.2.0 + object-inspect: 1.12.2 + pidtree: 0.6.0 string-argv: 0.3.1 - stringify-object: 3.3.0 + yaml: 2.1.3 transitivePeerDependencies: + - enquirer - supports-color dev: true - /listr2/3.14.0_enquirer@2.3.6: - resolution: {integrity: sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==} - engines: {node: '>=10.0.0'} + /listr2/5.0.6: + resolution: {integrity: sha512-u60KxKBy1BR2uLJNTWNptzWQ1ob/gjMzIJPZffAENzpZqbMZ/5PrXXOomDcevIS/+IB7s1mmCEtSlT2qHWMqag==} + engines: {node: ^14.13.1 || >=16.0.0} peerDependencies: enquirer: '>= 2.3.0 < 3' peerDependenciesMeta: @@ -3237,7 +3299,6 @@ packages: dependencies: cli-truncate: 2.1.0 colorette: 2.0.19 - enquirer: 2.3.6 log-update: 4.0.0 p-map: 4.0.0 rfdc: 1.3.0 @@ -3480,6 +3541,11 @@ packages: engines: {node: '>=6'} dev: true + /mimic-fn/4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + dev: true + /min-indent/1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -3599,6 +3665,13 @@ packages: path-key: 3.1.1 dev: true + /npm-run-path/5.1.0: + resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + path-key: 4.0.0 + dev: true + /nth-check/2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} dependencies: @@ -3651,6 +3724,13 @@ packages: mimic-fn: 2.1.0 dev: true + /onetime/6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + dependencies: + mimic-fn: 4.0.0 + dev: true + /optionator/0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} engines: {node: '>= 0.8.0'} @@ -3808,6 +3888,11 @@ packages: engines: {node: '>=8'} dev: true + /path-key/4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + dev: true + /path-parse/1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true @@ -3832,6 +3917,12 @@ packages: engines: {node: '>=8.6'} dev: true + /pidtree/0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + dev: true + /pify/2.3.0: resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} engines: {node: '>=0.10.0'} @@ -3853,12 +3944,6 @@ packages: engines: {node: '>= 6'} dev: true - /please-upgrade-node/3.2.0: - resolution: {integrity: sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==} - dependencies: - semver-compare: 1.0.0 - dev: true - /pluralize/8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -3908,14 +3993,13 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /pretty-format/26.6.2: - resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==} - engines: {node: '>= 10'} + /pretty-format/29.3.1: + resolution: {integrity: sha512-FyLnmb1cYJV8biEIiRyzRFvs2lry7PPIvOqKVe1GCUEYg4YGmlx1qG9EJNMxArYm7piII4qb8UV1Pncq5dxmcg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@jest/types': 26.6.2 - ansi-regex: 5.0.1 - ansi-styles: 4.3.0 - react-is: 17.0.2 + '@jest/schemas': 29.0.0 + ansi-styles: 5.2.0 + react-is: 18.2.0 dev: true /process-nextick-args/2.0.1: @@ -3927,13 +4011,6 @@ packages: dev: true optional: true - /pump/3.0.0: - resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} - dependencies: - end-of-stream: 1.4.4 - once: 1.4.0 - dev: true - /punycode/2.1.1: resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} engines: {node: '>=6'} @@ -3953,8 +4030,8 @@ packages: engines: {node: '>=8'} dev: true - /react-is/17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + /react-is/18.2.0: + resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true /read-pkg-up/3.0.0: @@ -4187,10 +4264,6 @@ packages: dev: true optional: true - /semver-compare/1.0.0: - resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} - dev: true - /semver/5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true @@ -4264,6 +4337,14 @@ packages: is-fullwidth-code-point: 3.0.0 dev: true + /slice-ansi/5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 + dev: true + /source-map-js/1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} @@ -4318,6 +4399,13 @@ packages: readable-stream: 3.6.0 dev: true + /stack-utils/2.0.6: + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} + dependencies: + escape-string-regexp: 2.0.0 + dev: true + /string-argv/0.3.1: resolution: {integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==} engines: {node: '>=0.6.19'} @@ -4332,6 +4420,15 @@ packages: strip-ansi: 6.0.1 dev: true + /string-width/5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.0.1 + dev: true + /string.prototype.trimend/1.0.6: resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} dependencies: @@ -4360,15 +4457,6 @@ packages: safe-buffer: 5.2.1 dev: true - /stringify-object/3.3.0: - resolution: {integrity: sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==} - engines: {node: '>=4'} - dependencies: - get-own-enumerable-property-symbols: 3.0.2 - is-obj: 1.0.1 - is-regexp: 1.0.0 - dev: true - /strip-ansi/6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -4376,6 +4464,13 @@ packages: ansi-regex: 5.0.1 dev: true + /strip-ansi/7.0.1: + resolution: {integrity: sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: true + /strip-bom/3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -4391,6 +4486,11 @@ packages: engines: {node: '>=6'} dev: true + /strip-final-newline/3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + dev: true + /strip-indent/3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -4717,7 +4817,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /vite/3.2.4_3hcu2ymg52mccmxnjioacgv2vm: + /vite/3.2.4_jli2cq6pksn2o7kwksfthnljyy: resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -4742,7 +4842,7 @@ packages: terser: optional: true dependencies: - '@types/node': 14.18.34 + '@types/node': 18.11.10 esbuild: 0.15.16 less: 4.1.3 postcss: 8.4.19 @@ -4752,14 +4852,14 @@ packages: fsevents: 2.3.2 dev: true - /vue-eslint-parser/9.1.0_eslint@8.28.0: + /vue-eslint-parser/9.1.0_eslint@8.29.0: resolution: {integrity: sha512-NGn/iQy8/Wb7RrRa4aRkokyCZfOUWk19OP5HP6JEozQFX5AoS/t+Z0ZN7FY4LlmWc4FNI922V7cvX28zctN8dQ==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: '>=6.0.0' dependencies: debug: 4.3.4 - eslint: 8.28.0 + eslint: 8.29.0 eslint-scope: 7.1.1 eslint-visitor-keys: 3.3.0 espree: 9.4.1