@base44-preview/cli 0.0.50-pr.484.42693d8 → 0.0.50-pr.484.f8f85fa

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/index.js CHANGED
@@ -8935,8 +8935,8 @@ var require_ejs = __commonJS((exports) => {
8935
8935
  exports.resolveInclude = function(name2, filename, isDir) {
8936
8936
  var dirname6 = path11.dirname;
8937
8937
  var extname = path11.extname;
8938
- var resolve2 = path11.resolve;
8939
- var includePath = resolve2(isDir ? filename : dirname6(filename), name2);
8938
+ var resolve = path11.resolve;
8939
+ var includePath = resolve(isDir ? filename : dirname6(filename), name2);
8940
8940
  var ext = extname(name2);
8941
8941
  if (!ext) {
8942
8942
  includePath += ".ejs";
@@ -9011,10 +9011,10 @@ var require_ejs = __commonJS((exports) => {
9011
9011
  var result;
9012
9012
  if (!cb) {
9013
9013
  if (typeof exports.promiseImpl == "function") {
9014
- return new exports.promiseImpl(function(resolve2, reject) {
9014
+ return new exports.promiseImpl(function(resolve, reject) {
9015
9015
  try {
9016
9016
  result = handleCache(options)(data);
9017
- resolve2(result);
9017
+ resolve(result);
9018
9018
  } catch (err) {
9019
9019
  reject(err);
9020
9020
  }
@@ -12452,12 +12452,12 @@ var require_isexe = __commonJS((exports, module) => {
12452
12452
  if (typeof Promise !== "function") {
12453
12453
  throw new TypeError("callback not provided");
12454
12454
  }
12455
- return new Promise(function(resolve3, reject) {
12455
+ return new Promise(function(resolve2, reject) {
12456
12456
  isexe(path11, options || {}, function(er, is) {
12457
12457
  if (er) {
12458
12458
  reject(er);
12459
12459
  } else {
12460
- resolve3(is);
12460
+ resolve2(is);
12461
12461
  }
12462
12462
  });
12463
12463
  });
@@ -12519,27 +12519,27 @@ var require_which = __commonJS((exports, module) => {
12519
12519
  opt = {};
12520
12520
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
12521
12521
  const found = [];
12522
- const step = (i) => new Promise((resolve3, reject) => {
12522
+ const step = (i) => new Promise((resolve2, reject) => {
12523
12523
  if (i === pathEnv.length)
12524
- return opt.all && found.length ? resolve3(found) : reject(getNotFoundError(cmd));
12524
+ return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
12525
12525
  const ppRaw = pathEnv[i];
12526
12526
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
12527
12527
  const pCmd = path11.join(pathPart, cmd);
12528
12528
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
12529
- resolve3(subStep(p, i, 0));
12529
+ resolve2(subStep(p, i, 0));
12530
12530
  });
12531
- const subStep = (p, i, ii) => new Promise((resolve3, reject) => {
12531
+ const subStep = (p, i, ii) => new Promise((resolve2, reject) => {
12532
12532
  if (ii === pathExt.length)
12533
- return resolve3(step(i + 1));
12533
+ return resolve2(step(i + 1));
12534
12534
  const ext = pathExt[ii];
12535
12535
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
12536
12536
  if (!er && is) {
12537
12537
  if (opt.all)
12538
12538
  found.push(p + ext);
12539
12539
  else
12540
- return resolve3(p + ext);
12540
+ return resolve2(p + ext);
12541
12541
  }
12542
- return resolve3(subStep(p, i, ii + 1));
12542
+ return resolve2(subStep(p, i, ii + 1));
12543
12543
  });
12544
12544
  });
12545
12545
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -134614,11 +134614,11 @@ var require_prettier = __commonJS((exports, module) => {
134614
134614
  var require_formatter = __commonJS((exports) => {
134615
134615
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
134616
134616
  function adopt(value) {
134617
- return value instanceof P9 ? value : new P9(function(resolve9) {
134618
- resolve9(value);
134617
+ return value instanceof P9 ? value : new P9(function(resolve8) {
134618
+ resolve8(value);
134619
134619
  });
134620
134620
  }
134621
- return new (P9 || (P9 = Promise))(function(resolve9, reject) {
134621
+ return new (P9 || (P9 = Promise))(function(resolve8, reject) {
134622
134622
  function fulfilled(value) {
134623
134623
  try {
134624
134624
  step(generator.next(value));
@@ -134634,7 +134634,7 @@ var require_formatter = __commonJS((exports) => {
134634
134634
  }
134635
134635
  }
134636
134636
  function step(result) {
134637
- result.done ? resolve9(result.value) : adopt(result.value).then(fulfilled, rejected);
134637
+ result.done ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
134638
134638
  }
134639
134639
  step((generator = generator.apply(thisArg, _arguments || [])).next());
134640
134640
  });
@@ -139287,7 +139287,7 @@ var require_url = __commonJS((exports) => {
139287
139287
  };
139288
139288
  Object.defineProperty(exports, "__esModule", { value: true });
139289
139289
  exports.parse = undefined;
139290
- exports.resolve = resolve9;
139290
+ exports.resolve = resolve8;
139291
139291
  exports.cwd = cwd;
139292
139292
  exports.getProtocol = getProtocol;
139293
139293
  exports.getExtension = getExtension;
@@ -139315,7 +139315,7 @@ var require_url = __commonJS((exports) => {
139315
139315
  var urlDecodePatterns = [/%23/g, "#", /%24/g, "$", /%26/g, "&", /%2C/g, ",", /%40/g, "@"];
139316
139316
  var parse11 = (u4) => new URL(u4);
139317
139317
  exports.parse = parse11;
139318
- function resolve9(from, to5) {
139318
+ function resolve8(from, to5) {
139319
139319
  const fromUrl = new URL((0, convert_path_to_posix_1.default)(from), "https://aaa.nonexistanturl.com");
139320
139320
  const resolvedUrl = new URL((0, convert_path_to_posix_1.default)(to5), fromUrl);
139321
139321
  const endSpaces = to5.match(/(\s*)$/)?.[1] || "";
@@ -139451,7 +139451,7 @@ var require_url = __commonJS((exports) => {
139451
139451
  }
139452
139452
  function relative4(from, to5) {
139453
139453
  if (!isFileSystemPath(from) || !isFileSystemPath(to5)) {
139454
- return resolve9(from, to5);
139454
+ return resolve8(from, to5);
139455
139455
  }
139456
139456
  const fromDir = path_1.default.dirname(stripHash(from));
139457
139457
  const toPath4 = stripHash(to5);
@@ -140127,7 +140127,7 @@ var require_plugins = __commonJS((exports) => {
140127
140127
  let plugin;
140128
140128
  let lastError;
140129
140129
  let index = 0;
140130
- return new Promise((resolve9, reject) => {
140130
+ return new Promise((resolve8, reject) => {
140131
140131
  runNextPlugin();
140132
140132
  function runNextPlugin() {
140133
140133
  plugin = plugins[index++];
@@ -140155,7 +140155,7 @@ var require_plugins = __commonJS((exports) => {
140155
140155
  }
140156
140156
  }
140157
140157
  function onSuccess(result) {
140158
- resolve9({
140158
+ resolve8({
140159
140159
  plugin,
140160
140160
  result
140161
140161
  });
@@ -141488,11 +141488,11 @@ var require_lib3 = __commonJS((exports) => {
141488
141488
  var require_resolver = __commonJS((exports) => {
141489
141489
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
141490
141490
  function adopt(value) {
141491
- return value instanceof P9 ? value : new P9(function(resolve9) {
141492
- resolve9(value);
141491
+ return value instanceof P9 ? value : new P9(function(resolve8) {
141492
+ resolve8(value);
141493
141493
  });
141494
141494
  }
141495
- return new (P9 || (P9 = Promise))(function(resolve9, reject) {
141495
+ return new (P9 || (P9 = Promise))(function(resolve8, reject) {
141496
141496
  function fulfilled(value) {
141497
141497
  try {
141498
141498
  step(generator.next(value));
@@ -141508,7 +141508,7 @@ var require_resolver = __commonJS((exports) => {
141508
141508
  }
141509
141509
  }
141510
141510
  function step(result) {
141511
- result.done ? resolve9(result.value) : adopt(result.value).then(fulfilled, rejected);
141511
+ result.done ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
141512
141512
  }
141513
141513
  step((generator = generator.apply(thisArg, _arguments || [])).next());
141514
141514
  });
@@ -141629,11 +141629,11 @@ var require_optionValidator = __commonJS((exports) => {
141629
141629
  var require_src3 = __commonJS((exports) => {
141630
141630
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
141631
141631
  function adopt(value) {
141632
- return value instanceof P9 ? value : new P9(function(resolve9) {
141633
- resolve9(value);
141632
+ return value instanceof P9 ? value : new P9(function(resolve8) {
141633
+ resolve8(value);
141634
141634
  });
141635
141635
  }
141636
- return new (P9 || (P9 = Promise))(function(resolve9, reject) {
141636
+ return new (P9 || (P9 = Promise))(function(resolve8, reject) {
141637
141637
  function fulfilled(value) {
141638
141638
  try {
141639
141639
  step(generator.next(value));
@@ -141649,7 +141649,7 @@ var require_src3 = __commonJS((exports) => {
141649
141649
  }
141650
141650
  }
141651
141651
  function step(result) {
141652
- result.done ? resolve9(result.value) : adopt(result.value).then(fulfilled, rejected);
141652
+ result.done ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
141653
141653
  }
141654
141654
  step((generator = generator.apply(thisArg, _arguments || [])).next());
141655
141655
  });
@@ -147274,11 +147274,11 @@ var require_raw_body = __commonJS((exports, module) => {
147274
147274
  if (done) {
147275
147275
  return readStream(stream, encoding, length, limit, wrap(done));
147276
147276
  }
147277
- return new Promise(function executor(resolve9, reject) {
147277
+ return new Promise(function executor(resolve8, reject) {
147278
147278
  readStream(stream, encoding, length, limit, function onRead2(err, buf) {
147279
147279
  if (err)
147280
147280
  return reject(err);
147281
- resolve9(buf);
147281
+ resolve8(buf);
147282
147282
  });
147283
147283
  });
147284
147284
  }
@@ -160403,7 +160403,7 @@ var require_view = __commonJS((exports, module) => {
160403
160403
  var basename4 = path18.basename;
160404
160404
  var extname2 = path18.extname;
160405
160405
  var join23 = path18.join;
160406
- var resolve9 = path18.resolve;
160406
+ var resolve8 = path18.resolve;
160407
160407
  module.exports = View;
160408
160408
  function View(name2, options8) {
160409
160409
  var opts = options8 || {};
@@ -160437,7 +160437,7 @@ var require_view = __commonJS((exports, module) => {
160437
160437
  debug('lookup "%s"', name2);
160438
160438
  for (var i5 = 0;i5 < roots.length && !path19; i5++) {
160439
160439
  var root2 = roots[i5];
160440
- var loc = resolve9(root2, name2);
160440
+ var loc = resolve8(root2, name2);
160441
160441
  var dir = dirname16(loc);
160442
160442
  var file2 = basename4(loc);
160443
160443
  path19 = this.resolve(dir, file2);
@@ -160462,7 +160462,7 @@ var require_view = __commonJS((exports, module) => {
160462
160462
  });
160463
160463
  sync = false;
160464
160464
  };
160465
- View.prototype.resolve = function resolve10(dir, file2) {
160465
+ View.prototype.resolve = function resolve9(dir, file2) {
160466
160466
  var ext = this.ext;
160467
160467
  var path19 = join23(dir, file2);
160468
160468
  var stat2 = tryStat(path19);
@@ -162621,7 +162621,7 @@ var require_application = __commonJS((exports, module) => {
162621
162621
  var compileETag = require_utils10().compileETag;
162622
162622
  var compileQueryParser = require_utils10().compileQueryParser;
162623
162623
  var compileTrust = require_utils10().compileTrust;
162624
- var resolve9 = __require("node:path").resolve;
162624
+ var resolve8 = __require("node:path").resolve;
162625
162625
  var once9 = require_once();
162626
162626
  var Router = require_router();
162627
162627
  var slice = Array.prototype.slice;
@@ -162675,7 +162675,7 @@ var require_application = __commonJS((exports, module) => {
162675
162675
  this.mountpath = "/";
162676
162676
  this.locals.settings = this.settings;
162677
162677
  this.set("view", View);
162678
- this.set("views", resolve9("views"));
162678
+ this.set("views", resolve8("views"));
162679
162679
  this.set("jsonp callback name", "callback");
162680
162680
  if (env3 === "production") {
162681
162681
  this.enable("view cache");
@@ -164166,7 +164166,7 @@ var require_send = __commonJS((exports, module) => {
164166
164166
  var extname2 = path18.extname;
164167
164167
  var join23 = path18.join;
164168
164168
  var normalize2 = path18.normalize;
164169
- var resolve9 = path18.resolve;
164169
+ var resolve8 = path18.resolve;
164170
164170
  var sep = path18.sep;
164171
164171
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
164172
164172
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000;
@@ -164195,7 +164195,7 @@ var require_send = __commonJS((exports, module) => {
164195
164195
  this._maxage = opts.maxAge || opts.maxage;
164196
164196
  this._maxage = typeof this._maxage === "string" ? ms8(this._maxage) : Number(this._maxage);
164197
164197
  this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0;
164198
- this._root = opts.root ? resolve9(opts.root) : null;
164198
+ this._root = opts.root ? resolve8(opts.root) : null;
164199
164199
  }
164200
164200
  util2.inherits(SendStream, Stream2);
164201
164201
  SendStream.prototype.error = function error48(status, err) {
@@ -164344,7 +164344,7 @@ var require_send = __commonJS((exports, module) => {
164344
164344
  return res;
164345
164345
  }
164346
164346
  parts = normalize2(path19).split(sep);
164347
- path19 = resolve9(path19);
164347
+ path19 = resolve8(path19);
164348
164348
  }
164349
164349
  if (containsDotFile(parts)) {
164350
164350
  debug('%s dotfile "%s"', this._dotfiles, path19);
@@ -164672,7 +164672,7 @@ var require_response = __commonJS((exports, module) => {
164672
164672
  var cookie = require_cookie();
164673
164673
  var send = require_send();
164674
164674
  var extname2 = path18.extname;
164675
- var resolve9 = path18.resolve;
164675
+ var resolve8 = path18.resolve;
164676
164676
  var vary = require_vary();
164677
164677
  var { Buffer: Buffer7 } = __require("node:buffer");
164678
164678
  var res = Object.create(http.ServerResponse.prototype);
@@ -164881,7 +164881,7 @@ var require_response = __commonJS((exports, module) => {
164881
164881
  }
164882
164882
  opts = Object.create(opts);
164883
164883
  opts.headers = headers;
164884
- var fullPath = !opts.root ? resolve9(path19) : path19;
164884
+ var fullPath = !opts.root ? resolve8(path19) : path19;
164885
164885
  return this.sendFile(fullPath, opts, done);
164886
164886
  };
164887
164887
  res.contentType = res.type = function contentType(type) {
@@ -165142,7 +165142,7 @@ var require_serve_static = __commonJS((exports, module) => {
165142
165142
  var encodeUrl = require_encodeurl();
165143
165143
  var escapeHtml = require_escape_html();
165144
165144
  var parseUrl = require_parseurl();
165145
- var resolve9 = __require("path").resolve;
165145
+ var resolve8 = __require("path").resolve;
165146
165146
  var send = require_send();
165147
165147
  var url3 = __require("url");
165148
165148
  module.exports = serveStatic;
@@ -165161,7 +165161,7 @@ var require_serve_static = __commonJS((exports, module) => {
165161
165161
  throw new TypeError("option setHeaders must be function");
165162
165162
  }
165163
165163
  opts.maxage = opts.maxage || opts.maxAge || 0;
165164
- opts.root = resolve9(root2);
165164
+ opts.root = resolve8(root2);
165165
165165
  var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener();
165166
165166
  return function serveStatic2(req, res, next) {
165167
165167
  if (req.method !== "GET" && req.method !== "HEAD") {
@@ -168535,8 +168535,8 @@ var require_executor = __commonJS((exports, module) => {
168535
168535
  }
168536
168536
  resetBuffer() {
168537
168537
  this.buffer = new Waterfall;
168538
- this.buffer.chain(new Promise((resolve9) => {
168539
- this._triggerBuffer = resolve9;
168538
+ this.buffer.chain(new Promise((resolve8) => {
168539
+ this._triggerBuffer = resolve8;
168540
168540
  }));
168541
168541
  if (this.ready)
168542
168542
  this._triggerBuffer();
@@ -169556,7 +169556,7 @@ var require_storage = __commonJS((exports, module) => {
169556
169556
  throw e8;
169557
169557
  }
169558
169558
  };
169559
- var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve9, reject) => {
169559
+ var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve8, reject) => {
169560
169560
  try {
169561
169561
  const stream = writeFileStream(filename, { mode });
169562
169562
  const readable2 = Readable6.from(lines);
@@ -169573,7 +169573,7 @@ var require_storage = __commonJS((exports, module) => {
169573
169573
  if (err)
169574
169574
  reject(err);
169575
169575
  else
169576
- resolve9();
169576
+ resolve8();
169577
169577
  });
169578
169578
  });
169579
169579
  readable2.on("error", (err) => {
@@ -169744,7 +169744,7 @@ var require_persistence = __commonJS((exports, module) => {
169744
169744
  return { data: tdata, indexes };
169745
169745
  }
169746
169746
  treatRawStreamAsync(rawStream) {
169747
- return new Promise((resolve9, reject) => {
169747
+ return new Promise((resolve8, reject) => {
169748
169748
  const dataById = {};
169749
169749
  const indexes = {};
169750
169750
  let corruptItems = 0;
@@ -169787,7 +169787,7 @@ var require_persistence = __commonJS((exports, module) => {
169787
169787
  }
169788
169788
  }
169789
169789
  const data = Object.values(dataById);
169790
- resolve9({ data, indexes });
169790
+ resolve8({ data, indexes });
169791
169791
  });
169792
169792
  lineStream.on("error", function(err) {
169793
169793
  reject(err, null);
@@ -195398,13 +195398,13 @@ var require_broadcast_operator = __commonJS((exports) => {
195398
195398
  return true;
195399
195399
  }
195400
195400
  emitWithAck(ev2, ...args) {
195401
- return new Promise((resolve9, reject) => {
195401
+ return new Promise((resolve8, reject) => {
195402
195402
  args.push((err, responses) => {
195403
195403
  if (err) {
195404
195404
  err.responses = responses;
195405
195405
  return reject(err);
195406
195406
  } else {
195407
- return resolve9(responses);
195407
+ return resolve8(responses);
195408
195408
  }
195409
195409
  });
195410
195410
  this.emit(ev2, ...args);
@@ -195592,12 +195592,12 @@ var require_socket2 = __commonJS((exports) => {
195592
195592
  }
195593
195593
  emitWithAck(ev2, ...args) {
195594
195594
  const withErr = this.flags.timeout !== undefined;
195595
- return new Promise((resolve9, reject) => {
195595
+ return new Promise((resolve8, reject) => {
195596
195596
  args.push((arg1, arg2) => {
195597
195597
  if (withErr) {
195598
- return arg1 ? reject(arg1) : resolve9(arg2);
195598
+ return arg1 ? reject(arg1) : resolve8(arg2);
195599
195599
  } else {
195600
- return resolve9(arg1);
195600
+ return resolve8(arg1);
195601
195601
  }
195602
195602
  });
195603
195603
  this.emit(ev2, ...args);
@@ -196052,13 +196052,13 @@ var require_namespace = __commonJS((exports) => {
196052
196052
  return true;
196053
196053
  }
196054
196054
  serverSideEmitWithAck(ev2, ...args) {
196055
- return new Promise((resolve9, reject) => {
196055
+ return new Promise((resolve8, reject) => {
196056
196056
  args.push((err, responses) => {
196057
196057
  if (err) {
196058
196058
  err.responses = responses;
196059
196059
  return reject(err);
196060
196060
  } else {
196061
- return resolve9(responses);
196061
+ return resolve8(responses);
196062
196062
  }
196063
196063
  });
196064
196064
  this.serverSideEmit(ev2, ...args);
@@ -196742,7 +196742,7 @@ var require_cluster_adapter = __commonJS((exports) => {
196742
196742
  return localSockets;
196743
196743
  }
196744
196744
  const requestId = randomId();
196745
- return new Promise((resolve9, reject) => {
196745
+ return new Promise((resolve8, reject) => {
196746
196746
  const timeout3 = setTimeout(() => {
196747
196747
  const storedRequest2 = this.requests.get(requestId);
196748
196748
  if (storedRequest2) {
@@ -196752,7 +196752,7 @@ var require_cluster_adapter = __commonJS((exports) => {
196752
196752
  }, opts.flags.timeout || DEFAULT_TIMEOUT);
196753
196753
  const storedRequest = {
196754
196754
  type: MessageType.FETCH_SOCKETS,
196755
- resolve: resolve9,
196755
+ resolve: resolve8,
196756
196756
  timeout: timeout3,
196757
196757
  current: 0,
196758
196758
  expected: expectedResponseCount,
@@ -196962,7 +196962,7 @@ var require_cluster_adapter = __commonJS((exports) => {
196962
196962
  return localSockets;
196963
196963
  }
196964
196964
  const requestId = randomId();
196965
- return new Promise((resolve9, reject) => {
196965
+ return new Promise((resolve8, reject) => {
196966
196966
  const timeout3 = setTimeout(() => {
196967
196967
  const storedRequest2 = this.customRequests.get(requestId);
196968
196968
  if (storedRequest2) {
@@ -196972,7 +196972,7 @@ var require_cluster_adapter = __commonJS((exports) => {
196972
196972
  }, opts.flags.timeout || DEFAULT_TIMEOUT);
196973
196973
  const storedRequest = {
196974
196974
  type: MessageType.FETCH_SOCKETS,
196975
- resolve: resolve9,
196975
+ resolve: resolve8,
196976
196976
  timeout: timeout3,
196977
196977
  missingUids: new Set([...this.nodesMap.keys()]),
196978
196978
  responses: localSockets
@@ -197701,13 +197701,13 @@ var require_dist4 = __commonJS((exports, module) => {
197701
197701
  this.engine.close();
197702
197702
  (0, uws_1.restoreAdapter)();
197703
197703
  if (this.httpServer) {
197704
- return new Promise((resolve9) => {
197704
+ return new Promise((resolve8) => {
197705
197705
  this.httpServer.close((err) => {
197706
197706
  fn9 && fn9(err);
197707
197707
  if (err) {
197708
197708
  debug("server was not running");
197709
197709
  }
197710
- resolve9();
197710
+ resolve8();
197711
197711
  });
197712
197712
  });
197713
197713
  } else {
@@ -215914,14 +215914,14 @@ var require_async_iterator = __commonJS((exports, module) => {
215914
215914
  };
215915
215915
  }
215916
215916
  function readAndResolve(iter) {
215917
- var resolve9 = iter[kLastResolve];
215918
- if (resolve9 !== null) {
215917
+ var resolve8 = iter[kLastResolve];
215918
+ if (resolve8 !== null) {
215919
215919
  var data = iter[kStream].read();
215920
215920
  if (data !== null) {
215921
215921
  iter[kLastPromise] = null;
215922
215922
  iter[kLastResolve] = null;
215923
215923
  iter[kLastReject] = null;
215924
- resolve9(createIterResult(data, false));
215924
+ resolve8(createIterResult(data, false));
215925
215925
  }
215926
215926
  }
215927
215927
  }
@@ -215929,13 +215929,13 @@ var require_async_iterator = __commonJS((exports, module) => {
215929
215929
  process.nextTick(readAndResolve, iter);
215930
215930
  }
215931
215931
  function wrapForNext(lastPromise, iter) {
215932
- return function(resolve9, reject) {
215932
+ return function(resolve8, reject) {
215933
215933
  lastPromise.then(function() {
215934
215934
  if (iter[kEnded]) {
215935
- resolve9(createIterResult(undefined, true));
215935
+ resolve8(createIterResult(undefined, true));
215936
215936
  return;
215937
215937
  }
215938
- iter[kHandlePromise](resolve9, reject);
215938
+ iter[kHandlePromise](resolve8, reject);
215939
215939
  }, reject);
215940
215940
  };
215941
215941
  }
@@ -215954,12 +215954,12 @@ var require_async_iterator = __commonJS((exports, module) => {
215954
215954
  return Promise.resolve(createIterResult(undefined, true));
215955
215955
  }
215956
215956
  if (this[kStream].destroyed) {
215957
- return new Promise(function(resolve9, reject) {
215957
+ return new Promise(function(resolve8, reject) {
215958
215958
  process.nextTick(function() {
215959
215959
  if (_this[kError]) {
215960
215960
  reject(_this[kError]);
215961
215961
  } else {
215962
- resolve9(createIterResult(undefined, true));
215962
+ resolve8(createIterResult(undefined, true));
215963
215963
  }
215964
215964
  });
215965
215965
  });
@@ -215982,13 +215982,13 @@ var require_async_iterator = __commonJS((exports, module) => {
215982
215982
  return this;
215983
215983
  }), _defineProperty(_Object$setPrototypeO, "return", function _return() {
215984
215984
  var _this2 = this;
215985
- return new Promise(function(resolve9, reject) {
215985
+ return new Promise(function(resolve8, reject) {
215986
215986
  _this2[kStream].destroy(null, function(err) {
215987
215987
  if (err) {
215988
215988
  reject(err);
215989
215989
  return;
215990
215990
  }
215991
- resolve9(createIterResult(undefined, true));
215991
+ resolve8(createIterResult(undefined, true));
215992
215992
  });
215993
215993
  });
215994
215994
  }), _Object$setPrototypeO), AsyncIteratorPrototype);
@@ -216010,15 +216010,15 @@ var require_async_iterator = __commonJS((exports, module) => {
216010
216010
  value: stream._readableState.endEmitted,
216011
216011
  writable: true
216012
216012
  }), _defineProperty(_Object$create, kHandlePromise, {
216013
- value: function value(resolve9, reject) {
216013
+ value: function value(resolve8, reject) {
216014
216014
  var data = iterator[kStream].read();
216015
216015
  if (data) {
216016
216016
  iterator[kLastPromise] = null;
216017
216017
  iterator[kLastResolve] = null;
216018
216018
  iterator[kLastReject] = null;
216019
- resolve9(createIterResult(data, false));
216019
+ resolve8(createIterResult(data, false));
216020
216020
  } else {
216021
- iterator[kLastResolve] = resolve9;
216021
+ iterator[kLastResolve] = resolve8;
216022
216022
  iterator[kLastReject] = reject;
216023
216023
  }
216024
216024
  },
@@ -216037,12 +216037,12 @@ var require_async_iterator = __commonJS((exports, module) => {
216037
216037
  iterator[kError] = err;
216038
216038
  return;
216039
216039
  }
216040
- var resolve9 = iterator[kLastResolve];
216041
- if (resolve9 !== null) {
216040
+ var resolve8 = iterator[kLastResolve];
216041
+ if (resolve8 !== null) {
216042
216042
  iterator[kLastPromise] = null;
216043
216043
  iterator[kLastResolve] = null;
216044
216044
  iterator[kLastReject] = null;
216045
- resolve9(createIterResult(undefined, true));
216045
+ resolve8(createIterResult(undefined, true));
216046
216046
  }
216047
216047
  iterator[kEnded] = true;
216048
216048
  });
@@ -216054,7 +216054,7 @@ var require_async_iterator = __commonJS((exports, module) => {
216054
216054
 
216055
216055
  // ../../node_modules/readable-stream/lib/internal/streams/from.js
216056
216056
  var require_from = __commonJS((exports, module) => {
216057
- function asyncGeneratorStep(gen, resolve9, reject, _next, _throw, key2, arg) {
216057
+ function asyncGeneratorStep(gen, resolve8, reject, _next, _throw, key2, arg) {
216058
216058
  try {
216059
216059
  var info = gen[key2](arg);
216060
216060
  var value = info.value;
@@ -216063,7 +216063,7 @@ var require_from = __commonJS((exports, module) => {
216063
216063
  return;
216064
216064
  }
216065
216065
  if (info.done) {
216066
- resolve9(value);
216066
+ resolve8(value);
216067
216067
  } else {
216068
216068
  Promise.resolve(value).then(_next, _throw);
216069
216069
  }
@@ -216071,13 +216071,13 @@ var require_from = __commonJS((exports, module) => {
216071
216071
  function _asyncToGenerator(fn9) {
216072
216072
  return function() {
216073
216073
  var self2 = this, args = arguments;
216074
- return new Promise(function(resolve9, reject) {
216074
+ return new Promise(function(resolve8, reject) {
216075
216075
  var gen = fn9.apply(self2, args);
216076
216076
  function _next(value) {
216077
- asyncGeneratorStep(gen, resolve9, reject, _next, _throw, "next", value);
216077
+ asyncGeneratorStep(gen, resolve8, reject, _next, _throw, "next", value);
216078
216078
  }
216079
216079
  function _throw(err) {
216080
- asyncGeneratorStep(gen, resolve9, reject, _next, _throw, "throw", err);
216080
+ asyncGeneratorStep(gen, resolve8, reject, _next, _throw, "throw", err);
216081
216081
  }
216082
216082
  _next(undefined);
216083
216083
  });
@@ -242002,7 +242002,6 @@ async function pushCustomOAuthSecret(provider, clientSecret) {
242002
242002
  });
242003
242003
  }
242004
242004
  // src/core/resources/auth-config/sso.ts
242005
- import { resolve } from "node:path";
242006
242005
  var KNOWN_SSO_PROVIDERS = [
242007
242006
  "google",
242008
242007
  "microsoft",
@@ -242084,45 +242083,6 @@ var ALL_SSO_SECRET_KEYS = [
242084
242083
  "sso_okta_domain",
242085
242084
  "sso_jwks_uri"
242086
242085
  ];
242087
- var FLAG_TO_SECRET_KEY = {
242088
- clientId: "sso_client_id",
242089
- clientSecret: "sso_client_secret",
242090
- scope: "sso_scope",
242091
- discoveryUrl: "sso_discovery_url",
242092
- tenantId: "sso_tenant_id",
242093
- oktaDomain: "sso_okta_domain",
242094
- authEndpoint: "sso_auth_endpoint",
242095
- tokenEndpoint: "sso_token_endpoint",
242096
- userinfoEndpoint: "sso_userinfo_endpoint",
242097
- jwksUri: "sso_jwks_uri",
242098
- ssoName: "sso_name"
242099
- };
242100
- var SSOConfigFileSchema = exports_external.object({
242101
- provider: exports_external.enum(["google", "microsoft", "github", "okta", "custom"]),
242102
- clientId: exports_external.string(),
242103
- clientSecret: exports_external.string(),
242104
- scope: exports_external.string().optional(),
242105
- discoveryUrl: exports_external.string().optional(),
242106
- tenantId: exports_external.string().optional(),
242107
- oktaDomain: exports_external.string().optional(),
242108
- authEndpoint: exports_external.string().optional(),
242109
- tokenEndpoint: exports_external.string().optional(),
242110
- userinfoEndpoint: exports_external.string().optional(),
242111
- jwksUri: exports_external.string().optional(),
242112
- ssoName: exports_external.string().optional()
242113
- });
242114
- async function loadSSOConfigFile(filePath) {
242115
- const resolved = resolve(filePath);
242116
- const raw2 = await readJsonFile(resolved);
242117
- const result = SSOConfigFileSchema.safeParse(raw2);
242118
- if (!result.success) {
242119
- const issues = result.error.issues.map((i) => ` ${i.path.join(".")}: ${i.message}`).join(`
242120
- `);
242121
- throw new InvalidInputError(`Invalid SSO config file ${filePath}:
242122
- ${issues}`);
242123
- }
242124
- return result.data;
242125
- }
242126
242086
  async function updateSSOConfig(authDir, provider, enable) {
242127
242087
  const current = await readAuthConfig(authDir) ?? DEFAULT_AUTH_CONFIG;
242128
242088
  const merged = {
@@ -242139,17 +242099,24 @@ async function updateSSOConfig(authDir, provider, enable) {
242139
242099
  await writeAuthConfig(authDir, merged);
242140
242100
  return merged;
242141
242101
  }
242102
+ var OPTION_TO_SECRET_KEY = {
242103
+ scope: "sso_scope",
242104
+ discoveryUrl: "sso_discovery_url",
242105
+ tenantId: "sso_tenant_id",
242106
+ oktaDomain: "sso_okta_domain",
242107
+ authEndpoint: "sso_auth_endpoint",
242108
+ tokenEndpoint: "sso_token_endpoint",
242109
+ userinfoEndpoint: "sso_userinfo_endpoint",
242110
+ jwksUri: "sso_jwks_uri"
242111
+ };
242142
242112
  function buildSSOSecrets(provider, options) {
242143
242113
  const schema3 = SSO_PROVIDER_SCHEMAS[provider];
242144
242114
  const secrets = {};
242145
242115
  secrets.sso_name = options.ssoName ?? provider;
242146
242116
  secrets.sso_client_id = options.clientId;
242147
242117
  secrets.sso_client_secret = options.clientSecret;
242148
- for (const [flagKey, secretKey] of Object.entries(FLAG_TO_SECRET_KEY)) {
242149
- if (flagKey === "clientId" || flagKey === "clientSecret" || flagKey === "ssoName") {
242150
- continue;
242151
- }
242152
- const value = options[flagKey];
242118
+ for (const [optionKey, secretKey] of Object.entries(OPTION_TO_SECRET_KEY)) {
242119
+ const value = options[optionKey];
242153
242120
  if (typeof value === "string" && value.length > 0) {
242154
242121
  secrets[secretKey] = value;
242155
242122
  }
@@ -242167,26 +242134,17 @@ function buildSSOSecrets(provider, options) {
242167
242134
  secrets[key] = val;
242168
242135
  }
242169
242136
  }
242170
- const errors3 = [];
242137
+ const missing = [];
242171
242138
  for (const key of schema3.requiredKeys) {
242172
242139
  if (!secrets[key]) {
242173
- const flagName = key.replace(/^sso_/, "").replace(/_/g, "-");
242174
- errors3.push(`Missing --${flagName} (required for ${provider})`);
242140
+ missing.push(key);
242175
242141
  }
242176
242142
  }
242177
242143
  if (provider === "custom" && !options.ssoName) {
242178
- errors3.push("Missing --sso-name (required for custom provider)");
242144
+ missing.push("sso_name");
242179
242145
  }
242180
- if (errors3.length > 0) {
242181
- throw new InvalidInputError(errors3.join(`
242182
- `), {
242183
- hints: [
242184
- {
242185
- message: `Example: base44 auth sso enable --provider ${provider} --client-id <id> --client-secret <secret>${provider === "microsoft" ? " --tenant-id <tid>" : ""}${provider === "okta" ? " --okta-domain <domain>" : ""}`,
242186
- command: `base44 auth sso enable --provider ${provider} --client-id <id> --client-secret <secret>`
242187
- }
242188
- ]
242189
- });
242146
+ if (missing.length > 0) {
242147
+ throw new InvalidInputError(`Missing required fields for ${provider}: ${missing.join(", ")}`);
242190
242148
  }
242191
242149
  return Object.fromEntries(Object.entries(secrets).filter(([, v]) => v.length > 0));
242192
242150
  }
@@ -243735,7 +243693,7 @@ async function createProjectFilesForExistingProject(options) {
243735
243693
  };
243736
243694
  }
243737
243695
  // src/core/project/deploy.ts
243738
- import { resolve as resolve2 } from "node:path";
243696
+ import { resolve } from "node:path";
243739
243697
 
243740
243698
  // src/core/site/api.ts
243741
243699
  async function uploadSite(archivePath) {
@@ -243824,7 +243782,7 @@ async function deployAll(projectData, options) {
243824
243782
  await authConfigResource.push(authConfig);
243825
243783
  const { results: connectorResults } = await pushConnectors(connectors);
243826
243784
  if (project.site?.outputDirectory) {
243827
- const outputDir = resolve2(project.root, project.site.outputDirectory);
243785
+ const outputDir = resolve(project.root, project.site.outputDirectory);
243828
243786
  const { appUrl } = await deploySite(outputDir);
243829
243787
  return { appUrl, connectorResults };
243830
243788
  }
@@ -245639,8 +245597,8 @@ var disconnect = (anyProcess) => {
245639
245597
  // ../../node_modules/execa/lib/utils/deferred.js
245640
245598
  var createDeferred = () => {
245641
245599
  const methods = {};
245642
- const promise2 = new Promise((resolve3, reject) => {
245643
- Object.assign(methods, { resolve: resolve3, reject });
245600
+ const promise2 = new Promise((resolve2, reject) => {
245601
+ Object.assign(methods, { resolve: resolve2, reject });
245644
245602
  });
245645
245603
  return Object.assign(promise2, methods);
245646
245604
  };
@@ -250004,11 +249962,11 @@ var addConcurrentStream = (concurrentStreams, stream, waitName) => {
250004
249962
  const promises = weakMap.get(stream);
250005
249963
  const promise2 = createDeferred();
250006
249964
  promises.push(promise2);
250007
- const resolve3 = promise2.resolve.bind(promise2);
250008
- return { resolve: resolve3, promises };
249965
+ const resolve2 = promise2.resolve.bind(promise2);
249966
+ return { resolve: resolve2, promises };
250009
249967
  };
250010
- var waitForConcurrentStreams = async ({ resolve: resolve3, promises }, subprocess) => {
250011
- resolve3();
249968
+ var waitForConcurrentStreams = async ({ resolve: resolve2, promises }, subprocess) => {
249969
+ resolve2();
250012
249970
  const [isSubprocessExit] = await Promise.race([
250013
249971
  Promise.allSettled([true, subprocess]),
250014
249972
  Promise.all([false, ...promises])
@@ -251135,7 +251093,7 @@ function getAuthPushCommand() {
251135
251093
  }
251136
251094
 
251137
251095
  // src/cli/commands/auth/social-login.ts
251138
- import { dirname as dirname10, join as join15, resolve as resolve3 } from "node:path";
251096
+ import { dirname as dirname10, join as join15, resolve as resolve2 } from "node:path";
251139
251097
  var PROVIDER_LABELS = {
251140
251098
  google: "Google",
251141
251099
  microsoft: "Microsoft",
@@ -251175,7 +251133,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
251175
251133
  let clientSecret;
251176
251134
  if (useCustomOAuth && oauth && oauthCli && hasSecretOptions(options)) {
251177
251135
  if (options.envFile) {
251178
- const secrets = await parseEnvFile(resolve3(options.envFile));
251136
+ const secrets = await parseEnvFile(resolve2(options.envFile));
251179
251137
  const value = secrets[oauthCli.envVar];
251180
251138
  if (!value) {
251181
251139
  throw new InvalidInputError(`Key "${oauthCli.envVar}" not found in ${options.envFile}.`);
@@ -251231,7 +251189,33 @@ function getSocialLoginCommand() {
251231
251189
  }
251232
251190
 
251233
251191
  // src/cli/commands/auth/sso.ts
251234
- import { dirname as dirname11, join as join16, resolve as resolve4 } from "node:path";
251192
+ import { dirname as dirname11, join as join16, resolve as resolve3 } from "node:path";
251193
+ var SSOConfigFileSchema = exports_external.object({
251194
+ provider: exports_external.enum(["google", "microsoft", "github", "okta", "custom"]),
251195
+ clientId: exports_external.string(),
251196
+ clientSecret: exports_external.string(),
251197
+ scope: exports_external.string().optional(),
251198
+ discoveryUrl: exports_external.string().optional(),
251199
+ tenantId: exports_external.string().optional(),
251200
+ oktaDomain: exports_external.string().optional(),
251201
+ authEndpoint: exports_external.string().optional(),
251202
+ tokenEndpoint: exports_external.string().optional(),
251203
+ userinfoEndpoint: exports_external.string().optional(),
251204
+ jwksUri: exports_external.string().optional(),
251205
+ ssoName: exports_external.string().optional()
251206
+ });
251207
+ async function loadSSOConfigFile(filePath) {
251208
+ const resolved = resolve3(filePath);
251209
+ const raw2 = await readJsonFile(resolved);
251210
+ const result = SSOConfigFileSchema.safeParse(raw2);
251211
+ if (!result.success) {
251212
+ const issues = result.error.issues.map((i2) => ` ${i2.path.join(".")}: ${i2.message}`).join(`
251213
+ `);
251214
+ throw new InvalidInputError(`Invalid SSO config file ${filePath}:
251215
+ ${issues}`);
251216
+ }
251217
+ return result.data;
251218
+ }
251235
251219
  function mergeFileWithFlags(fileConfig, options) {
251236
251220
  return {
251237
251221
  provider: options.provider ?? fileConfig.provider,
@@ -251256,7 +251240,7 @@ function validateProvider(provider) {
251256
251240
  hints: [
251257
251241
  {
251258
251242
  message: `Valid providers: ${KNOWN_SSO_PROVIDERS.join(", ")}`,
251259
- command: "base44 auth sso enable --provider google --client-id <id> --client-secret <secret>"
251243
+ command: "base44 auth sso enable --provider <provider> --client-id <id> --client-secret <secret>"
251260
251244
  }
251261
251245
  ]
251262
251246
  });
@@ -251285,7 +251269,7 @@ async function ssoEnableAction({ isNonInteractive, log, runTask: runTask2 }, opt
251285
251269
  }
251286
251270
  let clientSecret;
251287
251271
  if (merged.envFile && !merged.clientSecret) {
251288
- const secrets2 = await parseEnvFile(resolve4(merged.envFile));
251272
+ const secrets2 = await parseEnvFile(resolve3(merged.envFile));
251289
251273
  const value = secrets2.sso_client_secret;
251290
251274
  if (!value) {
251291
251275
  throw new InvalidInputError(`Key "sso_client_secret" not found in ${merged.envFile}.`);
@@ -251962,19 +251946,19 @@ var baseOpen = async (options) => {
251962
251946
  }
251963
251947
  const subprocess = childProcess3.spawn(command2, cliArguments, childProcessOptions);
251964
251948
  if (options.wait) {
251965
- return new Promise((resolve5, reject) => {
251949
+ return new Promise((resolve4, reject) => {
251966
251950
  subprocess.once("error", reject);
251967
251951
  subprocess.once("close", (exitCode) => {
251968
251952
  if (!options.allowNonzeroExitCode && exitCode !== 0) {
251969
251953
  reject(new Error(`Exited with code ${exitCode}`));
251970
251954
  return;
251971
251955
  }
251972
- resolve5(subprocess);
251956
+ resolve4(subprocess);
251973
251957
  });
251974
251958
  });
251975
251959
  }
251976
251960
  if (isFallbackAttempt) {
251977
- return new Promise((resolve5, reject) => {
251961
+ return new Promise((resolve4, reject) => {
251978
251962
  subprocess.once("error", reject);
251979
251963
  subprocess.once("spawn", () => {
251980
251964
  subprocess.once("close", (exitCode) => {
@@ -251984,17 +251968,17 @@ var baseOpen = async (options) => {
251984
251968
  return;
251985
251969
  }
251986
251970
  subprocess.unref();
251987
- resolve5(subprocess);
251971
+ resolve4(subprocess);
251988
251972
  });
251989
251973
  });
251990
251974
  });
251991
251975
  }
251992
251976
  subprocess.unref();
251993
- return new Promise((resolve5, reject) => {
251977
+ return new Promise((resolve4, reject) => {
251994
251978
  subprocess.once("error", reject);
251995
251979
  subprocess.once("spawn", () => {
251996
251980
  subprocess.off("error", reject);
251997
- resolve5(subprocess);
251981
+ resolve4(subprocess);
251998
251982
  });
251999
251983
  });
252000
251984
  };
@@ -252535,7 +252519,7 @@ function getFunctionsCommand() {
252535
252519
  }
252536
252520
 
252537
252521
  // src/cli/commands/project/create.ts
252538
- import { basename as basename3, join as join19, resolve as resolve5 } from "node:path";
252522
+ import { basename as basename3, join as join19, resolve as resolve4 } from "node:path";
252539
252523
  var import_kebabCase = __toESM(require_kebabCase(), 1);
252540
252524
  var DEFAULT_TEMPLATE_ID = "backend-only";
252541
252525
  async function getTemplateById(templateId) {
@@ -252600,7 +252584,7 @@ async function createInteractive(options, ctx) {
252600
252584
  }, ctx);
252601
252585
  }
252602
252586
  async function createNonInteractive(options, ctx) {
252603
- ctx.log.info(`Creating a new project at ${resolve5(options.path)}`);
252587
+ ctx.log.info(`Creating a new project at ${resolve4(options.path)}`);
252604
252588
  const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
252605
252589
  return await executeCreate({
252606
252590
  template: template2,
@@ -252621,7 +252605,7 @@ async function executeCreate({
252621
252605
  isInteractive
252622
252606
  }, { log, runTask: runTask2 }) {
252623
252607
  const name2 = rawName.trim();
252624
- const resolvedPath = resolve5(projectPath);
252608
+ const resolvedPath = resolve4(projectPath);
252625
252609
  const { projectId } = await runTask2("Setting up your project...", async () => {
252626
252610
  return await createProjectFiles({
252627
252611
  name: name2,
@@ -253137,7 +253121,7 @@ function getSecretsListCommand() {
253137
253121
  }
253138
253122
 
253139
253123
  // src/cli/commands/secrets/set.ts
253140
- import { resolve as resolve6 } from "node:path";
253124
+ import { resolve as resolve5 } from "node:path";
253141
253125
  function parseEntries(entries) {
253142
253126
  const secrets = {};
253143
253127
  for (const entry of entries) {
@@ -253168,7 +253152,7 @@ async function setSecretsAction({ log, runTask: runTask2 }, entries, options) {
253168
253152
  validateInput(entries, options);
253169
253153
  let secrets;
253170
253154
  if (options.envFile) {
253171
- secrets = await parseEnvFile(resolve6(options.envFile));
253155
+ secrets = await parseEnvFile(resolve5(options.envFile));
253172
253156
  if (Object.keys(secrets).length === 0) {
253173
253157
  throw new InvalidInputError("The env file contains no valid KEY=VALUE entries.");
253174
253158
  }
@@ -253197,7 +253181,7 @@ function getSecretsCommand() {
253197
253181
  }
253198
253182
 
253199
253183
  // src/cli/commands/site/deploy.ts
253200
- import { resolve as resolve7 } from "node:path";
253184
+ import { resolve as resolve6 } from "node:path";
253201
253185
  async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
253202
253186
  if (isNonInteractive && !options.yes) {
253203
253187
  throw new InvalidInputError("--yes is required in non-interactive mode");
@@ -253212,7 +253196,7 @@ async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
253212
253196
  ]
253213
253197
  });
253214
253198
  }
253215
- const outputDir = resolve7(project2.root, project2.site.outputDirectory);
253199
+ const outputDir = resolve6(project2.root, project2.site.outputDirectory);
253216
253200
  if (!options.yes) {
253217
253201
  const shouldDeploy = await Re({
253218
253202
  message: `Deploy site from ${project2.site.outputDirectory}?`
@@ -253413,14 +253397,14 @@ var getLocalHosts = () => {
253413
253397
  }
253414
253398
  return results;
253415
253399
  };
253416
- var checkAvailablePort = (options8) => new Promise((resolve9, reject) => {
253400
+ var checkAvailablePort = (options8) => new Promise((resolve8, reject) => {
253417
253401
  const server = net.createServer();
253418
253402
  server.unref();
253419
253403
  server.on("error", reject);
253420
253404
  server.listen(options8, () => {
253421
253405
  const { port } = server.address();
253422
253406
  server.close(() => {
253423
- resolve9(port);
253407
+ resolve8(port);
253424
253408
  });
253425
253409
  });
253426
253410
  });
@@ -253674,7 +253658,7 @@ class FunctionManager {
253674
253658
  });
253675
253659
  }
253676
253660
  waitForReady(name2, runningFunc) {
253677
- return new Promise((resolve9, reject) => {
253661
+ return new Promise((resolve8, reject) => {
253678
253662
  runningFunc.process.on("exit", (code2) => {
253679
253663
  if (!runningFunc.ready) {
253680
253664
  clearTimeout(timeout3);
@@ -253697,7 +253681,7 @@ class FunctionManager {
253697
253681
  runningFunc.ready = true;
253698
253682
  clearTimeout(timeout3);
253699
253683
  runningFunc.process.stdout?.off("data", onData);
253700
- resolve9(runningFunc.port);
253684
+ resolve8(runningFunc.port);
253701
253685
  }
253702
253686
  };
253703
253687
  runningFunc.process.stdout?.on("data", onData);
@@ -255337,7 +255321,7 @@ class NodeFsHandler {
255337
255321
  this._addToNodeFs(path19, initialAdd, wh2, depth + 1);
255338
255322
  }
255339
255323
  }).on(EV.ERROR, this._boundHandleError);
255340
- return new Promise((resolve10, reject) => {
255324
+ return new Promise((resolve9, reject) => {
255341
255325
  if (!stream)
255342
255326
  return reject();
255343
255327
  stream.once(STR_END, () => {
@@ -255346,7 +255330,7 @@ class NodeFsHandler {
255346
255330
  return;
255347
255331
  }
255348
255332
  const wasThrottled = throttler ? throttler.clear() : false;
255349
- resolve10(undefined);
255333
+ resolve9(undefined);
255350
255334
  previous.getChildren().filter((item) => {
255351
255335
  return item !== directory && !current.has(item);
255352
255336
  }).forEach((item) => {
@@ -256251,7 +256235,7 @@ async function createDevServer(options8) {
256251
256235
  devLogger.warn(`"${req.originalUrl}" is not supported in local development, passing call to production`);
256252
256236
  remoteProxy(req, res, next);
256253
256237
  });
256254
- const server = await new Promise((resolve11, reject) => {
256238
+ const server = await new Promise((resolve10, reject) => {
256255
256239
  const s5 = app.listen(port, "127.0.0.1", (err) => {
256256
256240
  if (err) {
256257
256241
  if ("code" in err && err.code === "EADDRINUSE") {
@@ -256260,7 +256244,7 @@ async function createDevServer(options8) {
256260
256244
  reject(err);
256261
256245
  }
256262
256246
  } else {
256263
- resolve11(s5);
256247
+ resolve10(s5);
256264
256248
  }
256265
256249
  });
256266
256250
  });
@@ -256376,13 +256360,13 @@ async function runScript(options8) {
256376
256360
  }
256377
256361
  // src/cli/commands/exec.ts
256378
256362
  function readStdin2() {
256379
- return new Promise((resolve11, reject) => {
256363
+ return new Promise((resolve10, reject) => {
256380
256364
  let data = "";
256381
256365
  process.stdin.setEncoding("utf-8");
256382
256366
  process.stdin.on("data", (chunk) => {
256383
256367
  data += chunk;
256384
256368
  });
256385
- process.stdin.on("end", () => resolve11(data));
256369
+ process.stdin.on("end", () => resolve10(data));
256386
256370
  process.stdin.on("error", reject);
256387
256371
  });
256388
256372
  }
@@ -256421,7 +256405,7 @@ Examples:
256421
256405
  }
256422
256406
 
256423
256407
  // src/cli/commands/project/eject.ts
256424
- import { resolve as resolve11 } from "node:path";
256408
+ import { resolve as resolve10 } from "node:path";
256425
256409
  var import_kebabCase2 = __toESM(require_kebabCase(), 1);
256426
256410
  async function eject(ctx, options8) {
256427
256411
  const { log, runTask: runTask2, isNonInteractive } = ctx;
@@ -256477,7 +256461,7 @@ async function eject(ctx, options8) {
256477
256461
  Ne("Operation cancelled.");
256478
256462
  throw new CLIExitError(0);
256479
256463
  }
256480
- const resolvedPath = resolve11(selectedPath);
256464
+ const resolvedPath = resolve10(selectedPath);
256481
256465
  await runTask2("Downloading your project's code...", async (updateMessage) => {
256482
256466
  await createProjectFilesForExistingProject({
256483
256467
  projectId,
@@ -258845,14 +258829,14 @@ async function addSourceContext(frames) {
258845
258829
  return frames;
258846
258830
  }
258847
258831
  function getContextLinesFromFile(path19, ranges, output) {
258848
- return new Promise((resolve12) => {
258832
+ return new Promise((resolve11) => {
258849
258833
  const stream = createReadStream2(path19);
258850
258834
  const lineReaded = createInterface2({
258851
258835
  input: stream
258852
258836
  });
258853
258837
  function destroyStreamAndResolve() {
258854
258838
  stream.destroy();
258855
- resolve12();
258839
+ resolve11();
258856
258840
  }
258857
258841
  let lineNumber = 0;
258858
258842
  let currentRangeIndex = 0;
@@ -259964,15 +259948,15 @@ class PostHogBackendClient extends PostHogCoreStateless {
259964
259948
  return true;
259965
259949
  if (this.featureFlagsPoller === undefined)
259966
259950
  return false;
259967
- return new Promise((resolve12) => {
259951
+ return new Promise((resolve11) => {
259968
259952
  const timeout3 = setTimeout(() => {
259969
259953
  cleanup();
259970
- resolve12(false);
259954
+ resolve11(false);
259971
259955
  }, timeoutMs);
259972
259956
  const cleanup = this._events.on("localEvaluationFlagsLoaded", (count2) => {
259973
259957
  clearTimeout(timeout3);
259974
259958
  cleanup();
259975
- resolve12(count2 > 0);
259959
+ resolve11(count2 > 0);
259976
259960
  });
259977
259961
  });
259978
259962
  }
@@ -260795,4 +260779,4 @@ export {
260795
260779
  CLIExitError
260796
260780
  };
260797
260781
 
260798
- //# debugId=E8C14128CCFF21AF64756E2164756E21
260782
+ //# debugId=C23C26DBDA6AA44264756E2164756E21