create-cloudflare 2.62.5 → 2.62.6

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/cli.js CHANGED
@@ -28430,10 +28430,10 @@ var require_index_688c5d50 = __commonJS({
28430
28430
  throw new Error("need 512 bytes for header");
28431
28431
  const prefixSize = this.ctime || this.atime ? 130 : 155;
28432
28432
  const split = splitPrefix(this.path || "", prefixSize);
28433
- const path5 = split[0];
28433
+ const path4 = split[0];
28434
28434
  const prefix = split[1];
28435
28435
  this.needPax = split[2];
28436
- this.needPax = encString(buf, off, 100, path5) || this.needPax;
28436
+ this.needPax = encString(buf, off, 100, path4) || this.needPax;
28437
28437
  this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
28438
28438
  this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
28439
28439
  this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
@@ -28649,11 +28649,11 @@ var require_index_688c5d50 = __commonJS({
28649
28649
  encode: (s2) => raw.reduce((s3, c2) => s3.split(c2).join(toWin.get(c2)), s2),
28650
28650
  decode: (s2) => win.reduce((s3, c2) => s3.split(c2).join(toRaw.get(c2)), s2)
28651
28651
  };
28652
- var modeFix = (mode, isDir2, portable) => {
28652
+ var modeFix = (mode, isDir, portable) => {
28653
28653
  mode &= 4095;
28654
28654
  if (portable)
28655
28655
  mode = (mode | 384) & ~18;
28656
- if (isDir2) {
28656
+ if (isDir) {
28657
28657
  if (mode & 256)
28658
28658
  mode |= 64;
28659
28659
  if (mode & 32)
@@ -29025,8 +29025,8 @@ var require_index_688c5d50 = __commonJS({
29025
29025
  var getType = (stat) => stat.isFile() ? "File" : stat.isDirectory() ? "Directory" : stat.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
29026
29026
  var writeEntry = WriteEntry;
29027
29027
  var PackJob = class {
29028
- constructor(path5, absolute) {
29029
- this.path = path5 || "./";
29028
+ constructor(path4, absolute) {
29029
+ this.path = path4 || "./";
29030
29030
  this.absolute = absolute;
29031
29031
  this.entry = null;
29032
29032
  this.stat = null;
@@ -29105,24 +29105,24 @@ var require_index_688c5d50 = __commonJS({
29105
29105
  [WRITE](chunk) {
29106
29106
  return super.write(chunk);
29107
29107
  }
29108
- add(path5) {
29109
- this.write(path5);
29108
+ add(path4) {
29109
+ this.write(path4);
29110
29110
  return this;
29111
29111
  }
29112
- end(path5) {
29113
- if (path5)
29114
- this.write(path5);
29112
+ end(path4) {
29113
+ if (path4)
29114
+ this.write(path4);
29115
29115
  this[ENDED$2] = true;
29116
29116
  this[PROCESS]();
29117
29117
  return this;
29118
29118
  }
29119
- write(path5) {
29119
+ write(path4) {
29120
29120
  if (this[ENDED$2])
29121
29121
  throw new Error("write after end");
29122
- if (path5 instanceof readEntry)
29123
- this[ADDTARENTRY](path5);
29122
+ if (path4 instanceof readEntry)
29123
+ this[ADDTARENTRY](path4);
29124
29124
  else
29125
- this[ADDFSENTRY](path5);
29125
+ this[ADDFSENTRY](path4);
29126
29126
  return this.flowing;
29127
29127
  }
29128
29128
  [ADDTARENTRY](p2) {
@@ -29387,16 +29387,16 @@ var require_index_688c5d50 = __commonJS({
29387
29387
  var _defaultFlag = Symbol("_defaultFlag");
29388
29388
  var _errored = Symbol("_errored");
29389
29389
  var ReadStream = class extends minipass {
29390
- constructor(path5, opt) {
29390
+ constructor(path4, opt) {
29391
29391
  opt = opt || {};
29392
29392
  super(opt);
29393
29393
  this.readable = true;
29394
29394
  this.writable = false;
29395
- if (typeof path5 !== "string")
29395
+ if (typeof path4 !== "string")
29396
29396
  throw new TypeError("path must be a string");
29397
29397
  this[_errored] = false;
29398
29398
  this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
29399
- this[_path] = path5;
29399
+ this[_path] = path4;
29400
29400
  this[_readSize] = opt.readSize || 16 * 1024 * 1024;
29401
29401
  this[_reading] = false;
29402
29402
  this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
@@ -29533,7 +29533,7 @@ var require_index_688c5d50 = __commonJS({
29533
29533
  }
29534
29534
  };
29535
29535
  var WriteStream = class extends EE$1 {
29536
- constructor(path5, opt) {
29536
+ constructor(path4, opt) {
29537
29537
  opt = opt || {};
29538
29538
  super(opt);
29539
29539
  this.readable = false;
@@ -29543,7 +29543,7 @@ var require_index_688c5d50 = __commonJS({
29543
29543
  this[_ended] = false;
29544
29544
  this[_needDrain] = false;
29545
29545
  this[_queue] = [];
29546
- this[_path] = path5;
29546
+ this[_path] = path4;
29547
29547
  this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
29548
29548
  this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
29549
29549
  this[_pos] = typeof opt.start === "number" ? opt.start : null;
@@ -30445,7 +30445,7 @@ var require_index_688c5d50 = __commonJS({
30445
30445
  const filter2 = opt.filter;
30446
30446
  if (!opt.mtimeCache)
30447
30447
  opt.mtimeCache = /* @__PURE__ */ new Map();
30448
- opt.filter = filter2 ? (path5, stat) => filter2(path5, stat) && !(opt.mtimeCache.get(path5) > stat.mtime) : (path5, stat) => !(opt.mtimeCache.get(path5) > stat.mtime);
30448
+ opt.filter = filter2 ? (path4, stat) => filter2(path4, stat) && !(opt.mtimeCache.get(path4) > stat.mtime) : (path4, stat) => !(opt.mtimeCache.get(path4) > stat.mtime);
30449
30449
  };
30450
30450
  var { promisify: promisify$1 } = util__default["default"];
30451
30451
  var optsArg = (opts) => {
@@ -30470,66 +30470,66 @@ var require_index_688c5d50 = __commonJS({
30470
30470
  var optsArg_1 = optsArg;
30471
30471
  var platform$2 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
30472
30472
  var { resolve: resolve12, parse: parse$3 } = path__default["default"];
30473
- var pathArg = (path5) => {
30474
- if (/\0/.test(path5)) {
30473
+ var pathArg = (path4) => {
30474
+ if (/\0/.test(path4)) {
30475
30475
  throw Object.assign(
30476
30476
  new TypeError("path must be a string without null bytes"),
30477
30477
  {
30478
- path: path5,
30478
+ path: path4,
30479
30479
  code: "ERR_INVALID_ARG_VALUE"
30480
30480
  }
30481
30481
  );
30482
30482
  }
30483
- path5 = resolve12(path5);
30483
+ path4 = resolve12(path4);
30484
30484
  if (platform$2 === "win32") {
30485
30485
  const badWinChars = /[*|"<>?:]/;
30486
- const { root } = parse$3(path5);
30487
- if (badWinChars.test(path5.substr(root.length))) {
30486
+ const { root } = parse$3(path4);
30487
+ if (badWinChars.test(path4.substr(root.length))) {
30488
30488
  throw Object.assign(new Error("Illegal characters in path."), {
30489
- path: path5,
30489
+ path: path4,
30490
30490
  code: "EINVAL"
30491
30491
  });
30492
30492
  }
30493
30493
  }
30494
- return path5;
30494
+ return path4;
30495
30495
  };
30496
30496
  var pathArg_1 = pathArg;
30497
30497
  var { dirname: dirname$2 } = path__default["default"];
30498
- var findMade$1 = (opts, parent, path5 = void 0) => {
30499
- if (path5 === parent)
30498
+ var findMade$1 = (opts, parent, path4 = void 0) => {
30499
+ if (path4 === parent)
30500
30500
  return Promise.resolve();
30501
30501
  return opts.statAsync(parent).then(
30502
- (st) => st.isDirectory() ? path5 : void 0,
30502
+ (st) => st.isDirectory() ? path4 : void 0,
30503
30503
  // will fail later
30504
30504
  (er) => er.code === "ENOENT" ? findMade$1(opts, dirname$2(parent), parent) : void 0
30505
30505
  );
30506
30506
  };
30507
- var findMadeSync$1 = (opts, parent, path5 = void 0) => {
30508
- if (path5 === parent)
30507
+ var findMadeSync$1 = (opts, parent, path4 = void 0) => {
30508
+ if (path4 === parent)
30509
30509
  return void 0;
30510
30510
  try {
30511
- return opts.statSync(parent).isDirectory() ? path5 : void 0;
30511
+ return opts.statSync(parent).isDirectory() ? path4 : void 0;
30512
30512
  } catch (er) {
30513
30513
  return er.code === "ENOENT" ? findMadeSync$1(opts, dirname$2(parent), parent) : void 0;
30514
30514
  }
30515
30515
  };
30516
30516
  var findMade_1 = { findMade: findMade$1, findMadeSync: findMadeSync$1 };
30517
30517
  var { dirname: dirname$1 } = path__default["default"];
30518
- var mkdirpManual$2 = (path5, opts, made) => {
30518
+ var mkdirpManual$2 = (path4, opts, made) => {
30519
30519
  opts.recursive = false;
30520
- const parent = dirname$1(path5);
30521
- if (parent === path5) {
30522
- return opts.mkdirAsync(path5, opts).catch((er) => {
30520
+ const parent = dirname$1(path4);
30521
+ if (parent === path4) {
30522
+ return opts.mkdirAsync(path4, opts).catch((er) => {
30523
30523
  if (er.code !== "EISDIR")
30524
30524
  throw er;
30525
30525
  });
30526
30526
  }
30527
- return opts.mkdirAsync(path5, opts).then(() => made || path5, (er) => {
30527
+ return opts.mkdirAsync(path4, opts).then(() => made || path4, (er) => {
30528
30528
  if (er.code === "ENOENT")
30529
- return mkdirpManual$2(parent, opts).then((made2) => mkdirpManual$2(path5, opts, made2));
30529
+ return mkdirpManual$2(parent, opts).then((made2) => mkdirpManual$2(path4, opts, made2));
30530
30530
  if (er.code !== "EEXIST" && er.code !== "EROFS")
30531
30531
  throw er;
30532
- return opts.statAsync(path5).then((st) => {
30532
+ return opts.statAsync(path4).then((st) => {
30533
30533
  if (st.isDirectory())
30534
30534
  return made;
30535
30535
  else
@@ -30539,12 +30539,12 @@ var require_index_688c5d50 = __commonJS({
30539
30539
  });
30540
30540
  });
30541
30541
  };
30542
- var mkdirpManualSync$2 = (path5, opts, made) => {
30543
- const parent = dirname$1(path5);
30542
+ var mkdirpManualSync$2 = (path4, opts, made) => {
30543
+ const parent = dirname$1(path4);
30544
30544
  opts.recursive = false;
30545
- if (parent === path5) {
30545
+ if (parent === path4) {
30546
30546
  try {
30547
- return opts.mkdirSync(path5, opts);
30547
+ return opts.mkdirSync(path4, opts);
30548
30548
  } catch (er) {
30549
30549
  if (er.code !== "EISDIR")
30550
30550
  throw er;
@@ -30553,15 +30553,15 @@ var require_index_688c5d50 = __commonJS({
30553
30553
  }
30554
30554
  }
30555
30555
  try {
30556
- opts.mkdirSync(path5, opts);
30557
- return made || path5;
30556
+ opts.mkdirSync(path4, opts);
30557
+ return made || path4;
30558
30558
  } catch (er) {
30559
30559
  if (er.code === "ENOENT")
30560
- return mkdirpManualSync$2(path5, opts, mkdirpManualSync$2(parent, opts, made));
30560
+ return mkdirpManualSync$2(path4, opts, mkdirpManualSync$2(parent, opts, made));
30561
30561
  if (er.code !== "EEXIST" && er.code !== "EROFS")
30562
30562
  throw er;
30563
30563
  try {
30564
- if (!opts.statSync(path5).isDirectory())
30564
+ if (!opts.statSync(path4).isDirectory())
30565
30565
  throw er;
30566
30566
  } catch (_3) {
30567
30567
  throw er;
@@ -30572,30 +30572,30 @@ var require_index_688c5d50 = __commonJS({
30572
30572
  var { dirname: dirname5 } = path__default["default"];
30573
30573
  var { findMade, findMadeSync } = findMade_1;
30574
30574
  var { mkdirpManual: mkdirpManual$1, mkdirpManualSync: mkdirpManualSync$1 } = mkdirpManual_1;
30575
- var mkdirpNative$1 = (path5, opts) => {
30575
+ var mkdirpNative$1 = (path4, opts) => {
30576
30576
  opts.recursive = true;
30577
- const parent = dirname5(path5);
30578
- if (parent === path5)
30579
- return opts.mkdirAsync(path5, opts);
30580
- return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er) => {
30577
+ const parent = dirname5(path4);
30578
+ if (parent === path4)
30579
+ return opts.mkdirAsync(path4, opts);
30580
+ return findMade(opts, path4).then((made) => opts.mkdirAsync(path4, opts).then(() => made).catch((er) => {
30581
30581
  if (er.code === "ENOENT")
30582
- return mkdirpManual$1(path5, opts);
30582
+ return mkdirpManual$1(path4, opts);
30583
30583
  else
30584
30584
  throw er;
30585
30585
  }));
30586
30586
  };
30587
- var mkdirpNativeSync$1 = (path5, opts) => {
30587
+ var mkdirpNativeSync$1 = (path4, opts) => {
30588
30588
  opts.recursive = true;
30589
- const parent = dirname5(path5);
30590
- if (parent === path5)
30591
- return opts.mkdirSync(path5, opts);
30592
- const made = findMadeSync(opts, path5);
30589
+ const parent = dirname5(path4);
30590
+ if (parent === path4)
30591
+ return opts.mkdirSync(path4, opts);
30592
+ const made = findMadeSync(opts, path4);
30593
30593
  try {
30594
- opts.mkdirSync(path5, opts);
30594
+ opts.mkdirSync(path4, opts);
30595
30595
  return made;
30596
30596
  } catch (er) {
30597
30597
  if (er.code === "ENOENT")
30598
- return mkdirpManualSync$1(path5, opts);
30598
+ return mkdirpManualSync$1(path4, opts);
30599
30599
  else
30600
30600
  throw er;
30601
30601
  }
@@ -30610,61 +30610,61 @@ var require_index_688c5d50 = __commonJS({
30610
30610
  var { mkdirpNative, mkdirpNativeSync } = mkdirpNative_1;
30611
30611
  var { mkdirpManual, mkdirpManualSync } = mkdirpManual_1;
30612
30612
  var { useNative, useNativeSync } = useNative_1;
30613
- var mkdirp$3 = (path5, opts) => {
30614
- path5 = pathArg_1(path5);
30613
+ var mkdirp$3 = (path4, opts) => {
30614
+ path4 = pathArg_1(path4);
30615
30615
  opts = optsArg_1(opts);
30616
- return useNative(opts) ? mkdirpNative(path5, opts) : mkdirpManual(path5, opts);
30616
+ return useNative(opts) ? mkdirpNative(path4, opts) : mkdirpManual(path4, opts);
30617
30617
  };
30618
- var mkdirpSync = (path5, opts) => {
30619
- path5 = pathArg_1(path5);
30618
+ var mkdirpSync = (path4, opts) => {
30619
+ path4 = pathArg_1(path4);
30620
30620
  opts = optsArg_1(opts);
30621
- return useNativeSync(opts) ? mkdirpNativeSync(path5, opts) : mkdirpManualSync(path5, opts);
30621
+ return useNativeSync(opts) ? mkdirpNativeSync(path4, opts) : mkdirpManualSync(path4, opts);
30622
30622
  };
30623
30623
  mkdirp$3.sync = mkdirpSync;
30624
- mkdirp$3.native = (path5, opts) => mkdirpNative(pathArg_1(path5), optsArg_1(opts));
30625
- mkdirp$3.manual = (path5, opts) => mkdirpManual(pathArg_1(path5), optsArg_1(opts));
30626
- mkdirp$3.nativeSync = (path5, opts) => mkdirpNativeSync(pathArg_1(path5), optsArg_1(opts));
30627
- mkdirp$3.manualSync = (path5, opts) => mkdirpManualSync(pathArg_1(path5), optsArg_1(opts));
30624
+ mkdirp$3.native = (path4, opts) => mkdirpNative(pathArg_1(path4), optsArg_1(opts));
30625
+ mkdirp$3.manual = (path4, opts) => mkdirpManual(pathArg_1(path4), optsArg_1(opts));
30626
+ mkdirp$3.nativeSync = (path4, opts) => mkdirpNativeSync(pathArg_1(path4), optsArg_1(opts));
30627
+ mkdirp$3.manualSync = (path4, opts) => mkdirpManualSync(pathArg_1(path4), optsArg_1(opts));
30628
30628
  var mkdirp_1 = mkdirp$3;
30629
30629
  var LCHOWN = fs__default["default"].lchown ? "lchown" : "chown";
30630
30630
  var LCHOWNSYNC = fs__default["default"].lchownSync ? "lchownSync" : "chownSync";
30631
30631
  var needEISDIRHandled = fs__default["default"].lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
30632
- var lchownSync = (path5, uid, gid) => {
30632
+ var lchownSync = (path4, uid, gid) => {
30633
30633
  try {
30634
- return fs__default["default"][LCHOWNSYNC](path5, uid, gid);
30634
+ return fs__default["default"][LCHOWNSYNC](path4, uid, gid);
30635
30635
  } catch (er) {
30636
30636
  if (er.code !== "ENOENT")
30637
30637
  throw er;
30638
30638
  }
30639
30639
  };
30640
- var chownSync = (path5, uid, gid) => {
30640
+ var chownSync = (path4, uid, gid) => {
30641
30641
  try {
30642
- return fs__default["default"].chownSync(path5, uid, gid);
30642
+ return fs__default["default"].chownSync(path4, uid, gid);
30643
30643
  } catch (er) {
30644
30644
  if (er.code !== "ENOENT")
30645
30645
  throw er;
30646
30646
  }
30647
30647
  };
30648
- var handleEISDIR = needEISDIRHandled ? (path5, uid, gid, cb) => (er) => {
30648
+ var handleEISDIR = needEISDIRHandled ? (path4, uid, gid, cb) => (er) => {
30649
30649
  if (!er || er.code !== "EISDIR")
30650
30650
  cb(er);
30651
30651
  else
30652
- fs__default["default"].chown(path5, uid, gid, cb);
30652
+ fs__default["default"].chown(path4, uid, gid, cb);
30653
30653
  } : (_3, __, ___, cb) => cb;
30654
- var handleEISDirSync = needEISDIRHandled ? (path5, uid, gid) => {
30654
+ var handleEISDirSync = needEISDIRHandled ? (path4, uid, gid) => {
30655
30655
  try {
30656
- return lchownSync(path5, uid, gid);
30656
+ return lchownSync(path4, uid, gid);
30657
30657
  } catch (er) {
30658
30658
  if (er.code !== "EISDIR")
30659
30659
  throw er;
30660
- chownSync(path5, uid, gid);
30660
+ chownSync(path4, uid, gid);
30661
30661
  }
30662
- } : (path5, uid, gid) => lchownSync(path5, uid, gid);
30662
+ } : (path4, uid, gid) => lchownSync(path4, uid, gid);
30663
30663
  var nodeVersion2 = process.version;
30664
- var readdir = (path5, options, cb) => fs__default["default"].readdir(path5, options, cb);
30665
- var readdirSync5 = (path5, options) => fs__default["default"].readdirSync(path5, options);
30664
+ var readdir = (path4, options, cb) => fs__default["default"].readdir(path4, options, cb);
30665
+ var readdirSync5 = (path4, options) => fs__default["default"].readdirSync(path4, options);
30666
30666
  if (/^v4\./.test(nodeVersion2))
30667
- readdir = (path5, options, cb) => fs__default["default"].readdir(path5, cb);
30667
+ readdir = (path4, options, cb) => fs__default["default"].readdir(path4, cb);
30668
30668
  var chown = (cpath, uid, gid, cb) => {
30669
30669
  fs__default["default"][LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
30670
30670
  cb(er && er.code !== "ENOENT" ? er : null);
@@ -30749,9 +30749,9 @@ var require_index_688c5d50 = __commonJS({
30749
30749
  var chownr_1 = chownr;
30750
30750
  chownr.sync = chownrSync;
30751
30751
  var SymlinkError = class extends Error {
30752
- constructor(symlink, path5) {
30752
+ constructor(symlink, path4) {
30753
30753
  super("Cannot extract through symbolic link");
30754
- this.path = path5;
30754
+ this.path = path4;
30755
30755
  this.symlink = symlink;
30756
30756
  }
30757
30757
  get name() {
@@ -30759,9 +30759,9 @@ var require_index_688c5d50 = __commonJS({
30759
30759
  }
30760
30760
  };
30761
30761
  var CwdError = class extends Error {
30762
- constructor(path5, code) {
30763
- super(code + ": Cannot cd into '" + path5 + "'");
30764
- this.path = path5;
30762
+ constructor(path4, code) {
30763
+ super(code + ": Cannot cd into '" + path4 + "'");
30764
+ this.path = path4;
30765
30765
  this.code = code;
30766
30766
  }
30767
30767
  get name() {
@@ -30911,15 +30911,15 @@ var require_index_688c5d50 = __commonJS({
30911
30911
  const queues = /* @__PURE__ */ new Map();
30912
30912
  const reservations = /* @__PURE__ */ new Map();
30913
30913
  const { join: join7 } = path__default["default"];
30914
- const getDirs = (path5) => join7(path5).split(/[\\/]/).slice(0, -1).reduce((set, path6) => set.length ? set.concat(join7(set[set.length - 1], path6)) : [path6], []);
30914
+ const getDirs = (path4) => join7(path4).split(/[\\/]/).slice(0, -1).reduce((set, path5) => set.length ? set.concat(join7(set[set.length - 1], path5)) : [path5], []);
30915
30915
  const running = /* @__PURE__ */ new Set();
30916
30916
  const getQueues = (fn) => {
30917
30917
  const res = reservations.get(fn);
30918
30918
  if (!res)
30919
30919
  throw new Error("function does not have any path reservations");
30920
30920
  return {
30921
- paths: res.paths.map((path5) => queues.get(path5)),
30922
- dirs: [...res.dirs].map((path5) => queues.get(path5))
30921
+ paths: res.paths.map((path4) => queues.get(path4)),
30922
+ dirs: [...res.dirs].map((path4) => queues.get(path4))
30923
30923
  };
30924
30924
  };
30925
30925
  const check = (fn) => {
@@ -30938,11 +30938,11 @@ var require_index_688c5d50 = __commonJS({
30938
30938
  return false;
30939
30939
  const { paths, dirs } = reservations.get(fn);
30940
30940
  const next = /* @__PURE__ */ new Set();
30941
- paths.forEach((path5) => {
30942
- const q2 = queues.get(path5);
30941
+ paths.forEach((path4) => {
30942
+ const q2 = queues.get(path4);
30943
30943
  assert__default["default"].equal(q2[0], fn);
30944
30944
  if (q2.length === 1)
30945
- queues.delete(path5);
30945
+ queues.delete(path4);
30946
30946
  else {
30947
30947
  q2.shift();
30948
30948
  if (typeof q2[0] === "function")
@@ -30968,13 +30968,13 @@ var require_index_688c5d50 = __commonJS({
30968
30968
  };
30969
30969
  const reserve = (paths, fn) => {
30970
30970
  const dirs = new Set(
30971
- paths.map((path5) => getDirs(path5)).reduce((a, b3) => a.concat(b3))
30971
+ paths.map((path4) => getDirs(path4)).reduce((a, b3) => a.concat(b3))
30972
30972
  );
30973
30973
  reservations.set(fn, { dirs, paths });
30974
- paths.forEach((path5) => {
30975
- const q2 = queues.get(path5);
30974
+ paths.forEach((path4) => {
30975
+ const q2 = queues.get(path4);
30976
30976
  if (!q2)
30977
- queues.set(path5, [fn]);
30977
+ queues.set(path4, [fn]);
30978
30978
  else
30979
30979
  q2.push(fn);
30980
30980
  });
@@ -31025,21 +31025,21 @@ var require_index_688c5d50 = __commonJS({
31025
31025
  var neverCalled = () => {
31026
31026
  throw new Error("sync function called cb somehow?!?");
31027
31027
  };
31028
- var unlinkFile = (path5, cb) => {
31028
+ var unlinkFile = (path4, cb) => {
31029
31029
  if (process.platform !== "win32")
31030
- return fs__default["default"].unlink(path5, cb);
31031
- const name3 = path5 + ".DELETE." + crypto__default["default"].randomBytes(16).toString("hex");
31032
- fs__default["default"].rename(path5, name3, (er) => {
31030
+ return fs__default["default"].unlink(path4, cb);
31031
+ const name3 = path4 + ".DELETE." + crypto__default["default"].randomBytes(16).toString("hex");
31032
+ fs__default["default"].rename(path4, name3, (er) => {
31033
31033
  if (er)
31034
31034
  return cb(er);
31035
31035
  fs__default["default"].unlink(name3, cb);
31036
31036
  });
31037
31037
  };
31038
- var unlinkFileSync = (path5) => {
31038
+ var unlinkFileSync = (path4) => {
31039
31039
  if (process.platform !== "win32")
31040
- return fs__default["default"].unlinkSync(path5);
31041
- const name3 = path5 + ".DELETE." + crypto__default["default"].randomBytes(16).toString("hex");
31042
- fs__default["default"].renameSync(path5, name3);
31040
+ return fs__default["default"].unlinkSync(path4);
31041
+ const name3 = path4 + ".DELETE." + crypto__default["default"].randomBytes(16).toString("hex");
31042
+ fs__default["default"].renameSync(path4, name3);
31043
31043
  fs__default["default"].unlinkSync(name3);
31044
31044
  };
31045
31045
  var uint32 = (a, b3, c2) => a === a >>> 0 ? a : b3 === b3 >>> 0 ? b3 : c2;
@@ -32446,15 +32446,15 @@ var require_index_688c5d50 = __commonJS({
32446
32446
  };
32447
32447
  }
32448
32448
  function wrapConversion(toModel, graph) {
32449
- const path5 = [graph[toModel].parent, toModel];
32449
+ const path4 = [graph[toModel].parent, toModel];
32450
32450
  let fn = conversions[graph[toModel].parent][toModel];
32451
32451
  let cur = graph[toModel].parent;
32452
32452
  while (graph[cur].parent) {
32453
- path5.unshift(graph[cur].parent);
32453
+ path4.unshift(graph[cur].parent);
32454
32454
  fn = link(conversions[graph[cur].parent][cur], fn);
32455
32455
  cur = graph[cur].parent;
32456
32456
  }
32457
- fn.conversion = path5;
32457
+ fn.conversion = path4;
32458
32458
  return fn;
32459
32459
  }
32460
32460
  var route = function(fromModel) {
@@ -33125,14 +33125,14 @@ var require_index_688c5d50 = __commonJS({
33125
33125
  fs6.fstatSync = statFixSync(fs6.fstatSync);
33126
33126
  fs6.lstatSync = statFixSync(fs6.lstatSync);
33127
33127
  if (!fs6.lchmod) {
33128
- fs6.lchmod = function(path5, mode, cb) {
33128
+ fs6.lchmod = function(path4, mode, cb) {
33129
33129
  if (cb) process.nextTick(cb);
33130
33130
  };
33131
33131
  fs6.lchmodSync = function() {
33132
33132
  };
33133
33133
  }
33134
33134
  if (!fs6.lchown) {
33135
- fs6.lchown = function(path5, uid, gid, cb) {
33135
+ fs6.lchown = function(path4, uid, gid, cb) {
33136
33136
  if (cb) process.nextTick(cb);
33137
33137
  };
33138
33138
  fs6.lchownSync = function() {
@@ -33196,9 +33196,9 @@ var require_index_688c5d50 = __commonJS({
33196
33196
  })(fs6.readSync);
33197
33197
  }
33198
33198
  function patchLchmod(fs6) {
33199
- fs6.lchmod = function(path5, mode, callback) {
33199
+ fs6.lchmod = function(path4, mode, callback) {
33200
33200
  fs6.open(
33201
- path5,
33201
+ path4,
33202
33202
  constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK,
33203
33203
  mode,
33204
33204
  function(err, fd) {
@@ -33214,8 +33214,8 @@ var require_index_688c5d50 = __commonJS({
33214
33214
  }
33215
33215
  );
33216
33216
  };
33217
- fs6.lchmodSync = function(path5, mode) {
33218
- var fd = fs6.openSync(path5, constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK, mode);
33217
+ fs6.lchmodSync = function(path4, mode) {
33218
+ var fd = fs6.openSync(path4, constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK, mode);
33219
33219
  var threw = true;
33220
33220
  var ret;
33221
33221
  try {
@@ -33236,8 +33236,8 @@ var require_index_688c5d50 = __commonJS({
33236
33236
  }
33237
33237
  function patchLutimes(fs6) {
33238
33238
  if (constants__default["default"].hasOwnProperty("O_SYMLINK")) {
33239
- fs6.lutimes = function(path5, at, mt, cb) {
33240
- fs6.open(path5, constants__default["default"].O_SYMLINK, function(er, fd) {
33239
+ fs6.lutimes = function(path4, at, mt, cb) {
33240
+ fs6.open(path4, constants__default["default"].O_SYMLINK, function(er, fd) {
33241
33241
  if (er) {
33242
33242
  if (cb) cb(er);
33243
33243
  return;
@@ -33249,8 +33249,8 @@ var require_index_688c5d50 = __commonJS({
33249
33249
  });
33250
33250
  });
33251
33251
  };
33252
- fs6.lutimesSync = function(path5, at, mt) {
33253
- var fd = fs6.openSync(path5, constants__default["default"].O_SYMLINK);
33252
+ fs6.lutimesSync = function(path4, at, mt) {
33253
+ var fd = fs6.openSync(path4, constants__default["default"].O_SYMLINK);
33254
33254
  var ret;
33255
33255
  var threw = true;
33256
33256
  try {
@@ -33353,11 +33353,11 @@ var require_index_688c5d50 = __commonJS({
33353
33353
  ReadStream: ReadStream2,
33354
33354
  WriteStream: WriteStream2
33355
33355
  };
33356
- function ReadStream2(path5, options) {
33357
- if (!(this instanceof ReadStream2)) return new ReadStream2(path5, options);
33356
+ function ReadStream2(path4, options) {
33357
+ if (!(this instanceof ReadStream2)) return new ReadStream2(path4, options);
33358
33358
  Stream.call(this);
33359
33359
  var self2 = this;
33360
- this.path = path5;
33360
+ this.path = path4;
33361
33361
  this.fd = null;
33362
33362
  this.readable = true;
33363
33363
  this.paused = false;
@@ -33402,10 +33402,10 @@ var require_index_688c5d50 = __commonJS({
33402
33402
  self2._read();
33403
33403
  });
33404
33404
  }
33405
- function WriteStream2(path5, options) {
33406
- if (!(this instanceof WriteStream2)) return new WriteStream2(path5, options);
33405
+ function WriteStream2(path4, options) {
33406
+ if (!(this instanceof WriteStream2)) return new WriteStream2(path4, options);
33407
33407
  Stream.call(this);
33408
- this.path = path5;
33408
+ this.path = path4;
33409
33409
  this.fd = null;
33410
33410
  this.writable = true;
33411
33411
  this.flags = "w";
@@ -33485,14 +33485,14 @@ var require_index_688c5d50 = __commonJS({
33485
33485
  fs6.createWriteStream = createWriteStream;
33486
33486
  var fs$readFile = fs6.readFile;
33487
33487
  fs6.readFile = readFile2;
33488
- function readFile2(path5, options, cb) {
33488
+ function readFile2(path4, options, cb) {
33489
33489
  if (typeof options === "function")
33490
33490
  cb = options, options = null;
33491
- return go$readFile(path5, options, cb);
33492
- function go$readFile(path6, options2, cb2) {
33493
- return fs$readFile(path6, options2, function(err) {
33491
+ return go$readFile(path4, options, cb);
33492
+ function go$readFile(path5, options2, cb2) {
33493
+ return fs$readFile(path5, options2, function(err) {
33494
33494
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
33495
- enqueue([go$readFile, [path6, options2, cb2]]);
33495
+ enqueue([go$readFile, [path5, options2, cb2]]);
33496
33496
  else {
33497
33497
  if (typeof cb2 === "function")
33498
33498
  cb2.apply(this, arguments);
@@ -33503,14 +33503,14 @@ var require_index_688c5d50 = __commonJS({
33503
33503
  }
33504
33504
  var fs$writeFile = fs6.writeFile;
33505
33505
  fs6.writeFile = writeFile3;
33506
- function writeFile3(path5, data, options, cb) {
33506
+ function writeFile3(path4, data, options, cb) {
33507
33507
  if (typeof options === "function")
33508
33508
  cb = options, options = null;
33509
- return go$writeFile(path5, data, options, cb);
33510
- function go$writeFile(path6, data2, options2, cb2) {
33511
- return fs$writeFile(path6, data2, options2, function(err) {
33509
+ return go$writeFile(path4, data, options, cb);
33510
+ function go$writeFile(path5, data2, options2, cb2) {
33511
+ return fs$writeFile(path5, data2, options2, function(err) {
33512
33512
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
33513
- enqueue([go$writeFile, [path6, data2, options2, cb2]]);
33513
+ enqueue([go$writeFile, [path5, data2, options2, cb2]]);
33514
33514
  else {
33515
33515
  if (typeof cb2 === "function")
33516
33516
  cb2.apply(this, arguments);
@@ -33522,14 +33522,14 @@ var require_index_688c5d50 = __commonJS({
33522
33522
  var fs$appendFile = fs6.appendFile;
33523
33523
  if (fs$appendFile)
33524
33524
  fs6.appendFile = appendFile2;
33525
- function appendFile2(path5, data, options, cb) {
33525
+ function appendFile2(path4, data, options, cb) {
33526
33526
  if (typeof options === "function")
33527
33527
  cb = options, options = null;
33528
- return go$appendFile(path5, data, options, cb);
33529
- function go$appendFile(path6, data2, options2, cb2) {
33530
- return fs$appendFile(path6, data2, options2, function(err) {
33528
+ return go$appendFile(path4, data, options, cb);
33529
+ function go$appendFile(path5, data2, options2, cb2) {
33530
+ return fs$appendFile(path5, data2, options2, function(err) {
33531
33531
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
33532
- enqueue([go$appendFile, [path6, data2, options2, cb2]]);
33532
+ enqueue([go$appendFile, [path5, data2, options2, cb2]]);
33533
33533
  else {
33534
33534
  if (typeof cb2 === "function")
33535
33535
  cb2.apply(this, arguments);
@@ -33540,8 +33540,8 @@ var require_index_688c5d50 = __commonJS({
33540
33540
  }
33541
33541
  var fs$readdir = fs6.readdir;
33542
33542
  fs6.readdir = readdir2;
33543
- function readdir2(path5, options, cb) {
33544
- var args = [path5];
33543
+ function readdir2(path4, options, cb) {
33544
+ var args = [path4];
33545
33545
  if (typeof options !== "function") {
33546
33546
  args.push(options);
33547
33547
  } else {
@@ -33577,7 +33577,7 @@ var require_index_688c5d50 = __commonJS({
33577
33577
  WriteStream2.prototype.open = WriteStream$open;
33578
33578
  fs6.ReadStream = ReadStream2;
33579
33579
  fs6.WriteStream = WriteStream2;
33580
- function ReadStream2(path5, options) {
33580
+ function ReadStream2(path4, options) {
33581
33581
  if (this instanceof ReadStream2)
33582
33582
  return fs$ReadStream.apply(this, arguments), this;
33583
33583
  else
@@ -33597,7 +33597,7 @@ var require_index_688c5d50 = __commonJS({
33597
33597
  }
33598
33598
  });
33599
33599
  }
33600
- function WriteStream2(path5, options) {
33600
+ function WriteStream2(path4, options) {
33601
33601
  if (this instanceof WriteStream2)
33602
33602
  return fs$WriteStream.apply(this, arguments), this;
33603
33603
  else
@@ -33615,22 +33615,22 @@ var require_index_688c5d50 = __commonJS({
33615
33615
  }
33616
33616
  });
33617
33617
  }
33618
- function createReadStream(path5, options) {
33619
- return new ReadStream2(path5, options);
33618
+ function createReadStream(path4, options) {
33619
+ return new ReadStream2(path4, options);
33620
33620
  }
33621
- function createWriteStream(path5, options) {
33622
- return new WriteStream2(path5, options);
33621
+ function createWriteStream(path4, options) {
33622
+ return new WriteStream2(path4, options);
33623
33623
  }
33624
33624
  var fs$open = fs6.open;
33625
33625
  fs6.open = open2;
33626
- function open2(path5, flags, mode, cb) {
33626
+ function open2(path4, flags, mode, cb) {
33627
33627
  if (typeof mode === "function")
33628
33628
  cb = mode, mode = null;
33629
- return go$open(path5, flags, mode, cb);
33630
- function go$open(path6, flags2, mode2, cb2) {
33631
- return fs$open(path6, flags2, mode2, function(err, fd) {
33629
+ return go$open(path4, flags, mode, cb);
33630
+ function go$open(path5, flags2, mode2, cb2) {
33631
+ return fs$open(path5, flags2, mode2, function(err, fd) {
33632
33632
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
33633
- enqueue([go$open, [path6, flags2, mode2, cb2]]);
33633
+ enqueue([go$open, [path5, flags2, mode2, cb2]]);
33634
33634
  else {
33635
33635
  if (typeof cb2 === "function")
33636
33636
  cb2.apply(this, arguments);
@@ -34749,12 +34749,12 @@ var require_index_688c5d50 = __commonJS({
34749
34749
  module4.exports = inherits_browser;
34750
34750
  }
34751
34751
  });
34752
- function posix(path5) {
34753
- return path5.charAt(0) === "/";
34752
+ function posix(path4) {
34753
+ return path4.charAt(0) === "/";
34754
34754
  }
34755
- function win32(path5) {
34755
+ function win32(path4) {
34756
34756
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
34757
- var result = splitDeviceRe.exec(path5);
34757
+ var result = splitDeviceRe.exec(path4);
34758
34758
  var device = result[1] || "";
34759
34759
  var isUnc = Boolean(device && device.charAt(1) !== ":");
34760
34760
  return Boolean(result[2] || isUnc);
@@ -34908,11 +34908,11 @@ var require_index_688c5d50 = __commonJS({
34908
34908
  var c2 = self2.cache[abs];
34909
34909
  var m3 = p2;
34910
34910
  if (c2) {
34911
- var isDir2 = c2 === "DIR" || Array.isArray(c2);
34911
+ var isDir = c2 === "DIR" || Array.isArray(c2);
34912
34912
  var slash = p2.slice(-1) === "/";
34913
- if (isDir2 && !slash)
34913
+ if (isDir && !slash)
34914
34914
  m3 += "/";
34915
- else if (!isDir2 && slash)
34915
+ else if (!isDir && slash)
34916
34916
  m3 = m3.slice(0, -1);
34917
34917
  if (m3 !== p2) {
34918
34918
  var mabs = makeAbs(self2, m3);
@@ -34937,18 +34937,18 @@ var require_index_688c5d50 = __commonJS({
34937
34937
  abs = abs.replace(/\\/g, "/");
34938
34938
  return abs;
34939
34939
  }
34940
- function isIgnored$2(self2, path5) {
34940
+ function isIgnored$2(self2, path4) {
34941
34941
  if (!self2.ignore.length)
34942
34942
  return false;
34943
34943
  return self2.ignore.some(function(item) {
34944
- return item.matcher.match(path5) || !!(item.gmatcher && item.gmatcher.match(path5));
34944
+ return item.matcher.match(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
34945
34945
  });
34946
34946
  }
34947
- function childrenIgnored$2(self2, path5) {
34947
+ function childrenIgnored$2(self2, path4) {
34948
34948
  if (!self2.ignore.length)
34949
34949
  return false;
34950
34950
  return self2.ignore.some(function(item) {
34951
- return !!(item.gmatcher && item.gmatcher.match(path5));
34951
+ return !!(item.gmatcher && item.gmatcher.match(path4));
34952
34952
  });
34953
34953
  }
34954
34954
  var common$1 = {
@@ -37365,8 +37365,8 @@ var require_index_688c5d50 = __commonJS({
37365
37365
  fs__default["default"].readdirSync(dest).forEach((file) => {
37366
37366
  const filePath = path__default["default"].join(dest, file);
37367
37367
  const targetPath = path__default["default"].join(tmpDir, file);
37368
- const isDir2 = fs__default["default"].lstatSync(filePath).isDirectory();
37369
- if (isDir2) {
37368
+ const isDir = fs__default["default"].lstatSync(filePath).isDirectory();
37369
+ if (isDir) {
37370
37370
  copydirSync_1(filePath).to(targetPath);
37371
37371
  rimrafSync_1(filePath);
37372
37372
  } else {
@@ -37380,8 +37380,8 @@ var require_index_688c5d50 = __commonJS({
37380
37380
  fs__default["default"].readdirSync(tmpDir).forEach((filename) => {
37381
37381
  const tmpFile = path__default["default"].join(tmpDir, filename);
37382
37382
  const targetPath = path__default["default"].join(dest, filename);
37383
- const isDir2 = fs__default["default"].lstatSync(tmpFile).isDirectory();
37384
- if (isDir2) {
37383
+ const isDir = fs__default["default"].lstatSync(tmpFile).isDirectory();
37384
+ if (isDir) {
37385
37385
  copydirSync_1(tmpFile).to(targetPath);
37386
37386
  rimrafSync_1(tmpFile);
37387
37387
  } else {
@@ -37484,8 +37484,8 @@ var require_index_688c5d50 = __commonJS({
37484
37484
  const removedFiles = files.map((file) => {
37485
37485
  const filePath = path__default["default"].resolve(dest, file);
37486
37486
  if (fs__default["default"].existsSync(filePath)) {
37487
- const isDir2 = fs__default["default"].lstatSync(filePath).isDirectory();
37488
- if (isDir2) {
37487
+ const isDir = fs__default["default"].lstatSync(filePath).isDirectory();
37488
+ if (isDir) {
37489
37489
  rimrafSync_1(filePath);
37490
37490
  return file + "/";
37491
37491
  } else {
@@ -54685,9 +54685,9 @@ var require_printer = __commonJS({
54685
54685
  if (!ast) {
54686
54686
  return emptyPrintResult;
54687
54687
  }
54688
- function printGenerically(path5) {
54689
- return comments_1.printComments(path5, function(path6) {
54690
- return genericPrint(path6, config49, {
54688
+ function printGenerically(path4) {
54689
+ return comments_1.printComments(path4, function(path5) {
54690
+ return genericPrint(path5, config49, {
54691
54691
  includeComments: true,
54692
54692
  avoidRootParens: false
54693
54693
  }, printGenerically);
@@ -74122,12 +74122,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
74122
74122
  return result;
74123
74123
  }
74124
74124
  __name(parseTree, "parseTree");
74125
- function findNodeAtLocation(root, path42) {
74125
+ function findNodeAtLocation(root, path4) {
74126
74126
  if (!root) {
74127
74127
  return void 0;
74128
74128
  }
74129
74129
  let node = root;
74130
- for (let segment of path42) {
74130
+ for (let segment of path4) {
74131
74131
  if (typeof segment === "string") {
74132
74132
  if (node.type !== "object" || !Array.isArray(node.children)) {
74133
74133
  return void 0;
@@ -74474,14 +74474,14 @@ function getNodeType(value) {
74474
74474
  }
74475
74475
  __name(getNodeType, "getNodeType");
74476
74476
  function setProperty(text, originalPath, value, options) {
74477
- const path42 = originalPath.slice();
74477
+ const path4 = originalPath.slice();
74478
74478
  const errors = [];
74479
74479
  const root = parseTree(text, errors);
74480
74480
  let parent = void 0;
74481
74481
  let lastSegment = void 0;
74482
- while (path42.length > 0) {
74483
- lastSegment = path42.pop();
74484
- parent = findNodeAtLocation(root, path42);
74482
+ while (path4.length > 0) {
74483
+ lastSegment = path4.pop();
74484
+ parent = findNodeAtLocation(root, path4);
74485
74485
  if (parent === void 0 && value !== void 0) {
74486
74486
  if (typeof lastSegment === "string") {
74487
74487
  value = { [lastSegment]: value };
@@ -74710,8 +74710,8 @@ function format2(documentText, range, options) {
74710
74710
  return format(documentText, range, options);
74711
74711
  }
74712
74712
  __name(format2, "format");
74713
- function modify(text, path42, value, options) {
74714
- return setProperty(text, path42, value, options);
74713
+ function modify(text, path4, value, options) {
74714
+ return setProperty(text, path4, value, options);
74715
74715
  }
74716
74716
  __name(modify, "modify");
74717
74717
  function applyEdits(text, edits) {
@@ -76167,7 +76167,7 @@ var require_XDGAppPaths = __commonJS2({
76167
76167
  }
76168
76168
  __name(typeOf, "typeOf");
76169
76169
  function Adapt(adapter_) {
76170
- var meta = adapter_.meta, path5 = adapter_.path, xdg = adapter_.xdg;
76170
+ var meta = adapter_.meta, path4 = adapter_.path, xdg = adapter_.xdg;
76171
76171
  var XDGAppPaths_ = /* @__PURE__ */ (function() {
76172
76172
  function XDGAppPaths_2(options_) {
76173
76173
  if (options_ === void 0) {
@@ -76190,7 +76190,7 @@ var require_XDGAppPaths = __commonJS2({
76190
76190
  meta.mainFilename()
76191
76191
  ];
76192
76192
  var nameFallback = "$eval";
76193
- var name3 = path5.parse(((_c2 = namePriorityList.find(function(e) {
76193
+ var name3 = path4.parse(((_c2 = namePriorityList.find(function(e) {
76194
76194
  return isString2(e);
76195
76195
  })) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
76196
76196
  XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
@@ -76211,28 +76211,28 @@ var require_XDGAppPaths = __commonJS2({
76211
76211
  }
76212
76212
  __name(finalPathSegment, "finalPathSegment");
76213
76213
  XDGAppPaths.cache = /* @__PURE__ */ __name(function cache(dirOptions) {
76214
- return path5.join(xdg.cache(), finalPathSegment(dirOptions));
76214
+ return path4.join(xdg.cache(), finalPathSegment(dirOptions));
76215
76215
  }, "cache");
76216
76216
  XDGAppPaths.config = /* @__PURE__ */ __name(function config49(dirOptions) {
76217
- return path5.join(xdg.config(), finalPathSegment(dirOptions));
76217
+ return path4.join(xdg.config(), finalPathSegment(dirOptions));
76218
76218
  }, "config");
76219
76219
  XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
76220
- return path5.join(xdg.data(), finalPathSegment(dirOptions));
76220
+ return path4.join(xdg.data(), finalPathSegment(dirOptions));
76221
76221
  }, "data");
76222
76222
  XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
76223
- return xdg.runtime() ? path5.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
76223
+ return xdg.runtime() ? path4.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
76224
76224
  }, "runtime");
76225
76225
  XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
76226
- return path5.join(xdg.state(), finalPathSegment(dirOptions));
76226
+ return path4.join(xdg.state(), finalPathSegment(dirOptions));
76227
76227
  }, "state");
76228
76228
  XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
76229
76229
  return xdg.configDirs().map(function(s) {
76230
- return path5.join(s, finalPathSegment(dirOptions));
76230
+ return path4.join(s, finalPathSegment(dirOptions));
76231
76231
  });
76232
76232
  }, "configDirs");
76233
76233
  XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
76234
76234
  return xdg.dataDirs().map(function(s) {
76235
- return path5.join(s, finalPathSegment(dirOptions));
76235
+ return path4.join(s, finalPathSegment(dirOptions));
76236
76236
  });
76237
76237
  }, "dataDirs");
76238
76238
  return XDGAppPaths;
@@ -76256,7 +76256,7 @@ var require_XDG = __commonJS2({
76256
76256
  exports2.__esModule = true;
76257
76257
  exports2.Adapt = void 0;
76258
76258
  function Adapt(adapter_) {
76259
- var env3 = adapter_.env, osPaths = adapter_.osPaths, path5 = adapter_.path;
76259
+ var env3 = adapter_.env, osPaths = adapter_.osPaths, path4 = adapter_.path;
76260
76260
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
76261
76261
  var isWinOS = /^win/i.test(adapter_.process.platform);
76262
76262
  function baseDir() {
@@ -76264,7 +76264,7 @@ var require_XDG = __commonJS2({
76264
76264
  }
76265
76265
  __name(baseDir, "baseDir");
76266
76266
  function valOrPath(val, pathSegments) {
76267
- return val || path5.join.apply(path5, pathSegments);
76267
+ return val || path4.join.apply(path4, pathSegments);
76268
76268
  }
76269
76269
  __name(valOrPath, "valOrPath");
76270
76270
  var linux = /* @__PURE__ */ __name(function() {
@@ -76343,11 +76343,11 @@ var require_XDG = __commonJS2({
76343
76343
  XDG.state = extension.state;
76344
76344
  XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
76345
76345
  var pathList = env3.get("XDG_CONFIG_DIRS");
76346
- return __spreadArray2([extension.config()], pathList ? pathList.split(path5.delimiter) : []);
76346
+ return __spreadArray2([extension.config()], pathList ? pathList.split(path4.delimiter) : []);
76347
76347
  }, "configDirs");
76348
76348
  XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
76349
76349
  var pathList = env3.get("XDG_DATA_DIRS");
76350
- return __spreadArray2([extension.data()], pathList ? pathList.split(path5.delimiter) : []);
76350
+ return __spreadArray2([extension.data()], pathList ? pathList.split(path4.delimiter) : []);
76351
76351
  }, "dataDirs");
76352
76352
  return XDG;
76353
76353
  }
@@ -76374,7 +76374,7 @@ var require_OSPaths = __commonJS2({
76374
76374
  }
76375
76375
  __name(isEmpty, "isEmpty");
76376
76376
  function Adapt(adapter_) {
76377
- var env3 = adapter_.env, os22 = adapter_.os, path5 = adapter_.path;
76377
+ var env3 = adapter_.env, os22 = adapter_.os, path4 = adapter_.path;
76378
76378
  var isWinOS = /^win/i.test(adapter_.process.platform);
76379
76379
  function normalizePath(path_) {
76380
76380
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
@@ -76389,7 +76389,7 @@ var require_OSPaths = __commonJS2({
76389
76389
  typeof os22.homedir === "function" ? os22.homedir() : void 0,
76390
76390
  env3.get("USERPROFILE"),
76391
76391
  env3.get("HOME"),
76392
- env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path5.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
76392
+ env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path4.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
76393
76393
  ];
76394
76394
  return normalizePath(priorityList.find(function(v2) {
76395
76395
  return !isEmpty(v2);
@@ -76400,7 +76400,7 @@ var require_OSPaths = __commonJS2({
76400
76400
  __name(home, "home");
76401
76401
  function temp() {
76402
76402
  function joinPathToBase(base, segments) {
76403
- return base ? path5.join.apply(path5, __spreadArray2([base], segments)) : void 0;
76403
+ return base ? path4.join.apply(path4, __spreadArray2([base], segments)) : void 0;
76404
76404
  }
76405
76405
  __name(joinPathToBase, "joinPathToBase");
76406
76406
  function posix() {
@@ -76503,7 +76503,7 @@ var require_node = __commonJS2({
76503
76503
  exports2.__esModule = true;
76504
76504
  exports2.adapter = void 0;
76505
76505
  var os22 = __importStar2(__require("os"));
76506
- var path5 = __importStar2(__require("path"));
76506
+ var path4 = __importStar2(__require("path"));
76507
76507
  exports2.adapter = {
76508
76508
  atImportPermissions: { env: true },
76509
76509
  env: {
@@ -76512,7 +76512,7 @@ var require_node = __commonJS2({
76512
76512
  }, "get")
76513
76513
  },
76514
76514
  os: os22,
76515
- path: path5,
76515
+ path: path4,
76516
76516
  process
76517
76517
  };
76518
76518
  }
@@ -76554,7 +76554,7 @@ var require_node2 = __commonJS2({
76554
76554
  };
76555
76555
  exports2.__esModule = true;
76556
76556
  exports2.adapter = void 0;
76557
- var path5 = __importStar2(__require("path"));
76557
+ var path4 = __importStar2(__require("path"));
76558
76558
  var os_paths_1 = __importDefault2(require_mod_cjs());
76559
76559
  exports2.adapter = {
76560
76560
  atImportPermissions: { env: true },
@@ -76564,7 +76564,7 @@ var require_node2 = __commonJS2({
76564
76564
  }, "get")
76565
76565
  },
76566
76566
  osPaths: os_paths_1["default"],
76567
- path: path5,
76567
+ path: path4,
76568
76568
  process
76569
76569
  };
76570
76570
  }
@@ -76606,7 +76606,7 @@ var require_node3 = __commonJS2({
76606
76606
  };
76607
76607
  exports2.__esModule = true;
76608
76608
  exports2.adapter = void 0;
76609
- var path5 = __importStar2(__require("path"));
76609
+ var path4 = __importStar2(__require("path"));
76610
76610
  var xdg_portable_1 = __importDefault2(require_mod_cjs2());
76611
76611
  exports2.adapter = {
76612
76612
  atImportPermissions: { env: true, read: true },
@@ -76621,7 +76621,7 @@ var require_node3 = __commonJS2({
76621
76621
  return process.pkg ? process.execPath : void 0;
76622
76622
  }, "pkgMainFilename")
76623
76623
  },
76624
- path: path5,
76624
+ path: path4,
76625
76625
  process,
76626
76626
  xdg: xdg_portable_1["default"]
76627
76627
  };
@@ -76754,189 +76754,6 @@ var PatchConfigError = class extends Error {
76754
76754
  __name(this, "PatchConfigError");
76755
76755
  }
76756
76756
  };
76757
- var ApplicationRollout;
76758
- ((ApplicationRollout2) => {
76759
- ((kind2) => {
76760
- kind2["FULL_AUTO"] = "full_auto";
76761
- kind2["FULL_MANUAL"] = "full_manual";
76762
- kind2["DURABLE_OBJECTS_AUTO"] = "durable_objects_auto";
76763
- })(ApplicationRollout2.kind || (ApplicationRollout2.kind = {}));
76764
- ((strategy2) => {
76765
- strategy2["ROLLING"] = "rolling";
76766
- })(ApplicationRollout2.strategy || (ApplicationRollout2.strategy = {}));
76767
- ((status2) => {
76768
- status2["PENDING"] = "pending";
76769
- status2["PROGRESSING"] = "progressing";
76770
- status2["COMPLETED"] = "completed";
76771
- status2["REVERTED"] = "reverted";
76772
- status2["REPLACED"] = "replaced";
76773
- })(ApplicationRollout2.status || (ApplicationRollout2.status = {}));
76774
- })(ApplicationRollout || (ApplicationRollout = {}));
76775
- var BadRequestWithCodeError;
76776
- ((BadRequestWithCodeError2) => {
76777
- ((error2) => {
76778
- error2["VALIDATE_INPUT"] = "VALIDATE_INPUT";
76779
- })(BadRequestWithCodeError2.error || (BadRequestWithCodeError2.error = {}));
76780
- })(BadRequestWithCodeError || (BadRequestWithCodeError = {}));
76781
- var CreateApplicationRolloutRequest;
76782
- ((CreateApplicationRolloutRequest2) => {
76783
- ((strategy2) => {
76784
- strategy2["ROLLING"] = "rolling";
76785
- })(CreateApplicationRolloutRequest2.strategy || (CreateApplicationRolloutRequest2.strategy = {}));
76786
- ((step_percentage2) => {
76787
- step_percentage2[step_percentage2["_5"] = 5] = "_5";
76788
- step_percentage2[step_percentage2["_10"] = 10] = "_10";
76789
- step_percentage2[step_percentage2["_20"] = 20] = "_20";
76790
- step_percentage2[step_percentage2["_25"] = 25] = "_25";
76791
- step_percentage2[step_percentage2["_50"] = 50] = "_50";
76792
- step_percentage2[step_percentage2["_100"] = 100] = "_100";
76793
- })(CreateApplicationRolloutRequest2.step_percentage || (CreateApplicationRolloutRequest2.step_percentage = {}));
76794
- ((kind2) => {
76795
- kind2["FULL_AUTO"] = "full_auto";
76796
- kind2["FULL_MANUAL"] = "full_manual";
76797
- })(CreateApplicationRolloutRequest2.kind || (CreateApplicationRolloutRequest2.kind = {}));
76798
- })(CreateApplicationRolloutRequest || (CreateApplicationRolloutRequest = {}));
76799
- var DeploymentNotFoundError;
76800
- ((DeploymentNotFoundError2) => {
76801
- ((error2) => {
76802
- error2["DEPLOYMENT_NOT_FOUND"] = "DEPLOYMENT_NOT_FOUND";
76803
- })(DeploymentNotFoundError2.error || (DeploymentNotFoundError2.error = {}));
76804
- })(DeploymentNotFoundError || (DeploymentNotFoundError = {}));
76805
- var ImageRegistryAlreadyExistsError;
76806
- ((ImageRegistryAlreadyExistsError2) => {
76807
- ((error2) => {
76808
- error2["IMAGE_REGISTRY_ALREADY_EXISTS"] = "IMAGE_REGISTRY_ALREADY_EXISTS";
76809
- })(ImageRegistryAlreadyExistsError2.error || (ImageRegistryAlreadyExistsError2.error = {}));
76810
- })(ImageRegistryAlreadyExistsError || (ImageRegistryAlreadyExistsError = {}));
76811
- var ImageRegistryIsPublic;
76812
- ((ImageRegistryIsPublic2) => {
76813
- ((error2) => {
76814
- error2["IMAGE_REGISTRY_IS_PUBLIC"] = "IMAGE_REGISTRY_IS_PUBLIC";
76815
- })(ImageRegistryIsPublic2.error || (ImageRegistryIsPublic2.error = {}));
76816
- })(ImageRegistryIsPublic || (ImageRegistryIsPublic = {}));
76817
- var ImageRegistryNotAllowedError;
76818
- ((ImageRegistryNotAllowedError2) => {
76819
- ((error2) => {
76820
- error2["IMAGE_REGISTRY_NOT_ALLOWED"] = "IMAGE_REGISTRY_NOT_ALLOWED";
76821
- })(ImageRegistryNotAllowedError2.error || (ImageRegistryNotAllowedError2.error = {}));
76822
- })(ImageRegistryNotAllowedError || (ImageRegistryNotAllowedError = {}));
76823
- var ImageRegistryNotFoundError;
76824
- ((ImageRegistryNotFoundError2) => {
76825
- ((error2) => {
76826
- error2["IMAGE_REGISTRY_NOT_FOUND"] = "IMAGE_REGISTRY_NOT_FOUND";
76827
- })(ImageRegistryNotFoundError2.error || (ImageRegistryNotFoundError2.error = {}));
76828
- })(ImageRegistryNotFoundError || (ImageRegistryNotFoundError = {}));
76829
- var ImageRegistryProtocolAlreadyExists;
76830
- ((ImageRegistryProtocolAlreadyExists2) => {
76831
- ((error2) => {
76832
- error2["IMAGE_REGISTRY_PROTOCOL_ALREADY_EXISTS"] = "IMAGE_REGISTRY_PROTOCOL_ALREADY_EXISTS";
76833
- })(ImageRegistryProtocolAlreadyExists2.error || (ImageRegistryProtocolAlreadyExists2.error = {}));
76834
- })(ImageRegistryProtocolAlreadyExists || (ImageRegistryProtocolAlreadyExists = {}));
76835
- var ImageRegistryProtocolIsReferencedError;
76836
- ((ImageRegistryProtocolIsReferencedError2) => {
76837
- ((error2) => {
76838
- error2["IMAGE_REGISTRY_PROTO_IS_REFERENCED"] = "IMAGE_REGISTRY_PROTO_IS_REFERENCED";
76839
- })(ImageRegistryProtocolIsReferencedError2.error || (ImageRegistryProtocolIsReferencedError2.error = {}));
76840
- })(ImageRegistryProtocolIsReferencedError || (ImageRegistryProtocolIsReferencedError = {}));
76841
- var ImageRegistryProtocolNotFound;
76842
- ((ImageRegistryProtocolNotFound2) => {
76843
- ((error2) => {
76844
- error2["IMAGE_REGISTRY_PROTOCOL_NOT_FOUND"] = "IMAGE_REGISTRY_PROTOCOL_NOT_FOUND";
76845
- })(ImageRegistryProtocolNotFound2.error || (ImageRegistryProtocolNotFound2.error = {}));
76846
- })(ImageRegistryProtocolNotFound || (ImageRegistryProtocolNotFound = {}));
76847
- var ProvisionerConfiguration;
76848
- ((ProvisionerConfiguration2) => {
76849
- ((type2) => {
76850
- type2["NONE"] = "none";
76851
- type2["CLOUDINIT"] = "cloudinit";
76852
- })(ProvisionerConfiguration2.type || (ProvisionerConfiguration2.type = {}));
76853
- })(ProvisionerConfiguration || (ProvisionerConfiguration = {}));
76854
- var RolloutStep;
76855
- ((RolloutStep2) => {
76856
- ((status2) => {
76857
- status2["PENDING"] = "pending";
76858
- status2["PROGRESSING"] = "progressing";
76859
- status2["REVERTING"] = "reverting";
76860
- status2["COMPLETED"] = "completed";
76861
- status2["REVERTED"] = "reverted";
76862
- })(RolloutStep2.status || (RolloutStep2.status = {}));
76863
- })(RolloutStep || (RolloutStep = {}));
76864
- var SecretNameAlreadyExists;
76865
- ((SecretNameAlreadyExists2) => {
76866
- ((error2) => {
76867
- error2["SECRET_NAME_ALREADY_EXISTS"] = "SECRET_NAME_ALREADY_EXISTS";
76868
- })(SecretNameAlreadyExists2.error || (SecretNameAlreadyExists2.error = {}));
76869
- })(SecretNameAlreadyExists || (SecretNameAlreadyExists = {}));
76870
- var SecretNotFound;
76871
- ((SecretNotFound2) => {
76872
- ((error2) => {
76873
- error2["SECRET_NAME_NOT_FOUND"] = "SECRET_NAME_NOT_FOUND";
76874
- })(SecretNotFound2.error || (SecretNotFound2.error = {}));
76875
- })(SecretNotFound || (SecretNotFound = {}));
76876
- var SSHPublicKeyNotFoundError;
76877
- ((SSHPublicKeyNotFoundError2) => {
76878
- ((error2) => {
76879
- error2["SSH_PUBLIC_KEY_NOT_FOUND"] = "SSH_PUBLIC_KEY_NOT_FOUND";
76880
- })(SSHPublicKeyNotFoundError2.error || (SSHPublicKeyNotFoundError2.error = {}));
76881
- })(SSHPublicKeyNotFoundError || (SSHPublicKeyNotFoundError = {}));
76882
- var UpdateApplicationRolloutRequest;
76883
- ((UpdateApplicationRolloutRequest2) => {
76884
- ((action2) => {
76885
- action2["NEXT"] = "next";
76886
- action2["PREVIOUS"] = "previous";
76887
- action2["REVERT"] = "revert";
76888
- })(UpdateApplicationRolloutRequest2.action || (UpdateApplicationRolloutRequest2.action = {}));
76889
- })(UpdateApplicationRolloutRequest || (UpdateApplicationRolloutRequest = {}));
76890
- var UserError2 = class extends Error {
76891
- static {
76892
- __name(this, "UserError");
76893
- }
76894
- telemetryMessage;
76895
- constructor(message, options) {
76896
- super(message, options);
76897
- Object.setPrototypeOf(this, new.target.prototype);
76898
- this.telemetryMessage = options?.telemetryMessage === true ? message : options?.telemetryMessage;
76899
- }
76900
- };
76901
- function isDir(inputPath) {
76902
- const stats = (0, import_node_fs2.statSync)(inputPath);
76903
- return stats.isDirectory();
76904
- }
76905
- __name(isDir, "isDir");
76906
- var isDockerfile = /* @__PURE__ */ __name((image, configPath) => {
76907
- const baseDir = configPath ? import_node_path3.default.dirname(configPath) : process.cwd();
76908
- const maybeDockerfile = import_node_path3.default.resolve(baseDir, image);
76909
- if ((0, import_node_fs2.existsSync)(maybeDockerfile)) {
76910
- if (isDir(maybeDockerfile)) {
76911
- throw new UserError2(
76912
- `${image} is a directory, you should specify a path to the Dockerfile`
76913
- );
76914
- }
76915
- return true;
76916
- }
76917
- const errorPrefix = `The image "${image}" does not appear to be a valid path to a Dockerfile, or a valid image registry path:
76918
- `;
76919
- try {
76920
- new URL(`https://${image}`);
76921
- } catch (e) {
76922
- if (e instanceof Error) {
76923
- throw new UserError2(errorPrefix + e.message);
76924
- }
76925
- throw e;
76926
- }
76927
- const imageParts = image.split("/");
76928
- if (!imageParts[imageParts.length - 1]?.includes(":")) {
76929
- throw new UserError2(
76930
- errorPrefix + `If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)`
76931
- );
76932
- }
76933
- if (image.includes("://")) {
76934
- throw new UserError2(
76935
- errorPrefix + `Image reference should not include the protocol part (e.g: docker.io/httpd:1, not https://docker.io/httpd:1)`
76936
- );
76937
- }
76938
- return false;
76939
- }, "isDockerfile");
76940
76757
  var MAX_WORKFLOW_NAME_LENGTH = 64;
76941
76758
  var ALLOWED_STRING_ID_PATTERN = "^[a-zA-Z0-9_][a-zA-Z0-9-_]*$";
76942
76759
  var ALLOWED_WORKFLOW_INSTANCE_ID_REGEX = new RegExp(
@@ -76960,9 +76777,9 @@ __export2(mod_esm_exports, {
76960
76777
  var import_mod_cjs = __toESM2(require_mod_cjs3(), 1);
76961
76778
  __reExport2(mod_esm_exports, __toESM2(require_mod_cjs3(), 1));
76962
76779
  var mod_esm_default = import_mod_cjs.default;
76963
- function isDirectory(configPath) {
76780
+ function isDirectory(path4) {
76964
76781
  try {
76965
- return import_node_fs2.default.statSync(configPath).isDirectory();
76782
+ return import_node_fs2.default.statSync(path4).isDirectory();
76966
76783
  } catch {
76967
76784
  return false;
76968
76785
  }
@@ -77302,9 +77119,9 @@ Please add "${field}" to "env.${envName}".`
77302
77119
  return rawEnv[field] ?? defaultValue;
77303
77120
  }
77304
77121
  __name(notInheritable, "notInheritable");
77305
- function unwindPropertyPath(root, path5) {
77122
+ function unwindPropertyPath(root, path4) {
77306
77123
  let container = root;
77307
- const parts = path5.split(".");
77124
+ const parts = path4.split(".");
77308
77125
  for (let i = 0; i < parts.length - 1; i++) {
77309
77126
  if (!hasProperty(container, parts[i])) {
77310
77127
  return;
@@ -81054,13 +80871,20 @@ var validateRateLimitBinding = /* @__PURE__ */ __name((diagnostics, field, value
81054
80871
  }, "validateRateLimitBinding");
81055
80872
  function normalizeAndValidateLimits(diagnostics, topLevelEnv, rawEnv) {
81056
80873
  if (rawEnv.limits) {
81057
- validateRequiredProperty(
80874
+ validateOptionalProperty(
81058
80875
  diagnostics,
81059
80876
  "limits",
81060
80877
  "cpu_ms",
81061
80878
  rawEnv.limits.cpu_ms,
81062
80879
  "number"
81063
80880
  );
80881
+ validateOptionalProperty(
80882
+ diagnostics,
80883
+ "limits",
80884
+ "subrequests",
80885
+ rawEnv.limits.subrequests,
80886
+ "number"
80887
+ );
81064
80888
  }
81065
80889
  return inheritable(
81066
80890
  diagnostics,
@@ -81364,6 +81188,41 @@ function isRemoteValid(targetObject, fieldPath, diagnostics) {
81364
81188
  return true;
81365
81189
  }
81366
81190
  __name(isRemoteValid, "isRemoteValid");
81191
+ function isDockerfile(imagePath, configPath) {
81192
+ const baseDir = configPath ? import_node_path3.default.dirname(configPath) : process.cwd();
81193
+ const maybeDockerfile = import_node_path3.default.resolve(baseDir, imagePath);
81194
+ if (import_node_fs2.default.existsSync(maybeDockerfile)) {
81195
+ if (isDirectory(maybeDockerfile)) {
81196
+ throw new UserError(
81197
+ `${imagePath} is a directory, you should specify a path to the Dockerfile`
81198
+ );
81199
+ }
81200
+ return true;
81201
+ }
81202
+ const errorPrefix = `The image "${imagePath}" does not appear to be a valid path to a Dockerfile, or a valid image registry path:
81203
+ `;
81204
+ try {
81205
+ new URL(`https://${imagePath}`);
81206
+ } catch (e) {
81207
+ if (e instanceof Error) {
81208
+ throw new UserError(errorPrefix + e.message);
81209
+ }
81210
+ throw e;
81211
+ }
81212
+ const imageParts = imagePath.split("/");
81213
+ if (!imageParts[imageParts.length - 1]?.includes(":")) {
81214
+ throw new UserError(
81215
+ errorPrefix + `If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)`
81216
+ );
81217
+ }
81218
+ if (imagePath.includes("://")) {
81219
+ throw new UserError(
81220
+ errorPrefix + `Image reference should not include the protocol part (e.g: docker.io/httpd:1, not https://docker.io/httpd:1)`
81221
+ );
81222
+ }
81223
+ return false;
81224
+ }
81225
+ __name(isDockerfile, "isDockerfile");
81367
81226
  var supportedPagesConfigFields = [
81368
81227
  "pages_build_output_dir",
81369
81228
  "name",
@@ -88190,7 +88049,7 @@ var Yargs = YargsFactory(esm_default2);
88190
88049
  var yargs_default = Yargs;
88191
88050
 
88192
88051
  // package.json
88193
- var version = "2.62.5";
88052
+ var version = "2.62.6";
88194
88053
 
88195
88054
  // src/metrics.ts
88196
88055
  var import_node_async_hooks = require("node:async_hooks");
@@ -88608,16 +88467,13 @@ function createReporter() {
88608
88467
  await Promise.allSettled(events);
88609
88468
  }
88610
88469
  function createTracker(eventPrefix, props) {
88611
- let startTime = null;
88470
+ let startTimeMs = null;
88612
88471
  const additionalProperties = {};
88613
88472
  function submitEvent(name3) {
88614
- if (!startTime) {
88615
- startTime = Date.now();
88473
+ if (!startTimeMs) {
88474
+ startTimeMs = Date.now();
88616
88475
  } else {
88617
- const ms = Date.now() - startTime;
88618
- additionalProperties["durationMs"] = ms;
88619
- additionalProperties["durationSeconds"] = ms / 1e3;
88620
- additionalProperties["durationMinutes"] = ms / 1e3 / 60;
88476
+ additionalProperties["durationMs"] = Date.now() - startTimeMs;
88621
88477
  }
88622
88478
  sendEvent2(name3, {
88623
88479
  ...props,
@@ -88715,7 +88571,7 @@ function getC3Permission(config49 = readMetricsConfig() ?? {}) {
88715
88571
  }
88716
88572
  return config49.c3permission;
88717
88573
  }
88718
- function updateC3Pemission(enabled) {
88574
+ function updateC3Permission(enabled) {
88719
88575
  const config49 = readMetricsConfig();
88720
88576
  if (config49.c3permission?.enabled === enabled) {
88721
88577
  return;
@@ -88723,14 +88579,14 @@ function updateC3Pemission(enabled) {
88723
88579
  config49.c3permission = initializeC3Permission(enabled);
88724
88580
  writeMetricsConfig(config49);
88725
88581
  }
88582
+ function logTelemetryStatus(enabled) {
88583
+ logRaw(`Status: ${enabled ? "Enabled" : "Disabled"}`);
88584
+ logRaw("");
88585
+ }
88726
88586
  var runTelemetryCommand = (action) => {
88727
- const logTelemetryStatus = (enabled) => {
88728
- logRaw(`Status: ${enabled ? "Enabled" : "Disabled"}`);
88729
- logRaw("");
88730
- };
88731
88587
  switch (action) {
88732
88588
  case "enable": {
88733
- updateC3Pemission(true);
88589
+ updateC3Permission(true);
88734
88590
  logTelemetryStatus(true);
88735
88591
  logRaw(
88736
88592
  "Create-Cloudflare is now collecting telemetry about your usage. Thank you for helping us improve the experience!"
@@ -88738,7 +88594,7 @@ var runTelemetryCommand = (action) => {
88738
88594
  break;
88739
88595
  }
88740
88596
  case "disable": {
88741
- updateC3Pemission(false);
88597
+ updateC3Permission(false);
88742
88598
  logTelemetryStatus(false);
88743
88599
  logRaw("Create-Cloudflare is no longer collecting telemetry");
88744
88600
  break;
@@ -89802,22 +89658,22 @@ var package_default = {
89802
89658
  ],
89803
89659
  dependencies: {
89804
89660
  "create-astro": "4.13.2",
89805
- "create-analog": "2.2.2",
89661
+ "create-analog": "2.2.3",
89806
89662
  "@angular/create": "21.1.1",
89807
89663
  "create-docusaurus": "3.9.2",
89808
89664
  "create-hono": "0.19.4",
89809
89665
  "create-next-app": "15.5.6",
89810
- "create-qwik": "1.18.0",
89666
+ "create-qwik": "1.19.0",
89811
89667
  "create-vite": "7.1.1",
89812
89668
  "create-rwsdk": "3.1.3",
89813
89669
  "create-react-router": "7.13.0",
89814
89670
  "create-solid": "0.6.11",
89815
- "create-vike": "0.0.566",
89816
- "create-vue": "3.19.0",
89817
- "create-waku": "0.12.5-1.0.0-alpha.2-0",
89671
+ "create-vike": "0.0.572",
89672
+ "create-vue": "3.20.0",
89673
+ "create-waku": "0.12.5-1.0.0-alpha.3-0",
89818
89674
  "@tanstack/create-start": "0.40.0",
89819
89675
  gatsby: "5.15.0",
89820
- sv: "0.11.3",
89676
+ sv: "0.11.4",
89821
89677
  nuxi: "3.30.0"
89822
89678
  }
89823
89679
  };
@@ -90212,7 +90068,13 @@ var c3_default4 = config4;
90212
90068
  var recast3 = __toESM(require_main2());
90213
90069
  var { npx } = detectPackageManager();
90214
90070
  var generate4 = async (ctx) => {
90215
- await runFrameworkGenerator(ctx, [ctx.project.name, "--no-install"]);
90071
+ await runFrameworkGenerator(ctx, [
90072
+ ctx.project.name,
90073
+ // c3 will later install the dependencies
90074
+ "--no-install",
90075
+ // c3 will later ask users if they want to use git
90076
+ "--no-git"
90077
+ ]);
90216
90078
  logRaw("");
90217
90079
  };
90218
90080
  var configure4 = async () => {
@@ -90223,9 +90085,6 @@ var configure4 = async () => {
90223
90085
  `via \`${npx} astro add cloudflare\``
90224
90086
  )}`
90225
90087
  });
90226
- updateAstroConfig();
90227
- };
90228
- var updateAstroConfig = () => {
90229
90088
  const filePath = "astro.config.mjs";
90230
90089
  updateStatus(`Updating configuration in ${blue(filePath)}`);
90231
90090
  transformFile(filePath, {
@@ -90297,7 +90156,13 @@ var c3_default5 = config5;
90297
90156
  var recast4 = __toESM(require_main2());
90298
90157
  var { npx: npx2 } = detectPackageManager();
90299
90158
  var generate5 = async (ctx) => {
90300
- await runFrameworkGenerator(ctx, [ctx.project.name, "--no-install"]);
90159
+ await runFrameworkGenerator(ctx, [
90160
+ ctx.project.name,
90161
+ // c3 will later install the dependencies
90162
+ "--no-install",
90163
+ // c3 will later ask users if they want to use git
90164
+ "--no-git"
90165
+ ]);
90301
90166
  logRaw("");
90302
90167
  };
90303
90168
  var configure5 = async () => {
@@ -90308,9 +90173,6 @@ var configure5 = async () => {
90308
90173
  `via \`${npx2} astro add cloudflare\``
90309
90174
  )}`
90310
90175
  });
90311
- updateAstroConfig2();
90312
- };
90313
- var updateAstroConfig2 = () => {
90314
90176
  const filePath = "astro.config.mjs";
90315
90177
  updateStatus(`Updating configuration in ${blue(filePath)}`);
90316
90178
  transformFile(filePath, {
@@ -92278,7 +92140,7 @@ var experimental_c3_default3 = config48;
92278
92140
  var import_node_assert6 = __toESM(require("node:assert"));
92279
92141
 
92280
92142
  // ../wrangler/package.json
92281
- var version2 = "4.61.1";
92143
+ var version2 = "4.62.0";
92282
92144
 
92283
92145
  // src/git.ts
92284
92146
  var offerGit = async (ctx) => {
@@ -92328,15 +92190,25 @@ var gitCommit = async (ctx) => {
92328
92190
  }
92329
92191
  const s = spinner();
92330
92192
  s.start("Committing new files");
92331
- await runCommand(["git", "add", "."], {
92332
- silent: true,
92333
- cwd: ctx.project.path
92334
- });
92335
- await runCommand(["git", "commit", "-m", ctx.commitMessage, "--no-verify"], {
92336
- silent: true,
92337
- cwd: ctx.project.path
92338
- });
92339
- s.stop(`${brandColor("git")} ${dim(`commit`)}`);
92193
+ try {
92194
+ await runCommand(["git", "add", "."], {
92195
+ silent: true,
92196
+ cwd: ctx.project.path
92197
+ });
92198
+ await runCommand(
92199
+ ["git", "commit", "-m", ctx.commitMessage, "--no-verify"],
92200
+ {
92201
+ silent: true,
92202
+ cwd: ctx.project.path
92203
+ }
92204
+ );
92205
+ s.stop(`${brandColor("git")} ${dim(`commit`)}`);
92206
+ } catch {
92207
+ s.stop(`${brandColor("git")} ${dim(`commit failed`)}`);
92208
+ updateStatus(
92209
+ "Failed to create initial commit. You can commit manually later."
92210
+ );
92211
+ }
92340
92212
  };
92341
92213
  var createCommitMessage = async (ctx) => {
92342
92214
  const framework = ctx.template.frameworkCli;