create-cloudflare 2.64.3 → 2.64.4

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
@@ -3336,7 +3336,7 @@ var require_windows = __commonJS({
3336
3336
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module3) {
3337
3337
  module3.exports = isexe;
3338
3338
  isexe.sync = sync;
3339
- var fs4 = require("fs");
3339
+ var fs5 = require("fs");
3340
3340
  function checkPathExt(path4, options) {
3341
3341
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
3342
3342
  if (!pathext) {
@@ -3361,12 +3361,12 @@ var require_windows = __commonJS({
3361
3361
  return checkPathExt(path4, options);
3362
3362
  }
3363
3363
  function isexe(path4, options, cb) {
3364
- fs4.stat(path4, function(er, stat) {
3364
+ fs5.stat(path4, function(er, stat) {
3365
3365
  cb(er, er ? false : checkStat(stat, path4, options));
3366
3366
  });
3367
3367
  }
3368
3368
  function sync(path4, options) {
3369
- return checkStat(fs4.statSync(path4), path4, options);
3369
+ return checkStat(fs5.statSync(path4), path4, options);
3370
3370
  }
3371
3371
  }
3372
3372
  });
@@ -3376,14 +3376,14 @@ var require_mode = __commonJS({
3376
3376
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module3) {
3377
3377
  module3.exports = isexe;
3378
3378
  isexe.sync = sync;
3379
- var fs4 = require("fs");
3379
+ var fs5 = require("fs");
3380
3380
  function isexe(path4, options, cb) {
3381
- fs4.stat(path4, function(er, stat) {
3381
+ fs5.stat(path4, function(er, stat) {
3382
3382
  cb(er, er ? false : checkStat(stat, options));
3383
3383
  });
3384
3384
  }
3385
3385
  function sync(path4, options) {
3386
- return checkStat(fs4.statSync(path4), options);
3386
+ return checkStat(fs5.statSync(path4), options);
3387
3387
  }
3388
3388
  function checkStat(stat, options) {
3389
3389
  return stat.isFile() && checkMode(stat, options);
@@ -3407,7 +3407,7 @@ var require_mode = __commonJS({
3407
3407
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
3408
3408
  var require_isexe = __commonJS({
3409
3409
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module3) {
3410
- var fs4 = require("fs");
3410
+ var fs5 = require("fs");
3411
3411
  var core;
3412
3412
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
3413
3413
  core = require_windows();
@@ -3671,16 +3671,16 @@ var require_shebang_command = __commonJS({
3671
3671
  var require_readShebang = __commonJS({
3672
3672
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module3) {
3673
3673
  "use strict";
3674
- var fs4 = require("fs");
3674
+ var fs5 = require("fs");
3675
3675
  var shebangCommand = require_shebang_command();
3676
3676
  function readShebang(command2) {
3677
3677
  const size = 150;
3678
3678
  const buffer = Buffer.alloc(size);
3679
3679
  let fd;
3680
3680
  try {
3681
- fd = fs4.openSync(command2, "r");
3682
- fs4.readSync(fd, buffer, 0, size, 0);
3683
- fs4.closeSync(fd);
3681
+ fd = fs5.openSync(command2, "r");
3682
+ fs5.readSync(fd, buffer, 0, size, 0);
3683
+ fs5.closeSync(fd);
3684
3684
  } catch (e) {
3685
3685
  }
3686
3686
  return shebangCommand(buffer.toString());
@@ -31443,8 +31443,8 @@ var require_index_688c5d50 = __commonJS({
31443
31443
  };
31444
31444
  var platform$1 = process.env.__FAKE_PLATFORM__ || process.platform;
31445
31445
  var isWindows$2 = platform$1 === "win32";
31446
- var fs4 = commonjsGlobal.__FAKE_TESTING_FS__ || fs__default["default"];
31447
- var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs4.constants;
31446
+ var fs5 = commonjsGlobal.__FAKE_TESTING_FS__ || fs__default["default"];
31447
+ var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs5.constants;
31448
31448
  var fMapEnabled = isWindows$2 && !!UV_FS_O_FILEMAP;
31449
31449
  var fMapLimit = 512 * 1024;
31450
31450
  var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
@@ -33549,54 +33549,54 @@ var require_index_688c5d50 = __commonJS({
33549
33549
  chdir2.call(process, d3);
33550
33550
  };
33551
33551
  var polyfills = patch;
33552
- function patch(fs5) {
33552
+ function patch(fs6) {
33553
33553
  if (constants__default["default"].hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
33554
- patchLchmod(fs5);
33555
- }
33556
- if (!fs5.lutimes) {
33557
- patchLutimes(fs5);
33558
- }
33559
- fs5.chown = chownFix(fs5.chown);
33560
- fs5.fchown = chownFix(fs5.fchown);
33561
- fs5.lchown = chownFix(fs5.lchown);
33562
- fs5.chmod = chmodFix(fs5.chmod);
33563
- fs5.fchmod = chmodFix(fs5.fchmod);
33564
- fs5.lchmod = chmodFix(fs5.lchmod);
33565
- fs5.chownSync = chownFixSync(fs5.chownSync);
33566
- fs5.fchownSync = chownFixSync(fs5.fchownSync);
33567
- fs5.lchownSync = chownFixSync(fs5.lchownSync);
33568
- fs5.chmodSync = chmodFixSync(fs5.chmodSync);
33569
- fs5.fchmodSync = chmodFixSync(fs5.fchmodSync);
33570
- fs5.lchmodSync = chmodFixSync(fs5.lchmodSync);
33571
- fs5.stat = statFix(fs5.stat);
33572
- fs5.fstat = statFix(fs5.fstat);
33573
- fs5.lstat = statFix(fs5.lstat);
33574
- fs5.statSync = statFixSync(fs5.statSync);
33575
- fs5.fstatSync = statFixSync(fs5.fstatSync);
33576
- fs5.lstatSync = statFixSync(fs5.lstatSync);
33577
- if (!fs5.lchmod) {
33578
- fs5.lchmod = function(path5, mode, cb) {
33554
+ patchLchmod(fs6);
33555
+ }
33556
+ if (!fs6.lutimes) {
33557
+ patchLutimes(fs6);
33558
+ }
33559
+ fs6.chown = chownFix(fs6.chown);
33560
+ fs6.fchown = chownFix(fs6.fchown);
33561
+ fs6.lchown = chownFix(fs6.lchown);
33562
+ fs6.chmod = chmodFix(fs6.chmod);
33563
+ fs6.fchmod = chmodFix(fs6.fchmod);
33564
+ fs6.lchmod = chmodFix(fs6.lchmod);
33565
+ fs6.chownSync = chownFixSync(fs6.chownSync);
33566
+ fs6.fchownSync = chownFixSync(fs6.fchownSync);
33567
+ fs6.lchownSync = chownFixSync(fs6.lchownSync);
33568
+ fs6.chmodSync = chmodFixSync(fs6.chmodSync);
33569
+ fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
33570
+ fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
33571
+ fs6.stat = statFix(fs6.stat);
33572
+ fs6.fstat = statFix(fs6.fstat);
33573
+ fs6.lstat = statFix(fs6.lstat);
33574
+ fs6.statSync = statFixSync(fs6.statSync);
33575
+ fs6.fstatSync = statFixSync(fs6.fstatSync);
33576
+ fs6.lstatSync = statFixSync(fs6.lstatSync);
33577
+ if (!fs6.lchmod) {
33578
+ fs6.lchmod = function(path5, mode, cb) {
33579
33579
  if (cb) process.nextTick(cb);
33580
33580
  };
33581
- fs5.lchmodSync = function() {
33581
+ fs6.lchmodSync = function() {
33582
33582
  };
33583
33583
  }
33584
- if (!fs5.lchown) {
33585
- fs5.lchown = function(path5, uid, gid, cb) {
33584
+ if (!fs6.lchown) {
33585
+ fs6.lchown = function(path5, uid, gid, cb) {
33586
33586
  if (cb) process.nextTick(cb);
33587
33587
  };
33588
- fs5.lchownSync = function() {
33588
+ fs6.lchownSync = function() {
33589
33589
  };
33590
33590
  }
33591
33591
  if (platform === "win32") {
33592
- fs5.rename = /* @__PURE__ */ (function(fs$rename) {
33592
+ fs6.rename = /* @__PURE__ */ (function(fs$rename) {
33593
33593
  return function(from, to, cb) {
33594
33594
  var start = Date.now();
33595
33595
  var backoff = 0;
33596
33596
  fs$rename(from, to, function CB(er) {
33597
33597
  if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
33598
33598
  setTimeout(function() {
33599
- fs5.stat(to, function(stater, st) {
33599
+ fs6.stat(to, function(stater, st) {
33600
33600
  if (stater && stater.code === "ENOENT")
33601
33601
  fs$rename(from, to, CB);
33602
33602
  else
@@ -33610,9 +33610,9 @@ var require_index_688c5d50 = __commonJS({
33610
33610
  if (cb) cb(er);
33611
33611
  });
33612
33612
  };
33613
- })(fs5.rename);
33613
+ })(fs6.rename);
33614
33614
  }
33615
- fs5.read = /* @__PURE__ */ (function(fs$read) {
33615
+ fs6.read = /* @__PURE__ */ (function(fs$read) {
33616
33616
  return function(fd, buffer, offset, length, position, callback_) {
33617
33617
  var callback;
33618
33618
  if (callback_ && typeof callback_ === "function") {
@@ -33620,20 +33620,20 @@ var require_index_688c5d50 = __commonJS({
33620
33620
  callback = function(er, _3, __) {
33621
33621
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
33622
33622
  eagCounter++;
33623
- return fs$read.call(fs5, fd, buffer, offset, length, position, callback);
33623
+ return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
33624
33624
  }
33625
33625
  callback_.apply(this, arguments);
33626
33626
  };
33627
33627
  }
33628
- return fs$read.call(fs5, fd, buffer, offset, length, position, callback);
33628
+ return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
33629
33629
  };
33630
- })(fs5.read);
33631
- fs5.readSync = /* @__PURE__ */ (function(fs$readSync) {
33630
+ })(fs6.read);
33631
+ fs6.readSync = /* @__PURE__ */ (function(fs$readSync) {
33632
33632
  return function(fd, buffer, offset, length, position) {
33633
33633
  var eagCounter = 0;
33634
33634
  while (true) {
33635
33635
  try {
33636
- return fs$readSync.call(fs5, fd, buffer, offset, length, position);
33636
+ return fs$readSync.call(fs6, fd, buffer, offset, length, position);
33637
33637
  } catch (er) {
33638
33638
  if (er.code === "EAGAIN" && eagCounter < 10) {
33639
33639
  eagCounter++;
@@ -33643,11 +33643,11 @@ var require_index_688c5d50 = __commonJS({
33643
33643
  }
33644
33644
  }
33645
33645
  };
33646
- })(fs5.readSync);
33646
+ })(fs6.readSync);
33647
33647
  }
33648
- function patchLchmod(fs5) {
33649
- fs5.lchmod = function(path5, mode, callback) {
33650
- fs5.open(
33648
+ function patchLchmod(fs6) {
33649
+ fs6.lchmod = function(path5, mode, callback) {
33650
+ fs6.open(
33651
33651
  path5,
33652
33652
  constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK,
33653
33653
  mode,
@@ -33656,73 +33656,73 @@ var require_index_688c5d50 = __commonJS({
33656
33656
  if (callback) callback(err);
33657
33657
  return;
33658
33658
  }
33659
- fs5.fchmod(fd, mode, function(err2) {
33660
- fs5.close(fd, function(err22) {
33659
+ fs6.fchmod(fd, mode, function(err2) {
33660
+ fs6.close(fd, function(err22) {
33661
33661
  if (callback) callback(err2 || err22);
33662
33662
  });
33663
33663
  });
33664
33664
  }
33665
33665
  );
33666
33666
  };
33667
- fs5.lchmodSync = function(path5, mode) {
33668
- var fd = fs5.openSync(path5, constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK, mode);
33667
+ fs6.lchmodSync = function(path5, mode) {
33668
+ var fd = fs6.openSync(path5, constants__default["default"].O_WRONLY | constants__default["default"].O_SYMLINK, mode);
33669
33669
  var threw = true;
33670
33670
  var ret;
33671
33671
  try {
33672
- ret = fs5.fchmodSync(fd, mode);
33672
+ ret = fs6.fchmodSync(fd, mode);
33673
33673
  threw = false;
33674
33674
  } finally {
33675
33675
  if (threw) {
33676
33676
  try {
33677
- fs5.closeSync(fd);
33677
+ fs6.closeSync(fd);
33678
33678
  } catch (er) {
33679
33679
  }
33680
33680
  } else {
33681
- fs5.closeSync(fd);
33681
+ fs6.closeSync(fd);
33682
33682
  }
33683
33683
  }
33684
33684
  return ret;
33685
33685
  };
33686
33686
  }
33687
- function patchLutimes(fs5) {
33687
+ function patchLutimes(fs6) {
33688
33688
  if (constants__default["default"].hasOwnProperty("O_SYMLINK")) {
33689
- fs5.lutimes = function(path5, at, mt, cb) {
33690
- fs5.open(path5, constants__default["default"].O_SYMLINK, function(er, fd) {
33689
+ fs6.lutimes = function(path5, at, mt, cb) {
33690
+ fs6.open(path5, constants__default["default"].O_SYMLINK, function(er, fd) {
33691
33691
  if (er) {
33692
33692
  if (cb) cb(er);
33693
33693
  return;
33694
33694
  }
33695
- fs5.futimes(fd, at, mt, function(er2) {
33696
- fs5.close(fd, function(er22) {
33695
+ fs6.futimes(fd, at, mt, function(er2) {
33696
+ fs6.close(fd, function(er22) {
33697
33697
  if (cb) cb(er2 || er22);
33698
33698
  });
33699
33699
  });
33700
33700
  });
33701
33701
  };
33702
- fs5.lutimesSync = function(path5, at, mt) {
33703
- var fd = fs5.openSync(path5, constants__default["default"].O_SYMLINK);
33702
+ fs6.lutimesSync = function(path5, at, mt) {
33703
+ var fd = fs6.openSync(path5, constants__default["default"].O_SYMLINK);
33704
33704
  var ret;
33705
33705
  var threw = true;
33706
33706
  try {
33707
- ret = fs5.futimesSync(fd, at, mt);
33707
+ ret = fs6.futimesSync(fd, at, mt);
33708
33708
  threw = false;
33709
33709
  } finally {
33710
33710
  if (threw) {
33711
33711
  try {
33712
- fs5.closeSync(fd);
33712
+ fs6.closeSync(fd);
33713
33713
  } catch (er) {
33714
33714
  }
33715
33715
  } else {
33716
- fs5.closeSync(fd);
33716
+ fs6.closeSync(fd);
33717
33717
  }
33718
33718
  }
33719
33719
  return ret;
33720
33720
  };
33721
33721
  } else {
33722
- fs5.lutimes = function(_a2, _b2, _c2, cb) {
33722
+ fs6.lutimes = function(_a2, _b2, _c2, cb) {
33723
33723
  if (cb) process.nextTick(cb);
33724
33724
  };
33725
- fs5.lutimesSync = function() {
33725
+ fs6.lutimesSync = function() {
33726
33726
  };
33727
33727
  }
33728
33728
  }
@@ -33798,7 +33798,7 @@ var require_index_688c5d50 = __commonJS({
33798
33798
  }
33799
33799
  var Stream = Stream__default["default"].Stream;
33800
33800
  var legacyStreams = legacy;
33801
- function legacy(fs5) {
33801
+ function legacy(fs6) {
33802
33802
  return {
33803
33803
  ReadStream: ReadStream2,
33804
33804
  WriteStream: WriteStream2
@@ -33841,7 +33841,7 @@ var require_index_688c5d50 = __commonJS({
33841
33841
  });
33842
33842
  return;
33843
33843
  }
33844
- fs5.open(this.path, this.flags, this.mode, function(err, fd) {
33844
+ fs6.open(this.path, this.flags, this.mode, function(err, fd) {
33845
33845
  if (err) {
33846
33846
  self2.emit("error", err);
33847
33847
  self2.readable = false;
@@ -33880,7 +33880,7 @@ var require_index_688c5d50 = __commonJS({
33880
33880
  this.busy = false;
33881
33881
  this._queue = [];
33882
33882
  if (this.fd === null) {
33883
- this._open = fs5.open;
33883
+ this._open = fs6.open;
33884
33884
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
33885
33885
  this.flush();
33886
33886
  }
@@ -33926,15 +33926,15 @@ var require_index_688c5d50 = __commonJS({
33926
33926
  return rval;
33927
33927
  };
33928
33928
  })(fs__default["default"].closeSync);
33929
- function patch2(fs5) {
33930
- polyfills(fs5);
33931
- fs5.gracefulify = patch2;
33932
- fs5.FileReadStream = ReadStream2;
33933
- fs5.FileWriteStream = WriteStream2;
33934
- fs5.createReadStream = createReadStream;
33935
- fs5.createWriteStream = createWriteStream;
33936
- var fs$readFile = fs5.readFile;
33937
- fs5.readFile = readFile2;
33929
+ function patch2(fs6) {
33930
+ polyfills(fs6);
33931
+ fs6.gracefulify = patch2;
33932
+ fs6.FileReadStream = ReadStream2;
33933
+ fs6.FileWriteStream = WriteStream2;
33934
+ fs6.createReadStream = createReadStream;
33935
+ fs6.createWriteStream = createWriteStream;
33936
+ var fs$readFile = fs6.readFile;
33937
+ fs6.readFile = readFile2;
33938
33938
  function readFile2(path5, options, cb) {
33939
33939
  if (typeof options === "function")
33940
33940
  cb = options, options = null;
@@ -33951,8 +33951,8 @@ var require_index_688c5d50 = __commonJS({
33951
33951
  });
33952
33952
  }
33953
33953
  }
33954
- var fs$writeFile = fs5.writeFile;
33955
- fs5.writeFile = writeFile3;
33954
+ var fs$writeFile = fs6.writeFile;
33955
+ fs6.writeFile = writeFile3;
33956
33956
  function writeFile3(path5, data, options, cb) {
33957
33957
  if (typeof options === "function")
33958
33958
  cb = options, options = null;
@@ -33969,9 +33969,9 @@ var require_index_688c5d50 = __commonJS({
33969
33969
  });
33970
33970
  }
33971
33971
  }
33972
- var fs$appendFile = fs5.appendFile;
33972
+ var fs$appendFile = fs6.appendFile;
33973
33973
  if (fs$appendFile)
33974
- fs5.appendFile = appendFile2;
33974
+ fs6.appendFile = appendFile2;
33975
33975
  function appendFile2(path5, data, options, cb) {
33976
33976
  if (typeof options === "function")
33977
33977
  cb = options, options = null;
@@ -33988,8 +33988,8 @@ var require_index_688c5d50 = __commonJS({
33988
33988
  });
33989
33989
  }
33990
33990
  }
33991
- var fs$readdir = fs5.readdir;
33992
- fs5.readdir = readdir2;
33991
+ var fs$readdir = fs6.readdir;
33992
+ fs6.readdir = readdir2;
33993
33993
  function readdir2(path5, options, cb) {
33994
33994
  var args = [path5];
33995
33995
  if (typeof options !== "function") {
@@ -34012,21 +34012,21 @@ var require_index_688c5d50 = __commonJS({
34012
34012
  }
34013
34013
  }
34014
34014
  function go$readdir(args) {
34015
- return fs$readdir.apply(fs5, args);
34015
+ return fs$readdir.apply(fs6, args);
34016
34016
  }
34017
34017
  if (process.version.substr(0, 4) === "v0.8") {
34018
- var legStreams = legacyStreams(fs5);
34018
+ var legStreams = legacyStreams(fs6);
34019
34019
  ReadStream2 = legStreams.ReadStream;
34020
34020
  WriteStream2 = legStreams.WriteStream;
34021
34021
  }
34022
- var fs$ReadStream = fs5.ReadStream;
34022
+ var fs$ReadStream = fs6.ReadStream;
34023
34023
  ReadStream2.prototype = Object.create(fs$ReadStream.prototype);
34024
34024
  ReadStream2.prototype.open = ReadStream$open;
34025
- var fs$WriteStream = fs5.WriteStream;
34025
+ var fs$WriteStream = fs6.WriteStream;
34026
34026
  WriteStream2.prototype = Object.create(fs$WriteStream.prototype);
34027
34027
  WriteStream2.prototype.open = WriteStream$open;
34028
- fs5.ReadStream = ReadStream2;
34029
- fs5.WriteStream = WriteStream2;
34028
+ fs6.ReadStream = ReadStream2;
34029
+ fs6.WriteStream = WriteStream2;
34030
34030
  function ReadStream2(path5, options) {
34031
34031
  if (this instanceof ReadStream2)
34032
34032
  return fs$ReadStream.apply(this, arguments), this;
@@ -34071,8 +34071,8 @@ var require_index_688c5d50 = __commonJS({
34071
34071
  function createWriteStream(path5, options) {
34072
34072
  return new WriteStream2(path5, options);
34073
34073
  }
34074
- var fs$open = fs5.open;
34075
- fs5.open = open2;
34074
+ var fs$open = fs6.open;
34075
+ fs6.open = open2;
34076
34076
  function open2(path5, flags, mode, cb) {
34077
34077
  if (typeof mode === "function")
34078
34078
  cb = mode, mode = null;
@@ -34089,7 +34089,7 @@ var require_index_688c5d50 = __commonJS({
34089
34089
  });
34090
34090
  }
34091
34091
  }
34092
- return fs5;
34092
+ return fs6;
34093
34093
  }
34094
34094
  function enqueue(elem) {
34095
34095
  debug2("ENQUEUE", elem[0].name, elem[1]);
@@ -46735,11 +46735,11 @@ var require_src3 = __commonJS({
46735
46735
  var require_is_docker = __commonJS({
46736
46736
  "../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js"(exports2, module3) {
46737
46737
  "use strict";
46738
- var fs4 = require("fs");
46738
+ var fs5 = require("fs");
46739
46739
  var isDocker;
46740
46740
  function hasDockerEnv() {
46741
46741
  try {
46742
- fs4.statSync("/.dockerenv");
46742
+ fs5.statSync("/.dockerenv");
46743
46743
  return true;
46744
46744
  } catch (_3) {
46745
46745
  return false;
@@ -46747,7 +46747,7 @@ var require_is_docker = __commonJS({
46747
46747
  }
46748
46748
  function hasDockerCGroup() {
46749
46749
  try {
46750
- return fs4.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
46750
+ return fs5.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
46751
46751
  } catch (_3) {
46752
46752
  return false;
46753
46753
  }
@@ -46766,7 +46766,7 @@ var require_is_wsl = __commonJS({
46766
46766
  "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module3) {
46767
46767
  "use strict";
46768
46768
  var os5 = require("os");
46769
- var fs4 = require("fs");
46769
+ var fs5 = require("fs");
46770
46770
  var isDocker = require_is_docker();
46771
46771
  var isWsl = () => {
46772
46772
  if (process.platform !== "linux") {
@@ -46779,7 +46779,7 @@ var require_is_wsl = __commonJS({
46779
46779
  return true;
46780
46780
  }
46781
46781
  try {
46782
- return fs4.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
46782
+ return fs5.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
46783
46783
  } catch (_3) {
46784
46784
  return false;
46785
46785
  }
@@ -46820,7 +46820,7 @@ var require_open = __commonJS({
46820
46820
  "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module3) {
46821
46821
  var path4 = require("path");
46822
46822
  var childProcess = require("child_process");
46823
- var { promises: fs4, constants: fsConstants } = require("fs");
46823
+ var { promises: fs5, constants: fsConstants } = require("fs");
46824
46824
  var isWsl = require_is_wsl();
46825
46825
  var isDocker = require_is_docker();
46826
46826
  var defineLazyProperty = require_define_lazy_prop();
@@ -46836,14 +46836,14 @@ var require_open = __commonJS({
46836
46836
  const configFilePath = "/etc/wsl.conf";
46837
46837
  let isConfigFileExists = false;
46838
46838
  try {
46839
- await fs4.access(configFilePath, fsConstants.F_OK);
46839
+ await fs5.access(configFilePath, fsConstants.F_OK);
46840
46840
  isConfigFileExists = true;
46841
46841
  } catch {
46842
46842
  }
46843
46843
  if (!isConfigFileExists) {
46844
46844
  return defaultMountPoint;
46845
46845
  }
46846
- const configContent = await fs4.readFile(configFilePath, { encoding: "utf8" });
46846
+ const configContent = await fs5.readFile(configFilePath, { encoding: "utf8" });
46847
46847
  const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
46848
46848
  if (!configMountPoint) {
46849
46849
  return defaultMountPoint;
@@ -46943,7 +46943,7 @@ var require_open = __commonJS({
46943
46943
  const isBundled = !__dirname || __dirname === "/";
46944
46944
  let exeLocalXdgOpen = false;
46945
46945
  try {
46946
- await fs4.access(localXdgOpenPath, fsConstants.X_OK);
46946
+ await fs5.access(localXdgOpenPath, fsConstants.X_OK);
46947
46947
  exeLocalXdgOpen = true;
46948
46948
  } catch {
46949
46949
  }
@@ -73727,8 +73727,8 @@ function constructWranglerConfig(workerOrWorkers) {
73727
73727
  }
73728
73728
  __name(constructWranglerConfig, "constructWranglerConfig");
73729
73729
 
73730
- // ../workers-utils/dist/chunk-66S7A4CD.mjs
73731
- var import_node_fs = require("node:fs");
73730
+ // ../workers-utils/dist/chunk-NNMRVG4F.mjs
73731
+ var import_node_fs = __toESM(require("node:fs"), 1);
73732
73732
  var import_node_path2 = __toESM(require("node:path"), 1);
73733
73733
  var UserError = class extends Error {
73734
73734
  static {
@@ -76544,6 +76544,34 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
76544
76544
  }
76545
76545
  }
76546
76546
  __name(formatConfigSnippet, "formatConfigSnippet");
76547
+ function isDirectory(path22) {
76548
+ return import_node_fs.default.statSync(path22, { throwIfNoEntry: false })?.isDirectory() ?? false;
76549
+ }
76550
+ __name(isDirectory, "isDirectory");
76551
+ function removeDir(dirPath, { fireAndForget = false } = {}) {
76552
+ const result = import_node_fs.default.promises.rm(dirPath, {
76553
+ recursive: true,
76554
+ force: true,
76555
+ maxRetries: 5,
76556
+ retryDelay: 100
76557
+ });
76558
+ if (fireAndForget) {
76559
+ void result.catch(() => {
76560
+ });
76561
+ } else {
76562
+ return result;
76563
+ }
76564
+ }
76565
+ __name(removeDir, "removeDir");
76566
+ function removeDirSync(dirPath) {
76567
+ import_node_fs.default.rmSync(dirPath, {
76568
+ recursive: true,
76569
+ force: true,
76570
+ maxRetries: 5,
76571
+ retryDelay: 100
76572
+ });
76573
+ }
76574
+ __name(removeDirSync, "removeDirSync");
76547
76575
 
76548
76576
  // ../workers-utils/dist/index.mjs
76549
76577
  var import_node_fs2 = __toESM(require("node:fs"), 1);
@@ -77181,10 +77209,6 @@ __export2(mod_esm_exports, {
77181
77209
  var import_mod_cjs = __toESM2(require_mod_cjs3(), 1);
77182
77210
  __reExport2(mod_esm_exports, __toESM2(require_mod_cjs3(), 1));
77183
77211
  var mod_esm_default = import_mod_cjs.default;
77184
- function isDirectory(path4) {
77185
- return import_node_fs2.default.statSync(path4, { throwIfNoEntry: false })?.isDirectory() ?? false;
77186
- }
77187
- __name(isDirectory, "isDirectory");
77188
77212
  function getGlobalWranglerConfigPath() {
77189
77213
  const configDir = mod_esm_default(".wrangler").config();
77190
77214
  const legacyConfigDir = import_node_path3.default.join(import_node_os2.default.homedir(), ".wrangler");
@@ -88507,7 +88531,7 @@ var Yargs = YargsFactory(esm_default2);
88507
88531
  var yargs_default = Yargs;
88508
88532
 
88509
88533
  // package.json
88510
- var version = "2.64.3";
88534
+ var version = "2.64.4";
88511
88535
 
88512
88536
  // src/metrics.ts
88513
88537
  var import_node_async_hooks = require("node:async_hooks");
@@ -88795,7 +88819,12 @@ var rectifyPmMismatch = async (ctx) => {
88795
88819
  }
88796
88820
  const nodeModulesPath = import_node_path6.default.join(ctx.project.path, "node_modules");
88797
88821
  if ((0, import_node_fs5.existsSync)(nodeModulesPath)) {
88798
- (0, import_node_fs5.rmSync)(nodeModulesPath, { recursive: true });
88822
+ (0, import_node_fs5.rmSync)(nodeModulesPath, {
88823
+ recursive: true,
88824
+ force: true,
88825
+ maxRetries: 5,
88826
+ retryDelay: 100
88827
+ });
88799
88828
  }
88800
88829
  const lockfilePath = import_node_path6.default.join(ctx.project.path, "package-lock.json");
88801
88830
  if ((0, import_node_fs5.existsSync)(lockfilePath)) {
@@ -90122,7 +90151,7 @@ var package_default = {
90122
90151
  "create-solid": "0.6.13",
90123
90152
  "create-vike": "0.0.581",
90124
90153
  "create-vue": "3.21.1",
90125
- "create-waku": "0.12.5-1.0.0-alpha.3-0",
90154
+ "create-waku": "0.12.5-1.0.0-alpha.4-0",
90126
90155
  "@tanstack/create-start": "0.59.8",
90127
90156
  gatsby: "5.16.1",
90128
90157
  sv: "0.12.2",
@@ -92644,7 +92673,7 @@ Retrieve API references and limits from:
92644
92673
  var import_node_assert6 = __toESM(require("node:assert"));
92645
92674
 
92646
92675
  // ../wrangler/package.json
92647
- var version2 = "4.67.1";
92676
+ var version2 = "4.68.1";
92648
92677
 
92649
92678
  // src/git.ts
92650
92679
  var offerGit = async (ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.64.3",
3
+ "version": "2.64.4",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -73,13 +73,13 @@
73
73
  "wrap-ansi": "^9.0.0",
74
74
  "xdg-app-paths": "^8.3.0",
75
75
  "yargs": "^17.7.2",
76
- "@cloudflare/workers-utils": "0.11.1",
76
+ "@cloudflare/workers-utils": "0.11.2",
77
77
  "@cloudflare/cli": "1.2.1",
78
78
  "@cloudflare/eslint-config-shared": "1.2.1",
79
79
  "@cloudflare/mock-npm-registry": "0.0.0",
80
- "@cloudflare/vite-plugin": "1.25.3",
80
+ "@cloudflare/vite-plugin": "1.25.5",
81
81
  "@cloudflare/workers-tsconfig": "0.0.0",
82
- "wrangler": "4.67.1"
82
+ "wrangler": "4.68.1"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=18.14.1"
@@ -1,6 +1,10 @@
1
1
  import { AngularAppEngine, createRequestHandler } from '@angular/ssr';
2
2
 
3
- const angularApp = new AngularAppEngine();
3
+ const angularApp = new AngularAppEngine({
4
+ // It is safe to set allow `localhost`, so that SSR can run in local development,
5
+ // as, in production, Cloudflare will ensure that `localhost` is not the host.
6
+ allowedHosts: ['localhost'],
7
+ });
4
8
 
5
9
  /**
6
10
  * This is a request handler used by the Angular CLI (dev-server and during build).
@@ -1,6 +1,10 @@
1
1
  import { AngularAppEngine, createRequestHandler } from '@angular/ssr';
2
2
 
3
- const angularApp = new AngularAppEngine();
3
+ const angularApp = new AngularAppEngine({
4
+ // It is safe to set allow `localhost`, so that SSR can run in local development,
5
+ // as, in production, Cloudflare will ensure that `localhost` is not the host.
6
+ allowedHosts: ['localhost'],
7
+ });
4
8
 
5
9
  /**
6
10
  * This is a request handler used by the Angular CLI (dev-server and during build).