@@ -272,14 +272,14 @@ async function useNpmEnvironment(manifest, options, task) {
272272}
273273
274274//#endregion
275- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/internal/debug.js
275+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/internal/debug.js
276276var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
277277 const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
278278 module.exports = debug;
279279}));
280280
281281//#endregion
282- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/internal/constants.js
282+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/internal/constants.js
283283var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
284284 const SEMVER_SPEC_VERSION = "2.0.0";
285285 const MAX_LENGTH = 256;
@@ -308,7 +308,7 @@ var require_constants$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
308308}));
309309
310310//#endregion
311- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/internal/re.js
311+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/internal/re.js
312312var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
313313 const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$5();
314314 const debug = require_debug();
@@ -388,7 +388,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
388388}));
389389
390390//#endregion
391- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/internal/parse-options.js
391+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/internal/parse-options.js
392392var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
393393 const looseOption = Object.freeze({ loose: true });
394394 const emptyOpts = Object.freeze({});
@@ -401,10 +401,11 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
401401}));
402402
403403//#endregion
404- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/internal/identifiers.js
404+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/internal/identifiers.js
405405var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
406406 const numeric = /^[0-9]+$/;
407407 const compareIdentifiers = (a, b) => {
408+ if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
408409 const anum = numeric.test(a);
409410 const bnum = numeric.test(b);
410411 if (anum && bnum) {
@@ -421,7 +422,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421422}));
422423
423424//#endregion
424- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/classes/semver.js
425+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/classes/semver.js
425426var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
426427 const debug = require_debug();
427428 const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$5();
@@ -478,7 +479,13 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
478479 }
479480 compareMain(other) {
480481 if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
481- return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
482+ if (this.major < other.major) return -1;
483+ if (this.major > other.major) return 1;
484+ if (this.minor < other.minor) return -1;
485+ if (this.minor > other.minor) return 1;
486+ if (this.patch < other.patch) return -1;
487+ if (this.patch > other.patch) return 1;
488+ return 0;
482489 }
483490 comparePre(other) {
484491 if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
@@ -595,7 +602,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
595602}));
596603
597604//#endregion
598- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/functions/parse.js
605+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/functions/parse.js
599606var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
600607 const SemVer = require_semver();
601608 const parse = (version, options, throwErrors = false) => {
@@ -611,7 +618,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
611618}));
612619
613620//#endregion
614- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/functions/diff.js
621+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/functions/diff.js
615622var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
616623 const parse = require_parse$1();
617624 const diff = (version1, version2) => {
@@ -640,23 +647,23 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
640647}));
641648
642649//#endregion
643- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/functions/compare.js
650+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/functions/compare.js
644651var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
645652 const SemVer = require_semver();
646653 const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
647654 module.exports = compare;
648655}));
649656
650657//#endregion
651- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/functions/gt.js
658+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/functions/gt.js
652659var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
653660 const compare = require_compare();
654661 const gt = (a, b, loose) => compare(a, b, loose) > 0;
655662 module.exports = gt;
656663}));
657664
658665//#endregion
659- //#region node_modules/.pnpm/semver@7.7.2 /node_modules/semver/functions/valid.js
666+ //#region node_modules/.pnpm/semver@7.7.3 /node_modules/semver/functions/valid.js
660667var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
661668 const parse = require_parse$1();
662669 const valid = (version, options) => {
@@ -786,8 +793,7 @@ const CONTENTS_BANNER = "=== Contents ===";
786793* @returns Formatted string.
787794*/
788795function formatPublishResult(manifest, options, result) {
789- const lines = [];
790- lines.push(result.id === void 0 ? `🙅♀️ ${manifest.name}@${manifest.version} already published.` : `📦 ${result.id}`);
796+ const lines = [result.id === void 0 ? `🙅♀️ ${manifest.name}@${manifest.version} already published.` : `📦 ${result.id}`];
791797 if (result.files.length > 0) lines.push("", CONTENTS_BANNER);
792798 for (const { path: path$6, size } of result.files) lines.push(`${formatSize(size)}\t${path$6}`);
793799 return (options.dryRun.value ? [
@@ -2014,7 +2020,7 @@ var WriteStreamSync = class extends WriteStream {
20142020};
20152021
20162022//#endregion
2017- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/options.js
2023+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/options.js
20182024const argmap = new Map([
20192025 ["C", "cwd"],
20202026 ["f", "file"],
@@ -2059,7 +2065,7 @@ const dealias = (opt = {}) => {
20592065};
20602066
20612067//#endregion
2062- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/make-command.js
2068+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/make-command.js
20632069const makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate) => {
20642070 return Object.assign((opt_ = [], entries, cb) => {
20652071 if (Array.isArray(opt_)) {
@@ -2453,7 +2459,7 @@ var ZstdDecompress = class extends Zstd {
24532459};
24542460
24552461//#endregion
2456- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/large-numbers.js
2462+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/large-numbers.js
24572463const encode = (num, buf) => {
24582464 if (!Number.isSafeInteger(num)) throw Error("cannot encode number outside of javascript safe integer range");
24592465 else if (num < 0) encodeNegative(num, buf);
@@ -2519,7 +2525,7 @@ const onesComp = (byte) => (255 ^ byte) & 255;
25192525const twosComp = (byte) => (255 ^ byte) + 1 & 255;
25202526
25212527//#endregion
2522- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/types.js
2528+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/types.js
25232529const isCode = (c) => name.has(c);
25242530const name = new Map([
25252531 ["0", "File"],
@@ -2547,7 +2553,7 @@ const name = new Map([
25472553const code = new Map(Array.from(name).map((kv) => [kv[1], kv[0]]));
25482554
25492555//#endregion
2550- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/header.js
2556+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/header.js
25512557var Header = class {
25522558 cksumValid = false;
25532559 needPax = false;
@@ -2577,12 +2583,12 @@ var Header = class {
25772583 decode(buf, off, ex, gex) {
25782584 if (!off) off = 0;
25792585 if (!buf || !(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
2580- this.path = decString(buf, off, 100);
2581- this.mode = decNumber(buf, off + 100, 8);
2582- this.uid = decNumber(buf, off + 108, 8);
2583- this.gid = decNumber(buf, off + 116, 8);
2584- this.size = decNumber(buf, off + 124, 12);
2585- this.mtime = decDate(buf, off + 136, 12);
2586+ this.path = ex?.path ?? decString(buf, off, 100);
2587+ this.mode = ex?.mode ?? gex?.mode ?? decNumber(buf, off + 100, 8);
2588+ this.uid = ex?.uid ?? gex?.uid ?? decNumber(buf, off + 108, 8);
2589+ this.gid = ex?.gid ?? gex?.gid ?? decNumber(buf, off + 116, 8);
2590+ this.size = ex?.size ?? gex?.size ?? decNumber(buf, off + 124, 12);
2591+ this.mtime = ex?.mtime ?? gex?.mtime ?? decDate(buf, off + 136, 12);
25862592 this.cksum = decNumber(buf, off + 148, 12);
25872593 if (gex) this.#slurp(gex, true);
25882594 if (ex) this.#slurp(ex);
@@ -2592,18 +2598,19 @@ var Header = class {
25922598 if (this.#type === "5") this.size = 0;
25932599 this.linkpath = decString(buf, off + 157, 100);
25942600 if (buf.subarray(off + 257, off + 265).toString() === "ustar\x0000") {
2595- this.uname = decString(buf, off + 265, 32);
2596- this.gname = decString(buf, off + 297, 32);
25972601 /* c8 ignore start */
2598- this.devmaj = decNumber(buf, off + 329, 8) ?? 0;
2599- this.devmin = decNumber(buf, off + 337, 8) ?? 0;
2602+ this.uname = ex?.uname ?? gex?.uname ?? decString(buf, off + 265, 32);
2603+ this.gname = ex?.gname ?? gex?.gname ?? decString(buf, off + 297, 32);
2604+ this.devmaj = ex?.devmaj ?? gex?.devmaj ?? decNumber(buf, off + 329, 8) ?? 0;
2605+ this.devmin = ex?.devmin ?? gex?.devmin ?? decNumber(buf, off + 337, 8) ?? 0;
26002606 /* c8 ignore stop */
26012607 if (buf[off + 475] !== 0) this.path = decString(buf, off + 345, 155) + "/" + this.path;
26022608 else {
26032609 const prefix = decString(buf, off + 345, 130);
26042610 if (prefix) this.path = prefix + "/" + this.path;
2605- this.atime = decDate(buf, off + 476, 12);
2606- this.ctime = decDate(buf, off + 488, 12);
2611+ /* c8 ignore start */
2612+ this.atime = ex?.atime ?? gex?.atime ?? decDate(buf, off + 476, 12);
2613+ this.ctime = ex?.ctime ?? gex?.ctime ?? decDate(buf, off + 488, 12);
26072614 }
26082615 }
26092616 let sum = 256;
@@ -2724,7 +2731,7 @@ const NULLS = new Array(156).join("\0");
27242731const encString = (buf, off, size, str) => str === void 0 ? false : (buf.write(str + NULLS, off, size, "utf8"), str.length !== Buffer.byteLength(str) || str.length > size);
27252732
27262733//#endregion
2727- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/pax.js
2734+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/pax.js
27282735var Pax = class Pax {
27292736 atime;
27302737 mtime;
@@ -2821,12 +2828,12 @@ const parseKVLine = (set, line) => {
28212828};
28222829
28232830//#endregion
2824- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/normalize-windows-path.js
2831+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/normalize-windows-path.js
28252832const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
28262833const normalizeWindowsPath = platform !== "win32" ? (p) => p : (p) => p && p.replace(/\\/g, "/");
28272834
28282835//#endregion
2829- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/read-entry.js
2836+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/read-entry.js
28302837var ReadEntry = class extends Minipass {
28312838 extended;
28322839 globalExtended;
@@ -2930,7 +2937,7 @@ var ReadEntry = class extends Minipass {
29302937};
29312938
29322939//#endregion
2933- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/warn-method.js
2940+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/warn-method.js
29342941const warnMethod = (self, code$1, message, data = {}) => {
29352942 if (self.file) data.file = self.file;
29362943 if (self.cwd) data.cwd = self.cwd;
@@ -2947,7 +2954,7 @@ const warnMethod = (self, code$1, message, data = {}) => {
29472954};
29482955
29492956//#endregion
2950- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/parse.js
2957+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/parse.js
29512958const maxMetaEntrySize = 1024 * 1024;
29522959const gzipHeader = Buffer.from([31, 139]);
29532960const zstdHeader = Buffer.from([
@@ -3358,7 +3365,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
33583365};
33593366
33603367//#endregion
3361- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/strip-trailing-slashes.js
3368+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/strip-trailing-slashes.js
33623369const stripTrailingSlashes = (str) => {
33633370 let i = str.length - 1;
33643371 let slashesStart = -1;
@@ -3370,7 +3377,7 @@ const stripTrailingSlashes = (str) => {
33703377};
33713378
33723379//#endregion
3373- //#region node_modules/.pnpm/tar@7.5.1 /node_modules/tar/dist/esm/list.js
3380+ //#region node_modules/.pnpm/tar@7.5.2 /node_modules/tar/dist/esm/list.js
33743381const onReadEntryFunction = (opt) => {
33753382 const onReadEntry = opt.onReadEntry;
33763383 opt.onReadEntry = onReadEntry ? (e) => {
@@ -3405,13 +3412,14 @@ const listFileSync = (opt) => {
34053412 const readSize = opt.maxReadSize || 16 * 1024 * 1024;
34063413 if (stat.size < readSize) {
34073414 const buf = Buffer.allocUnsafe(stat.size);
3408- fs$2.readSync(fd, buf, 0, stat.size, 0);
3409- p.end(buf);
3415+ const read = fs$2.readSync(fd, buf, 0, stat.size, 0);
3416+ p.end(read === buf.byteLength ? buf : buf.subarray(0, read) );
34103417 } else {
34113418 let pos$1 = 0;
34123419 const buf = Buffer.allocUnsafe(readSize);
34133420 while (pos$1 < stat.size) {
34143421 const bytesRead = fs$2.readSync(fd, buf, 0, readSize, pos$1);
3422+ if (bytesRead === 0) break;
34153423 pos$1 += bytesRead;
34163424 p.write(buf.subarray(0, bytesRead));
34173425 }
@@ -3449,7 +3457,7 @@ const list = makeCommand(listFileSync, listFile, (opt) => new Parser(opt), (opt)
34493457});
34503458
34513459//#endregion
3452- //#region node_modules/.pnpm/validate-npm-package-name@6 .0.2 /node_modules/validate-npm-package-name/lib/index.js
3460+ //#region node_modules/.pnpm/validate-npm-package-name@7 .0.1 /node_modules/validate-npm-package-name/lib/index.js
34533461var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34543462 const { builtinModules: builtins } = __require("module");
34553463 var scopedPackagePattern = /* @__PURE__ */ new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
@@ -3471,6 +3479,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34713479 }
34723480 if (!name$1.length) errors.push("name length must be greater than zero");
34733481 if (name$1.startsWith(".")) errors.push("name cannot start with a period");
3482+ if (name$1.startsWith("-")) errors.push("name cannot start with a hyphen");
34743483 if (name$1.match(/^_/)) errors.push("name cannot start with an underscore");
34753484 if (name$1.trim() !== name$1) errors.push("name cannot contain leading or trailing spaces");
34763485 exclusionList.forEach(function(excludedName) {
0 commit comments