@base44-preview/cli 0.0.50-pr.484.031bd45 → 0.0.50-pr.484.42693d8

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 resolve = path11.resolve;
8939
- var includePath = resolve(isDir ? filename : dirname6(filename), name2);
8938
+ var resolve2 = path11.resolve;
8939
+ var includePath = resolve2(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(resolve, reject) {
9014
+ return new exports.promiseImpl(function(resolve2, reject) {
9015
9015
  try {
9016
9016
  result = handleCache(options)(data);
9017
- resolve(result);
9017
+ resolve2(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(resolve2, reject) {
12455
+ return new Promise(function(resolve3, reject) {
12456
12456
  isexe(path11, options || {}, function(er, is) {
12457
12457
  if (er) {
12458
12458
  reject(er);
12459
12459
  } else {
12460
- resolve2(is);
12460
+ resolve3(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((resolve2, reject) => {
12522
+ const step = (i) => new Promise((resolve3, reject) => {
12523
12523
  if (i === pathEnv.length)
12524
- return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
12524
+ return opt.all && found.length ? resolve3(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
- resolve2(subStep(p, i, 0));
12529
+ resolve3(subStep(p, i, 0));
12530
12530
  });
12531
- const subStep = (p, i, ii) => new Promise((resolve2, reject) => {
12531
+ const subStep = (p, i, ii) => new Promise((resolve3, reject) => {
12532
12532
  if (ii === pathExt.length)
12533
- return resolve2(step(i + 1));
12533
+ return resolve3(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 resolve2(p + ext);
12540
+ return resolve3(p + ext);
12541
12541
  }
12542
- return resolve2(subStep(p, i, ii + 1));
12542
+ return resolve3(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(resolve8) {
134618
- resolve8(value);
134617
+ return value instanceof P9 ? value : new P9(function(resolve9) {
134618
+ resolve9(value);
134619
134619
  });
134620
134620
  }
134621
- return new (P9 || (P9 = Promise))(function(resolve8, reject) {
134621
+ return new (P9 || (P9 = Promise))(function(resolve9, 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 ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
134637
+ result.done ? resolve9(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 = resolve8;
139290
+ exports.resolve = resolve9;
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 resolve8(from, to5) {
139318
+ function resolve9(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 resolve8(from, to5);
139454
+ return resolve9(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((resolve8, reject) => {
140130
+ return new Promise((resolve9, 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
- resolve8({
140158
+ resolve9({
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(resolve8) {
141492
- resolve8(value);
141491
+ return value instanceof P9 ? value : new P9(function(resolve9) {
141492
+ resolve9(value);
141493
141493
  });
141494
141494
  }
141495
- return new (P9 || (P9 = Promise))(function(resolve8, reject) {
141495
+ return new (P9 || (P9 = Promise))(function(resolve9, 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 ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
141511
+ result.done ? resolve9(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(resolve8) {
141633
- resolve8(value);
141632
+ return value instanceof P9 ? value : new P9(function(resolve9) {
141633
+ resolve9(value);
141634
141634
  });
141635
141635
  }
141636
- return new (P9 || (P9 = Promise))(function(resolve8, reject) {
141636
+ return new (P9 || (P9 = Promise))(function(resolve9, 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 ? resolve8(result.value) : adopt(result.value).then(fulfilled, rejected);
141652
+ result.done ? resolve9(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(resolve8, reject) {
147277
+ return new Promise(function executor(resolve9, reject) {
147278
147278
  readStream(stream, encoding, length, limit, function onRead2(err, buf) {
147279
147279
  if (err)
147280
147280
  return reject(err);
147281
- resolve8(buf);
147281
+ resolve9(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 resolve8 = path18.resolve;
160406
+ var resolve9 = 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 = resolve8(root2, name2);
160440
+ var loc = resolve9(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 resolve9(dir, file2) {
160465
+ View.prototype.resolve = function resolve10(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 resolve8 = __require("node:path").resolve;
162624
+ var resolve9 = __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", resolve8("views"));
162678
+ this.set("views", resolve9("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 resolve8 = path18.resolve;
164169
+ var resolve9 = 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 ? resolve8(opts.root) : null;
164198
+ this._root = opts.root ? resolve9(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 = resolve8(path19);
164347
+ path19 = resolve9(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 resolve8 = path18.resolve;
164675
+ var resolve9 = 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 ? resolve8(path19) : path19;
164884
+ var fullPath = !opts.root ? resolve9(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 resolve8 = __require("path").resolve;
165145
+ var resolve9 = __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 = resolve8(root2);
165164
+ opts.root = resolve9(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((resolve8) => {
168539
- this._triggerBuffer = resolve8;
168538
+ this.buffer.chain(new Promise((resolve9) => {
168539
+ this._triggerBuffer = resolve9;
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((resolve8, reject) => {
169559
+ var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve9, 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
- resolve8();
169576
+ resolve9();
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((resolve8, reject) => {
169747
+ return new Promise((resolve9, 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
- resolve8({ data, indexes });
169790
+ resolve9({ 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((resolve8, reject) => {
195401
+ return new Promise((resolve9, 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 resolve8(responses);
195407
+ return resolve9(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((resolve8, reject) => {
195595
+ return new Promise((resolve9, reject) => {
195596
195596
  args.push((arg1, arg2) => {
195597
195597
  if (withErr) {
195598
- return arg1 ? reject(arg1) : resolve8(arg2);
195598
+ return arg1 ? reject(arg1) : resolve9(arg2);
195599
195599
  } else {
195600
- return resolve8(arg1);
195600
+ return resolve9(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((resolve8, reject) => {
196055
+ return new Promise((resolve9, 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 resolve8(responses);
196061
+ return resolve9(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((resolve8, reject) => {
196745
+ return new Promise((resolve9, 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: resolve8,
196755
+ resolve: resolve9,
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((resolve8, reject) => {
196965
+ return new Promise((resolve9, 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: resolve8,
196975
+ resolve: resolve9,
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((resolve8) => {
197704
+ return new Promise((resolve9) => {
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
- resolve8();
197710
+ resolve9();
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 resolve8 = iter[kLastResolve];
215918
- if (resolve8 !== null) {
215917
+ var resolve9 = iter[kLastResolve];
215918
+ if (resolve9 !== 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
- resolve8(createIterResult(data, false));
215924
+ resolve9(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(resolve8, reject) {
215932
+ return function(resolve9, reject) {
215933
215933
  lastPromise.then(function() {
215934
215934
  if (iter[kEnded]) {
215935
- resolve8(createIterResult(undefined, true));
215935
+ resolve9(createIterResult(undefined, true));
215936
215936
  return;
215937
215937
  }
215938
- iter[kHandlePromise](resolve8, reject);
215938
+ iter[kHandlePromise](resolve9, 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(resolve8, reject) {
215957
+ return new Promise(function(resolve9, reject) {
215958
215958
  process.nextTick(function() {
215959
215959
  if (_this[kError]) {
215960
215960
  reject(_this[kError]);
215961
215961
  } else {
215962
- resolve8(createIterResult(undefined, true));
215962
+ resolve9(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(resolve8, reject) {
215985
+ return new Promise(function(resolve9, reject) {
215986
215986
  _this2[kStream].destroy(null, function(err) {
215987
215987
  if (err) {
215988
215988
  reject(err);
215989
215989
  return;
215990
215990
  }
215991
- resolve8(createIterResult(undefined, true));
215991
+ resolve9(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(resolve8, reject) {
216013
+ value: function value(resolve9, 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
- resolve8(createIterResult(data, false));
216019
+ resolve9(createIterResult(data, false));
216020
216020
  } else {
216021
- iterator[kLastResolve] = resolve8;
216021
+ iterator[kLastResolve] = resolve9;
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 resolve8 = iterator[kLastResolve];
216041
- if (resolve8 !== null) {
216040
+ var resolve9 = iterator[kLastResolve];
216041
+ if (resolve9 !== null) {
216042
216042
  iterator[kLastPromise] = null;
216043
216043
  iterator[kLastResolve] = null;
216044
216044
  iterator[kLastReject] = null;
216045
- resolve8(createIterResult(undefined, true));
216045
+ resolve9(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, resolve8, reject, _next, _throw, key2, arg) {
216057
+ function asyncGeneratorStep(gen, resolve9, 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
- resolve8(value);
216066
+ resolve9(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(resolve8, reject) {
216074
+ return new Promise(function(resolve9, reject) {
216075
216075
  var gen = fn9.apply(self2, args);
216076
216076
  function _next(value) {
216077
- asyncGeneratorStep(gen, resolve8, reject, _next, _throw, "next", value);
216077
+ asyncGeneratorStep(gen, resolve9, reject, _next, _throw, "next", value);
216078
216078
  }
216079
216079
  function _throw(err) {
216080
- asyncGeneratorStep(gen, resolve8, reject, _next, _throw, "throw", err);
216080
+ asyncGeneratorStep(gen, resolve9, reject, _next, _throw, "throw", err);
216081
216081
  }
216082
216082
  _next(undefined);
216083
216083
  });
@@ -242002,6 +242002,7 @@ async function pushCustomOAuthSecret(provider, clientSecret) {
242002
242002
  });
242003
242003
  }
242004
242004
  // src/core/resources/auth-config/sso.ts
242005
+ import { resolve } from "node:path";
242005
242006
  var KNOWN_SSO_PROVIDERS = [
242006
242007
  "google",
242007
242008
  "microsoft",
@@ -242083,6 +242084,45 @@ var ALL_SSO_SECRET_KEYS = [
242083
242084
  "sso_okta_domain",
242084
242085
  "sso_jwks_uri"
242085
242086
  ];
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
+ }
242086
242126
  async function updateSSOConfig(authDir, provider, enable) {
242087
242127
  const current = await readAuthConfig(authDir) ?? DEFAULT_AUTH_CONFIG;
242088
242128
  const merged = {
@@ -242099,24 +242139,17 @@ async function updateSSOConfig(authDir, provider, enable) {
242099
242139
  await writeAuthConfig(authDir, merged);
242100
242140
  return merged;
242101
242141
  }
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
- };
242112
242142
  function buildSSOSecrets(provider, options) {
242113
242143
  const schema3 = SSO_PROVIDER_SCHEMAS[provider];
242114
242144
  const secrets = {};
242115
242145
  secrets.sso_name = options.ssoName ?? provider;
242116
242146
  secrets.sso_client_id = options.clientId;
242117
242147
  secrets.sso_client_secret = options.clientSecret;
242118
- for (const [optionKey, secretKey] of Object.entries(OPTION_TO_SECRET_KEY)) {
242119
- const value = options[optionKey];
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];
242120
242153
  if (typeof value === "string" && value.length > 0) {
242121
242154
  secrets[secretKey] = value;
242122
242155
  }
@@ -242134,17 +242167,26 @@ function buildSSOSecrets(provider, options) {
242134
242167
  secrets[key] = val;
242135
242168
  }
242136
242169
  }
242137
- const missing = [];
242170
+ const errors3 = [];
242138
242171
  for (const key of schema3.requiredKeys) {
242139
242172
  if (!secrets[key]) {
242140
- missing.push(key);
242173
+ const flagName = key.replace(/^sso_/, "").replace(/_/g, "-");
242174
+ errors3.push(`Missing --${flagName} (required for ${provider})`);
242141
242175
  }
242142
242176
  }
242143
242177
  if (provider === "custom" && !options.ssoName) {
242144
- missing.push("sso_name");
242178
+ errors3.push("Missing --sso-name (required for custom provider)");
242145
242179
  }
242146
- if (missing.length > 0) {
242147
- throw new InvalidInputError(`Missing required fields for ${provider}: ${missing.join(", ")}`);
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
+ });
242148
242190
  }
242149
242191
  return Object.fromEntries(Object.entries(secrets).filter(([, v]) => v.length > 0));
242150
242192
  }
@@ -243693,7 +243735,7 @@ async function createProjectFilesForExistingProject(options) {
243693
243735
  };
243694
243736
  }
243695
243737
  // src/core/project/deploy.ts
243696
- import { resolve } from "node:path";
243738
+ import { resolve as resolve2 } from "node:path";
243697
243739
 
243698
243740
  // src/core/site/api.ts
243699
243741
  async function uploadSite(archivePath) {
@@ -243782,7 +243824,7 @@ async function deployAll(projectData, options) {
243782
243824
  await authConfigResource.push(authConfig);
243783
243825
  const { results: connectorResults } = await pushConnectors(connectors);
243784
243826
  if (project.site?.outputDirectory) {
243785
- const outputDir = resolve(project.root, project.site.outputDirectory);
243827
+ const outputDir = resolve2(project.root, project.site.outputDirectory);
243786
243828
  const { appUrl } = await deploySite(outputDir);
243787
243829
  return { appUrl, connectorResults };
243788
243830
  }
@@ -245597,8 +245639,8 @@ var disconnect = (anyProcess) => {
245597
245639
  // ../../node_modules/execa/lib/utils/deferred.js
245598
245640
  var createDeferred = () => {
245599
245641
  const methods = {};
245600
- const promise2 = new Promise((resolve2, reject) => {
245601
- Object.assign(methods, { resolve: resolve2, reject });
245642
+ const promise2 = new Promise((resolve3, reject) => {
245643
+ Object.assign(methods, { resolve: resolve3, reject });
245602
245644
  });
245603
245645
  return Object.assign(promise2, methods);
245604
245646
  };
@@ -249962,11 +250004,11 @@ var addConcurrentStream = (concurrentStreams, stream, waitName) => {
249962
250004
  const promises = weakMap.get(stream);
249963
250005
  const promise2 = createDeferred();
249964
250006
  promises.push(promise2);
249965
- const resolve2 = promise2.resolve.bind(promise2);
249966
- return { resolve: resolve2, promises };
250007
+ const resolve3 = promise2.resolve.bind(promise2);
250008
+ return { resolve: resolve3, promises };
249967
250009
  };
249968
- var waitForConcurrentStreams = async ({ resolve: resolve2, promises }, subprocess) => {
249969
- resolve2();
250010
+ var waitForConcurrentStreams = async ({ resolve: resolve3, promises }, subprocess) => {
250011
+ resolve3();
249970
250012
  const [isSubprocessExit] = await Promise.race([
249971
250013
  Promise.allSettled([true, subprocess]),
249972
250014
  Promise.all([false, ...promises])
@@ -251093,7 +251135,7 @@ function getAuthPushCommand() {
251093
251135
  }
251094
251136
 
251095
251137
  // src/cli/commands/auth/social-login.ts
251096
- import { dirname as dirname10, join as join15, resolve as resolve2 } from "node:path";
251138
+ import { dirname as dirname10, join as join15, resolve as resolve3 } from "node:path";
251097
251139
  var PROVIDER_LABELS = {
251098
251140
  google: "Google",
251099
251141
  microsoft: "Microsoft",
@@ -251133,7 +251175,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
251133
251175
  let clientSecret;
251134
251176
  if (useCustomOAuth && oauth && oauthCli && hasSecretOptions(options)) {
251135
251177
  if (options.envFile) {
251136
- const secrets = await parseEnvFile(resolve2(options.envFile));
251178
+ const secrets = await parseEnvFile(resolve3(options.envFile));
251137
251179
  const value = secrets[oauthCli.envVar];
251138
251180
  if (!value) {
251139
251181
  throw new InvalidInputError(`Key "${oauthCli.envVar}" not found in ${options.envFile}.`);
@@ -251189,33 +251231,7 @@ function getSocialLoginCommand() {
251189
251231
  }
251190
251232
 
251191
251233
  // src/cli/commands/auth/sso.ts
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
- }
251234
+ import { dirname as dirname11, join as join16, resolve as resolve4 } from "node:path";
251219
251235
  function mergeFileWithFlags(fileConfig, options) {
251220
251236
  return {
251221
251237
  provider: options.provider ?? fileConfig.provider,
@@ -251269,7 +251285,7 @@ async function ssoEnableAction({ isNonInteractive, log, runTask: runTask2 }, opt
251269
251285
  }
251270
251286
  let clientSecret;
251271
251287
  if (merged.envFile && !merged.clientSecret) {
251272
- const secrets2 = await parseEnvFile(resolve3(merged.envFile));
251288
+ const secrets2 = await parseEnvFile(resolve4(merged.envFile));
251273
251289
  const value = secrets2.sso_client_secret;
251274
251290
  if (!value) {
251275
251291
  throw new InvalidInputError(`Key "sso_client_secret" not found in ${merged.envFile}.`);
@@ -251946,19 +251962,19 @@ var baseOpen = async (options) => {
251946
251962
  }
251947
251963
  const subprocess = childProcess3.spawn(command2, cliArguments, childProcessOptions);
251948
251964
  if (options.wait) {
251949
- return new Promise((resolve4, reject) => {
251965
+ return new Promise((resolve5, reject) => {
251950
251966
  subprocess.once("error", reject);
251951
251967
  subprocess.once("close", (exitCode) => {
251952
251968
  if (!options.allowNonzeroExitCode && exitCode !== 0) {
251953
251969
  reject(new Error(`Exited with code ${exitCode}`));
251954
251970
  return;
251955
251971
  }
251956
- resolve4(subprocess);
251972
+ resolve5(subprocess);
251957
251973
  });
251958
251974
  });
251959
251975
  }
251960
251976
  if (isFallbackAttempt) {
251961
- return new Promise((resolve4, reject) => {
251977
+ return new Promise((resolve5, reject) => {
251962
251978
  subprocess.once("error", reject);
251963
251979
  subprocess.once("spawn", () => {
251964
251980
  subprocess.once("close", (exitCode) => {
@@ -251968,17 +251984,17 @@ var baseOpen = async (options) => {
251968
251984
  return;
251969
251985
  }
251970
251986
  subprocess.unref();
251971
- resolve4(subprocess);
251987
+ resolve5(subprocess);
251972
251988
  });
251973
251989
  });
251974
251990
  });
251975
251991
  }
251976
251992
  subprocess.unref();
251977
- return new Promise((resolve4, reject) => {
251993
+ return new Promise((resolve5, reject) => {
251978
251994
  subprocess.once("error", reject);
251979
251995
  subprocess.once("spawn", () => {
251980
251996
  subprocess.off("error", reject);
251981
- resolve4(subprocess);
251997
+ resolve5(subprocess);
251982
251998
  });
251983
251999
  });
251984
252000
  };
@@ -252519,7 +252535,7 @@ function getFunctionsCommand() {
252519
252535
  }
252520
252536
 
252521
252537
  // src/cli/commands/project/create.ts
252522
- import { basename as basename3, join as join19, resolve as resolve4 } from "node:path";
252538
+ import { basename as basename3, join as join19, resolve as resolve5 } from "node:path";
252523
252539
  var import_kebabCase = __toESM(require_kebabCase(), 1);
252524
252540
  var DEFAULT_TEMPLATE_ID = "backend-only";
252525
252541
  async function getTemplateById(templateId) {
@@ -252584,7 +252600,7 @@ async function createInteractive(options, ctx) {
252584
252600
  }, ctx);
252585
252601
  }
252586
252602
  async function createNonInteractive(options, ctx) {
252587
- ctx.log.info(`Creating a new project at ${resolve4(options.path)}`);
252603
+ ctx.log.info(`Creating a new project at ${resolve5(options.path)}`);
252588
252604
  const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
252589
252605
  return await executeCreate({
252590
252606
  template: template2,
@@ -252605,7 +252621,7 @@ async function executeCreate({
252605
252621
  isInteractive
252606
252622
  }, { log, runTask: runTask2 }) {
252607
252623
  const name2 = rawName.trim();
252608
- const resolvedPath = resolve4(projectPath);
252624
+ const resolvedPath = resolve5(projectPath);
252609
252625
  const { projectId } = await runTask2("Setting up your project...", async () => {
252610
252626
  return await createProjectFiles({
252611
252627
  name: name2,
@@ -253121,7 +253137,7 @@ function getSecretsListCommand() {
253121
253137
  }
253122
253138
 
253123
253139
  // src/cli/commands/secrets/set.ts
253124
- import { resolve as resolve5 } from "node:path";
253140
+ import { resolve as resolve6 } from "node:path";
253125
253141
  function parseEntries(entries) {
253126
253142
  const secrets = {};
253127
253143
  for (const entry of entries) {
@@ -253152,7 +253168,7 @@ async function setSecretsAction({ log, runTask: runTask2 }, entries, options) {
253152
253168
  validateInput(entries, options);
253153
253169
  let secrets;
253154
253170
  if (options.envFile) {
253155
- secrets = await parseEnvFile(resolve5(options.envFile));
253171
+ secrets = await parseEnvFile(resolve6(options.envFile));
253156
253172
  if (Object.keys(secrets).length === 0) {
253157
253173
  throw new InvalidInputError("The env file contains no valid KEY=VALUE entries.");
253158
253174
  }
@@ -253181,7 +253197,7 @@ function getSecretsCommand() {
253181
253197
  }
253182
253198
 
253183
253199
  // src/cli/commands/site/deploy.ts
253184
- import { resolve as resolve6 } from "node:path";
253200
+ import { resolve as resolve7 } from "node:path";
253185
253201
  async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
253186
253202
  if (isNonInteractive && !options.yes) {
253187
253203
  throw new InvalidInputError("--yes is required in non-interactive mode");
@@ -253196,7 +253212,7 @@ async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
253196
253212
  ]
253197
253213
  });
253198
253214
  }
253199
- const outputDir = resolve6(project2.root, project2.site.outputDirectory);
253215
+ const outputDir = resolve7(project2.root, project2.site.outputDirectory);
253200
253216
  if (!options.yes) {
253201
253217
  const shouldDeploy = await Re({
253202
253218
  message: `Deploy site from ${project2.site.outputDirectory}?`
@@ -253397,14 +253413,14 @@ var getLocalHosts = () => {
253397
253413
  }
253398
253414
  return results;
253399
253415
  };
253400
- var checkAvailablePort = (options8) => new Promise((resolve8, reject) => {
253416
+ var checkAvailablePort = (options8) => new Promise((resolve9, reject) => {
253401
253417
  const server = net.createServer();
253402
253418
  server.unref();
253403
253419
  server.on("error", reject);
253404
253420
  server.listen(options8, () => {
253405
253421
  const { port } = server.address();
253406
253422
  server.close(() => {
253407
- resolve8(port);
253423
+ resolve9(port);
253408
253424
  });
253409
253425
  });
253410
253426
  });
@@ -253658,7 +253674,7 @@ class FunctionManager {
253658
253674
  });
253659
253675
  }
253660
253676
  waitForReady(name2, runningFunc) {
253661
- return new Promise((resolve8, reject) => {
253677
+ return new Promise((resolve9, reject) => {
253662
253678
  runningFunc.process.on("exit", (code2) => {
253663
253679
  if (!runningFunc.ready) {
253664
253680
  clearTimeout(timeout3);
@@ -253681,7 +253697,7 @@ class FunctionManager {
253681
253697
  runningFunc.ready = true;
253682
253698
  clearTimeout(timeout3);
253683
253699
  runningFunc.process.stdout?.off("data", onData);
253684
- resolve8(runningFunc.port);
253700
+ resolve9(runningFunc.port);
253685
253701
  }
253686
253702
  };
253687
253703
  runningFunc.process.stdout?.on("data", onData);
@@ -255321,7 +255337,7 @@ class NodeFsHandler {
255321
255337
  this._addToNodeFs(path19, initialAdd, wh2, depth + 1);
255322
255338
  }
255323
255339
  }).on(EV.ERROR, this._boundHandleError);
255324
- return new Promise((resolve9, reject) => {
255340
+ return new Promise((resolve10, reject) => {
255325
255341
  if (!stream)
255326
255342
  return reject();
255327
255343
  stream.once(STR_END, () => {
@@ -255330,7 +255346,7 @@ class NodeFsHandler {
255330
255346
  return;
255331
255347
  }
255332
255348
  const wasThrottled = throttler ? throttler.clear() : false;
255333
- resolve9(undefined);
255349
+ resolve10(undefined);
255334
255350
  previous.getChildren().filter((item) => {
255335
255351
  return item !== directory && !current.has(item);
255336
255352
  }).forEach((item) => {
@@ -256235,7 +256251,7 @@ async function createDevServer(options8) {
256235
256251
  devLogger.warn(`"${req.originalUrl}" is not supported in local development, passing call to production`);
256236
256252
  remoteProxy(req, res, next);
256237
256253
  });
256238
- const server = await new Promise((resolve10, reject) => {
256254
+ const server = await new Promise((resolve11, reject) => {
256239
256255
  const s5 = app.listen(port, "127.0.0.1", (err) => {
256240
256256
  if (err) {
256241
256257
  if ("code" in err && err.code === "EADDRINUSE") {
@@ -256244,7 +256260,7 @@ async function createDevServer(options8) {
256244
256260
  reject(err);
256245
256261
  }
256246
256262
  } else {
256247
- resolve10(s5);
256263
+ resolve11(s5);
256248
256264
  }
256249
256265
  });
256250
256266
  });
@@ -256360,13 +256376,13 @@ async function runScript(options8) {
256360
256376
  }
256361
256377
  // src/cli/commands/exec.ts
256362
256378
  function readStdin2() {
256363
- return new Promise((resolve10, reject) => {
256379
+ return new Promise((resolve11, reject) => {
256364
256380
  let data = "";
256365
256381
  process.stdin.setEncoding("utf-8");
256366
256382
  process.stdin.on("data", (chunk) => {
256367
256383
  data += chunk;
256368
256384
  });
256369
- process.stdin.on("end", () => resolve10(data));
256385
+ process.stdin.on("end", () => resolve11(data));
256370
256386
  process.stdin.on("error", reject);
256371
256387
  });
256372
256388
  }
@@ -256405,7 +256421,7 @@ Examples:
256405
256421
  }
256406
256422
 
256407
256423
  // src/cli/commands/project/eject.ts
256408
- import { resolve as resolve10 } from "node:path";
256424
+ import { resolve as resolve11 } from "node:path";
256409
256425
  var import_kebabCase2 = __toESM(require_kebabCase(), 1);
256410
256426
  async function eject(ctx, options8) {
256411
256427
  const { log, runTask: runTask2, isNonInteractive } = ctx;
@@ -256461,7 +256477,7 @@ async function eject(ctx, options8) {
256461
256477
  Ne("Operation cancelled.");
256462
256478
  throw new CLIExitError(0);
256463
256479
  }
256464
- const resolvedPath = resolve10(selectedPath);
256480
+ const resolvedPath = resolve11(selectedPath);
256465
256481
  await runTask2("Downloading your project's code...", async (updateMessage) => {
256466
256482
  await createProjectFilesForExistingProject({
256467
256483
  projectId,
@@ -258829,14 +258845,14 @@ async function addSourceContext(frames) {
258829
258845
  return frames;
258830
258846
  }
258831
258847
  function getContextLinesFromFile(path19, ranges, output) {
258832
- return new Promise((resolve11) => {
258848
+ return new Promise((resolve12) => {
258833
258849
  const stream = createReadStream2(path19);
258834
258850
  const lineReaded = createInterface2({
258835
258851
  input: stream
258836
258852
  });
258837
258853
  function destroyStreamAndResolve() {
258838
258854
  stream.destroy();
258839
- resolve11();
258855
+ resolve12();
258840
258856
  }
258841
258857
  let lineNumber = 0;
258842
258858
  let currentRangeIndex = 0;
@@ -259948,15 +259964,15 @@ class PostHogBackendClient extends PostHogCoreStateless {
259948
259964
  return true;
259949
259965
  if (this.featureFlagsPoller === undefined)
259950
259966
  return false;
259951
- return new Promise((resolve11) => {
259967
+ return new Promise((resolve12) => {
259952
259968
  const timeout3 = setTimeout(() => {
259953
259969
  cleanup();
259954
- resolve11(false);
259970
+ resolve12(false);
259955
259971
  }, timeoutMs);
259956
259972
  const cleanup = this._events.on("localEvaluationFlagsLoaded", (count2) => {
259957
259973
  clearTimeout(timeout3);
259958
259974
  cleanup();
259959
- resolve11(count2 > 0);
259975
+ resolve12(count2 > 0);
259960
259976
  });
259961
259977
  });
259962
259978
  }
@@ -260779,4 +260795,4 @@ export {
260779
260795
  CLIExitError
260780
260796
  };
260781
260797
 
260782
- //# debugId=0E9D3CB9AD716D0D64756E2164756E21
260798
+ //# debugId=E8C14128CCFF21AF64756E2164756E21