npm-pkg-lint 2.0.3 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -386,9 +386,9 @@ var require_argparse = __commonJS({
386
386
  var _UNRECOGNIZED_ARGS_ATTR = "_unrecognized_args";
387
387
  var assert = __require("assert");
388
388
  var util = __require("util");
389
- var fs4 = __require("fs");
389
+ var fs5 = __require("fs");
390
390
  var sub = require_sub();
391
- var path7 = __require("path");
391
+ var path8 = __require("path");
392
392
  var repr = util.inspect;
393
393
  function get_argv() {
394
394
  return process.argv.slice(1);
@@ -1893,7 +1893,7 @@ var require_argparse = __commonJS({
1893
1893
  start,
1894
1894
  end,
1895
1895
  highWaterMark,
1896
- fs5
1896
+ fs6
1897
1897
  ] = _parse_opts(arguments, {
1898
1898
  flags: "r",
1899
1899
  encoding: void 0,
@@ -1933,8 +1933,8 @@ var require_argparse = __commonJS({
1933
1933
  this._options.end = end;
1934
1934
  if (highWaterMark !== void 0)
1935
1935
  this._options.highWaterMark = highWaterMark;
1936
- if (fs5 !== void 0)
1937
- this._options.fs = fs5;
1936
+ if (fs6 !== void 0)
1937
+ this._options.fs = fs6;
1938
1938
  }
1939
1939
  call(string) {
1940
1940
  if (string === "-") {
@@ -1949,7 +1949,7 @@ var require_argparse = __commonJS({
1949
1949
  }
1950
1950
  let fd;
1951
1951
  try {
1952
- fd = fs4.openSync(string, this._flags, this._options.mode);
1952
+ fd = fs5.openSync(string, this._flags, this._options.mode);
1953
1953
  } catch (e) {
1954
1954
  let args = { filename: string, error: e.message };
1955
1955
  let message = "can't open '%(filename)s': %(error)s";
@@ -1957,9 +1957,9 @@ var require_argparse = __commonJS({
1957
1957
  }
1958
1958
  let options = Object.assign({ fd, flags: this._flags }, this._options);
1959
1959
  if (this._flags.includes("r")) {
1960
- return fs4.createReadStream(void 0, options);
1960
+ return fs5.createReadStream(void 0, options);
1961
1961
  } else if (this._flags.includes("w")) {
1962
- return fs4.createWriteStream(void 0, options);
1962
+ return fs5.createWriteStream(void 0, options);
1963
1963
  } else {
1964
1964
  let msg = sub('argument "%s" with mode %r', string, this._flags);
1965
1965
  throw new TypeError(msg);
@@ -2443,7 +2443,7 @@ var require_argparse = __commonJS({
2443
2443
  conflict_handler
2444
2444
  });
2445
2445
  if (prog === void 0) {
2446
- prog = path7.basename(get_argv()[0] || "");
2446
+ prog = path8.basename(get_argv()[0] || "");
2447
2447
  }
2448
2448
  this.prog = prog;
2449
2449
  this.usage = usage;
@@ -2819,7 +2819,7 @@ var require_argparse = __commonJS({
2819
2819
  new_arg_strings.push(arg_string);
2820
2820
  } else {
2821
2821
  try {
2822
- let args_file = fs4.readFileSync(arg_string.slice(1), "utf8");
2822
+ let args_file = fs5.readFileSync(arg_string.slice(1), "utf8");
2823
2823
  let arg_strings2 = [];
2824
2824
  for (let arg_line of splitlines(args_file)) {
2825
2825
  for (let arg of this.convert_arg_line_to_args(arg_line)) {
@@ -3273,7 +3273,7 @@ var require_old = __commonJS({
3273
3273
  "node_modules/fs.realpath/old.js"(exports) {
3274
3274
  var pathModule = __require("path");
3275
3275
  var isWindows = process.platform === "win32";
3276
- var fs4 = __require("fs");
3276
+ var fs5 = __require("fs");
3277
3277
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
3278
3278
  function rethrow() {
3279
3279
  var callback;
@@ -3338,7 +3338,7 @@ var require_old = __commonJS({
3338
3338
  base = m[0];
3339
3339
  previous = "";
3340
3340
  if (isWindows && !knownHard[base]) {
3341
- fs4.lstatSync(base);
3341
+ fs5.lstatSync(base);
3342
3342
  knownHard[base] = true;
3343
3343
  }
3344
3344
  }
@@ -3356,7 +3356,7 @@ var require_old = __commonJS({
3356
3356
  if (cache2 && Object.prototype.hasOwnProperty.call(cache2, base)) {
3357
3357
  resolvedLink = cache2[base];
3358
3358
  } else {
3359
- var stat = fs4.lstatSync(base);
3359
+ var stat = fs5.lstatSync(base);
3360
3360
  if (!stat.isSymbolicLink()) {
3361
3361
  knownHard[base] = true;
3362
3362
  if (cache2)
@@ -3371,8 +3371,8 @@ var require_old = __commonJS({
3371
3371
  }
3372
3372
  }
3373
3373
  if (linkTarget === null) {
3374
- fs4.statSync(base);
3375
- linkTarget = fs4.readlinkSync(base);
3374
+ fs5.statSync(base);
3375
+ linkTarget = fs5.readlinkSync(base);
3376
3376
  }
3377
3377
  resolvedLink = pathModule.resolve(previous, linkTarget);
3378
3378
  if (cache2)
@@ -3409,7 +3409,7 @@ var require_old = __commonJS({
3409
3409
  base = m[0];
3410
3410
  previous = "";
3411
3411
  if (isWindows && !knownHard[base]) {
3412
- fs4.lstat(base, function(err) {
3412
+ fs5.lstat(base, function(err) {
3413
3413
  if (err)
3414
3414
  return cb(err);
3415
3415
  knownHard[base] = true;
@@ -3437,7 +3437,7 @@ var require_old = __commonJS({
3437
3437
  if (cache2 && Object.prototype.hasOwnProperty.call(cache2, base)) {
3438
3438
  return gotResolvedLink(cache2[base]);
3439
3439
  }
3440
- return fs4.lstat(base, gotStat);
3440
+ return fs5.lstat(base, gotStat);
3441
3441
  }
3442
3442
  function gotStat(err, stat) {
3443
3443
  if (err)
@@ -3454,10 +3454,10 @@ var require_old = __commonJS({
3454
3454
  return gotTarget(null, seenLinks[id], base);
3455
3455
  }
3456
3456
  }
3457
- fs4.stat(base, function(err2) {
3457
+ fs5.stat(base, function(err2) {
3458
3458
  if (err2)
3459
3459
  return cb(err2);
3460
- fs4.readlink(base, function(err3, target) {
3460
+ fs5.readlink(base, function(err3, target) {
3461
3461
  if (!isWindows)
3462
3462
  seenLinks[id] = target;
3463
3463
  gotTarget(err3, target);
@@ -3489,9 +3489,9 @@ var require_fs = __commonJS({
3489
3489
  realpath.realpathSync = realpathSync;
3490
3490
  realpath.monkeypatch = monkeypatch;
3491
3491
  realpath.unmonkeypatch = unmonkeypatch;
3492
- var fs4 = __require("fs");
3493
- var origRealpath = fs4.realpath;
3494
- var origRealpathSync = fs4.realpathSync;
3492
+ var fs5 = __require("fs");
3493
+ var origRealpath = fs5.realpath;
3494
+ var origRealpathSync = fs5.realpathSync;
3495
3495
  var version2 = process.version;
3496
3496
  var ok = /^v[0-5]\./.test(version2);
3497
3497
  var old = require_old();
@@ -3529,12 +3529,12 @@ var require_fs = __commonJS({
3529
3529
  }
3530
3530
  }
3531
3531
  function monkeypatch() {
3532
- fs4.realpath = realpath;
3533
- fs4.realpathSync = realpathSync;
3532
+ fs5.realpath = realpath;
3533
+ fs5.realpathSync = realpathSync;
3534
3534
  }
3535
3535
  function unmonkeypatch() {
3536
- fs4.realpath = origRealpath;
3537
- fs4.realpathSync = origRealpathSync;
3536
+ fs5.realpath = origRealpath;
3537
+ fs5.realpathSync = origRealpathSync;
3538
3538
  }
3539
3539
  }
3540
3540
  });
@@ -3769,7 +3769,7 @@ var require_minimatch = __commonJS({
3769
3769
  "node_modules/minimatch/minimatch.js"(exports, module) {
3770
3770
  module.exports = minimatch;
3771
3771
  minimatch.Minimatch = Minimatch;
3772
- var path7 = function() {
3772
+ var path8 = function() {
3773
3773
  try {
3774
3774
  return __require("path");
3775
3775
  } catch (e) {
@@ -3777,7 +3777,7 @@ var require_minimatch = __commonJS({
3777
3777
  }() || {
3778
3778
  sep: "/"
3779
3779
  };
3780
- minimatch.sep = path7.sep;
3780
+ minimatch.sep = path8.sep;
3781
3781
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
3782
3782
  var expand = require_brace_expansion();
3783
3783
  var plTypes = {
@@ -3868,8 +3868,8 @@ var require_minimatch = __commonJS({
3868
3868
  if (!options)
3869
3869
  options = {};
3870
3870
  pattern = pattern.trim();
3871
- if (!options.allowWindowsEscape && path7.sep !== "/") {
3872
- pattern = pattern.split(path7.sep).join("/");
3871
+ if (!options.allowWindowsEscape && path8.sep !== "/") {
3872
+ pattern = pattern.split(path8.sep).join("/");
3873
3873
  }
3874
3874
  this.options = options;
3875
3875
  this.set = [];
@@ -4246,8 +4246,8 @@ var require_minimatch = __commonJS({
4246
4246
  if (f === "/" && partial)
4247
4247
  return true;
4248
4248
  var options = this.options;
4249
- if (path7.sep !== "/") {
4250
- f = f.split(path7.sep).join("/");
4249
+ if (path8.sep !== "/") {
4250
+ f = f.split(path8.sep).join("/");
4251
4251
  }
4252
4252
  f = f.split(slashSplit);
4253
4253
  this.debug(this.pattern, "split", f);
@@ -4405,12 +4405,12 @@ var require_inherits = __commonJS({
4405
4405
  var require_path_is_absolute = __commonJS({
4406
4406
  "node_modules/path-is-absolute/index.js"(exports, module) {
4407
4407
  "use strict";
4408
- function posix(path7) {
4409
- return path7.charAt(0) === "/";
4408
+ function posix(path8) {
4409
+ return path8.charAt(0) === "/";
4410
4410
  }
4411
- function win32(path7) {
4411
+ function win32(path8) {
4412
4412
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
4413
- var result = splitDeviceRe.exec(path7);
4413
+ var result = splitDeviceRe.exec(path8);
4414
4414
  var device = result[1] || "";
4415
4415
  var isUnc = Boolean(device && device.charAt(1) !== ":");
4416
4416
  return Boolean(result[2] || isUnc);
@@ -4434,8 +4434,8 @@ var require_common = __commonJS({
4434
4434
  function ownProp(obj, field) {
4435
4435
  return Object.prototype.hasOwnProperty.call(obj, field);
4436
4436
  }
4437
- var fs4 = __require("fs");
4438
- var path7 = __require("path");
4437
+ var fs5 = __require("fs");
4438
+ var path8 = __require("path");
4439
4439
  var minimatch = require_minimatch();
4440
4440
  var isAbsolute = require_path_is_absolute();
4441
4441
  var Minimatch = minimatch.Minimatch;
@@ -4489,7 +4489,7 @@ var require_common = __commonJS({
4489
4489
  self.stat = !!options.stat;
4490
4490
  self.noprocess = !!options.noprocess;
4491
4491
  self.absolute = !!options.absolute;
4492
- self.fs = options.fs || fs4;
4492
+ self.fs = options.fs || fs5;
4493
4493
  self.maxLength = options.maxLength || Infinity;
4494
4494
  self.cache = options.cache || /* @__PURE__ */ Object.create(null);
4495
4495
  self.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -4500,11 +4500,11 @@ var require_common = __commonJS({
4500
4500
  if (!ownProp(options, "cwd"))
4501
4501
  self.cwd = cwd;
4502
4502
  else {
4503
- self.cwd = path7.resolve(options.cwd);
4503
+ self.cwd = path8.resolve(options.cwd);
4504
4504
  self.changedCwd = self.cwd !== cwd;
4505
4505
  }
4506
- self.root = options.root || path7.resolve(self.cwd, "/");
4507
- self.root = path7.resolve(self.root);
4506
+ self.root = options.root || path8.resolve(self.cwd, "/");
4507
+ self.root = path8.resolve(self.root);
4508
4508
  if (process.platform === "win32")
4509
4509
  self.root = self.root.replace(/\\/g, "/");
4510
4510
  self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
@@ -4586,30 +4586,30 @@ var require_common = __commonJS({
4586
4586
  function makeAbs(self, f) {
4587
4587
  var abs = f;
4588
4588
  if (f.charAt(0) === "/") {
4589
- abs = path7.join(self.root, f);
4589
+ abs = path8.join(self.root, f);
4590
4590
  } else if (isAbsolute(f) || f === "") {
4591
4591
  abs = f;
4592
4592
  } else if (self.changedCwd) {
4593
- abs = path7.resolve(self.cwd, f);
4593
+ abs = path8.resolve(self.cwd, f);
4594
4594
  } else {
4595
- abs = path7.resolve(f);
4595
+ abs = path8.resolve(f);
4596
4596
  }
4597
4597
  if (process.platform === "win32")
4598
4598
  abs = abs.replace(/\\/g, "/");
4599
4599
  return abs;
4600
4600
  }
4601
- function isIgnored(self, path8) {
4601
+ function isIgnored(self, path9) {
4602
4602
  if (!self.ignore.length)
4603
4603
  return false;
4604
4604
  return self.ignore.some(function(item) {
4605
- return item.matcher.match(path8) || !!(item.gmatcher && item.gmatcher.match(path8));
4605
+ return item.matcher.match(path9) || !!(item.gmatcher && item.gmatcher.match(path9));
4606
4606
  });
4607
4607
  }
4608
- function childrenIgnored(self, path8) {
4608
+ function childrenIgnored(self, path9) {
4609
4609
  if (!self.ignore.length)
4610
4610
  return false;
4611
4611
  return self.ignore.some(function(item) {
4612
- return !!(item.gmatcher && item.gmatcher.match(path8));
4612
+ return !!(item.gmatcher && item.gmatcher.match(path9));
4613
4613
  });
4614
4614
  }
4615
4615
  }
@@ -4625,7 +4625,7 @@ var require_sync = __commonJS({
4625
4625
  var Minimatch = minimatch.Minimatch;
4626
4626
  var Glob = require_glob().Glob;
4627
4627
  var util = __require("util");
4628
- var path7 = __require("path");
4628
+ var path8 = __require("path");
4629
4629
  var assert = __require("assert");
4630
4630
  var isAbsolute = require_path_is_absolute();
4631
4631
  var common = require_common();
@@ -4753,7 +4753,7 @@ var require_sync = __commonJS({
4753
4753
  e = prefix2 + e;
4754
4754
  }
4755
4755
  if (e.charAt(0) === "/" && !this.nomount) {
4756
- e = path7.join(this.root, e);
4756
+ e = path8.join(this.root, e);
4757
4757
  }
4758
4758
  this._emitMatch(index, e);
4759
4759
  }
@@ -4902,9 +4902,9 @@ var require_sync = __commonJS({
4902
4902
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
4903
4903
  var trail = /[\/\\]$/.test(prefix2);
4904
4904
  if (prefix2.charAt(0) === "/") {
4905
- prefix2 = path7.join(this.root, prefix2);
4905
+ prefix2 = path8.join(this.root, prefix2);
4906
4906
  } else {
4907
- prefix2 = path7.resolve(this.root, prefix2);
4907
+ prefix2 = path8.resolve(this.root, prefix2);
4908
4908
  if (trail)
4909
4909
  prefix2 += "/";
4910
4910
  }
@@ -5099,7 +5099,7 @@ var require_glob = __commonJS({
5099
5099
  var Minimatch = minimatch.Minimatch;
5100
5100
  var inherits = require_inherits();
5101
5101
  var EE = __require("events").EventEmitter;
5102
- var path7 = __require("path");
5102
+ var path8 = __require("path");
5103
5103
  var assert = __require("assert");
5104
5104
  var isAbsolute = require_path_is_absolute();
5105
5105
  var globSync = require_sync();
@@ -5382,7 +5382,7 @@ var require_glob = __commonJS({
5382
5382
  e = prefix2 + e;
5383
5383
  }
5384
5384
  if (e.charAt(0) === "/" && !this.nomount) {
5385
- e = path7.join(this.root, e);
5385
+ e = path8.join(this.root, e);
5386
5386
  }
5387
5387
  this._emitMatch(index, e);
5388
5388
  }
@@ -5569,9 +5569,9 @@ var require_glob = __commonJS({
5569
5569
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
5570
5570
  var trail = /[\/\\]$/.test(prefix2);
5571
5571
  if (prefix2.charAt(0) === "/") {
5572
- prefix2 = path7.join(this.root, prefix2);
5572
+ prefix2 = path8.join(this.root, prefix2);
5573
5573
  } else {
5574
- prefix2 = path7.resolve(this.root, prefix2);
5574
+ prefix2 = path8.resolve(this.root, prefix2);
5575
5575
  if (trail)
5576
5576
  prefix2 += "/";
5577
5577
  }
@@ -5649,8 +5649,8 @@ var require_glob = __commonJS({
5649
5649
  var require_rimraf = __commonJS({
5650
5650
  "node_modules/rimraf/rimraf.js"(exports, module) {
5651
5651
  var assert = __require("assert");
5652
- var path7 = __require("path");
5653
- var fs4 = __require("fs");
5652
+ var path8 = __require("path");
5653
+ var fs5 = __require("fs");
5654
5654
  var glob = void 0;
5655
5655
  try {
5656
5656
  glob = require_glob();
@@ -5672,9 +5672,9 @@ var require_rimraf = __commonJS({
5672
5672
  "readdir"
5673
5673
  ];
5674
5674
  methods.forEach((m) => {
5675
- options[m] = options[m] || fs4[m];
5675
+ options[m] = options[m] || fs5[m];
5676
5676
  m = m + "Sync";
5677
- options[m] = options[m] || fs4[m];
5677
+ options[m] = options[m] || fs5[m];
5678
5678
  });
5679
5679
  options.maxBusyTries = options.maxBusyTries || 3;
5680
5680
  options.emfileWait = options.emfileWait || 1e3;
@@ -5831,7 +5831,7 @@ var require_rimraf = __commonJS({
5831
5831
  return options.rmdir(p, cb);
5832
5832
  let errState;
5833
5833
  files.forEach((f) => {
5834
- rimraf(path7.join(p, f), options, (er2) => {
5834
+ rimraf(path8.join(p, f), options, (er2) => {
5835
5835
  if (errState)
5836
5836
  return;
5837
5837
  if (er2)
@@ -5906,7 +5906,7 @@ var require_rimraf = __commonJS({
5906
5906
  var rmkidsSync = (p, options) => {
5907
5907
  assert(p);
5908
5908
  assert(options);
5909
- options.readdirSync(p).forEach((f) => rimrafSync(path7.join(p, f), options));
5909
+ options.readdirSync(p).forEach((f) => rimrafSync(path8.join(p, f), options));
5910
5910
  const retries = isWindows ? 100 : 1;
5911
5911
  let i = 0;
5912
5912
  do {
@@ -5929,24 +5929,24 @@ var require_rimraf = __commonJS({
5929
5929
  // node_modules/tmp/lib/tmp.js
5930
5930
  var require_tmp = __commonJS({
5931
5931
  "node_modules/tmp/lib/tmp.js"(exports, module) {
5932
- var fs4 = __require("fs");
5933
- var os2 = __require("os");
5934
- var path7 = __require("path");
5935
- var crypto = __require("crypto");
5936
- var _c = { fs: fs4.constants, os: os2.constants };
5932
+ var fs5 = __require("fs");
5933
+ var os3 = __require("os");
5934
+ var path8 = __require("path");
5935
+ var crypto2 = __require("crypto");
5936
+ var _c = { fs: fs5.constants, os: os3.constants };
5937
5937
  var rimraf = require_rimraf();
5938
5938
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
5939
5939
  var TEMPLATE_PATTERN = /XXXXXX/;
5940
5940
  var DEFAULT_TRIES = 3;
5941
5941
  var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
5942
- var IS_WIN32 = os2.platform() === "win32";
5942
+ var IS_WIN32 = os3.platform() === "win32";
5943
5943
  var EBADF = _c.EBADF || _c.os.errno.EBADF;
5944
5944
  var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
5945
5945
  var DIR_MODE = 448;
5946
5946
  var FILE_MODE = 384;
5947
5947
  var EXIT = "exit";
5948
5948
  var _removeObjects = [];
5949
- var FN_RMDIR_SYNC = fs4.rmdirSync.bind(fs4);
5949
+ var FN_RMDIR_SYNC = fs5.rmdirSync.bind(fs5);
5950
5950
  var FN_RIMRAF_SYNC = rimraf.sync;
5951
5951
  var _gracefulCleanup = false;
5952
5952
  function tmpName(options, callback) {
@@ -5960,7 +5960,7 @@ var require_tmp = __commonJS({
5960
5960
  (function _getUniqueName() {
5961
5961
  try {
5962
5962
  const name = _generateTmpName(opts);
5963
- fs4.stat(name, function(err) {
5963
+ fs5.stat(name, function(err) {
5964
5964
  if (!err) {
5965
5965
  if (tries-- > 0)
5966
5966
  return _getUniqueName();
@@ -5980,7 +5980,7 @@ var require_tmp = __commonJS({
5980
5980
  do {
5981
5981
  const name = _generateTmpName(opts);
5982
5982
  try {
5983
- fs4.statSync(name);
5983
+ fs5.statSync(name);
5984
5984
  } catch (e) {
5985
5985
  return name;
5986
5986
  }
@@ -5992,11 +5992,11 @@ var require_tmp = __commonJS({
5992
5992
  tmpName(opts, function _tmpNameCreated(err, name) {
5993
5993
  if (err)
5994
5994
  return cb(err);
5995
- fs4.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
5995
+ fs5.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
5996
5996
  if (err2)
5997
5997
  return cb(err2);
5998
5998
  if (opts.discardDescriptor) {
5999
- return fs4.close(fd, function _discardCallback(possibleErr) {
5999
+ return fs5.close(fd, function _discardCallback(possibleErr) {
6000
6000
  return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false));
6001
6001
  });
6002
6002
  } else {
@@ -6010,9 +6010,9 @@ var require_tmp = __commonJS({
6010
6010
  const args = _parseArguments(options), opts = args[0];
6011
6011
  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
6012
6012
  const name = tmpNameSync(opts);
6013
- var fd = fs4.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
6013
+ var fd = fs5.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
6014
6014
  if (opts.discardDescriptor) {
6015
- fs4.closeSync(fd);
6015
+ fs5.closeSync(fd);
6016
6016
  fd = void 0;
6017
6017
  }
6018
6018
  return {
@@ -6026,7 +6026,7 @@ var require_tmp = __commonJS({
6026
6026
  tmpName(opts, function _tmpNameCreated(err, name) {
6027
6027
  if (err)
6028
6028
  return cb(err);
6029
- fs4.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
6029
+ fs5.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
6030
6030
  if (err2)
6031
6031
  return cb(err2);
6032
6032
  cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
@@ -6036,7 +6036,7 @@ var require_tmp = __commonJS({
6036
6036
  function dirSync(options) {
6037
6037
  const args = _parseArguments(options), opts = args[0];
6038
6038
  const name = tmpNameSync(opts);
6039
- fs4.mkdirSync(name, opts.mode || DIR_MODE);
6039
+ fs5.mkdirSync(name, opts.mode || DIR_MODE);
6040
6040
  return {
6041
6041
  name,
6042
6042
  removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
@@ -6050,23 +6050,23 @@ var require_tmp = __commonJS({
6050
6050
  next();
6051
6051
  };
6052
6052
  if (0 <= fdPath[0])
6053
- fs4.close(fdPath[0], function() {
6054
- fs4.unlink(fdPath[1], _handler);
6053
+ fs5.close(fdPath[0], function() {
6054
+ fs5.unlink(fdPath[1], _handler);
6055
6055
  });
6056
6056
  else
6057
- fs4.unlink(fdPath[1], _handler);
6057
+ fs5.unlink(fdPath[1], _handler);
6058
6058
  }
6059
6059
  function _removeFileSync(fdPath) {
6060
6060
  let rethrownException = null;
6061
6061
  try {
6062
6062
  if (0 <= fdPath[0])
6063
- fs4.closeSync(fdPath[0]);
6063
+ fs5.closeSync(fdPath[0]);
6064
6064
  } catch (e) {
6065
6065
  if (!_isEBADF(e) && !_isENOENT(e))
6066
6066
  throw e;
6067
6067
  } finally {
6068
6068
  try {
6069
- fs4.unlinkSync(fdPath[1]);
6069
+ fs5.unlinkSync(fdPath[1]);
6070
6070
  } catch (e) {
6071
6071
  if (!_isENOENT(e))
6072
6072
  rethrownException = e;
@@ -6084,7 +6084,7 @@ var require_tmp = __commonJS({
6084
6084
  return sync ? removeCallbackSync : removeCallback;
6085
6085
  }
6086
6086
  function _prepareTmpDirRemoveCallback(name, opts, sync) {
6087
- const removeFunction = opts.unsafeCleanup ? rimraf : fs4.rmdir.bind(fs4);
6087
+ const removeFunction = opts.unsafeCleanup ? rimraf : fs5.rmdir.bind(fs5);
6088
6088
  const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
6089
6089
  const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
6090
6090
  const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
@@ -6123,9 +6123,9 @@ var require_tmp = __commonJS({
6123
6123
  function _randomChars(howMany) {
6124
6124
  let value = [], rnd = null;
6125
6125
  try {
6126
- rnd = crypto.randomBytes(howMany);
6126
+ rnd = crypto2.randomBytes(howMany);
6127
6127
  } catch (e) {
6128
- rnd = crypto.pseudoRandomBytes(howMany);
6128
+ rnd = crypto2.pseudoRandomBytes(howMany);
6129
6129
  }
6130
6130
  for (var i = 0; i < howMany; i++) {
6131
6131
  value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
@@ -6154,9 +6154,9 @@ var require_tmp = __commonJS({
6154
6154
  function _generateTmpName(opts) {
6155
6155
  const tmpDir = opts.tmpdir;
6156
6156
  if (!_isUndefined(opts.name))
6157
- return path7.join(tmpDir, opts.dir, opts.name);
6157
+ return path8.join(tmpDir, opts.dir, opts.name);
6158
6158
  if (!_isUndefined(opts.template))
6159
- return path7.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
6159
+ return path8.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
6160
6160
  const name = [
6161
6161
  opts.prefix ? opts.prefix : "tmp",
6162
6162
  "-",
@@ -6165,7 +6165,7 @@ var require_tmp = __commonJS({
6165
6165
  _randomChars(12),
6166
6166
  opts.postfix ? "-" + opts.postfix : ""
6167
6167
  ].join("");
6168
- return path7.join(tmpDir, opts.dir, name);
6168
+ return path8.join(tmpDir, opts.dir, name);
6169
6169
  }
6170
6170
  function _assertAndSanitizeOptions(options) {
6171
6171
  options.tmpdir = _getTmpDir(options);
@@ -6186,9 +6186,9 @@ var require_tmp = __commonJS({
6186
6186
  options.detachDescriptor = !!options.detachDescriptor;
6187
6187
  options.discardDescriptor = !!options.discardDescriptor;
6188
6188
  options.unsafeCleanup = !!options.unsafeCleanup;
6189
- options.dir = _isUndefined(options.dir) ? "" : path7.relative(tmpDir, _resolvePath(options.dir, tmpDir));
6190
- options.template = _isUndefined(options.template) ? void 0 : path7.relative(tmpDir, _resolvePath(options.template, tmpDir));
6191
- options.template = _isBlank(options.template) ? void 0 : path7.relative(options.dir, options.template);
6189
+ options.dir = _isUndefined(options.dir) ? "" : path8.relative(tmpDir, _resolvePath(options.dir, tmpDir));
6190
+ options.template = _isUndefined(options.template) ? void 0 : path8.relative(tmpDir, _resolvePath(options.template, tmpDir));
6191
+ options.template = _isBlank(options.template) ? void 0 : path8.relative(options.dir, options.template);
6192
6192
  options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
6193
6193
  options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
6194
6194
  options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
@@ -6196,9 +6196,9 @@ var require_tmp = __commonJS({
6196
6196
  function _resolvePath(name, tmpDir) {
6197
6197
  const sanitizedName = _sanitizeName(name);
6198
6198
  if (sanitizedName.startsWith(tmpDir)) {
6199
- return path7.resolve(sanitizedName);
6199
+ return path8.resolve(sanitizedName);
6200
6200
  } else {
6201
- return path7.resolve(path7.join(tmpDir, sanitizedName));
6201
+ return path8.resolve(path8.join(tmpDir, sanitizedName));
6202
6202
  }
6203
6203
  }
6204
6204
  function _sanitizeName(name) {
@@ -6209,13 +6209,13 @@ var require_tmp = __commonJS({
6209
6209
  }
6210
6210
  function _assertIsRelative(name, option, tmpDir) {
6211
6211
  if (option === "name") {
6212
- if (path7.isAbsolute(name))
6212
+ if (path8.isAbsolute(name))
6213
6213
  throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
6214
- let basename = path7.basename(name);
6214
+ let basename = path8.basename(name);
6215
6215
  if (basename === ".." || basename === "." || basename !== name)
6216
6216
  throw new Error(`${option} option must not contain a path, found "${name}".`);
6217
6217
  } else {
6218
- if (path7.isAbsolute(name) && !name.startsWith(tmpDir)) {
6218
+ if (path8.isAbsolute(name) && !name.startsWith(tmpDir)) {
6219
6219
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
6220
6220
  }
6221
6221
  let resolvedPath = _resolvePath(name, tmpDir);
@@ -6236,7 +6236,7 @@ var require_tmp = __commonJS({
6236
6236
  _gracefulCleanup = true;
6237
6237
  }
6238
6238
  function _getTmpDir(options) {
6239
- return path7.resolve(_sanitizeName(options && options.tmpdir || os2.tmpdir()));
6239
+ return path8.resolve(_sanitizeName(options && options.tmpdir || os3.tmpdir()));
6240
6240
  }
6241
6241
  process.addListener(EXIT, _garbageCollector);
6242
6242
  Object.defineProperty(module.exports, "tmpdir", {
@@ -8150,10 +8150,10 @@ var require_header = __commonJS({
8150
8150
  }
8151
8151
  const prefixSize = this.ctime || this.atime ? 130 : 155;
8152
8152
  const split = splitPrefix(this.path || "", prefixSize);
8153
- const path7 = split[0];
8153
+ const path8 = split[0];
8154
8154
  const prefix2 = split[1];
8155
8155
  this.needPax = split[2];
8156
- this.needPax = encString(buf, off, 100, path7) || this.needPax;
8156
+ this.needPax = encString(buf, off, 100, path8) || this.needPax;
8157
8157
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
8158
8158
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
8159
8159
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -8263,7 +8263,7 @@ var require_pax = __commonJS({
8263
8263
  "node_modules/tar/lib/pax.js"(exports, module) {
8264
8264
  "use strict";
8265
8265
  var Header = require_header();
8266
- var path7 = __require("path");
8266
+ var path8 = __require("path");
8267
8267
  var Pax = class {
8268
8268
  constructor(obj, global3) {
8269
8269
  this.atime = obj.atime || null;
@@ -8298,7 +8298,7 @@ var require_pax = __commonJS({
8298
8298
  // XXX split the path
8299
8299
  // then the path should be PaxHeader + basename, but less than 99,
8300
8300
  // prepend with the dirname
8301
- path: ("PaxHeader/" + path7.basename(this.path)).slice(0, 99),
8301
+ path: ("PaxHeader/" + path8.basename(this.path)).slice(0, 99),
8302
8302
  mode: this.mode || 420,
8303
8303
  uid: this.uid || null,
8304
8304
  gid: this.gid || null,
@@ -8429,16 +8429,16 @@ var require_winchars = __commonJS({
8429
8429
  var require_strip_absolute_path = __commonJS({
8430
8430
  "node_modules/tar/lib/strip-absolute-path.js"(exports, module) {
8431
8431
  var { isAbsolute, parse } = __require("path").win32;
8432
- module.exports = (path7) => {
8432
+ module.exports = (path8) => {
8433
8433
  let r = "";
8434
- let parsed = parse(path7);
8435
- while (isAbsolute(path7) || parsed.root) {
8436
- const root = path7.charAt(0) === "/" && path7.slice(0, 4) !== "//?/" ? "/" : parsed.root;
8437
- path7 = path7.slice(root.length);
8434
+ let parsed = parse(path8);
8435
+ while (isAbsolute(path8) || parsed.root) {
8436
+ const root = path8.charAt(0) === "/" && path8.slice(0, 4) !== "//?/" ? "/" : parsed.root;
8437
+ path8 = path8.slice(root.length);
8438
8438
  r += root;
8439
- parsed = parse(path7);
8439
+ parsed = parse(path8);
8440
8440
  }
8441
- return [r, path7];
8441
+ return [r, path8];
8442
8442
  };
8443
8443
  }
8444
8444
  });
@@ -8475,16 +8475,16 @@ var require_write_entry = __commonJS({
8475
8475
  var { Minipass } = require_minipass();
8476
8476
  var Pax = require_pax();
8477
8477
  var Header = require_header();
8478
- var fs4 = __require("fs");
8479
- var path7 = __require("path");
8478
+ var fs5 = __require("fs");
8479
+ var path8 = __require("path");
8480
8480
  var normPath = require_normalize_windows_path();
8481
8481
  var stripSlash = require_strip_trailing_slashes();
8482
- var prefixPath = (path8, prefix2) => {
8482
+ var prefixPath = (path9, prefix2) => {
8483
8483
  if (!prefix2) {
8484
- return normPath(path8);
8484
+ return normPath(path9);
8485
8485
  }
8486
- path8 = normPath(path8).replace(/^\.(\/|$)/, "");
8487
- return stripSlash(prefix2) + "/" + path8;
8486
+ path9 = normPath(path9).replace(/^\.(\/|$)/, "");
8487
+ return stripSlash(prefix2) + "/" + path9;
8488
8488
  };
8489
8489
  var maxReadSize = 16 * 1024 * 1024;
8490
8490
  var PROCESS = Symbol("process");
@@ -8555,7 +8555,7 @@ var require_write_entry = __commonJS({
8555
8555
  this.path = winchars.decode(this.path.replace(/\\/g, "/"));
8556
8556
  p = p.replace(/\\/g, "/");
8557
8557
  }
8558
- this.absolute = normPath(opt.absolute || path7.resolve(this.cwd, p));
8558
+ this.absolute = normPath(opt.absolute || path8.resolve(this.cwd, p));
8559
8559
  if (this.path === "") {
8560
8560
  this.path = "./";
8561
8561
  }
@@ -8578,7 +8578,7 @@ var require_write_entry = __commonJS({
8578
8578
  return super.emit(ev, ...data);
8579
8579
  }
8580
8580
  [LSTAT]() {
8581
- fs4.lstat(this.absolute, (er, stat) => {
8581
+ fs5.lstat(this.absolute, (er, stat) => {
8582
8582
  if (er) {
8583
8583
  return this.emit("error", er);
8584
8584
  }
@@ -8610,8 +8610,8 @@ var require_write_entry = __commonJS({
8610
8610
  [MODE](mode) {
8611
8611
  return modeFix(mode, this.type === "Directory", this.portable);
8612
8612
  }
8613
- [PREFIX](path8) {
8614
- return prefixPath(path8, this.prefix);
8613
+ [PREFIX](path9) {
8614
+ return prefixPath(path9, this.prefix);
8615
8615
  }
8616
8616
  [HEADER]() {
8617
8617
  if (this.type === "Directory" && this.portable) {
@@ -8660,7 +8660,7 @@ var require_write_entry = __commonJS({
8660
8660
  this.end();
8661
8661
  }
8662
8662
  [SYMLINK]() {
8663
- fs4.readlink(this.absolute, (er, linkpath) => {
8663
+ fs5.readlink(this.absolute, (er, linkpath) => {
8664
8664
  if (er) {
8665
8665
  return this.emit("error", er);
8666
8666
  }
@@ -8674,7 +8674,7 @@ var require_write_entry = __commonJS({
8674
8674
  }
8675
8675
  [HARDLINK](linkpath) {
8676
8676
  this.type = "Link";
8677
- this.linkpath = normPath(path7.relative(this.cwd, linkpath));
8677
+ this.linkpath = normPath(path8.relative(this.cwd, linkpath));
8678
8678
  this.stat.size = 0;
8679
8679
  this[HEADER]();
8680
8680
  this.end();
@@ -8697,7 +8697,7 @@ var require_write_entry = __commonJS({
8697
8697
  this[OPENFILE]();
8698
8698
  }
8699
8699
  [OPENFILE]() {
8700
- fs4.open(this.absolute, "r", (er, fd) => {
8700
+ fs5.open(this.absolute, "r", (er, fd) => {
8701
8701
  if (er) {
8702
8702
  return this.emit("error", er);
8703
8703
  }
@@ -8721,7 +8721,7 @@ var require_write_entry = __commonJS({
8721
8721
  }
8722
8722
  [READ]() {
8723
8723
  const { fd, buf, offset, length, pos } = this;
8724
- fs4.read(fd, buf, offset, length, pos, (er, bytesRead) => {
8724
+ fs5.read(fd, buf, offset, length, pos, (er, bytesRead) => {
8725
8725
  if (er) {
8726
8726
  return this[CLOSE](() => this.emit("error", er));
8727
8727
  }
@@ -8729,7 +8729,7 @@ var require_write_entry = __commonJS({
8729
8729
  });
8730
8730
  }
8731
8731
  [CLOSE](cb) {
8732
- fs4.close(this.fd, cb);
8732
+ fs5.close(this.fd, cb);
8733
8733
  }
8734
8734
  [ONREAD](bytesRead) {
8735
8735
  if (bytesRead <= 0 && this.remain > 0) {
@@ -8793,19 +8793,19 @@ var require_write_entry = __commonJS({
8793
8793
  });
8794
8794
  var WriteEntrySync = class extends WriteEntry {
8795
8795
  [LSTAT]() {
8796
- this[ONLSTAT](fs4.lstatSync(this.absolute));
8796
+ this[ONLSTAT](fs5.lstatSync(this.absolute));
8797
8797
  }
8798
8798
  [SYMLINK]() {
8799
- this[ONREADLINK](fs4.readlinkSync(this.absolute));
8799
+ this[ONREADLINK](fs5.readlinkSync(this.absolute));
8800
8800
  }
8801
8801
  [OPENFILE]() {
8802
- this[ONOPENFILE](fs4.openSync(this.absolute, "r"));
8802
+ this[ONOPENFILE](fs5.openSync(this.absolute, "r"));
8803
8803
  }
8804
8804
  [READ]() {
8805
8805
  let threw = true;
8806
8806
  try {
8807
8807
  const { fd, buf, offset, length, pos } = this;
8808
- const bytesRead = fs4.readSync(fd, buf, offset, length, pos);
8808
+ const bytesRead = fs5.readSync(fd, buf, offset, length, pos);
8809
8809
  this[ONREAD](bytesRead);
8810
8810
  threw = false;
8811
8811
  } finally {
@@ -8822,7 +8822,7 @@ var require_write_entry = __commonJS({
8822
8822
  cb();
8823
8823
  }
8824
8824
  [CLOSE](cb) {
8825
- fs4.closeSync(this.fd);
8825
+ fs5.closeSync(this.fd);
8826
8826
  cb();
8827
8827
  }
8828
8828
  };
@@ -8905,8 +8905,8 @@ var require_write_entry = __commonJS({
8905
8905
  super.write(this.header.block);
8906
8906
  readEntry.pipe(this);
8907
8907
  }
8908
- [PREFIX](path8) {
8909
- return prefixPath(path8, this.prefix);
8908
+ [PREFIX](path9) {
8909
+ return prefixPath(path9, this.prefix);
8910
8910
  }
8911
8911
  [MODE](mode) {
8912
8912
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -9321,8 +9321,8 @@ var require_pack = __commonJS({
9321
9321
  "node_modules/tar/lib/pack.js"(exports, module) {
9322
9322
  "use strict";
9323
9323
  var PackJob = class {
9324
- constructor(path8, absolute) {
9325
- this.path = path8 || "./";
9324
+ constructor(path9, absolute) {
9325
+ this.path = path9 || "./";
9326
9326
  this.absolute = absolute;
9327
9327
  this.entry = null;
9328
9328
  this.stat = null;
@@ -9360,8 +9360,8 @@ var require_pack = __commonJS({
9360
9360
  var WRITEENTRYCLASS = Symbol("writeEntryClass");
9361
9361
  var WRITE = Symbol("write");
9362
9362
  var ONDRAIN = Symbol("ondrain");
9363
- var fs4 = __require("fs");
9364
- var path7 = __require("path");
9363
+ var fs5 = __require("fs");
9364
+ var path8 = __require("path");
9365
9365
  var warner = require_warn_mixin();
9366
9366
  var normPath = require_normalize_windows_path();
9367
9367
  var Pack = warner(class Pack extends Minipass {
@@ -9425,31 +9425,31 @@ var require_pack = __commonJS({
9425
9425
  [WRITE](chunk) {
9426
9426
  return super.write(chunk);
9427
9427
  }
9428
- add(path8) {
9429
- this.write(path8);
9428
+ add(path9) {
9429
+ this.write(path9);
9430
9430
  return this;
9431
9431
  }
9432
- end(path8) {
9433
- if (path8) {
9434
- this.write(path8);
9432
+ end(path9) {
9433
+ if (path9) {
9434
+ this.write(path9);
9435
9435
  }
9436
9436
  this[ENDED] = true;
9437
9437
  this[PROCESS]();
9438
9438
  return this;
9439
9439
  }
9440
- write(path8) {
9440
+ write(path9) {
9441
9441
  if (this[ENDED]) {
9442
9442
  throw new Error("write after end");
9443
9443
  }
9444
- if (path8 instanceof ReadEntry) {
9445
- this[ADDTARENTRY](path8);
9444
+ if (path9 instanceof ReadEntry) {
9445
+ this[ADDTARENTRY](path9);
9446
9446
  } else {
9447
- this[ADDFSENTRY](path8);
9447
+ this[ADDFSENTRY](path9);
9448
9448
  }
9449
9449
  return this.flowing;
9450
9450
  }
9451
9451
  [ADDTARENTRY](p) {
9452
- const absolute = normPath(path7.resolve(this.cwd, p.path));
9452
+ const absolute = normPath(path8.resolve(this.cwd, p.path));
9453
9453
  if (!this.filter(p.path, p)) {
9454
9454
  p.resume();
9455
9455
  } else {
@@ -9462,7 +9462,7 @@ var require_pack = __commonJS({
9462
9462
  this[PROCESS]();
9463
9463
  }
9464
9464
  [ADDFSENTRY](p) {
9465
- const absolute = normPath(path7.resolve(this.cwd, p));
9465
+ const absolute = normPath(path8.resolve(this.cwd, p));
9466
9466
  this[QUEUE].push(new PackJob(p, absolute));
9467
9467
  this[PROCESS]();
9468
9468
  }
@@ -9470,7 +9470,7 @@ var require_pack = __commonJS({
9470
9470
  job.pending = true;
9471
9471
  this[JOBS] += 1;
9472
9472
  const stat = this.follow ? "stat" : "lstat";
9473
- fs4[stat](job.absolute, (er, stat2) => {
9473
+ fs5[stat](job.absolute, (er, stat2) => {
9474
9474
  job.pending = false;
9475
9475
  this[JOBS] -= 1;
9476
9476
  if (er) {
@@ -9491,7 +9491,7 @@ var require_pack = __commonJS({
9491
9491
  [READDIR](job) {
9492
9492
  job.pending = true;
9493
9493
  this[JOBS] += 1;
9494
- fs4.readdir(job.absolute, (er, entries) => {
9494
+ fs5.readdir(job.absolute, (er, entries) => {
9495
9495
  job.pending = false;
9496
9496
  this[JOBS] -= 1;
9497
9497
  if (er) {
@@ -9653,10 +9653,10 @@ var require_pack = __commonJS({
9653
9653
  }
9654
9654
  [STAT](job) {
9655
9655
  const stat = this.follow ? "statSync" : "lstatSync";
9656
- this[ONSTAT](job, fs4[stat](job.absolute));
9656
+ this[ONSTAT](job, fs5[stat](job.absolute));
9657
9657
  }
9658
9658
  [READDIR](job, stat) {
9659
- this[ONREADDIR](job, fs4.readdirSync(job.absolute));
9659
+ this[ONREADDIR](job, fs5.readdirSync(job.absolute));
9660
9660
  }
9661
9661
  // gotta get it all in this tick
9662
9662
  [PIPE](job) {
@@ -9691,8 +9691,8 @@ var require_fs_minipass = __commonJS({
9691
9691
  "use strict";
9692
9692
  var MiniPass = require_minipass2();
9693
9693
  var EE = __require("events").EventEmitter;
9694
- var fs4 = __require("fs");
9695
- var writev = fs4.writev;
9694
+ var fs5 = __require("fs");
9695
+ var writev = fs5.writev;
9696
9696
  if (!writev) {
9697
9697
  const binding = process.binding("fs");
9698
9698
  const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
@@ -9732,16 +9732,16 @@ var require_fs_minipass = __commonJS({
9732
9732
  var _defaultFlag = Symbol("_defaultFlag");
9733
9733
  var _errored = Symbol("_errored");
9734
9734
  var ReadStream = class extends MiniPass {
9735
- constructor(path7, opt) {
9735
+ constructor(path8, opt) {
9736
9736
  opt = opt || {};
9737
9737
  super(opt);
9738
9738
  this.readable = true;
9739
9739
  this.writable = false;
9740
- if (typeof path7 !== "string")
9740
+ if (typeof path8 !== "string")
9741
9741
  throw new TypeError("path must be a string");
9742
9742
  this[_errored] = false;
9743
9743
  this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
9744
- this[_path] = path7;
9744
+ this[_path] = path8;
9745
9745
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
9746
9746
  this[_reading] = false;
9747
9747
  this[_size2] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -9765,7 +9765,7 @@ var require_fs_minipass = __commonJS({
9765
9765
  throw new TypeError("this is a readable stream");
9766
9766
  }
9767
9767
  [_open]() {
9768
- fs4.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
9768
+ fs5.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
9769
9769
  }
9770
9770
  [_onopen](er, fd) {
9771
9771
  if (er)
@@ -9785,7 +9785,7 @@ var require_fs_minipass = __commonJS({
9785
9785
  const buf = this[_makeBuf]();
9786
9786
  if (buf.length === 0)
9787
9787
  return process.nextTick(() => this[_onread](null, 0, buf));
9788
- fs4.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
9788
+ fs5.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
9789
9789
  }
9790
9790
  }
9791
9791
  [_onread](er, br, buf) {
@@ -9799,7 +9799,7 @@ var require_fs_minipass = __commonJS({
9799
9799
  if (this[_autoClose] && typeof this[_fd] === "number") {
9800
9800
  const fd = this[_fd];
9801
9801
  this[_fd] = null;
9802
- fs4.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
9802
+ fs5.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
9803
9803
  }
9804
9804
  }
9805
9805
  [_onerror](er) {
@@ -9842,7 +9842,7 @@ var require_fs_minipass = __commonJS({
9842
9842
  [_open]() {
9843
9843
  let threw = true;
9844
9844
  try {
9845
- this[_onopen](null, fs4.openSync(this[_path], "r"));
9845
+ this[_onopen](null, fs5.openSync(this[_path], "r"));
9846
9846
  threw = false;
9847
9847
  } finally {
9848
9848
  if (threw)
@@ -9856,7 +9856,7 @@ var require_fs_minipass = __commonJS({
9856
9856
  this[_reading] = true;
9857
9857
  do {
9858
9858
  const buf = this[_makeBuf]();
9859
- const br = buf.length === 0 ? 0 : fs4.readSync(this[_fd], buf, 0, buf.length, null);
9859
+ const br = buf.length === 0 ? 0 : fs5.readSync(this[_fd], buf, 0, buf.length, null);
9860
9860
  if (!this[_handleChunk](br, buf))
9861
9861
  break;
9862
9862
  } while (true);
@@ -9872,13 +9872,13 @@ var require_fs_minipass = __commonJS({
9872
9872
  if (this[_autoClose] && typeof this[_fd] === "number") {
9873
9873
  const fd = this[_fd];
9874
9874
  this[_fd] = null;
9875
- fs4.closeSync(fd);
9875
+ fs5.closeSync(fd);
9876
9876
  this.emit("close");
9877
9877
  }
9878
9878
  }
9879
9879
  };
9880
9880
  var WriteStream = class extends EE {
9881
- constructor(path7, opt) {
9881
+ constructor(path8, opt) {
9882
9882
  opt = opt || {};
9883
9883
  super(opt);
9884
9884
  this.readable = false;
@@ -9888,7 +9888,7 @@ var require_fs_minipass = __commonJS({
9888
9888
  this[_ended] = false;
9889
9889
  this[_needDrain] = false;
9890
9890
  this[_queue] = [];
9891
- this[_path] = path7;
9891
+ this[_path] = path8;
9892
9892
  this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
9893
9893
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
9894
9894
  this[_pos] = typeof opt.start === "number" ? opt.start : null;
@@ -9919,7 +9919,7 @@ var require_fs_minipass = __commonJS({
9919
9919
  this.emit("error", er);
9920
9920
  }
9921
9921
  [_open]() {
9922
- fs4.open(
9922
+ fs5.open(
9923
9923
  this[_path],
9924
9924
  this[_flags],
9925
9925
  this[_mode],
@@ -9963,7 +9963,7 @@ var require_fs_minipass = __commonJS({
9963
9963
  return true;
9964
9964
  }
9965
9965
  [_write](buf) {
9966
- fs4.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
9966
+ fs5.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
9967
9967
  }
9968
9968
  [_onwrite](er, bw) {
9969
9969
  if (er)
@@ -10007,7 +10007,7 @@ var require_fs_minipass = __commonJS({
10007
10007
  if (this[_autoClose] && typeof this[_fd] === "number") {
10008
10008
  const fd = this[_fd];
10009
10009
  this[_fd] = null;
10010
- fs4.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
10010
+ fs5.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
10011
10011
  }
10012
10012
  }
10013
10013
  };
@@ -10016,7 +10016,7 @@ var require_fs_minipass = __commonJS({
10016
10016
  let fd;
10017
10017
  if (this[_defaultFlag] && this[_flags] === "r+") {
10018
10018
  try {
10019
- fd = fs4.openSync(this[_path], this[_flags], this[_mode]);
10019
+ fd = fs5.openSync(this[_path], this[_flags], this[_mode]);
10020
10020
  } catch (er) {
10021
10021
  if (er.code === "ENOENT") {
10022
10022
  this[_flags] = "w";
@@ -10025,14 +10025,14 @@ var require_fs_minipass = __commonJS({
10025
10025
  throw er;
10026
10026
  }
10027
10027
  } else
10028
- fd = fs4.openSync(this[_path], this[_flags], this[_mode]);
10028
+ fd = fs5.openSync(this[_path], this[_flags], this[_mode]);
10029
10029
  this[_onopen](null, fd);
10030
10030
  }
10031
10031
  [_close]() {
10032
10032
  if (this[_autoClose] && typeof this[_fd] === "number") {
10033
10033
  const fd = this[_fd];
10034
10034
  this[_fd] = null;
10035
- fs4.closeSync(fd);
10035
+ fs5.closeSync(fd);
10036
10036
  this.emit("close");
10037
10037
  }
10038
10038
  }
@@ -10041,7 +10041,7 @@ var require_fs_minipass = __commonJS({
10041
10041
  try {
10042
10042
  this[_onwrite](
10043
10043
  null,
10044
- fs4.writeSync(this[_fd], buf, 0, buf.length, this[_pos])
10044
+ fs5.writeSync(this[_fd], buf, 0, buf.length, this[_pos])
10045
10045
  );
10046
10046
  threw = false;
10047
10047
  } finally {
@@ -10490,9 +10490,9 @@ var require_list = __commonJS({
10490
10490
  "use strict";
10491
10491
  var hlo = require_high_level_opt();
10492
10492
  var Parser = require_parse();
10493
- var fs4 = __require("fs");
10493
+ var fs5 = __require("fs");
10494
10494
  var fsm = require_fs_minipass();
10495
- var path7 = __require("path");
10495
+ var path8 = __require("path");
10496
10496
  var stripSlash = require_strip_trailing_slashes();
10497
10497
  module.exports = (opt_, files, cb) => {
10498
10498
  if (typeof opt_ === "function") {
@@ -10534,8 +10534,8 @@ var require_list = __commonJS({
10534
10534
  const map = new Map(files.map((f) => [stripSlash(f), true]));
10535
10535
  const filter = opt.filter;
10536
10536
  const mapHas = (file, r) => {
10537
- const root = r || path7.parse(file).root || ".";
10538
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path7.dirname(file), root);
10537
+ const root = r || path8.parse(file).root || ".";
10538
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path8.dirname(file), root);
10539
10539
  map.set(file, ret);
10540
10540
  return ret;
10541
10541
  };
@@ -10547,16 +10547,16 @@ var require_list = __commonJS({
10547
10547
  let threw = true;
10548
10548
  let fd;
10549
10549
  try {
10550
- const stat = fs4.statSync(file);
10550
+ const stat = fs5.statSync(file);
10551
10551
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
10552
10552
  if (stat.size < readSize) {
10553
- p.end(fs4.readFileSync(file));
10553
+ p.end(fs5.readFileSync(file));
10554
10554
  } else {
10555
10555
  let pos = 0;
10556
10556
  const buf = Buffer.allocUnsafe(readSize);
10557
- fd = fs4.openSync(file, "r");
10557
+ fd = fs5.openSync(file, "r");
10558
10558
  while (pos < stat.size) {
10559
- const bytesRead = fs4.readSync(fd, buf, 0, readSize, pos);
10559
+ const bytesRead = fs5.readSync(fd, buf, 0, readSize, pos);
10560
10560
  pos += bytesRead;
10561
10561
  p.write(buf.slice(0, bytesRead));
10562
10562
  }
@@ -10566,7 +10566,7 @@ var require_list = __commonJS({
10566
10566
  } finally {
10567
10567
  if (threw && fd) {
10568
10568
  try {
10569
- fs4.closeSync(fd);
10569
+ fs5.closeSync(fd);
10570
10570
  } catch (er) {
10571
10571
  }
10572
10572
  }
@@ -10579,7 +10579,7 @@ var require_list = __commonJS({
10579
10579
  const p = new Promise((resolve, reject) => {
10580
10580
  parse.on("error", reject);
10581
10581
  parse.on("end", resolve);
10582
- fs4.stat(file, (er, stat) => {
10582
+ fs5.stat(file, (er, stat) => {
10583
10583
  if (er) {
10584
10584
  reject(er);
10585
10585
  } else {
@@ -10606,7 +10606,7 @@ var require_create = __commonJS({
10606
10606
  var Pack = require_pack();
10607
10607
  var fsm = require_fs_minipass();
10608
10608
  var t = require_list();
10609
- var path7 = __require("path");
10609
+ var path8 = __require("path");
10610
10610
  module.exports = (opt_, files, cb) => {
10611
10611
  if (typeof files === "function") {
10612
10612
  cb = files;
@@ -10653,7 +10653,7 @@ var require_create = __commonJS({
10653
10653
  files.forEach((file) => {
10654
10654
  if (file.charAt(0) === "@") {
10655
10655
  t({
10656
- file: path7.resolve(p.cwd, file.slice(1)),
10656
+ file: path8.resolve(p.cwd, file.slice(1)),
10657
10657
  sync: true,
10658
10658
  noResume: true,
10659
10659
  onentry: (entry) => p.add(entry)
@@ -10669,7 +10669,7 @@ var require_create = __commonJS({
10669
10669
  const file = files.shift();
10670
10670
  if (file.charAt(0) === "@") {
10671
10671
  return t({
10672
- file: path7.resolve(p.cwd, file.slice(1)),
10672
+ file: path8.resolve(p.cwd, file.slice(1)),
10673
10673
  noResume: true,
10674
10674
  onentry: (entry) => p.add(entry)
10675
10675
  }).then((_) => addFilesAsync(p, files));
@@ -10698,10 +10698,10 @@ var require_replace = __commonJS({
10698
10698
  "use strict";
10699
10699
  var hlo = require_high_level_opt();
10700
10700
  var Pack = require_pack();
10701
- var fs4 = __require("fs");
10701
+ var fs5 = __require("fs");
10702
10702
  var fsm = require_fs_minipass();
10703
10703
  var t = require_list();
10704
- var path7 = __require("path");
10704
+ var path8 = __require("path");
10705
10705
  var Header = require_header();
10706
10706
  module.exports = (opt_, files, cb) => {
10707
10707
  const opt = hlo(opt_);
@@ -10724,20 +10724,20 @@ var require_replace = __commonJS({
10724
10724
  let position;
10725
10725
  try {
10726
10726
  try {
10727
- fd = fs4.openSync(opt.file, "r+");
10727
+ fd = fs5.openSync(opt.file, "r+");
10728
10728
  } catch (er) {
10729
10729
  if (er.code === "ENOENT") {
10730
- fd = fs4.openSync(opt.file, "w+");
10730
+ fd = fs5.openSync(opt.file, "w+");
10731
10731
  } else {
10732
10732
  throw er;
10733
10733
  }
10734
10734
  }
10735
- const st = fs4.fstatSync(fd);
10735
+ const st = fs5.fstatSync(fd);
10736
10736
  const headBuf = Buffer.alloc(512);
10737
10737
  POSITION:
10738
10738
  for (position = 0; position < st.size; position += 512) {
10739
10739
  for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
10740
- bytes = fs4.readSync(
10740
+ bytes = fs5.readSync(
10741
10741
  fd,
10742
10742
  headBuf,
10743
10743
  bufPos,
@@ -10769,7 +10769,7 @@ var require_replace = __commonJS({
10769
10769
  } finally {
10770
10770
  if (threw) {
10771
10771
  try {
10772
- fs4.closeSync(fd);
10772
+ fs5.closeSync(fd);
10773
10773
  } catch (er) {
10774
10774
  }
10775
10775
  }
@@ -10789,7 +10789,7 @@ var require_replace = __commonJS({
10789
10789
  const getPos = (fd, size, cb_) => {
10790
10790
  const cb2 = (er, pos) => {
10791
10791
  if (er) {
10792
- fs4.close(fd, (_) => cb_(er));
10792
+ fs5.close(fd, (_) => cb_(er));
10793
10793
  } else {
10794
10794
  cb_(null, pos);
10795
10795
  }
@@ -10806,7 +10806,7 @@ var require_replace = __commonJS({
10806
10806
  }
10807
10807
  bufPos += bytes;
10808
10808
  if (bufPos < 512 && bytes) {
10809
- return fs4.read(
10809
+ return fs5.read(
10810
10810
  fd,
10811
10811
  headBuf,
10812
10812
  bufPos,
@@ -10837,9 +10837,9 @@ var require_replace = __commonJS({
10837
10837
  opt.mtimeCache.set(h.path, h.mtime);
10838
10838
  }
10839
10839
  bufPos = 0;
10840
- fs4.read(fd, headBuf, 0, 512, position, onread);
10840
+ fs5.read(fd, headBuf, 0, 512, position, onread);
10841
10841
  };
10842
- fs4.read(fd, headBuf, 0, 512, position, onread);
10842
+ fs5.read(fd, headBuf, 0, 512, position, onread);
10843
10843
  };
10844
10844
  const promise = new Promise((resolve, reject) => {
10845
10845
  p.on("error", reject);
@@ -10847,14 +10847,14 @@ var require_replace = __commonJS({
10847
10847
  const onopen = (er, fd) => {
10848
10848
  if (er && er.code === "ENOENT" && flag === "r+") {
10849
10849
  flag = "w+";
10850
- return fs4.open(opt.file, flag, onopen);
10850
+ return fs5.open(opt.file, flag, onopen);
10851
10851
  }
10852
10852
  if (er) {
10853
10853
  return reject(er);
10854
10854
  }
10855
- fs4.fstat(fd, (er2, st) => {
10855
+ fs5.fstat(fd, (er2, st) => {
10856
10856
  if (er2) {
10857
- return fs4.close(fd, () => reject(er2));
10857
+ return fs5.close(fd, () => reject(er2));
10858
10858
  }
10859
10859
  getPos(fd, st.size, (er3, position) => {
10860
10860
  if (er3) {
@@ -10871,7 +10871,7 @@ var require_replace = __commonJS({
10871
10871
  });
10872
10872
  });
10873
10873
  };
10874
- fs4.open(opt.file, flag, onopen);
10874
+ fs5.open(opt.file, flag, onopen);
10875
10875
  });
10876
10876
  return cb ? promise.then(cb, cb) : promise;
10877
10877
  };
@@ -10879,7 +10879,7 @@ var require_replace = __commonJS({
10879
10879
  files.forEach((file) => {
10880
10880
  if (file.charAt(0) === "@") {
10881
10881
  t({
10882
- file: path7.resolve(p.cwd, file.slice(1)),
10882
+ file: path8.resolve(p.cwd, file.slice(1)),
10883
10883
  sync: true,
10884
10884
  noResume: true,
10885
10885
  onentry: (entry) => p.add(entry)
@@ -10895,7 +10895,7 @@ var require_replace = __commonJS({
10895
10895
  const file = files.shift();
10896
10896
  if (file.charAt(0) === "@") {
10897
10897
  return t({
10898
- file: path7.resolve(p.cwd, file.slice(1)),
10898
+ file: path8.resolve(p.cwd, file.slice(1)),
10899
10899
  noResume: true,
10900
10900
  onentry: (entry) => p.add(entry)
10901
10901
  }).then((_) => addFilesAsync(p, files));
@@ -10934,7 +10934,7 @@ var require_update = __commonJS({
10934
10934
  if (!opt.mtimeCache) {
10935
10935
  opt.mtimeCache = /* @__PURE__ */ new Map();
10936
10936
  }
10937
- opt.filter = filter ? (path7, stat) => filter(path7, stat) && !(opt.mtimeCache.get(path7) > stat.mtime) : (path7, stat) => !(opt.mtimeCache.get(path7) > stat.mtime);
10937
+ opt.filter = filter ? (path8, stat) => filter(path8, stat) && !(opt.mtimeCache.get(path8) > stat.mtime) : (path8, stat) => !(opt.mtimeCache.get(path8) > stat.mtime);
10938
10938
  };
10939
10939
  }
10940
10940
  });
@@ -10943,24 +10943,24 @@ var require_update = __commonJS({
10943
10943
  var require_opts_arg = __commonJS({
10944
10944
  "node_modules/mkdirp/lib/opts-arg.js"(exports, module) {
10945
10945
  var { promisify } = __require("util");
10946
- var fs4 = __require("fs");
10946
+ var fs5 = __require("fs");
10947
10947
  var optsArg = (opts) => {
10948
10948
  if (!opts)
10949
- opts = { mode: 511, fs: fs4 };
10949
+ opts = { mode: 511, fs: fs5 };
10950
10950
  else if (typeof opts === "object")
10951
- opts = { mode: 511, fs: fs4, ...opts };
10951
+ opts = { mode: 511, fs: fs5, ...opts };
10952
10952
  else if (typeof opts === "number")
10953
- opts = { mode: opts, fs: fs4 };
10953
+ opts = { mode: opts, fs: fs5 };
10954
10954
  else if (typeof opts === "string")
10955
- opts = { mode: parseInt(opts, 8), fs: fs4 };
10955
+ opts = { mode: parseInt(opts, 8), fs: fs5 };
10956
10956
  else
10957
10957
  throw new TypeError("invalid options argument");
10958
- opts.mkdir = opts.mkdir || opts.fs.mkdir || fs4.mkdir;
10958
+ opts.mkdir = opts.mkdir || opts.fs.mkdir || fs5.mkdir;
10959
10959
  opts.mkdirAsync = promisify(opts.mkdir);
10960
- opts.stat = opts.stat || opts.fs.stat || fs4.stat;
10960
+ opts.stat = opts.stat || opts.fs.stat || fs5.stat;
10961
10961
  opts.statAsync = promisify(opts.stat);
10962
- opts.statSync = opts.statSync || opts.fs.statSync || fs4.statSync;
10963
- opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs4.mkdirSync;
10962
+ opts.statSync = opts.statSync || opts.fs.statSync || fs5.statSync;
10963
+ opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs5.mkdirSync;
10964
10964
  return opts;
10965
10965
  };
10966
10966
  module.exports = optsArg;
@@ -10972,28 +10972,28 @@ var require_path_arg = __commonJS({
10972
10972
  "node_modules/mkdirp/lib/path-arg.js"(exports, module) {
10973
10973
  var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
10974
10974
  var { resolve, parse } = __require("path");
10975
- var pathArg = (path7) => {
10976
- if (/\0/.test(path7)) {
10975
+ var pathArg = (path8) => {
10976
+ if (/\0/.test(path8)) {
10977
10977
  throw Object.assign(
10978
10978
  new TypeError("path must be a string without null bytes"),
10979
10979
  {
10980
- path: path7,
10980
+ path: path8,
10981
10981
  code: "ERR_INVALID_ARG_VALUE"
10982
10982
  }
10983
10983
  );
10984
10984
  }
10985
- path7 = resolve(path7);
10985
+ path8 = resolve(path8);
10986
10986
  if (platform === "win32") {
10987
10987
  const badWinChars = /[*|"<>?:]/;
10988
- const { root } = parse(path7);
10989
- if (badWinChars.test(path7.substr(root.length))) {
10988
+ const { root } = parse(path8);
10989
+ if (badWinChars.test(path8.substr(root.length))) {
10990
10990
  throw Object.assign(new Error("Illegal characters in path."), {
10991
- path: path7,
10991
+ path: path8,
10992
10992
  code: "EINVAL"
10993
10993
  });
10994
10994
  }
10995
10995
  }
10996
- return path7;
10996
+ return path8;
10997
10997
  };
10998
10998
  module.exports = pathArg;
10999
10999
  }
@@ -11003,20 +11003,20 @@ var require_path_arg = __commonJS({
11003
11003
  var require_find_made = __commonJS({
11004
11004
  "node_modules/mkdirp/lib/find-made.js"(exports, module) {
11005
11005
  var { dirname } = __require("path");
11006
- var findMade = (opts, parent, path7 = void 0) => {
11007
- if (path7 === parent)
11006
+ var findMade = (opts, parent, path8 = void 0) => {
11007
+ if (path8 === parent)
11008
11008
  return Promise.resolve();
11009
11009
  return opts.statAsync(parent).then(
11010
- (st) => st.isDirectory() ? path7 : void 0,
11010
+ (st) => st.isDirectory() ? path8 : void 0,
11011
11011
  // will fail later
11012
11012
  (er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
11013
11013
  );
11014
11014
  };
11015
- var findMadeSync = (opts, parent, path7 = void 0) => {
11016
- if (path7 === parent)
11015
+ var findMadeSync = (opts, parent, path8 = void 0) => {
11016
+ if (path8 === parent)
11017
11017
  return void 0;
11018
11018
  try {
11019
- return opts.statSync(parent).isDirectory() ? path7 : void 0;
11019
+ return opts.statSync(parent).isDirectory() ? path8 : void 0;
11020
11020
  } catch (er) {
11021
11021
  return er.code === "ENOENT" ? findMadeSync(opts, dirname(parent), parent) : void 0;
11022
11022
  }
@@ -11029,21 +11029,21 @@ var require_find_made = __commonJS({
11029
11029
  var require_mkdirp_manual = __commonJS({
11030
11030
  "node_modules/mkdirp/lib/mkdirp-manual.js"(exports, module) {
11031
11031
  var { dirname } = __require("path");
11032
- var mkdirpManual = (path7, opts, made) => {
11032
+ var mkdirpManual = (path8, opts, made) => {
11033
11033
  opts.recursive = false;
11034
- const parent = dirname(path7);
11035
- if (parent === path7) {
11036
- return opts.mkdirAsync(path7, opts).catch((er) => {
11034
+ const parent = dirname(path8);
11035
+ if (parent === path8) {
11036
+ return opts.mkdirAsync(path8, opts).catch((er) => {
11037
11037
  if (er.code !== "EISDIR")
11038
11038
  throw er;
11039
11039
  });
11040
11040
  }
11041
- return opts.mkdirAsync(path7, opts).then(() => made || path7, (er) => {
11041
+ return opts.mkdirAsync(path8, opts).then(() => made || path8, (er) => {
11042
11042
  if (er.code === "ENOENT")
11043
- return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path7, opts, made2));
11043
+ return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path8, opts, made2));
11044
11044
  if (er.code !== "EEXIST" && er.code !== "EROFS")
11045
11045
  throw er;
11046
- return opts.statAsync(path7).then((st) => {
11046
+ return opts.statAsync(path8).then((st) => {
11047
11047
  if (st.isDirectory())
11048
11048
  return made;
11049
11049
  else
@@ -11053,12 +11053,12 @@ var require_mkdirp_manual = __commonJS({
11053
11053
  });
11054
11054
  });
11055
11055
  };
11056
- var mkdirpManualSync = (path7, opts, made) => {
11057
- const parent = dirname(path7);
11056
+ var mkdirpManualSync = (path8, opts, made) => {
11057
+ const parent = dirname(path8);
11058
11058
  opts.recursive = false;
11059
- if (parent === path7) {
11059
+ if (parent === path8) {
11060
11060
  try {
11061
- return opts.mkdirSync(path7, opts);
11061
+ return opts.mkdirSync(path8, opts);
11062
11062
  } catch (er) {
11063
11063
  if (er.code !== "EISDIR")
11064
11064
  throw er;
@@ -11067,15 +11067,15 @@ var require_mkdirp_manual = __commonJS({
11067
11067
  }
11068
11068
  }
11069
11069
  try {
11070
- opts.mkdirSync(path7, opts);
11071
- return made || path7;
11070
+ opts.mkdirSync(path8, opts);
11071
+ return made || path8;
11072
11072
  } catch (er) {
11073
11073
  if (er.code === "ENOENT")
11074
- return mkdirpManualSync(path7, opts, mkdirpManualSync(parent, opts, made));
11074
+ return mkdirpManualSync(path8, opts, mkdirpManualSync(parent, opts, made));
11075
11075
  if (er.code !== "EEXIST" && er.code !== "EROFS")
11076
11076
  throw er;
11077
11077
  try {
11078
- if (!opts.statSync(path7).isDirectory())
11078
+ if (!opts.statSync(path8).isDirectory())
11079
11079
  throw er;
11080
11080
  } catch (_) {
11081
11081
  throw er;
@@ -11092,30 +11092,30 @@ var require_mkdirp_native = __commonJS({
11092
11092
  var { dirname } = __require("path");
11093
11093
  var { findMade, findMadeSync } = require_find_made();
11094
11094
  var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
11095
- var mkdirpNative = (path7, opts) => {
11095
+ var mkdirpNative = (path8, opts) => {
11096
11096
  opts.recursive = true;
11097
- const parent = dirname(path7);
11098
- if (parent === path7)
11099
- return opts.mkdirAsync(path7, opts);
11100
- return findMade(opts, path7).then((made) => opts.mkdirAsync(path7, opts).then(() => made).catch((er) => {
11097
+ const parent = dirname(path8);
11098
+ if (parent === path8)
11099
+ return opts.mkdirAsync(path8, opts);
11100
+ return findMade(opts, path8).then((made) => opts.mkdirAsync(path8, opts).then(() => made).catch((er) => {
11101
11101
  if (er.code === "ENOENT")
11102
- return mkdirpManual(path7, opts);
11102
+ return mkdirpManual(path8, opts);
11103
11103
  else
11104
11104
  throw er;
11105
11105
  }));
11106
11106
  };
11107
- var mkdirpNativeSync = (path7, opts) => {
11107
+ var mkdirpNativeSync = (path8, opts) => {
11108
11108
  opts.recursive = true;
11109
- const parent = dirname(path7);
11110
- if (parent === path7)
11111
- return opts.mkdirSync(path7, opts);
11112
- const made = findMadeSync(opts, path7);
11109
+ const parent = dirname(path8);
11110
+ if (parent === path8)
11111
+ return opts.mkdirSync(path8, opts);
11112
+ const made = findMadeSync(opts, path8);
11113
11113
  try {
11114
- opts.mkdirSync(path7, opts);
11114
+ opts.mkdirSync(path8, opts);
11115
11115
  return made;
11116
11116
  } catch (er) {
11117
11117
  if (er.code === "ENOENT")
11118
- return mkdirpManualSync(path7, opts);
11118
+ return mkdirpManualSync(path8, opts);
11119
11119
  else
11120
11120
  throw er;
11121
11121
  }
@@ -11127,12 +11127,12 @@ var require_mkdirp_native = __commonJS({
11127
11127
  // node_modules/mkdirp/lib/use-native.js
11128
11128
  var require_use_native = __commonJS({
11129
11129
  "node_modules/mkdirp/lib/use-native.js"(exports, module) {
11130
- var fs4 = __require("fs");
11130
+ var fs5 = __require("fs");
11131
11131
  var version2 = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
11132
11132
  var versArr = version2.replace(/^v/, "").split(".");
11133
11133
  var hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
11134
- var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs4.mkdir;
11135
- var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs4.mkdirSync;
11134
+ var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs5.mkdir;
11135
+ var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs5.mkdirSync;
11136
11136
  module.exports = { useNative, useNativeSync };
11137
11137
  }
11138
11138
  });
@@ -11145,21 +11145,21 @@ var require_mkdirp = __commonJS({
11145
11145
  var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
11146
11146
  var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
11147
11147
  var { useNative, useNativeSync } = require_use_native();
11148
- var mkdirp = (path7, opts) => {
11149
- path7 = pathArg(path7);
11148
+ var mkdirp = (path8, opts) => {
11149
+ path8 = pathArg(path8);
11150
11150
  opts = optsArg(opts);
11151
- return useNative(opts) ? mkdirpNative(path7, opts) : mkdirpManual(path7, opts);
11151
+ return useNative(opts) ? mkdirpNative(path8, opts) : mkdirpManual(path8, opts);
11152
11152
  };
11153
- var mkdirpSync = (path7, opts) => {
11154
- path7 = pathArg(path7);
11153
+ var mkdirpSync = (path8, opts) => {
11154
+ path8 = pathArg(path8);
11155
11155
  opts = optsArg(opts);
11156
- return useNativeSync(opts) ? mkdirpNativeSync(path7, opts) : mkdirpManualSync(path7, opts);
11156
+ return useNativeSync(opts) ? mkdirpNativeSync(path8, opts) : mkdirpManualSync(path8, opts);
11157
11157
  };
11158
11158
  mkdirp.sync = mkdirpSync;
11159
- mkdirp.native = (path7, opts) => mkdirpNative(pathArg(path7), optsArg(opts));
11160
- mkdirp.manual = (path7, opts) => mkdirpManual(pathArg(path7), optsArg(opts));
11161
- mkdirp.nativeSync = (path7, opts) => mkdirpNativeSync(pathArg(path7), optsArg(opts));
11162
- mkdirp.manualSync = (path7, opts) => mkdirpManualSync(pathArg(path7), optsArg(opts));
11159
+ mkdirp.native = (path8, opts) => mkdirpNative(pathArg(path8), optsArg(opts));
11160
+ mkdirp.manual = (path8, opts) => mkdirpManual(pathArg(path8), optsArg(opts));
11161
+ mkdirp.nativeSync = (path8, opts) => mkdirpNativeSync(pathArg(path8), optsArg(opts));
11162
+ mkdirp.manualSync = (path8, opts) => mkdirpManualSync(pathArg(path8), optsArg(opts));
11163
11163
  module.exports = mkdirp;
11164
11164
  }
11165
11165
  });
@@ -11168,69 +11168,69 @@ var require_mkdirp = __commonJS({
11168
11168
  var require_chownr = __commonJS({
11169
11169
  "node_modules/chownr/chownr.js"(exports, module) {
11170
11170
  "use strict";
11171
- var fs4 = __require("fs");
11172
- var path7 = __require("path");
11173
- var LCHOWN = fs4.lchown ? "lchown" : "chown";
11174
- var LCHOWNSYNC = fs4.lchownSync ? "lchownSync" : "chownSync";
11175
- var needEISDIRHandled = fs4.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
11176
- var lchownSync = (path8, uid, gid) => {
11171
+ var fs5 = __require("fs");
11172
+ var path8 = __require("path");
11173
+ var LCHOWN = fs5.lchown ? "lchown" : "chown";
11174
+ var LCHOWNSYNC = fs5.lchownSync ? "lchownSync" : "chownSync";
11175
+ var needEISDIRHandled = fs5.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
11176
+ var lchownSync = (path9, uid, gid) => {
11177
11177
  try {
11178
- return fs4[LCHOWNSYNC](path8, uid, gid);
11178
+ return fs5[LCHOWNSYNC](path9, uid, gid);
11179
11179
  } catch (er) {
11180
11180
  if (er.code !== "ENOENT")
11181
11181
  throw er;
11182
11182
  }
11183
11183
  };
11184
- var chownSync = (path8, uid, gid) => {
11184
+ var chownSync = (path9, uid, gid) => {
11185
11185
  try {
11186
- return fs4.chownSync(path8, uid, gid);
11186
+ return fs5.chownSync(path9, uid, gid);
11187
11187
  } catch (er) {
11188
11188
  if (er.code !== "ENOENT")
11189
11189
  throw er;
11190
11190
  }
11191
11191
  };
11192
- var handleEISDIR = needEISDIRHandled ? (path8, uid, gid, cb) => (er) => {
11192
+ var handleEISDIR = needEISDIRHandled ? (path9, uid, gid, cb) => (er) => {
11193
11193
  if (!er || er.code !== "EISDIR")
11194
11194
  cb(er);
11195
11195
  else
11196
- fs4.chown(path8, uid, gid, cb);
11196
+ fs5.chown(path9, uid, gid, cb);
11197
11197
  } : (_, __, ___, cb) => cb;
11198
- var handleEISDirSync = needEISDIRHandled ? (path8, uid, gid) => {
11198
+ var handleEISDirSync = needEISDIRHandled ? (path9, uid, gid) => {
11199
11199
  try {
11200
- return lchownSync(path8, uid, gid);
11200
+ return lchownSync(path9, uid, gid);
11201
11201
  } catch (er) {
11202
11202
  if (er.code !== "EISDIR")
11203
11203
  throw er;
11204
- chownSync(path8, uid, gid);
11204
+ chownSync(path9, uid, gid);
11205
11205
  }
11206
- } : (path8, uid, gid) => lchownSync(path8, uid, gid);
11206
+ } : (path9, uid, gid) => lchownSync(path9, uid, gid);
11207
11207
  var nodeVersion = process.version;
11208
- var readdir = (path8, options, cb) => fs4.readdir(path8, options, cb);
11209
- var readdirSync = (path8, options) => fs4.readdirSync(path8, options);
11208
+ var readdir = (path9, options, cb) => fs5.readdir(path9, options, cb);
11209
+ var readdirSync = (path9, options) => fs5.readdirSync(path9, options);
11210
11210
  if (/^v4\./.test(nodeVersion))
11211
- readdir = (path8, options, cb) => fs4.readdir(path8, cb);
11211
+ readdir = (path9, options, cb) => fs5.readdir(path9, cb);
11212
11212
  var chown = (cpath, uid, gid, cb) => {
11213
- fs4[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
11213
+ fs5[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
11214
11214
  cb(er && er.code !== "ENOENT" ? er : null);
11215
11215
  }));
11216
11216
  };
11217
11217
  var chownrKid = (p, child, uid, gid, cb) => {
11218
11218
  if (typeof child === "string")
11219
- return fs4.lstat(path7.resolve(p, child), (er, stats) => {
11219
+ return fs5.lstat(path8.resolve(p, child), (er, stats) => {
11220
11220
  if (er)
11221
11221
  return cb(er.code !== "ENOENT" ? er : null);
11222
11222
  stats.name = child;
11223
11223
  chownrKid(p, stats, uid, gid, cb);
11224
11224
  });
11225
11225
  if (child.isDirectory()) {
11226
- chownr(path7.resolve(p, child.name), uid, gid, (er) => {
11226
+ chownr(path8.resolve(p, child.name), uid, gid, (er) => {
11227
11227
  if (er)
11228
11228
  return cb(er);
11229
- const cpath = path7.resolve(p, child.name);
11229
+ const cpath = path8.resolve(p, child.name);
11230
11230
  chown(cpath, uid, gid, cb);
11231
11231
  });
11232
11232
  } else {
11233
- const cpath = path7.resolve(p, child.name);
11233
+ const cpath = path8.resolve(p, child.name);
11234
11234
  chown(cpath, uid, gid, cb);
11235
11235
  }
11236
11236
  };
@@ -11260,7 +11260,7 @@ var require_chownr = __commonJS({
11260
11260
  var chownrKidSync = (p, child, uid, gid) => {
11261
11261
  if (typeof child === "string") {
11262
11262
  try {
11263
- const stats = fs4.lstatSync(path7.resolve(p, child));
11263
+ const stats = fs5.lstatSync(path8.resolve(p, child));
11264
11264
  stats.name = child;
11265
11265
  child = stats;
11266
11266
  } catch (er) {
@@ -11271,8 +11271,8 @@ var require_chownr = __commonJS({
11271
11271
  }
11272
11272
  }
11273
11273
  if (child.isDirectory())
11274
- chownrSync(path7.resolve(p, child.name), uid, gid);
11275
- handleEISDirSync(path7.resolve(p, child.name), uid, gid);
11274
+ chownrSync(path8.resolve(p, child.name), uid, gid);
11275
+ handleEISDirSync(path8.resolve(p, child.name), uid, gid);
11276
11276
  };
11277
11277
  var chownrSync = (p, uid, gid) => {
11278
11278
  let children;
@@ -11300,14 +11300,14 @@ var require_mkdir = __commonJS({
11300
11300
  "node_modules/tar/lib/mkdir.js"(exports, module) {
11301
11301
  "use strict";
11302
11302
  var mkdirp = require_mkdirp();
11303
- var fs4 = __require("fs");
11304
- var path7 = __require("path");
11303
+ var fs5 = __require("fs");
11304
+ var path8 = __require("path");
11305
11305
  var chownr = require_chownr();
11306
11306
  var normPath = require_normalize_windows_path();
11307
11307
  var SymlinkError = class extends Error {
11308
- constructor(symlink, path8) {
11308
+ constructor(symlink, path9) {
11309
11309
  super("Cannot extract through symbolic link");
11310
- this.path = path8;
11310
+ this.path = path9;
11311
11311
  this.symlink = symlink;
11312
11312
  }
11313
11313
  get name() {
@@ -11315,9 +11315,9 @@ var require_mkdir = __commonJS({
11315
11315
  }
11316
11316
  };
11317
11317
  var CwdError = class extends Error {
11318
- constructor(path8, code) {
11319
- super(code + ": Cannot cd into '" + path8 + "'");
11320
- this.path = path8;
11318
+ constructor(path9, code) {
11319
+ super(code + ": Cannot cd into '" + path9 + "'");
11320
+ this.path = path9;
11321
11321
  this.code = code;
11322
11322
  }
11323
11323
  get name() {
@@ -11327,7 +11327,7 @@ var require_mkdir = __commonJS({
11327
11327
  var cGet = (cache2, key) => cache2.get(normPath(key));
11328
11328
  var cSet = (cache2, key, val) => cache2.set(normPath(key), val);
11329
11329
  var checkCwd = (dir, cb) => {
11330
- fs4.stat(dir, (er, st) => {
11330
+ fs5.stat(dir, (er, st) => {
11331
11331
  if (er || !st.isDirectory()) {
11332
11332
  er = new CwdError(dir, er && er.code || "ENOTDIR");
11333
11333
  }
@@ -11354,7 +11354,7 @@ var require_mkdir = __commonJS({
11354
11354
  if (created && doChown) {
11355
11355
  chownr(created, uid, gid, (er2) => done(er2));
11356
11356
  } else if (needChmod) {
11357
- fs4.chmod(dir, mode, cb);
11357
+ fs5.chmod(dir, mode, cb);
11358
11358
  } else {
11359
11359
  cb();
11360
11360
  }
@@ -11369,7 +11369,7 @@ var require_mkdir = __commonJS({
11369
11369
  if (preserve) {
11370
11370
  return mkdirp(dir, { mode }).then((made) => done(null, made), done);
11371
11371
  }
11372
- const sub = normPath(path7.relative(cwd, dir));
11372
+ const sub = normPath(path8.relative(cwd, dir));
11373
11373
  const parts = sub.split("/");
11374
11374
  mkdir_(cwd, parts, mode, cache2, unlink, cwd, null, done);
11375
11375
  };
@@ -11378,26 +11378,26 @@ var require_mkdir = __commonJS({
11378
11378
  return cb(null, created);
11379
11379
  }
11380
11380
  const p = parts.shift();
11381
- const part = normPath(path7.resolve(base + "/" + p));
11381
+ const part = normPath(path8.resolve(base + "/" + p));
11382
11382
  if (cGet(cache2, part)) {
11383
11383
  return mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
11384
11384
  }
11385
- fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
11385
+ fs5.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
11386
11386
  };
11387
11387
  var onmkdir = (part, parts, mode, cache2, unlink, cwd, created, cb) => (er) => {
11388
11388
  if (er) {
11389
- fs4.lstat(part, (statEr, st) => {
11389
+ fs5.lstat(part, (statEr, st) => {
11390
11390
  if (statEr) {
11391
11391
  statEr.path = statEr.path && normPath(statEr.path);
11392
11392
  cb(statEr);
11393
11393
  } else if (st.isDirectory()) {
11394
11394
  mkdir_(part, parts, mode, cache2, unlink, cwd, created, cb);
11395
11395
  } else if (unlink) {
11396
- fs4.unlink(part, (er2) => {
11396
+ fs5.unlink(part, (er2) => {
11397
11397
  if (er2) {
11398
11398
  return cb(er2);
11399
11399
  }
11400
- fs4.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
11400
+ fs5.mkdir(part, mode, onmkdir(part, parts, mode, cache2, unlink, cwd, created, cb));
11401
11401
  });
11402
11402
  } else if (st.isSymbolicLink()) {
11403
11403
  return cb(new SymlinkError(part, part + "/" + parts.join("/")));
@@ -11414,7 +11414,7 @@ var require_mkdir = __commonJS({
11414
11414
  let ok = false;
11415
11415
  let code = "ENOTDIR";
11416
11416
  try {
11417
- ok = fs4.statSync(dir).isDirectory();
11417
+ ok = fs5.statSync(dir).isDirectory();
11418
11418
  } catch (er) {
11419
11419
  code = er.code;
11420
11420
  } finally {
@@ -11441,7 +11441,7 @@ var require_mkdir = __commonJS({
11441
11441
  chownr.sync(created2, uid, gid);
11442
11442
  }
11443
11443
  if (needChmod) {
11444
- fs4.chmodSync(dir, mode);
11444
+ fs5.chmodSync(dir, mode);
11445
11445
  }
11446
11446
  };
11447
11447
  if (cache2 && cGet(cache2, dir) === true) {
@@ -11454,26 +11454,26 @@ var require_mkdir = __commonJS({
11454
11454
  if (preserve) {
11455
11455
  return done(mkdirp.sync(dir, mode));
11456
11456
  }
11457
- const sub = normPath(path7.relative(cwd, dir));
11457
+ const sub = normPath(path8.relative(cwd, dir));
11458
11458
  const parts = sub.split("/");
11459
11459
  let created = null;
11460
11460
  for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
11461
- part = normPath(path7.resolve(part));
11461
+ part = normPath(path8.resolve(part));
11462
11462
  if (cGet(cache2, part)) {
11463
11463
  continue;
11464
11464
  }
11465
11465
  try {
11466
- fs4.mkdirSync(part, mode);
11466
+ fs5.mkdirSync(part, mode);
11467
11467
  created = created || part;
11468
11468
  cSet(cache2, part, true);
11469
11469
  } catch (er) {
11470
- const st = fs4.lstatSync(part);
11470
+ const st = fs5.lstatSync(part);
11471
11471
  if (st.isDirectory()) {
11472
11472
  cSet(cache2, part, true);
11473
11473
  continue;
11474
11474
  } else if (unlink) {
11475
- fs4.unlinkSync(part);
11476
- fs4.mkdirSync(part, mode);
11475
+ fs5.unlinkSync(part);
11476
+ fs5.mkdirSync(part, mode);
11477
11477
  created = created || part;
11478
11478
  cSet(cache2, part, true);
11479
11479
  continue;
@@ -11513,12 +11513,12 @@ var require_path_reservations = __commonJS({
11513
11513
  module.exports = () => {
11514
11514
  const queues = /* @__PURE__ */ new Map();
11515
11515
  const reservations = /* @__PURE__ */ new Map();
11516
- const getDirs = (path7) => {
11517
- const dirs = path7.split("/").slice(0, -1).reduce((set, path8) => {
11516
+ const getDirs = (path8) => {
11517
+ const dirs = path8.split("/").slice(0, -1).reduce((set, path9) => {
11518
11518
  if (set.length) {
11519
- path8 = join(set[set.length - 1], path8);
11519
+ path9 = join(set[set.length - 1], path9);
11520
11520
  }
11521
- set.push(path8 || "/");
11521
+ set.push(path9 || "/");
11522
11522
  return set;
11523
11523
  }, []);
11524
11524
  return dirs;
@@ -11530,8 +11530,8 @@ var require_path_reservations = __commonJS({
11530
11530
  throw new Error("function does not have any path reservations");
11531
11531
  }
11532
11532
  return {
11533
- paths: res.paths.map((path7) => queues.get(path7)),
11534
- dirs: [...res.dirs].map((path7) => queues.get(path7))
11533
+ paths: res.paths.map((path8) => queues.get(path8)),
11534
+ dirs: [...res.dirs].map((path8) => queues.get(path8))
11535
11535
  };
11536
11536
  };
11537
11537
  const check = (fn) => {
@@ -11552,11 +11552,11 @@ var require_path_reservations = __commonJS({
11552
11552
  }
11553
11553
  const { paths, dirs } = reservations.get(fn);
11554
11554
  const next = /* @__PURE__ */ new Set();
11555
- paths.forEach((path7) => {
11556
- const q = queues.get(path7);
11555
+ paths.forEach((path8) => {
11556
+ const q = queues.get(path8);
11557
11557
  assert.equal(q[0], fn);
11558
11558
  if (q.length === 1) {
11559
- queues.delete(path7);
11559
+ queues.delete(path8);
11560
11560
  } else {
11561
11561
  q.shift();
11562
11562
  if (typeof q[0] === "function") {
@@ -11587,13 +11587,13 @@ var require_path_reservations = __commonJS({
11587
11587
  return stripSlashes(join(normalize3(p))).toLowerCase();
11588
11588
  });
11589
11589
  const dirs = new Set(
11590
- paths.map((path7) => getDirs(path7)).reduce((a, b) => a.concat(b))
11590
+ paths.map((path8) => getDirs(path8)).reduce((a, b) => a.concat(b))
11591
11591
  );
11592
11592
  reservations.set(fn, { dirs, paths });
11593
- paths.forEach((path7) => {
11594
- const q = queues.get(path7);
11593
+ paths.forEach((path8) => {
11594
+ const q = queues.get(path8);
11595
11595
  if (!q) {
11596
- queues.set(path7, [fn]);
11596
+ queues.set(path8, [fn]);
11597
11597
  } else {
11598
11598
  q.push(fn);
11599
11599
  }
@@ -11620,8 +11620,8 @@ var require_get_write_flag = __commonJS({
11620
11620
  "node_modules/tar/lib/get-write-flag.js"(exports, module) {
11621
11621
  var platform = process.env.__FAKE_PLATFORM__ || process.platform;
11622
11622
  var isWindows = platform === "win32";
11623
- var fs4 = global.__FAKE_TESTING_FS__ || __require("fs");
11624
- var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs4.constants;
11623
+ var fs5 = global.__FAKE_TESTING_FS__ || __require("fs");
11624
+ var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs5.constants;
11625
11625
  var fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
11626
11626
  var fMapLimit = 512 * 1024;
11627
11627
  var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
@@ -11635,9 +11635,9 @@ var require_unpack = __commonJS({
11635
11635
  "use strict";
11636
11636
  var assert = __require("assert");
11637
11637
  var Parser = require_parse();
11638
- var fs4 = __require("fs");
11638
+ var fs5 = __require("fs");
11639
11639
  var fsm = require_fs_minipass();
11640
- var path7 = __require("path");
11640
+ var path8 = __require("path");
11641
11641
  var mkdir = require_mkdir();
11642
11642
  var wc = require_winchars();
11643
11643
  var pathReservations = require_path_reservations();
@@ -11670,38 +11670,38 @@ var require_unpack = __commonJS({
11670
11670
  var UID = Symbol("uid");
11671
11671
  var GID = Symbol("gid");
11672
11672
  var CHECKED_CWD = Symbol("checkedCwd");
11673
- var crypto = __require("crypto");
11673
+ var crypto2 = __require("crypto");
11674
11674
  var getFlag = require_get_write_flag();
11675
11675
  var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
11676
11676
  var isWindows = platform === "win32";
11677
- var unlinkFile = (path8, cb) => {
11677
+ var unlinkFile = (path9, cb) => {
11678
11678
  if (!isWindows) {
11679
- return fs4.unlink(path8, cb);
11679
+ return fs5.unlink(path9, cb);
11680
11680
  }
11681
- const name = path8 + ".DELETE." + crypto.randomBytes(16).toString("hex");
11682
- fs4.rename(path8, name, (er) => {
11681
+ const name = path9 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
11682
+ fs5.rename(path9, name, (er) => {
11683
11683
  if (er) {
11684
11684
  return cb(er);
11685
11685
  }
11686
- fs4.unlink(name, cb);
11686
+ fs5.unlink(name, cb);
11687
11687
  });
11688
11688
  };
11689
- var unlinkFileSync = (path8) => {
11689
+ var unlinkFileSync = (path9) => {
11690
11690
  if (!isWindows) {
11691
- return fs4.unlinkSync(path8);
11691
+ return fs5.unlinkSync(path9);
11692
11692
  }
11693
- const name = path8 + ".DELETE." + crypto.randomBytes(16).toString("hex");
11694
- fs4.renameSync(path8, name);
11695
- fs4.unlinkSync(name);
11693
+ const name = path9 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
11694
+ fs5.renameSync(path9, name);
11695
+ fs5.unlinkSync(name);
11696
11696
  };
11697
11697
  var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
11698
- var cacheKeyNormalize = (path8) => stripSlash(normPath(normalize3(path8))).toLowerCase();
11698
+ var cacheKeyNormalize = (path9) => stripSlash(normPath(normalize3(path9))).toLowerCase();
11699
11699
  var pruneCache = (cache2, abs) => {
11700
11700
  abs = cacheKeyNormalize(abs);
11701
- for (const path8 of cache2.keys()) {
11702
- const pnorm = cacheKeyNormalize(path8);
11701
+ for (const path9 of cache2.keys()) {
11702
+ const pnorm = cacheKeyNormalize(path9);
11703
11703
  if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
11704
- cache2.delete(path8);
11704
+ cache2.delete(path9);
11705
11705
  }
11706
11706
  }
11707
11707
  };
@@ -11759,7 +11759,7 @@ var require_unpack = __commonJS({
11759
11759
  this.noMtime = !!opt.noMtime;
11760
11760
  this.preservePaths = !!opt.preservePaths;
11761
11761
  this.unlink = !!opt.unlink;
11762
- this.cwd = normPath(path7.resolve(opt.cwd || process.cwd()));
11762
+ this.cwd = normPath(path8.resolve(opt.cwd || process.cwd()));
11763
11763
  this.strip = +opt.strip || 0;
11764
11764
  this.processUmask = opt.noChmod ? 0 : process.umask();
11765
11765
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
@@ -11818,10 +11818,10 @@ var require_unpack = __commonJS({
11818
11818
  });
11819
11819
  }
11820
11820
  }
11821
- if (path7.isAbsolute(entry.path)) {
11822
- entry.absolute = normPath(path7.resolve(entry.path));
11821
+ if (path8.isAbsolute(entry.path)) {
11822
+ entry.absolute = normPath(path8.resolve(entry.path));
11823
11823
  } else {
11824
- entry.absolute = normPath(path7.resolve(this.cwd, entry.path));
11824
+ entry.absolute = normPath(path8.resolve(this.cwd, entry.path));
11825
11825
  }
11826
11826
  if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
11827
11827
  this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
@@ -11836,9 +11836,9 @@ var require_unpack = __commonJS({
11836
11836
  return false;
11837
11837
  }
11838
11838
  if (this.win32) {
11839
- const { root: aRoot } = path7.win32.parse(entry.absolute);
11839
+ const { root: aRoot } = path8.win32.parse(entry.absolute);
11840
11840
  entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
11841
- const { root: pRoot } = path7.win32.parse(entry.path);
11841
+ const { root: pRoot } = path8.win32.parse(entry.path);
11842
11842
  entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
11843
11843
  }
11844
11844
  return true;
@@ -11909,7 +11909,7 @@ var require_unpack = __commonJS({
11909
11909
  });
11910
11910
  stream.on("error", (er) => {
11911
11911
  if (stream.fd) {
11912
- fs4.close(stream.fd, () => {
11912
+ fs5.close(stream.fd, () => {
11913
11913
  });
11914
11914
  }
11915
11915
  stream.write = () => true;
@@ -11920,7 +11920,7 @@ var require_unpack = __commonJS({
11920
11920
  const done = (er) => {
11921
11921
  if (er) {
11922
11922
  if (stream.fd) {
11923
- fs4.close(stream.fd, () => {
11923
+ fs5.close(stream.fd, () => {
11924
11924
  });
11925
11925
  }
11926
11926
  this[ONERROR](er, entry);
@@ -11928,7 +11928,7 @@ var require_unpack = __commonJS({
11928
11928
  return;
11929
11929
  }
11930
11930
  if (--actions === 0) {
11931
- fs4.close(stream.fd, (er2) => {
11931
+ fs5.close(stream.fd, (er2) => {
11932
11932
  if (er2) {
11933
11933
  this[ONERROR](er2, entry);
11934
11934
  } else {
@@ -11945,13 +11945,13 @@ var require_unpack = __commonJS({
11945
11945
  actions++;
11946
11946
  const atime = entry.atime || /* @__PURE__ */ new Date();
11947
11947
  const mtime = entry.mtime;
11948
- fs4.futimes(fd, atime, mtime, (er) => er ? fs4.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
11948
+ fs5.futimes(fd, atime, mtime, (er) => er ? fs5.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
11949
11949
  }
11950
11950
  if (this[DOCHOWN](entry)) {
11951
11951
  actions++;
11952
11952
  const uid = this[UID](entry);
11953
11953
  const gid = this[GID](entry);
11954
- fs4.fchown(fd, uid, gid, (er) => er ? fs4.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
11954
+ fs5.fchown(fd, uid, gid, (er) => er ? fs5.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
11955
11955
  }
11956
11956
  done();
11957
11957
  });
@@ -11983,11 +11983,11 @@ var require_unpack = __commonJS({
11983
11983
  };
11984
11984
  if (entry.mtime && !this.noMtime) {
11985
11985
  actions++;
11986
- fs4.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
11986
+ fs5.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
11987
11987
  }
11988
11988
  if (this[DOCHOWN](entry)) {
11989
11989
  actions++;
11990
- fs4.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
11990
+ fs5.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
11991
11991
  }
11992
11992
  done();
11993
11993
  });
@@ -12005,7 +12005,7 @@ var require_unpack = __commonJS({
12005
12005
  this[LINK](entry, entry.linkpath, "symlink", done);
12006
12006
  }
12007
12007
  [HARDLINK](entry, done) {
12008
- const linkpath = normPath(path7.resolve(this.cwd, entry.linkpath));
12008
+ const linkpath = normPath(path8.resolve(this.cwd, entry.linkpath));
12009
12009
  this[LINK](entry, linkpath, "link", done);
12010
12010
  }
12011
12011
  [PEND]() {
@@ -12060,7 +12060,7 @@ var require_unpack = __commonJS({
12060
12060
  };
12061
12061
  const start = () => {
12062
12062
  if (entry.absolute !== this.cwd) {
12063
- const parent = normPath(path7.dirname(entry.absolute));
12063
+ const parent = normPath(path8.dirname(entry.absolute));
12064
12064
  if (parent !== this.cwd) {
12065
12065
  return this[MKDIR](parent, this.dmode, (er) => {
12066
12066
  if (er) {
@@ -12075,7 +12075,7 @@ var require_unpack = __commonJS({
12075
12075
  afterMakeParent();
12076
12076
  };
12077
12077
  const afterMakeParent = () => {
12078
- fs4.lstat(entry.absolute, (lstatEr, st) => {
12078
+ fs5.lstat(entry.absolute, (lstatEr, st) => {
12079
12079
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
12080
12080
  this[SKIP](entry);
12081
12081
  done();
@@ -12091,10 +12091,10 @@ var require_unpack = __commonJS({
12091
12091
  if (!needChmod) {
12092
12092
  return afterChmod();
12093
12093
  }
12094
- return fs4.chmod(entry.absolute, entry.mode, afterChmod);
12094
+ return fs5.chmod(entry.absolute, entry.mode, afterChmod);
12095
12095
  }
12096
12096
  if (entry.absolute !== this.cwd) {
12097
- return fs4.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
12097
+ return fs5.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
12098
12098
  }
12099
12099
  }
12100
12100
  if (entry.absolute === this.cwd) {
@@ -12130,7 +12130,7 @@ var require_unpack = __commonJS({
12130
12130
  }
12131
12131
  }
12132
12132
  [LINK](entry, linkpath, link, done) {
12133
- fs4[link](linkpath, entry.absolute, (er) => {
12133
+ fs5[link](linkpath, entry.absolute, (er) => {
12134
12134
  if (er) {
12135
12135
  this[ONERROR](er, entry);
12136
12136
  } else {
@@ -12163,7 +12163,7 @@ var require_unpack = __commonJS({
12163
12163
  this[CHECKED_CWD] = true;
12164
12164
  }
12165
12165
  if (entry.absolute !== this.cwd) {
12166
- const parent = normPath(path7.dirname(entry.absolute));
12166
+ const parent = normPath(path8.dirname(entry.absolute));
12167
12167
  if (parent !== this.cwd) {
12168
12168
  const mkParent = this[MKDIR](parent, this.dmode);
12169
12169
  if (mkParent) {
@@ -12171,7 +12171,7 @@ var require_unpack = __commonJS({
12171
12171
  }
12172
12172
  }
12173
12173
  }
12174
- const [lstatEr, st] = callSync(() => fs4.lstatSync(entry.absolute));
12174
+ const [lstatEr, st] = callSync(() => fs5.lstatSync(entry.absolute));
12175
12175
  if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
12176
12176
  return this[SKIP](entry);
12177
12177
  }
@@ -12182,11 +12182,11 @@ var require_unpack = __commonJS({
12182
12182
  if (entry.type === "Directory") {
12183
12183
  const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
12184
12184
  const [er3] = needChmod ? callSync(() => {
12185
- fs4.chmodSync(entry.absolute, entry.mode);
12185
+ fs5.chmodSync(entry.absolute, entry.mode);
12186
12186
  }) : [];
12187
12187
  return this[MAKEFS](er3, entry);
12188
12188
  }
12189
- const [er2] = callSync(() => fs4.rmdirSync(entry.absolute));
12189
+ const [er2] = callSync(() => fs5.rmdirSync(entry.absolute));
12190
12190
  this[MAKEFS](er2, entry);
12191
12191
  }
12192
12192
  const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
@@ -12197,7 +12197,7 @@ var require_unpack = __commonJS({
12197
12197
  const oner = (er) => {
12198
12198
  let closeError;
12199
12199
  try {
12200
- fs4.closeSync(fd);
12200
+ fs5.closeSync(fd);
12201
12201
  } catch (e) {
12202
12202
  closeError = e;
12203
12203
  }
@@ -12208,7 +12208,7 @@ var require_unpack = __commonJS({
12208
12208
  };
12209
12209
  let fd;
12210
12210
  try {
12211
- fd = fs4.openSync(entry.absolute, getFlag(entry.size), mode);
12211
+ fd = fs5.openSync(entry.absolute, getFlag(entry.size), mode);
12212
12212
  } catch (er) {
12213
12213
  return oner(er);
12214
12214
  }
@@ -12219,7 +12219,7 @@ var require_unpack = __commonJS({
12219
12219
  }
12220
12220
  tx.on("data", (chunk) => {
12221
12221
  try {
12222
- fs4.writeSync(fd, chunk, 0, chunk.length);
12222
+ fs5.writeSync(fd, chunk, 0, chunk.length);
12223
12223
  } catch (er) {
12224
12224
  oner(er);
12225
12225
  }
@@ -12230,10 +12230,10 @@ var require_unpack = __commonJS({
12230
12230
  const atime = entry.atime || /* @__PURE__ */ new Date();
12231
12231
  const mtime = entry.mtime;
12232
12232
  try {
12233
- fs4.futimesSync(fd, atime, mtime);
12233
+ fs5.futimesSync(fd, atime, mtime);
12234
12234
  } catch (futimeser) {
12235
12235
  try {
12236
- fs4.utimesSync(entry.absolute, atime, mtime);
12236
+ fs5.utimesSync(entry.absolute, atime, mtime);
12237
12237
  } catch (utimeser) {
12238
12238
  er = futimeser;
12239
12239
  }
@@ -12243,10 +12243,10 @@ var require_unpack = __commonJS({
12243
12243
  const uid = this[UID](entry);
12244
12244
  const gid = this[GID](entry);
12245
12245
  try {
12246
- fs4.fchownSync(fd, uid, gid);
12246
+ fs5.fchownSync(fd, uid, gid);
12247
12247
  } catch (fchowner) {
12248
12248
  try {
12249
- fs4.chownSync(entry.absolute, uid, gid);
12249
+ fs5.chownSync(entry.absolute, uid, gid);
12250
12250
  } catch (chowner) {
12251
12251
  er = er || fchowner;
12252
12252
  }
@@ -12265,13 +12265,13 @@ var require_unpack = __commonJS({
12265
12265
  }
12266
12266
  if (entry.mtime && !this.noMtime) {
12267
12267
  try {
12268
- fs4.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
12268
+ fs5.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
12269
12269
  } catch (er2) {
12270
12270
  }
12271
12271
  }
12272
12272
  if (this[DOCHOWN](entry)) {
12273
12273
  try {
12274
- fs4.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
12274
+ fs5.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
12275
12275
  } catch (er2) {
12276
12276
  }
12277
12277
  }
@@ -12298,7 +12298,7 @@ var require_unpack = __commonJS({
12298
12298
  }
12299
12299
  [LINK](entry, linkpath, link, done) {
12300
12300
  try {
12301
- fs4[link + "Sync"](linkpath, entry.absolute);
12301
+ fs5[link + "Sync"](linkpath, entry.absolute);
12302
12302
  done();
12303
12303
  entry.resume();
12304
12304
  } catch (er) {
@@ -12317,9 +12317,9 @@ var require_extract = __commonJS({
12317
12317
  "use strict";
12318
12318
  var hlo = require_high_level_opt();
12319
12319
  var Unpack = require_unpack();
12320
- var fs4 = __require("fs");
12320
+ var fs5 = __require("fs");
12321
12321
  var fsm = require_fs_minipass();
12322
- var path7 = __require("path");
12322
+ var path8 = __require("path");
12323
12323
  var stripSlash = require_strip_trailing_slashes();
12324
12324
  module.exports = (opt_, files, cb) => {
12325
12325
  if (typeof opt_ === "function") {
@@ -12351,8 +12351,8 @@ var require_extract = __commonJS({
12351
12351
  const map = new Map(files.map((f) => [stripSlash(f), true]));
12352
12352
  const filter = opt.filter;
12353
12353
  const mapHas = (file, r) => {
12354
- const root = r || path7.parse(file).root || ".";
12355
- const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path7.dirname(file), root);
12354
+ const root = r || path8.parse(file).root || ".";
12355
+ const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path8.dirname(file), root);
12356
12356
  map.set(file, ret);
12357
12357
  return ret;
12358
12358
  };
@@ -12361,7 +12361,7 @@ var require_extract = __commonJS({
12361
12361
  var extractFileSync = (opt) => {
12362
12362
  const u = new Unpack.Sync(opt);
12363
12363
  const file = opt.file;
12364
- const stat = fs4.statSync(file);
12364
+ const stat = fs5.statSync(file);
12365
12365
  const readSize = opt.maxReadSize || 16 * 1024 * 1024;
12366
12366
  const stream = new fsm.ReadStreamSync(file, {
12367
12367
  readSize,
@@ -12376,7 +12376,7 @@ var require_extract = __commonJS({
12376
12376
  const p = new Promise((resolve, reject) => {
12377
12377
  u.on("error", reject);
12378
12378
  u.on("close", resolve);
12379
- fs4.stat(file, (er, stat) => {
12379
+ fs5.stat(file, (er, stat) => {
12380
12380
  if (er) {
12381
12381
  reject(er);
12382
12382
  } else {
@@ -14470,8 +14470,8 @@ var require_windows = __commonJS({
14470
14470
  "node_modules/isexe/windows.js"(exports, module) {
14471
14471
  module.exports = isexe;
14472
14472
  isexe.sync = sync;
14473
- var fs4 = __require("fs");
14474
- function checkPathExt(path7, options) {
14473
+ var fs5 = __require("fs");
14474
+ function checkPathExt(path8, options) {
14475
14475
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
14476
14476
  if (!pathext) {
14477
14477
  return true;
@@ -14482,25 +14482,25 @@ var require_windows = __commonJS({
14482
14482
  }
14483
14483
  for (var i = 0; i < pathext.length; i++) {
14484
14484
  var p = pathext[i].toLowerCase();
14485
- if (p && path7.substr(-p.length).toLowerCase() === p) {
14485
+ if (p && path8.substr(-p.length).toLowerCase() === p) {
14486
14486
  return true;
14487
14487
  }
14488
14488
  }
14489
14489
  return false;
14490
14490
  }
14491
- function checkStat(stat, path7, options) {
14491
+ function checkStat(stat, path8, options) {
14492
14492
  if (!stat.isSymbolicLink() && !stat.isFile()) {
14493
14493
  return false;
14494
14494
  }
14495
- return checkPathExt(path7, options);
14495
+ return checkPathExt(path8, options);
14496
14496
  }
14497
- function isexe(path7, options, cb) {
14498
- fs4.stat(path7, function(er, stat) {
14499
- cb(er, er ? false : checkStat(stat, path7, options));
14497
+ function isexe(path8, options, cb) {
14498
+ fs5.stat(path8, function(er, stat) {
14499
+ cb(er, er ? false : checkStat(stat, path8, options));
14500
14500
  });
14501
14501
  }
14502
- function sync(path7, options) {
14503
- return checkStat(fs4.statSync(path7), path7, options);
14502
+ function sync(path8, options) {
14503
+ return checkStat(fs5.statSync(path8), path8, options);
14504
14504
  }
14505
14505
  }
14506
14506
  });
@@ -14510,14 +14510,14 @@ var require_mode = __commonJS({
14510
14510
  "node_modules/isexe/mode.js"(exports, module) {
14511
14511
  module.exports = isexe;
14512
14512
  isexe.sync = sync;
14513
- var fs4 = __require("fs");
14514
- function isexe(path7, options, cb) {
14515
- fs4.stat(path7, function(er, stat) {
14513
+ var fs5 = __require("fs");
14514
+ function isexe(path8, options, cb) {
14515
+ fs5.stat(path8, function(er, stat) {
14516
14516
  cb(er, er ? false : checkStat(stat, options));
14517
14517
  });
14518
14518
  }
14519
- function sync(path7, options) {
14520
- return checkStat(fs4.statSync(path7), options);
14519
+ function sync(path8, options) {
14520
+ return checkStat(fs5.statSync(path8), options);
14521
14521
  }
14522
14522
  function checkStat(stat, options) {
14523
14523
  return stat.isFile() && checkMode(stat, options);
@@ -14541,7 +14541,7 @@ var require_mode = __commonJS({
14541
14541
  // node_modules/isexe/index.js
14542
14542
  var require_isexe = __commonJS({
14543
14543
  "node_modules/isexe/index.js"(exports, module) {
14544
- var fs4 = __require("fs");
14544
+ var fs5 = __require("fs");
14545
14545
  var core;
14546
14546
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
14547
14547
  core = require_windows();
@@ -14550,7 +14550,7 @@ var require_isexe = __commonJS({
14550
14550
  }
14551
14551
  module.exports = isexe;
14552
14552
  isexe.sync = sync;
14553
- function isexe(path7, options, cb) {
14553
+ function isexe(path8, options, cb) {
14554
14554
  if (typeof options === "function") {
14555
14555
  cb = options;
14556
14556
  options = {};
@@ -14560,7 +14560,7 @@ var require_isexe = __commonJS({
14560
14560
  throw new TypeError("callback not provided");
14561
14561
  }
14562
14562
  return new Promise(function(resolve, reject) {
14563
- isexe(path7, options || {}, function(er, is) {
14563
+ isexe(path8, options || {}, function(er, is) {
14564
14564
  if (er) {
14565
14565
  reject(er);
14566
14566
  } else {
@@ -14569,7 +14569,7 @@ var require_isexe = __commonJS({
14569
14569
  });
14570
14570
  });
14571
14571
  }
14572
- core(path7, options || {}, function(er, is) {
14572
+ core(path8, options || {}, function(er, is) {
14573
14573
  if (er) {
14574
14574
  if (er.code === "EACCES" || options && options.ignoreErrors) {
14575
14575
  er = null;
@@ -14579,9 +14579,9 @@ var require_isexe = __commonJS({
14579
14579
  cb(er, is);
14580
14580
  });
14581
14581
  }
14582
- function sync(path7, options) {
14582
+ function sync(path8, options) {
14583
14583
  try {
14584
- return core.sync(path7, options || {});
14584
+ return core.sync(path8, options || {});
14585
14585
  } catch (er) {
14586
14586
  if (options && options.ignoreErrors || er.code === "EACCES") {
14587
14587
  return false;
@@ -14597,7 +14597,7 @@ var require_isexe = __commonJS({
14597
14597
  var require_which = __commonJS({
14598
14598
  "node_modules/which/which.js"(exports, module) {
14599
14599
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
14600
- var path7 = __require("path");
14600
+ var path8 = __require("path");
14601
14601
  var COLON = isWindows ? ";" : ":";
14602
14602
  var isexe = require_isexe();
14603
14603
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -14635,7 +14635,7 @@ var require_which = __commonJS({
14635
14635
  return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
14636
14636
  const ppRaw = pathEnv[i];
14637
14637
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
14638
- const pCmd = path7.join(pathPart, cmd);
14638
+ const pCmd = path8.join(pathPart, cmd);
14639
14639
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
14640
14640
  resolve(subStep(p, i, 0));
14641
14641
  });
@@ -14662,7 +14662,7 @@ var require_which = __commonJS({
14662
14662
  for (let i = 0; i < pathEnv.length; i++) {
14663
14663
  const ppRaw = pathEnv[i];
14664
14664
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
14665
- const pCmd = path7.join(pathPart, cmd);
14665
+ const pCmd = path8.join(pathPart, cmd);
14666
14666
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
14667
14667
  for (let j = 0; j < pathExt.length; j++) {
14668
14668
  const cur = p + pathExt[j];
@@ -14710,7 +14710,7 @@ var require_path_key = __commonJS({
14710
14710
  var require_resolveCommand = __commonJS({
14711
14711
  "node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
14712
14712
  "use strict";
14713
- var path7 = __require("path");
14713
+ var path8 = __require("path");
14714
14714
  var which = require_which();
14715
14715
  var getPathKey = require_path_key();
14716
14716
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -14728,7 +14728,7 @@ var require_resolveCommand = __commonJS({
14728
14728
  try {
14729
14729
  resolved = which.sync(parsed.command, {
14730
14730
  path: env[getPathKey({ env })],
14731
- pathExt: withoutPathExt ? path7.delimiter : void 0
14731
+ pathExt: withoutPathExt ? path8.delimiter : void 0
14732
14732
  });
14733
14733
  } catch (e) {
14734
14734
  } finally {
@@ -14737,7 +14737,7 @@ var require_resolveCommand = __commonJS({
14737
14737
  }
14738
14738
  }
14739
14739
  if (resolved) {
14740
- resolved = path7.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
14740
+ resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
14741
14741
  }
14742
14742
  return resolved;
14743
14743
  }
@@ -14791,8 +14791,8 @@ var require_shebang_command = __commonJS({
14791
14791
  if (!match2) {
14792
14792
  return null;
14793
14793
  }
14794
- const [path7, argument] = match2[0].replace(/#! ?/, "").split(" ");
14795
- const binary = path7.split("/").pop();
14794
+ const [path8, argument] = match2[0].replace(/#! ?/, "").split(" ");
14795
+ const binary = path8.split("/").pop();
14796
14796
  if (binary === "env") {
14797
14797
  return argument;
14798
14798
  }
@@ -14805,16 +14805,16 @@ var require_shebang_command = __commonJS({
14805
14805
  var require_readShebang = __commonJS({
14806
14806
  "node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
14807
14807
  "use strict";
14808
- var fs4 = __require("fs");
14808
+ var fs5 = __require("fs");
14809
14809
  var shebangCommand = require_shebang_command();
14810
14810
  function readShebang(command) {
14811
14811
  const size = 150;
14812
14812
  const buffer = Buffer.alloc(size);
14813
14813
  let fd;
14814
14814
  try {
14815
- fd = fs4.openSync(command, "r");
14816
- fs4.readSync(fd, buffer, 0, size, 0);
14817
- fs4.closeSync(fd);
14815
+ fd = fs5.openSync(command, "r");
14816
+ fs5.readSync(fd, buffer, 0, size, 0);
14817
+ fs5.closeSync(fd);
14818
14818
  } catch (e) {
14819
14819
  }
14820
14820
  return shebangCommand(buffer.toString());
@@ -14827,7 +14827,7 @@ var require_readShebang = __commonJS({
14827
14827
  var require_parse3 = __commonJS({
14828
14828
  "node_modules/cross-spawn/lib/parse.js"(exports, module) {
14829
14829
  "use strict";
14830
- var path7 = __require("path");
14830
+ var path8 = __require("path");
14831
14831
  var resolveCommand = require_resolveCommand();
14832
14832
  var escape2 = require_escape();
14833
14833
  var readShebang = require_readShebang();
@@ -14852,7 +14852,7 @@ var require_parse3 = __commonJS({
14852
14852
  const needsShell = !isExecutableRegExp.test(commandFile);
14853
14853
  if (parsed.options.forceShell || needsShell) {
14854
14854
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
14855
- parsed.command = path7.normalize(parsed.command);
14855
+ parsed.command = path8.normalize(parsed.command);
14856
14856
  parsed.command = escape2.command(parsed.command);
14857
14857
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
14858
14858
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -15004,8 +15004,8 @@ var require_merge_stream = __commonJS({
15004
15004
 
15005
15005
  // src/index.ts
15006
15006
  var import_argparse = __toESM(require_argparse(), 1);
15007
- import { existsSync, createWriteStream as createWriteStream2, readFileSync as readFileSync2, promises as fs3 } from "fs";
15008
- import path6 from "path";
15007
+ import { existsSync, createWriteStream as createWriteStream2, readFileSync as readFileSync2, promises as fs4 } from "fs";
15008
+ import path7 from "path";
15009
15009
  import { fileURLToPath as fileURLToPath3 } from "url";
15010
15010
 
15011
15011
  // node_modules/find-up/index.js
@@ -15500,14 +15500,14 @@ function stylish(results) {
15500
15500
  function escape(text) {
15501
15501
  return text.replace(/\./, "\\.");
15502
15502
  }
15503
- function directory(path7) {
15504
- return new RegExp(`(^|/)${path7}/`);
15503
+ function directory(path8) {
15504
+ return new RegExp(`(^|/)${path8}/`);
15505
15505
  }
15506
15506
  function extension(ext) {
15507
15507
  return new RegExp(`${escape(ext)}$`);
15508
15508
  }
15509
- function filename(path7) {
15510
- return new RegExp(`(^|/)${escape(path7)}$`);
15509
+ function filename(path8) {
15510
+ return new RegExp(`(^|/)${escape(path8)}$`);
15511
15511
  }
15512
15512
  function rcfile(base) {
15513
15513
  return new RegExp(`${escape(base)}(\\.(js|cjs|yaml|yml|json))?$`);
@@ -15851,8 +15851,8 @@ async function verifyTarball(pkg, tarball) {
15851
15851
  {
15852
15852
  messages,
15853
15853
  filePath: tarball.reportPath ?? tarball.filePath,
15854
- errorCount: messages.length,
15855
- warningCount: 0,
15854
+ errorCount: messages.filter((it) => it.severity === 2).length,
15855
+ warningCount: messages.filter((it) => it.severity === 1).length,
15856
15856
  fixableErrorCount: 0,
15857
15857
  fixableWarningCount: 0
15858
15858
  }
@@ -16005,7 +16005,7 @@ function isDisallowedDependency(pkg, dependency) {
16005
16005
  // src/rules/exports-types-order.ts
16006
16006
  var ruleId2 = "exports-types-order";
16007
16007
  var severity = Severity.ERROR;
16008
- function* validateOrder(value, path7) {
16008
+ function* validateOrder(value, path8) {
16009
16009
  if (!value || typeof value === "string") {
16010
16010
  return;
16011
16011
  }
@@ -16014,7 +16014,7 @@ function* validateOrder(value, path7) {
16014
16014
  return;
16015
16015
  }
16016
16016
  if (keys.includes("types") && keys[0] !== "types") {
16017
- const property = path7.map((it) => `["${it}"]`).join("");
16017
+ const property = path8.map((it) => `["${it}"]`).join("");
16018
16018
  yield {
16019
16019
  ruleId: ruleId2,
16020
16020
  severity,
@@ -16024,7 +16024,7 @@ function* validateOrder(value, path7) {
16024
16024
  };
16025
16025
  }
16026
16026
  for (const key of keys) {
16027
- yield* validateOrder(value[key], [...path7, key]);
16027
+ yield* validateOrder(value[key], [...path8, key]);
16028
16028
  }
16029
16029
  }
16030
16030
  function* exportsTypesOrder(pkg) {
@@ -16163,9 +16163,9 @@ function npmRunPath(options = {}) {
16163
16163
  }
16164
16164
  function npmRunPathEnv({ env = process3.env, ...options } = {}) {
16165
16165
  env = { ...env };
16166
- const path7 = pathKey({ env });
16167
- options.path = env[path7];
16168
- env[path7] = npmRunPath(options);
16166
+ const path8 = pathKey({ env });
16167
+ options.path = env[path8];
16168
+ env[path8] = npmRunPath(options);
16169
16169
  return env;
16170
16170
  }
16171
16171
 
@@ -17376,8 +17376,8 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
17376
17376
  };
17377
17377
 
17378
17378
  // node_modules/execa/lib/promise.js
17379
- var nativePromisePrototype = (/* @__PURE__ */ (async () => {
17380
- })()).constructor.prototype;
17379
+ var nativePromisePrototype = (async () => {
17380
+ })().constructor.prototype;
17381
17381
  var descriptors = ["then", "catch", "finally"].map((property) => [
17382
17382
  property,
17383
17383
  Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
@@ -17694,23 +17694,107 @@ function create$(options) {
17694
17694
  }
17695
17695
  var $2 = create$();
17696
17696
 
17697
+ // src/utils/persistent-cache.ts
17698
+ import fs3 from "fs/promises";
17699
+ import path5 from "path";
17700
+ import crypto from "crypto";
17701
+ import os2 from "os";
17702
+ var enabled = os2.platform() === "linux";
17703
+ var cacheRoot = process.env.XDG_CACHE_HOME ?? path5.join(os2.homedir(), ".cache");
17704
+ var cacheDir = path5.join(cacheRoot, "npm-pkg-lint");
17705
+ function getFilePath(key) {
17706
+ const hash = crypto.createHash("md5").update(key).digest("hex");
17707
+ const filename2 = `${hash.slice(0, 2)}/${hash.slice(2)}.json`;
17708
+ return path5.join(cacheDir, filename2);
17709
+ }
17710
+ async function persistentCacheGet(key) {
17711
+ if (!enabled) {
17712
+ return null;
17713
+ }
17714
+ const filePath = getFilePath(key);
17715
+ try {
17716
+ const content = await fs3.readFile(filePath, "utf-8");
17717
+ return JSON.parse(content);
17718
+ } catch (err) {
17719
+ if (err instanceof Error && "code" in err && err.code === "ENOENT") {
17720
+ return null;
17721
+ }
17722
+ throw err;
17723
+ }
17724
+ }
17725
+ async function persistentCacheSet(key, data) {
17726
+ if (!enabled) {
17727
+ return;
17728
+ }
17729
+ const filePath = getFilePath(key);
17730
+ const content = JSON.stringify(data, null, 2);
17731
+ await fs3.mkdir(path5.dirname(filePath), { recursive: true });
17732
+ await fs3.writeFile(filePath, content, "utf-8");
17733
+ }
17734
+
17697
17735
  // src/utils/npm-info.ts
17698
17736
  var cache = /* @__PURE__ */ new Map();
17699
- async function npmInfo(pkg) {
17737
+ function isExecaError(error) {
17738
+ return Boolean(error && error instanceof Error && "stdout" in error);
17739
+ }
17740
+ function isNpmInfoError(error) {
17741
+ return Boolean(error && error instanceof Error && "summary" in error);
17742
+ }
17743
+ function tryParse(maybeJson) {
17744
+ try {
17745
+ return JSON.parse(maybeJson);
17746
+ } catch {
17747
+ return null;
17748
+ }
17749
+ }
17750
+ async function npmInfo(pkg, options = { ignoreUnpublished: false }) {
17751
+ const { ignoreUnpublished } = options;
17700
17752
  const cached = cache.get(pkg);
17701
- if (cached) {
17753
+ if (cached === null) {
17754
+ if (ignoreUnpublished) {
17755
+ return null;
17756
+ }
17757
+ } else if (cached) {
17702
17758
  return cached;
17703
17759
  }
17704
- const result = await execa("npm", ["info", "--json", pkg]);
17705
- const pkgData = JSON.parse(result.stdout);
17706
- cache.set(pkg, pkgData);
17707
- return pkgData;
17760
+ const persistent = await persistentCacheGet(pkg);
17761
+ if (persistent) {
17762
+ return persistent;
17763
+ }
17764
+ try {
17765
+ const result = await execa("npm", ["info", "--json", pkg]);
17766
+ const pkgData = JSON.parse(result.stdout);
17767
+ cache.set(pkg, pkgData);
17768
+ await persistentCacheSet(pkg, pkgData);
17769
+ return pkgData;
17770
+ } catch (err) {
17771
+ if (!isExecaError(err)) {
17772
+ throw err;
17773
+ }
17774
+ const parsed = tryParse(err.stdout);
17775
+ if (!parsed) {
17776
+ throw err;
17777
+ }
17778
+ const { code, summary, detail } = parsed.error;
17779
+ cache.set(pkg, null);
17780
+ if (ignoreUnpublished && code === "E404") {
17781
+ return null;
17782
+ }
17783
+ const wrappedError = new Error(summary);
17784
+ wrappedError.code = code;
17785
+ wrappedError.summary = summary;
17786
+ wrappedError.detail = detail;
17787
+ throw wrappedError;
17788
+ }
17708
17789
  }
17709
17790
 
17710
17791
  // src/rules/verify-engine-constraint.ts
17711
17792
  var ruleId4 = "invalid-engine-constraint";
17712
17793
  async function* getDeepDependencies(pkg, dependency) {
17713
- const pkgData = dependency ? await npmInfo(dependency) : pkg;
17794
+ const pkgData = dependency ? await npmInfo(dependency, { ignoreUnpublished: true }) : pkg;
17795
+ if (!pkgData) {
17796
+ return;
17797
+ }
17714
17798
  for (const [key, value] of Object.entries(pkgData.dependencies ?? {})) {
17715
17799
  if (key === "@types/node") {
17716
17800
  continue;
@@ -17720,8 +17804,26 @@ async function* getDeepDependencies(pkg, dependency) {
17720
17804
  yield* getDeepDependencies(pkg, deep);
17721
17805
  }
17722
17806
  }
17807
+ async function verifyDependency(dependency, minDeclared, declaredConstraint) {
17808
+ var _a;
17809
+ const pkgData = await npmInfo(dependency);
17810
+ const constraint = (_a = pkgData.engines) == null ? void 0 : _a.node;
17811
+ if (!constraint) {
17812
+ return null;
17813
+ }
17814
+ if (!import_semver2.default.satisfies(minDeclared, constraint)) {
17815
+ return {
17816
+ ruleId: ruleId4,
17817
+ severity: 2,
17818
+ message: `the transitive dependency "${dependency}" (node ${constraint}) does not satisfy the declared node engine "${declaredConstraint}"`,
17819
+ line: 1,
17820
+ column: 1
17821
+ };
17822
+ }
17823
+ return null;
17824
+ }
17723
17825
  async function verifyEngineConstraint(pkg) {
17724
- var _a, _b;
17826
+ var _a;
17725
17827
  const declaredConstraint = (_a = pkg.engines) == null ? void 0 : _a.node;
17726
17828
  if (!declaredConstraint) {
17727
17829
  return [];
@@ -17731,20 +17833,29 @@ async function verifyEngineConstraint(pkg) {
17731
17833
  throw new Error(`Failed to parse engine constraint "${declaredConstraint}"`);
17732
17834
  }
17733
17835
  const messages = [];
17836
+ const visited = /* @__PURE__ */ new Set();
17734
17837
  for await (const dependency of getDeepDependencies(pkg)) {
17735
- const pkgData = await npmInfo(dependency);
17736
- const constraint = (_b = pkgData.engines) == null ? void 0 : _b.node;
17737
- if (!constraint) {
17838
+ if (visited.has(dependency)) {
17738
17839
  continue;
17739
17840
  }
17740
- if (!import_semver2.default.satisfies(minDeclared, constraint)) {
17741
- messages.push({
17742
- ruleId: ruleId4,
17743
- severity: 2,
17744
- message: `the transitive dependency "${dependency}" (node ${constraint}) does not satisfy the declared node engine "${declaredConstraint}"`,
17745
- line: 1,
17746
- column: 1
17747
- });
17841
+ visited.add(dependency);
17842
+ try {
17843
+ const message = await verifyDependency(dependency, minDeclared, declaredConstraint);
17844
+ if (message) {
17845
+ messages.push(message);
17846
+ }
17847
+ } catch (err) {
17848
+ if (isNpmInfoError(err) && err.code === "E404") {
17849
+ messages.push({
17850
+ ruleId: ruleId4,
17851
+ severity: 1,
17852
+ message: `the transitive dependency "${dependency}" is not published to the NPM registry`,
17853
+ line: 1,
17854
+ column: 1
17855
+ });
17856
+ continue;
17857
+ }
17858
+ throw err;
17748
17859
  }
17749
17860
  }
17750
17861
  return messages;
@@ -17853,8 +17964,8 @@ async function verifyPackageJson(pkg, filePath, options = {}) {
17853
17964
  {
17854
17965
  messages,
17855
17966
  filePath,
17856
- errorCount: messages.length,
17857
- warningCount: 0,
17967
+ errorCount: messages.filter((it) => it.severity === 2).length,
17968
+ warningCount: messages.filter((it) => it.severity === 1).length,
17858
17969
  fixableErrorCount: 0,
17859
17970
  fixableWarningCount: 0
17860
17971
  }
@@ -17907,13 +18018,13 @@ async function verify(pkg, pkgPath, tarball, options = {}) {
17907
18018
  }
17908
18019
 
17909
18020
  // src/tarball-location.ts
17910
- import path5 from "path";
18021
+ import path6 from "path";
17911
18022
  function normalize2(name) {
17912
18023
  return name.replace("/", "-").replace(/^@/, "");
17913
18024
  }
17914
18025
  function tarballLocation(pkg, pkgPath) {
17915
18026
  const name = normalize2(pkg.name);
17916
- return path5.join(path5.dirname(pkgPath), `${name}-${pkg.version}.tgz`);
18027
+ return path6.join(path6.dirname(pkgPath), `${name}-${pkg.version}.tgz`);
17917
18028
  }
17918
18029
 
17919
18030
  // src/index.ts
@@ -17922,7 +18033,7 @@ var { version } = JSON.parse(readFileSync2(pkgFilepath, "utf-8"));
17922
18033
  var PACKAGE_JSON = "package.json";
17923
18034
  async function preloadStdin() {
17924
18035
  return new Promise((resolve, reject) => {
17925
- import_tmp.default.file((err, path7, fd) => {
18036
+ import_tmp.default.file((err, path8, fd) => {
17926
18037
  if (err) {
17927
18038
  reject(err);
17928
18039
  return;
@@ -17930,7 +18041,7 @@ async function preloadStdin() {
17930
18041
  const st = createWriteStream2("", { fd, autoClose: true });
17931
18042
  process.stdin.pipe(st);
17932
18043
  st.on("finish", () => {
17933
- resolve(path7);
18044
+ resolve(path8);
17934
18045
  });
17935
18046
  st.on("error", (err2) => {
17936
18047
  reject(err2);
@@ -17941,7 +18052,7 @@ async function preloadStdin() {
17941
18052
  async function getPackageJson(args, regenerateReportName) {
17942
18053
  if (args.pkgfile) {
17943
18054
  return {
17944
- pkg: JSON.parse(await fs3.readFile(args.pkgfile, "utf-8")),
18055
+ pkg: JSON.parse(await fs4.readFile(args.pkgfile, "utf-8")),
17945
18056
  pkgPath: args.pkgfile
17946
18057
  };
17947
18058
  }
@@ -17950,7 +18061,7 @@ async function getPackageJson(args, regenerateReportName) {
17950
18061
  const pkg = JSON.parse(contents[PACKAGE_JSON].toString("utf-8"));
17951
18062
  return {
17952
18063
  pkg,
17953
- pkgPath: path6.join(
18064
+ pkgPath: path7.join(
17954
18065
  regenerateReportName ? `${pkg.name}-${pkg.version}.tgz` : args.tarball,
17955
18066
  PACKAGE_JSON
17956
18067
  )
@@ -17958,9 +18069,9 @@ async function getPackageJson(args, regenerateReportName) {
17958
18069
  }
17959
18070
  const pkgPath = await findUp(PACKAGE_JSON);
17960
18071
  if (pkgPath) {
17961
- const relPath = path6.relative(process.cwd(), pkgPath);
18072
+ const relPath = path7.relative(process.cwd(), pkgPath);
17962
18073
  return {
17963
- pkg: JSON.parse(await fs3.readFile(relPath, "utf-8")),
18074
+ pkg: JSON.parse(await fs4.readFile(relPath, "utf-8")),
17964
18075
  pkgPath: relPath
17965
18076
  };
17966
18077
  }