@base44-preview/cli 0.1.3-pr.550.7697c5b → 0.1.3-pr.563.b1a3390
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
|
@@ -12982,8 +12982,8 @@ var require_ejs = __commonJS((exports) => {
|
|
|
12982
12982
|
exports.resolveInclude = function(name2, filename, isDir) {
|
|
12983
12983
|
var dirname9 = path11.dirname;
|
|
12984
12984
|
var extname = path11.extname;
|
|
12985
|
-
var
|
|
12986
|
-
var includePath =
|
|
12985
|
+
var resolve3 = path11.resolve;
|
|
12986
|
+
var includePath = resolve3(isDir ? filename : dirname9(filename), name2);
|
|
12987
12987
|
var ext = extname(name2);
|
|
12988
12988
|
if (!ext) {
|
|
12989
12989
|
includePath += ".ejs";
|
|
@@ -13058,10 +13058,10 @@ var require_ejs = __commonJS((exports) => {
|
|
|
13058
13058
|
var result;
|
|
13059
13059
|
if (!cb) {
|
|
13060
13060
|
if (typeof exports.promiseImpl == "function") {
|
|
13061
|
-
return new exports.promiseImpl(function(
|
|
13061
|
+
return new exports.promiseImpl(function(resolve3, reject) {
|
|
13062
13062
|
try {
|
|
13063
13063
|
result = handleCache(options)(data);
|
|
13064
|
-
|
|
13064
|
+
resolve3(result);
|
|
13065
13065
|
} catch (err) {
|
|
13066
13066
|
reject(err);
|
|
13067
13067
|
}
|
|
@@ -16499,12 +16499,12 @@ var require_isexe = __commonJS((exports, module) => {
|
|
|
16499
16499
|
if (typeof Promise !== "function") {
|
|
16500
16500
|
throw new TypeError("callback not provided");
|
|
16501
16501
|
}
|
|
16502
|
-
return new Promise(function(
|
|
16502
|
+
return new Promise(function(resolve4, reject) {
|
|
16503
16503
|
isexe(path11, options || {}, function(er, is) {
|
|
16504
16504
|
if (er) {
|
|
16505
16505
|
reject(er);
|
|
16506
16506
|
} else {
|
|
16507
|
-
|
|
16507
|
+
resolve4(is);
|
|
16508
16508
|
}
|
|
16509
16509
|
});
|
|
16510
16510
|
});
|
|
@@ -16566,27 +16566,27 @@ var require_which = __commonJS((exports, module) => {
|
|
|
16566
16566
|
opt = {};
|
|
16567
16567
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
16568
16568
|
const found = [];
|
|
16569
|
-
const step = (i) => new Promise((
|
|
16569
|
+
const step = (i) => new Promise((resolve4, reject) => {
|
|
16570
16570
|
if (i === pathEnv.length)
|
|
16571
|
-
return opt.all && found.length ?
|
|
16571
|
+
return opt.all && found.length ? resolve4(found) : reject(getNotFoundError(cmd));
|
|
16572
16572
|
const ppRaw = pathEnv[i];
|
|
16573
16573
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
16574
16574
|
const pCmd = path11.join(pathPart, cmd);
|
|
16575
16575
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
16576
|
-
|
|
16576
|
+
resolve4(subStep(p, i, 0));
|
|
16577
16577
|
});
|
|
16578
|
-
const subStep = (p, i, ii) => new Promise((
|
|
16578
|
+
const subStep = (p, i, ii) => new Promise((resolve4, reject) => {
|
|
16579
16579
|
if (ii === pathExt.length)
|
|
16580
|
-
return
|
|
16580
|
+
return resolve4(step(i + 1));
|
|
16581
16581
|
const ext = pathExt[ii];
|
|
16582
16582
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
16583
16583
|
if (!er && is) {
|
|
16584
16584
|
if (opt.all)
|
|
16585
16585
|
found.push(p + ext);
|
|
16586
16586
|
else
|
|
16587
|
-
return
|
|
16587
|
+
return resolve4(p + ext);
|
|
16588
16588
|
}
|
|
16589
|
-
return
|
|
16589
|
+
return resolve4(subStep(p, i, ii + 1));
|
|
16590
16590
|
});
|
|
16591
16591
|
});
|
|
16592
16592
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -138269,11 +138269,11 @@ var require_prettier = __commonJS((exports, module) => {
|
|
|
138269
138269
|
var require_formatter = __commonJS((exports) => {
|
|
138270
138270
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
138271
138271
|
function adopt(value) {
|
|
138272
|
-
return value instanceof P9 ? value : new P9(function(
|
|
138273
|
-
|
|
138272
|
+
return value instanceof P9 ? value : new P9(function(resolve13) {
|
|
138273
|
+
resolve13(value);
|
|
138274
138274
|
});
|
|
138275
138275
|
}
|
|
138276
|
-
return new (P9 || (P9 = Promise))(function(
|
|
138276
|
+
return new (P9 || (P9 = Promise))(function(resolve13, reject) {
|
|
138277
138277
|
function fulfilled(value) {
|
|
138278
138278
|
try {
|
|
138279
138279
|
step(generator.next(value));
|
|
@@ -138289,7 +138289,7 @@ var require_formatter = __commonJS((exports) => {
|
|
|
138289
138289
|
}
|
|
138290
138290
|
}
|
|
138291
138291
|
function step(result) {
|
|
138292
|
-
result.done ?
|
|
138292
|
+
result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
138293
138293
|
}
|
|
138294
138294
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
138295
138295
|
});
|
|
@@ -142942,7 +142942,7 @@ var require_url = __commonJS((exports) => {
|
|
|
142942
142942
|
};
|
|
142943
142943
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
142944
142944
|
exports.parse = undefined;
|
|
142945
|
-
exports.resolve =
|
|
142945
|
+
exports.resolve = resolve13;
|
|
142946
142946
|
exports.cwd = cwd;
|
|
142947
142947
|
exports.getProtocol = getProtocol;
|
|
142948
142948
|
exports.getExtension = getExtension;
|
|
@@ -142970,7 +142970,7 @@ var require_url = __commonJS((exports) => {
|
|
|
142970
142970
|
var urlDecodePatterns = [/%23/g, "#", /%24/g, "$", /%26/g, "&", /%2C/g, ",", /%40/g, "@"];
|
|
142971
142971
|
var parse11 = (u4) => new URL(u4);
|
|
142972
142972
|
exports.parse = parse11;
|
|
142973
|
-
function
|
|
142973
|
+
function resolve13(from, to5) {
|
|
142974
142974
|
const fromUrl = new URL((0, convert_path_to_posix_1.default)(from), "https://aaa.nonexistanturl.com");
|
|
142975
142975
|
const resolvedUrl = new URL((0, convert_path_to_posix_1.default)(to5), fromUrl);
|
|
142976
142976
|
const endSpaces = to5.match(/(\s*)$/)?.[1] || "";
|
|
@@ -143106,7 +143106,7 @@ var require_url = __commonJS((exports) => {
|
|
|
143106
143106
|
}
|
|
143107
143107
|
function relative4(from, to5) {
|
|
143108
143108
|
if (!isFileSystemPath(from) || !isFileSystemPath(to5)) {
|
|
143109
|
-
return
|
|
143109
|
+
return resolve13(from, to5);
|
|
143110
143110
|
}
|
|
143111
143111
|
const fromDir = path_1.default.dirname(stripHash(from));
|
|
143112
143112
|
const toPath4 = stripHash(to5);
|
|
@@ -143782,7 +143782,7 @@ var require_plugins = __commonJS((exports) => {
|
|
|
143782
143782
|
let plugin;
|
|
143783
143783
|
let lastError;
|
|
143784
143784
|
let index = 0;
|
|
143785
|
-
return new Promise((
|
|
143785
|
+
return new Promise((resolve13, reject) => {
|
|
143786
143786
|
runNextPlugin();
|
|
143787
143787
|
function runNextPlugin() {
|
|
143788
143788
|
plugin = plugins[index++];
|
|
@@ -143810,7 +143810,7 @@ var require_plugins = __commonJS((exports) => {
|
|
|
143810
143810
|
}
|
|
143811
143811
|
}
|
|
143812
143812
|
function onSuccess(result) {
|
|
143813
|
-
|
|
143813
|
+
resolve13({
|
|
143814
143814
|
plugin,
|
|
143815
143815
|
result
|
|
143816
143816
|
});
|
|
@@ -145143,11 +145143,11 @@ var require_lib3 = __commonJS((exports) => {
|
|
|
145143
145143
|
var require_resolver = __commonJS((exports) => {
|
|
145144
145144
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
145145
145145
|
function adopt(value) {
|
|
145146
|
-
return value instanceof P9 ? value : new P9(function(
|
|
145147
|
-
|
|
145146
|
+
return value instanceof P9 ? value : new P9(function(resolve13) {
|
|
145147
|
+
resolve13(value);
|
|
145148
145148
|
});
|
|
145149
145149
|
}
|
|
145150
|
-
return new (P9 || (P9 = Promise))(function(
|
|
145150
|
+
return new (P9 || (P9 = Promise))(function(resolve13, reject) {
|
|
145151
145151
|
function fulfilled(value) {
|
|
145152
145152
|
try {
|
|
145153
145153
|
step(generator.next(value));
|
|
@@ -145163,7 +145163,7 @@ var require_resolver = __commonJS((exports) => {
|
|
|
145163
145163
|
}
|
|
145164
145164
|
}
|
|
145165
145165
|
function step(result) {
|
|
145166
|
-
result.done ?
|
|
145166
|
+
result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
145167
145167
|
}
|
|
145168
145168
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
145169
145169
|
});
|
|
@@ -145284,11 +145284,11 @@ var require_optionValidator = __commonJS((exports) => {
|
|
|
145284
145284
|
var require_src3 = __commonJS((exports) => {
|
|
145285
145285
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
145286
145286
|
function adopt(value) {
|
|
145287
|
-
return value instanceof P9 ? value : new P9(function(
|
|
145288
|
-
|
|
145287
|
+
return value instanceof P9 ? value : new P9(function(resolve13) {
|
|
145288
|
+
resolve13(value);
|
|
145289
145289
|
});
|
|
145290
145290
|
}
|
|
145291
|
-
return new (P9 || (P9 = Promise))(function(
|
|
145291
|
+
return new (P9 || (P9 = Promise))(function(resolve13, reject) {
|
|
145292
145292
|
function fulfilled(value) {
|
|
145293
145293
|
try {
|
|
145294
145294
|
step(generator.next(value));
|
|
@@ -145304,7 +145304,7 @@ var require_src3 = __commonJS((exports) => {
|
|
|
145304
145304
|
}
|
|
145305
145305
|
}
|
|
145306
145306
|
function step(result) {
|
|
145307
|
-
result.done ?
|
|
145307
|
+
result.done ? resolve13(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
145308
145308
|
}
|
|
145309
145309
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
145310
145310
|
});
|
|
@@ -150819,11 +150819,11 @@ var require_raw_body = __commonJS((exports, module) => {
|
|
|
150819
150819
|
if (done) {
|
|
150820
150820
|
return readStream(stream, encoding, length, limit, wrap(done));
|
|
150821
150821
|
}
|
|
150822
|
-
return new Promise(function executor(
|
|
150822
|
+
return new Promise(function executor(resolve13, reject) {
|
|
150823
150823
|
readStream(stream, encoding, length, limit, function onRead2(err, buf) {
|
|
150824
150824
|
if (err)
|
|
150825
150825
|
return reject(err);
|
|
150826
|
-
|
|
150826
|
+
resolve13(buf);
|
|
150827
150827
|
});
|
|
150828
150828
|
});
|
|
150829
150829
|
}
|
|
@@ -163948,7 +163948,7 @@ var require_view = __commonJS((exports, module) => {
|
|
|
163948
163948
|
var basename6 = path18.basename;
|
|
163949
163949
|
var extname2 = path18.extname;
|
|
163950
163950
|
var join25 = path18.join;
|
|
163951
|
-
var
|
|
163951
|
+
var resolve13 = path18.resolve;
|
|
163952
163952
|
module.exports = View;
|
|
163953
163953
|
function View(name2, options8) {
|
|
163954
163954
|
var opts = options8 || {};
|
|
@@ -163982,7 +163982,7 @@ var require_view = __commonJS((exports, module) => {
|
|
|
163982
163982
|
debug('lookup "%s"', name2);
|
|
163983
163983
|
for (var i5 = 0;i5 < roots.length && !path19; i5++) {
|
|
163984
163984
|
var root2 = roots[i5];
|
|
163985
|
-
var loc =
|
|
163985
|
+
var loc = resolve13(root2, name2);
|
|
163986
163986
|
var dir = dirname19(loc);
|
|
163987
163987
|
var file2 = basename6(loc);
|
|
163988
163988
|
path19 = this.resolve(dir, file2);
|
|
@@ -164007,7 +164007,7 @@ var require_view = __commonJS((exports, module) => {
|
|
|
164007
164007
|
});
|
|
164008
164008
|
sync = false;
|
|
164009
164009
|
};
|
|
164010
|
-
View.prototype.resolve = function
|
|
164010
|
+
View.prototype.resolve = function resolve14(dir, file2) {
|
|
164011
164011
|
var ext = this.ext;
|
|
164012
164012
|
var path19 = join25(dir, file2);
|
|
164013
164013
|
var stat2 = tryStat(path19);
|
|
@@ -166166,7 +166166,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
166166
166166
|
var compileETag = require_utils10().compileETag;
|
|
166167
166167
|
var compileQueryParser = require_utils10().compileQueryParser;
|
|
166168
166168
|
var compileTrust = require_utils10().compileTrust;
|
|
166169
|
-
var
|
|
166169
|
+
var resolve13 = __require("node:path").resolve;
|
|
166170
166170
|
var once9 = require_once();
|
|
166171
166171
|
var Router = require_router();
|
|
166172
166172
|
var slice = Array.prototype.slice;
|
|
@@ -166220,7 +166220,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
166220
166220
|
this.mountpath = "/";
|
|
166221
166221
|
this.locals.settings = this.settings;
|
|
166222
166222
|
this.set("view", View);
|
|
166223
|
-
this.set("views",
|
|
166223
|
+
this.set("views", resolve13("views"));
|
|
166224
166224
|
this.set("jsonp callback name", "callback");
|
|
166225
166225
|
if (env3 === "production") {
|
|
166226
166226
|
this.enable("view cache");
|
|
@@ -167711,7 +167711,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
167711
167711
|
var extname2 = path18.extname;
|
|
167712
167712
|
var join25 = path18.join;
|
|
167713
167713
|
var normalize2 = path18.normalize;
|
|
167714
|
-
var
|
|
167714
|
+
var resolve13 = path18.resolve;
|
|
167715
167715
|
var sep = path18.sep;
|
|
167716
167716
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
167717
167717
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000;
|
|
@@ -167740,7 +167740,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
167740
167740
|
this._maxage = opts.maxAge || opts.maxage;
|
|
167741
167741
|
this._maxage = typeof this._maxage === "string" ? ms9(this._maxage) : Number(this._maxage);
|
|
167742
167742
|
this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0;
|
|
167743
|
-
this._root = opts.root ?
|
|
167743
|
+
this._root = opts.root ? resolve13(opts.root) : null;
|
|
167744
167744
|
}
|
|
167745
167745
|
util2.inherits(SendStream, Stream2);
|
|
167746
167746
|
SendStream.prototype.error = function error48(status, err) {
|
|
@@ -167889,7 +167889,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
167889
167889
|
return res;
|
|
167890
167890
|
}
|
|
167891
167891
|
parts = normalize2(path19).split(sep);
|
|
167892
|
-
path19 =
|
|
167892
|
+
path19 = resolve13(path19);
|
|
167893
167893
|
}
|
|
167894
167894
|
if (containsDotFile(parts)) {
|
|
167895
167895
|
debug('%s dotfile "%s"', this._dotfiles, path19);
|
|
@@ -168217,7 +168217,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
168217
168217
|
var cookie = require_cookie();
|
|
168218
168218
|
var send = require_send();
|
|
168219
168219
|
var extname2 = path18.extname;
|
|
168220
|
-
var
|
|
168220
|
+
var resolve13 = path18.resolve;
|
|
168221
168221
|
var vary = require_vary();
|
|
168222
168222
|
var { Buffer: Buffer7 } = __require("node:buffer");
|
|
168223
168223
|
var res = Object.create(http.ServerResponse.prototype);
|
|
@@ -168426,7 +168426,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
168426
168426
|
}
|
|
168427
168427
|
opts = Object.create(opts);
|
|
168428
168428
|
opts.headers = headers;
|
|
168429
|
-
var fullPath = !opts.root ?
|
|
168429
|
+
var fullPath = !opts.root ? resolve13(path19) : path19;
|
|
168430
168430
|
return this.sendFile(fullPath, opts, done);
|
|
168431
168431
|
};
|
|
168432
168432
|
res.contentType = res.type = function contentType(type) {
|
|
@@ -168687,7 +168687,7 @@ var require_serve_static = __commonJS((exports, module) => {
|
|
|
168687
168687
|
var encodeUrl = require_encodeurl();
|
|
168688
168688
|
var escapeHtml = require_escape_html();
|
|
168689
168689
|
var parseUrl = require_parseurl();
|
|
168690
|
-
var
|
|
168690
|
+
var resolve13 = __require("path").resolve;
|
|
168691
168691
|
var send = require_send();
|
|
168692
168692
|
var url3 = __require("url");
|
|
168693
168693
|
module.exports = serveStatic;
|
|
@@ -168706,7 +168706,7 @@ var require_serve_static = __commonJS((exports, module) => {
|
|
|
168706
168706
|
throw new TypeError("option setHeaders must be function");
|
|
168707
168707
|
}
|
|
168708
168708
|
opts.maxage = opts.maxage || opts.maxAge || 0;
|
|
168709
|
-
opts.root =
|
|
168709
|
+
opts.root = resolve13(root2);
|
|
168710
168710
|
var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener();
|
|
168711
168711
|
return function serveStatic2(req, res, next) {
|
|
168712
168712
|
if (req.method !== "GET" && req.method !== "HEAD") {
|
|
@@ -172080,8 +172080,8 @@ var require_executor = __commonJS((exports, module) => {
|
|
|
172080
172080
|
}
|
|
172081
172081
|
resetBuffer() {
|
|
172082
172082
|
this.buffer = new Waterfall;
|
|
172083
|
-
this.buffer.chain(new Promise((
|
|
172084
|
-
this._triggerBuffer =
|
|
172083
|
+
this.buffer.chain(new Promise((resolve13) => {
|
|
172084
|
+
this._triggerBuffer = resolve13;
|
|
172085
172085
|
}));
|
|
172086
172086
|
if (this.ready)
|
|
172087
172087
|
this._triggerBuffer();
|
|
@@ -173101,7 +173101,7 @@ var require_storage = __commonJS((exports, module) => {
|
|
|
173101
173101
|
throw e8;
|
|
173102
173102
|
}
|
|
173103
173103
|
};
|
|
173104
|
-
var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((
|
|
173104
|
+
var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve13, reject) => {
|
|
173105
173105
|
try {
|
|
173106
173106
|
const stream = writeFileStream(filename, { mode });
|
|
173107
173107
|
const readable2 = Readable6.from(lines);
|
|
@@ -173118,7 +173118,7 @@ var require_storage = __commonJS((exports, module) => {
|
|
|
173118
173118
|
if (err)
|
|
173119
173119
|
reject(err);
|
|
173120
173120
|
else
|
|
173121
|
-
|
|
173121
|
+
resolve13();
|
|
173122
173122
|
});
|
|
173123
173123
|
});
|
|
173124
173124
|
readable2.on("error", (err) => {
|
|
@@ -173289,7 +173289,7 @@ var require_persistence = __commonJS((exports, module) => {
|
|
|
173289
173289
|
return { data: tdata, indexes };
|
|
173290
173290
|
}
|
|
173291
173291
|
treatRawStreamAsync(rawStream) {
|
|
173292
|
-
return new Promise((
|
|
173292
|
+
return new Promise((resolve13, reject) => {
|
|
173293
173293
|
const dataById = {};
|
|
173294
173294
|
const indexes = {};
|
|
173295
173295
|
let corruptItems = 0;
|
|
@@ -173332,7 +173332,7 @@ var require_persistence = __commonJS((exports, module) => {
|
|
|
173332
173332
|
}
|
|
173333
173333
|
}
|
|
173334
173334
|
const data = Object.values(dataById);
|
|
173335
|
-
|
|
173335
|
+
resolve13({ data, indexes });
|
|
173336
173336
|
});
|
|
173337
173337
|
lineStream.on("error", function(err) {
|
|
173338
173338
|
reject(err, null);
|
|
@@ -198943,13 +198943,13 @@ var require_broadcast_operator = __commonJS((exports) => {
|
|
|
198943
198943
|
return true;
|
|
198944
198944
|
}
|
|
198945
198945
|
emitWithAck(ev2, ...args) {
|
|
198946
|
-
return new Promise((
|
|
198946
|
+
return new Promise((resolve13, reject) => {
|
|
198947
198947
|
args.push((err, responses) => {
|
|
198948
198948
|
if (err) {
|
|
198949
198949
|
err.responses = responses;
|
|
198950
198950
|
return reject(err);
|
|
198951
198951
|
} else {
|
|
198952
|
-
return
|
|
198952
|
+
return resolve13(responses);
|
|
198953
198953
|
}
|
|
198954
198954
|
});
|
|
198955
198955
|
this.emit(ev2, ...args);
|
|
@@ -199137,12 +199137,12 @@ var require_socket2 = __commonJS((exports) => {
|
|
|
199137
199137
|
}
|
|
199138
199138
|
emitWithAck(ev2, ...args) {
|
|
199139
199139
|
const withErr = this.flags.timeout !== undefined;
|
|
199140
|
-
return new Promise((
|
|
199140
|
+
return new Promise((resolve13, reject) => {
|
|
199141
199141
|
args.push((arg1, arg2) => {
|
|
199142
199142
|
if (withErr) {
|
|
199143
|
-
return arg1 ? reject(arg1) :
|
|
199143
|
+
return arg1 ? reject(arg1) : resolve13(arg2);
|
|
199144
199144
|
} else {
|
|
199145
|
-
return
|
|
199145
|
+
return resolve13(arg1);
|
|
199146
199146
|
}
|
|
199147
199147
|
});
|
|
199148
199148
|
this.emit(ev2, ...args);
|
|
@@ -199597,13 +199597,13 @@ var require_namespace = __commonJS((exports) => {
|
|
|
199597
199597
|
return true;
|
|
199598
199598
|
}
|
|
199599
199599
|
serverSideEmitWithAck(ev2, ...args) {
|
|
199600
|
-
return new Promise((
|
|
199600
|
+
return new Promise((resolve13, reject) => {
|
|
199601
199601
|
args.push((err, responses) => {
|
|
199602
199602
|
if (err) {
|
|
199603
199603
|
err.responses = responses;
|
|
199604
199604
|
return reject(err);
|
|
199605
199605
|
} else {
|
|
199606
|
-
return
|
|
199606
|
+
return resolve13(responses);
|
|
199607
199607
|
}
|
|
199608
199608
|
});
|
|
199609
199609
|
this.serverSideEmit(ev2, ...args);
|
|
@@ -200287,7 +200287,7 @@ var require_cluster_adapter = __commonJS((exports) => {
|
|
|
200287
200287
|
return localSockets;
|
|
200288
200288
|
}
|
|
200289
200289
|
const requestId = randomId();
|
|
200290
|
-
return new Promise((
|
|
200290
|
+
return new Promise((resolve13, reject) => {
|
|
200291
200291
|
const timeout3 = setTimeout(() => {
|
|
200292
200292
|
const storedRequest2 = this.requests.get(requestId);
|
|
200293
200293
|
if (storedRequest2) {
|
|
@@ -200297,7 +200297,7 @@ var require_cluster_adapter = __commonJS((exports) => {
|
|
|
200297
200297
|
}, opts.flags.timeout || DEFAULT_TIMEOUT);
|
|
200298
200298
|
const storedRequest = {
|
|
200299
200299
|
type: MessageType.FETCH_SOCKETS,
|
|
200300
|
-
resolve:
|
|
200300
|
+
resolve: resolve13,
|
|
200301
200301
|
timeout: timeout3,
|
|
200302
200302
|
current: 0,
|
|
200303
200303
|
expected: expectedResponseCount,
|
|
@@ -200507,7 +200507,7 @@ var require_cluster_adapter = __commonJS((exports) => {
|
|
|
200507
200507
|
return localSockets;
|
|
200508
200508
|
}
|
|
200509
200509
|
const requestId = randomId();
|
|
200510
|
-
return new Promise((
|
|
200510
|
+
return new Promise((resolve13, reject) => {
|
|
200511
200511
|
const timeout3 = setTimeout(() => {
|
|
200512
200512
|
const storedRequest2 = this.customRequests.get(requestId);
|
|
200513
200513
|
if (storedRequest2) {
|
|
@@ -200517,7 +200517,7 @@ var require_cluster_adapter = __commonJS((exports) => {
|
|
|
200517
200517
|
}, opts.flags.timeout || DEFAULT_TIMEOUT);
|
|
200518
200518
|
const storedRequest = {
|
|
200519
200519
|
type: MessageType.FETCH_SOCKETS,
|
|
200520
|
-
resolve:
|
|
200520
|
+
resolve: resolve13,
|
|
200521
200521
|
timeout: timeout3,
|
|
200522
200522
|
missingUids: new Set([...this.nodesMap.keys()]),
|
|
200523
200523
|
responses: localSockets
|
|
@@ -201246,13 +201246,13 @@ var require_dist4 = __commonJS((exports, module) => {
|
|
|
201246
201246
|
this.engine.close();
|
|
201247
201247
|
(0, uws_1.restoreAdapter)();
|
|
201248
201248
|
if (this.httpServer) {
|
|
201249
|
-
return new Promise((
|
|
201249
|
+
return new Promise((resolve13) => {
|
|
201250
201250
|
this.httpServer.close((err) => {
|
|
201251
201251
|
fn9 && fn9(err);
|
|
201252
201252
|
if (err) {
|
|
201253
201253
|
debug("server was not running");
|
|
201254
201254
|
}
|
|
201255
|
-
|
|
201255
|
+
resolve13();
|
|
201256
201256
|
});
|
|
201257
201257
|
});
|
|
201258
201258
|
} else {
|
|
@@ -215914,14 +215914,14 @@ var require_async_iterator = __commonJS((exports, module) => {
|
|
|
215914
215914
|
};
|
|
215915
215915
|
}
|
|
215916
215916
|
function readAndResolve(iter) {
|
|
215917
|
-
var
|
|
215918
|
-
if (
|
|
215917
|
+
var resolve13 = iter[kLastResolve];
|
|
215918
|
+
if (resolve13 !== 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
|
-
|
|
215924
|
+
resolve13(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(
|
|
215932
|
+
return function(resolve13, reject) {
|
|
215933
215933
|
lastPromise.then(function() {
|
|
215934
215934
|
if (iter[kEnded]) {
|
|
215935
|
-
|
|
215935
|
+
resolve13(createIterResult(undefined, true));
|
|
215936
215936
|
return;
|
|
215937
215937
|
}
|
|
215938
|
-
iter[kHandlePromise](
|
|
215938
|
+
iter[kHandlePromise](resolve13, 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(
|
|
215957
|
+
return new Promise(function(resolve13, reject) {
|
|
215958
215958
|
process.nextTick(function() {
|
|
215959
215959
|
if (_this[kError]) {
|
|
215960
215960
|
reject(_this[kError]);
|
|
215961
215961
|
} else {
|
|
215962
|
-
|
|
215962
|
+
resolve13(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(
|
|
215985
|
+
return new Promise(function(resolve13, reject) {
|
|
215986
215986
|
_this2[kStream].destroy(null, function(err) {
|
|
215987
215987
|
if (err) {
|
|
215988
215988
|
reject(err);
|
|
215989
215989
|
return;
|
|
215990
215990
|
}
|
|
215991
|
-
|
|
215991
|
+
resolve13(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(
|
|
216013
|
+
value: function value(resolve13, 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
|
-
|
|
216019
|
+
resolve13(createIterResult(data, false));
|
|
216020
216020
|
} else {
|
|
216021
|
-
iterator[kLastResolve] =
|
|
216021
|
+
iterator[kLastResolve] = resolve13;
|
|
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
|
|
216041
|
-
if (
|
|
216040
|
+
var resolve13 = iterator[kLastResolve];
|
|
216041
|
+
if (resolve13 !== null) {
|
|
216042
216042
|
iterator[kLastPromise] = null;
|
|
216043
216043
|
iterator[kLastResolve] = null;
|
|
216044
216044
|
iterator[kLastReject] = null;
|
|
216045
|
-
|
|
216045
|
+
resolve13(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,
|
|
216057
|
+
function asyncGeneratorStep(gen, resolve13, 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
|
-
|
|
216066
|
+
resolve13(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(
|
|
216074
|
+
return new Promise(function(resolve13, reject) {
|
|
216075
216075
|
var gen = fn9.apply(self2, args);
|
|
216076
216076
|
function _next(value) {
|
|
216077
|
-
asyncGeneratorStep(gen,
|
|
216077
|
+
asyncGeneratorStep(gen, resolve13, reject, _next, _throw, "next", value);
|
|
216078
216078
|
}
|
|
216079
216079
|
function _throw(err) {
|
|
216080
|
-
asyncGeneratorStep(gen,
|
|
216080
|
+
asyncGeneratorStep(gen, resolve13, reject, _next, _throw, "throw", err);
|
|
216081
216081
|
}
|
|
216082
216082
|
_next(undefined);
|
|
216083
216083
|
});
|
|
@@ -233819,9 +233819,6 @@ class ApiError extends SystemError {
|
|
|
233819
233819
|
}
|
|
233820
233820
|
];
|
|
233821
233821
|
}
|
|
233822
|
-
if (statusCode && statusCode < 500) {
|
|
233823
|
-
return [];
|
|
233824
|
-
}
|
|
233825
233822
|
return [{ message: "Check your network connection and try again" }];
|
|
233826
233823
|
}
|
|
233827
233824
|
static getReasonHints(parsedResponse) {
|
|
@@ -236043,13 +236040,11 @@ var PluginMetadataSchema = exports_external.object({
|
|
|
236043
236040
|
var PluginReferenceSchema = exports_external.object({
|
|
236044
236041
|
source: exports_external.string().min(1, "Plugin source cannot be empty")
|
|
236045
236042
|
});
|
|
236046
|
-
var VISIBILITY_LEVELS = ["public", "private", "workspace"];
|
|
236047
236043
|
var ProjectConfigSchema = exports_external.object({
|
|
236048
236044
|
name: exports_external.string({
|
|
236049
236045
|
error: "App name cannot be empty"
|
|
236050
236046
|
}).min(1, "App name cannot be empty"),
|
|
236051
236047
|
description: exports_external.string().optional(),
|
|
236052
|
-
visibility: exports_external.enum(VISIBILITY_LEVELS).optional(),
|
|
236053
236048
|
site: SiteConfigSchema.optional(),
|
|
236054
236049
|
entitiesDir: exports_external.string().optional().default("entities"),
|
|
236055
236050
|
functionsDir: exports_external.string().optional().default("functions"),
|
|
@@ -241844,11 +241839,6 @@ var PublishedUrlResponseSchema = exports_external.object({
|
|
|
241844
241839
|
});
|
|
241845
241840
|
|
|
241846
241841
|
// src/core/project/api.ts
|
|
241847
|
-
var PUBLIC_SETTINGS = {
|
|
241848
|
-
public: "public_without_login",
|
|
241849
|
-
private: "private_with_login",
|
|
241850
|
-
workspace: "workspace_with_login"
|
|
241851
|
-
};
|
|
241852
241842
|
async function createProject(projectName, description) {
|
|
241853
241843
|
let response;
|
|
241854
241844
|
try {
|
|
@@ -241857,7 +241847,7 @@ async function createProject(projectName, description) {
|
|
|
241857
241847
|
name: projectName,
|
|
241858
241848
|
user_description: description ?? `Backend for '${projectName}'`,
|
|
241859
241849
|
is_managed_source_code: false,
|
|
241860
|
-
public_settings:
|
|
241850
|
+
public_settings: "public_without_login"
|
|
241861
241851
|
}
|
|
241862
241852
|
});
|
|
241863
241853
|
} catch (error48) {
|
|
@@ -241871,18 +241861,6 @@ async function createProject(projectName, description) {
|
|
|
241871
241861
|
projectId: result.data.id
|
|
241872
241862
|
};
|
|
241873
241863
|
}
|
|
241874
|
-
async function setAppVisibility(visibility) {
|
|
241875
|
-
if (!visibility)
|
|
241876
|
-
return;
|
|
241877
|
-
const { id } = getAppContext();
|
|
241878
|
-
try {
|
|
241879
|
-
await base44Client.put(`api/apps/${id}`, {
|
|
241880
|
-
json: { public_settings: PUBLIC_SETTINGS[visibility] }
|
|
241881
|
-
});
|
|
241882
|
-
} catch (error48) {
|
|
241883
|
-
throw await ApiError.fromHttpError(error48, "updating app visibility");
|
|
241884
|
-
}
|
|
241885
|
-
}
|
|
241886
241864
|
async function listProjects() {
|
|
241887
241865
|
let response;
|
|
241888
241866
|
try {
|
|
@@ -243580,7 +243558,14 @@ async function fetchFunctionLogs(functionName, filters = {}) {
|
|
|
243580
243558
|
return result.data;
|
|
243581
243559
|
}
|
|
243582
243560
|
// src/core/resources/function/config.ts
|
|
243583
|
-
import { basename as basename3, dirname as dirname6, join as join8, relative } from "node:path";
|
|
243561
|
+
import { basename as basename3, dirname as dirname6, join as join8, relative, resolve as resolve2 } from "node:path";
|
|
243562
|
+
async function readSharedFiles(functionsDir) {
|
|
243563
|
+
const sharedDir = resolve2(functionsDir, "..", "shared");
|
|
243564
|
+
if (!await pathExists(sharedDir)) {
|
|
243565
|
+
return [];
|
|
243566
|
+
}
|
|
243567
|
+
return globby("**/*.{js,ts,json}", { cwd: sharedDir, absolute: true });
|
|
243568
|
+
}
|
|
243584
243569
|
async function readFunctionConfig(configPath) {
|
|
243585
243570
|
const parsed = await readJsonFile(configPath);
|
|
243586
243571
|
const result = FunctionConfigSchema.safeParse(parsed);
|
|
@@ -243589,7 +243574,7 @@ async function readFunctionConfig(configPath) {
|
|
|
243589
243574
|
}
|
|
243590
243575
|
return result.data;
|
|
243591
243576
|
}
|
|
243592
|
-
async function readFunction(configPath) {
|
|
243577
|
+
async function readFunction(configPath, sharedFiles) {
|
|
243593
243578
|
const config7 = await readFunctionConfig(configPath);
|
|
243594
243579
|
const functionDir = dirname6(configPath);
|
|
243595
243580
|
const entryPath = join8(functionDir, config7.entry);
|
|
@@ -243602,10 +243587,11 @@ async function readFunction(configPath) {
|
|
|
243602
243587
|
cwd: functionDir,
|
|
243603
243588
|
absolute: true
|
|
243604
243589
|
});
|
|
243590
|
+
const allFilePaths = [...new Set([...filePaths, ...sharedFiles])];
|
|
243605
243591
|
const functionData = {
|
|
243606
243592
|
...config7,
|
|
243607
243593
|
entryPath,
|
|
243608
|
-
filePaths,
|
|
243594
|
+
filePaths: allFilePaths,
|
|
243609
243595
|
source: { type: "project" }
|
|
243610
243596
|
};
|
|
243611
243597
|
return functionData;
|
|
@@ -243625,13 +243611,15 @@ async function readAllFunctions(functionsDir) {
|
|
|
243625
243611
|
});
|
|
243626
243612
|
const configFilesDirs = new Set(configFiles.map((f) => dirname6(f)));
|
|
243627
243613
|
const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname6(entryFile)));
|
|
243628
|
-
const
|
|
243614
|
+
const sharedFiles = await readSharedFiles(functionsDir);
|
|
243615
|
+
const functionsFromConfig = await Promise.all(configFiles.map((configPath) => readFunction(configPath, sharedFiles)));
|
|
243629
243616
|
const functionsWithoutConfig = await Promise.all(entryFilesWithoutConfig.map(async (entryFile) => {
|
|
243630
243617
|
const functionDir = dirname6(entryFile);
|
|
243631
243618
|
const filePaths = await globby("**/*.{js,ts,json}", {
|
|
243632
243619
|
cwd: functionDir,
|
|
243633
243620
|
absolute: true
|
|
243634
243621
|
});
|
|
243622
|
+
const allFilePaths = [...new Set([...filePaths, ...sharedFiles])];
|
|
243635
243623
|
const name2 = relative(functionsDir, functionDir).split(/[/\\]/).join("/");
|
|
243636
243624
|
if (!name2) {
|
|
243637
243625
|
throw new InvalidInputError("entry.ts found directly in the functions directory — it must be inside a named subfolder", {
|
|
@@ -243647,7 +243635,7 @@ async function readAllFunctions(functionsDir) {
|
|
|
243647
243635
|
name: name2,
|
|
243648
243636
|
entry,
|
|
243649
243637
|
entryPath: entryFile,
|
|
243650
|
-
filePaths,
|
|
243638
|
+
filePaths: allFilePaths,
|
|
243651
243639
|
source: { type: "project" }
|
|
243652
243640
|
};
|
|
243653
243641
|
return functionData;
|
|
@@ -244174,7 +244162,7 @@ async function createProjectFilesForExistingProject(options) {
|
|
|
244174
244162
|
};
|
|
244175
244163
|
}
|
|
244176
244164
|
// src/core/project/deploy.ts
|
|
244177
|
-
import { resolve as
|
|
244165
|
+
import { resolve as resolve3 } from "node:path";
|
|
244178
244166
|
|
|
244179
244167
|
// src/core/site/api.ts
|
|
244180
244168
|
async function uploadSite(archivePath) {
|
|
@@ -244250,15 +244238,10 @@ function hasResourcesToDeploy(projectData) {
|
|
|
244250
244238
|
const hasAgents = agents.length > 0;
|
|
244251
244239
|
const hasConnectors = connectors.length > 0;
|
|
244252
244240
|
const hasAuthConfig = authConfig.length > 0;
|
|
244253
|
-
|
|
244254
|
-
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasAuthConfig || hasVisibility || hasSite;
|
|
244241
|
+
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasAuthConfig || hasSite;
|
|
244255
244242
|
}
|
|
244256
244243
|
async function deployAll(projectData, options) {
|
|
244257
244244
|
const { project, entities, functions, agents, connectors, authConfig } = projectData;
|
|
244258
|
-
await setAppVisibility(project.visibility);
|
|
244259
|
-
if (project.visibility) {
|
|
244260
|
-
options?.onVisibilitySet?.(project.visibility);
|
|
244261
|
-
}
|
|
244262
244245
|
await entityResource.push(entities);
|
|
244263
244246
|
await deployFunctionsSequentially(functions, {
|
|
244264
244247
|
onStart: options?.onFunctionStart,
|
|
@@ -244269,7 +244252,7 @@ async function deployAll(projectData, options) {
|
|
|
244269
244252
|
const skipConnectorSync = connectors.length === 0 && hasWorkspaceApiKeyAuth();
|
|
244270
244253
|
const connectorResults = skipConnectorSync ? [] : (await pushConnectors(connectors)).results;
|
|
244271
244254
|
if (project.site?.outputDirectory) {
|
|
244272
|
-
const outputDir =
|
|
244255
|
+
const outputDir = resolve3(project.root, project.site.outputDirectory);
|
|
244273
244256
|
const { appUrl } = await deploySite(outputDir);
|
|
244274
244257
|
return { appUrl, connectorResults };
|
|
244275
244258
|
}
|
|
@@ -246105,8 +246088,8 @@ var disconnect = (anyProcess) => {
|
|
|
246105
246088
|
// ../../node_modules/execa/lib/utils/deferred.js
|
|
246106
246089
|
var createDeferred = () => {
|
|
246107
246090
|
const methods = {};
|
|
246108
|
-
const promise2 = new Promise((
|
|
246109
|
-
Object.assign(methods, { resolve:
|
|
246091
|
+
const promise2 = new Promise((resolve4, reject) => {
|
|
246092
|
+
Object.assign(methods, { resolve: resolve4, reject });
|
|
246110
246093
|
});
|
|
246111
246094
|
return Object.assign(promise2, methods);
|
|
246112
246095
|
};
|
|
@@ -250470,11 +250453,11 @@ var addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
|
250470
250453
|
const promises = weakMap.get(stream);
|
|
250471
250454
|
const promise2 = createDeferred();
|
|
250472
250455
|
promises.push(promise2);
|
|
250473
|
-
const
|
|
250474
|
-
return { resolve:
|
|
250456
|
+
const resolve4 = promise2.resolve.bind(promise2);
|
|
250457
|
+
return { resolve: resolve4, promises };
|
|
250475
250458
|
};
|
|
250476
|
-
var waitForConcurrentStreams = async ({ resolve:
|
|
250477
|
-
|
|
250459
|
+
var waitForConcurrentStreams = async ({ resolve: resolve4, promises }, subprocess) => {
|
|
250460
|
+
resolve4();
|
|
250478
250461
|
const [isSubprocessExit] = await Promise.race([
|
|
250479
250462
|
Promise.allSettled([true, subprocess]),
|
|
250480
250463
|
Promise.all([false, ...promises])
|
|
@@ -251636,7 +251619,7 @@ function getAuthPushCommand() {
|
|
|
251636
251619
|
}
|
|
251637
251620
|
|
|
251638
251621
|
// src/cli/commands/auth/social-login.ts
|
|
251639
|
-
import { dirname as dirname13, join as join17, resolve as
|
|
251622
|
+
import { dirname as dirname13, join as join17, resolve as resolve4 } from "node:path";
|
|
251640
251623
|
var PROVIDER_LABELS = {
|
|
251641
251624
|
google: "Google",
|
|
251642
251625
|
microsoft: "Microsoft",
|
|
@@ -251676,7 +251659,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
|
|
|
251676
251659
|
let clientSecret;
|
|
251677
251660
|
if (useCustomOAuth && oauth && oauthCli && hasSecretOptions(options)) {
|
|
251678
251661
|
if (options.envFile) {
|
|
251679
|
-
const secrets = await parseEnvFile(
|
|
251662
|
+
const secrets = await parseEnvFile(resolve4(options.envFile));
|
|
251680
251663
|
const value = secrets[oauthCli.envVar];
|
|
251681
251664
|
if (!value) {
|
|
251682
251665
|
throw new InvalidInputError(`Key "${oauthCli.envVar}" not found in ${options.envFile}.`);
|
|
@@ -251732,7 +251715,7 @@ function getSocialLoginCommand() {
|
|
|
251732
251715
|
}
|
|
251733
251716
|
|
|
251734
251717
|
// src/cli/commands/auth/sso.ts
|
|
251735
|
-
import { dirname as dirname14, join as join18, resolve as
|
|
251718
|
+
import { dirname as dirname14, join as join18, resolve as resolve5 } from "node:path";
|
|
251736
251719
|
var SSOConfigFileSchema = exports_external.object({
|
|
251737
251720
|
provider: exports_external.enum(Object.values(KNOWN_SSO_PROVIDERS)),
|
|
251738
251721
|
clientId: exports_external.string(),
|
|
@@ -251748,7 +251731,7 @@ var SSOConfigFileSchema = exports_external.object({
|
|
|
251748
251731
|
ssoName: exports_external.string().optional()
|
|
251749
251732
|
});
|
|
251750
251733
|
async function loadSSOConfigFile(filePath) {
|
|
251751
|
-
const resolved =
|
|
251734
|
+
const resolved = resolve5(filePath);
|
|
251752
251735
|
const raw2 = await readJsonFile(resolved);
|
|
251753
251736
|
const result = SSOConfigFileSchema.safeParse(raw2);
|
|
251754
251737
|
if (!result.success) {
|
|
@@ -251836,7 +251819,7 @@ async function ssoEnableAction({ isNonInteractive, runTask: runTask2 }, options)
|
|
|
251836
251819
|
}
|
|
251837
251820
|
let clientSecret;
|
|
251838
251821
|
if (merged.envFile && !merged.clientSecret) {
|
|
251839
|
-
const secrets2 = await parseEnvFile(
|
|
251822
|
+
const secrets2 = await parseEnvFile(resolve5(merged.envFile));
|
|
251840
251823
|
const value = secrets2.sso_client_secret;
|
|
251841
251824
|
if (!value) {
|
|
251842
251825
|
throw new InvalidInputError(`Key "sso_client_secret" not found in ${merged.envFile}.`);
|
|
@@ -252474,19 +252457,19 @@ var baseOpen = async (options) => {
|
|
|
252474
252457
|
}
|
|
252475
252458
|
const subprocess = childProcess3.spawn(command2, cliArguments, childProcessOptions);
|
|
252476
252459
|
if (options.wait) {
|
|
252477
|
-
return new Promise((
|
|
252460
|
+
return new Promise((resolve6, reject) => {
|
|
252478
252461
|
subprocess.once("error", reject);
|
|
252479
252462
|
subprocess.once("close", (exitCode) => {
|
|
252480
252463
|
if (!options.allowNonzeroExitCode && exitCode !== 0) {
|
|
252481
252464
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
252482
252465
|
return;
|
|
252483
252466
|
}
|
|
252484
|
-
|
|
252467
|
+
resolve6(subprocess);
|
|
252485
252468
|
});
|
|
252486
252469
|
});
|
|
252487
252470
|
}
|
|
252488
252471
|
if (isFallbackAttempt) {
|
|
252489
|
-
return new Promise((
|
|
252472
|
+
return new Promise((resolve6, reject) => {
|
|
252490
252473
|
subprocess.once("error", reject);
|
|
252491
252474
|
subprocess.once("spawn", () => {
|
|
252492
252475
|
subprocess.once("close", (exitCode) => {
|
|
@@ -252496,17 +252479,17 @@ var baseOpen = async (options) => {
|
|
|
252496
252479
|
return;
|
|
252497
252480
|
}
|
|
252498
252481
|
subprocess.unref();
|
|
252499
|
-
|
|
252482
|
+
resolve6(subprocess);
|
|
252500
252483
|
});
|
|
252501
252484
|
});
|
|
252502
252485
|
});
|
|
252503
252486
|
}
|
|
252504
252487
|
subprocess.unref();
|
|
252505
|
-
return new Promise((
|
|
252488
|
+
return new Promise((resolve6, reject) => {
|
|
252506
252489
|
subprocess.once("error", reject);
|
|
252507
252490
|
subprocess.once("spawn", () => {
|
|
252508
252491
|
subprocess.off("error", reject);
|
|
252509
|
-
|
|
252492
|
+
resolve6(subprocess);
|
|
252510
252493
|
});
|
|
252511
252494
|
});
|
|
252512
252495
|
};
|
|
@@ -252769,10 +252752,10 @@ function getConnectorsListAvailableCommand() {
|
|
|
252769
252752
|
}
|
|
252770
252753
|
|
|
252771
252754
|
// src/cli/commands/connectors/pull.ts
|
|
252772
|
-
import { dirname as dirname15, join as join19, resolve as
|
|
252755
|
+
import { dirname as dirname15, join as join19, resolve as resolve6 } from "node:path";
|
|
252773
252756
|
async function resolveConnectorsDir(options) {
|
|
252774
252757
|
if (!getAppContext().projectRoot) {
|
|
252775
|
-
return
|
|
252758
|
+
return resolve6(options.dir ?? "connectors");
|
|
252776
252759
|
}
|
|
252777
252760
|
const { project: project2 } = await readProjectConfig();
|
|
252778
252761
|
return join19(dirname15(project2.configPath), project2.connectorsDir);
|
|
@@ -252816,10 +252799,10 @@ function getConnectorsPullCommand() {
|
|
|
252816
252799
|
}
|
|
252817
252800
|
|
|
252818
252801
|
// src/cli/commands/connectors/push.ts
|
|
252819
|
-
import { resolve as
|
|
252802
|
+
import { resolve as resolve7 } from "node:path";
|
|
252820
252803
|
async function readConnectorsToPush(options) {
|
|
252821
252804
|
if (!getAppContext().projectRoot) {
|
|
252822
|
-
return readAllConnectors(
|
|
252805
|
+
return readAllConnectors(resolve7(options.dir ?? "connectors"));
|
|
252823
252806
|
}
|
|
252824
252807
|
const { connectors } = await readProjectConfig();
|
|
252825
252808
|
return connectors;
|
|
@@ -253231,7 +253214,7 @@ function getFunctionsCommand() {
|
|
|
253231
253214
|
}
|
|
253232
253215
|
|
|
253233
253216
|
// src/cli/commands/project/create.ts
|
|
253234
|
-
import { basename as basename4, resolve as
|
|
253217
|
+
import { basename as basename4, resolve as resolve8 } from "node:path";
|
|
253235
253218
|
var import_kebabCase = __toESM(require_kebabCase(), 1);
|
|
253236
253219
|
|
|
253237
253220
|
// src/cli/commands/project/scaffold-shared.ts
|
|
@@ -253385,7 +253368,7 @@ async function createInteractive(options, ctx) {
|
|
|
253385
253368
|
}, ctx);
|
|
253386
253369
|
}
|
|
253387
253370
|
async function createNonInteractive(options, ctx) {
|
|
253388
|
-
ctx.log.info(`Creating a new project at ${
|
|
253371
|
+
ctx.log.info(`Creating a new project at ${resolve8(options.path)}`);
|
|
253389
253372
|
const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
|
|
253390
253373
|
return await executeCreate({
|
|
253391
253374
|
template: template2,
|
|
@@ -253407,7 +253390,7 @@ async function executeCreate({
|
|
|
253407
253390
|
}, ctx) {
|
|
253408
253391
|
const { log, runTask: runTask2 } = ctx;
|
|
253409
253392
|
const name2 = rawName.trim();
|
|
253410
|
-
const resolvedPath =
|
|
253393
|
+
const resolvedPath = resolve8(projectPath);
|
|
253411
253394
|
const { projectId } = await runTask2("Setting up your project...", async () => {
|
|
253412
253395
|
return await createProjectFiles({
|
|
253413
253396
|
name: name2,
|
|
@@ -253482,9 +253465,6 @@ async function deployAction({ isNonInteractive, log }, options = {}) {
|
|
|
253482
253465
|
if (authConfig.length > 0) {
|
|
253483
253466
|
summaryLines.push(" - Auth config");
|
|
253484
253467
|
}
|
|
253485
|
-
if (project2.visibility) {
|
|
253486
|
-
summaryLines.push(` - Visibility: ${project2.visibility}`);
|
|
253487
|
-
}
|
|
253488
253468
|
if (project2.site?.outputDirectory) {
|
|
253489
253469
|
summaryLines.push(` - Site from ${project2.site.outputDirectory}`);
|
|
253490
253470
|
}
|
|
@@ -253506,9 +253486,6 @@ ${summaryLines.join(`
|
|
|
253506
253486
|
let functionCompleted = 0;
|
|
253507
253487
|
const functionTotal = functions.length;
|
|
253508
253488
|
const result = await deployAll(projectData, {
|
|
253509
|
-
onVisibilitySet: (level) => {
|
|
253510
|
-
log.success(`App visibility set to ${level}`);
|
|
253511
|
-
},
|
|
253512
253489
|
onFunctionStart: (names) => {
|
|
253513
253490
|
const label = names.length === 1 ? names[0] : `${names.length} functions`;
|
|
253514
253491
|
log.step(theme.styles.dim(`[${functionCompleted + 1}/${functionTotal}] Deploying ${label}...`));
|
|
@@ -253809,7 +253786,7 @@ async function followLogs(functionNames, options, availableFunctionNames, jsonMo
|
|
|
253809
253786
|
for (const entry of fresh)
|
|
253810
253787
|
writeFollowLine(entry, jsonMode);
|
|
253811
253788
|
first = false;
|
|
253812
|
-
await new Promise((
|
|
253789
|
+
await new Promise((resolve9) => setTimeout(resolve9, 2000));
|
|
253813
253790
|
}
|
|
253814
253791
|
}
|
|
253815
253792
|
function formatLogs(entries, env3) {
|
|
@@ -253923,7 +253900,7 @@ function getLogsCommand() {
|
|
|
253923
253900
|
}
|
|
253924
253901
|
|
|
253925
253902
|
// src/cli/commands/project/scaffold.ts
|
|
253926
|
-
import { basename as basename5, resolve as
|
|
253903
|
+
import { basename as basename5, resolve as resolve9 } from "node:path";
|
|
253927
253904
|
function resolveAppId(options) {
|
|
253928
253905
|
const appId = options.appId;
|
|
253929
253906
|
if (!appId) {
|
|
@@ -253939,7 +253916,7 @@ function resolveAppId(options) {
|
|
|
253939
253916
|
async function scaffoldAction(ctx, name2, options, command2) {
|
|
253940
253917
|
const { log, runTask: runTask2 } = ctx;
|
|
253941
253918
|
const appId = resolveAppId(command2.optsWithGlobals());
|
|
253942
|
-
const resolvedPath =
|
|
253919
|
+
const resolvedPath = resolve9("./");
|
|
253943
253920
|
const projectName = (name2 ?? basename5(resolvedPath)).trim();
|
|
253944
253921
|
const template2 = await getTemplateById("backend-only");
|
|
253945
253922
|
log.info(`Scaffolding project at ${resolvedPath}`);
|
|
@@ -253976,17 +253953,6 @@ Examples:
|
|
|
253976
253953
|
$ base44 scaffold my-app --app-id app_123 Scaffolds the current dir, named "my-app"`).action(scaffoldAction);
|
|
253977
253954
|
}
|
|
253978
253955
|
|
|
253979
|
-
// src/cli/commands/project/visibility.ts
|
|
253980
|
-
async function setVisibility({ runTask: runTask2 }, level) {
|
|
253981
|
-
await runTask2(`Setting app visibility to ${level}`, () => setAppVisibility(level));
|
|
253982
|
-
return { outroMessage: `App visibility set to ${level}` };
|
|
253983
|
-
}
|
|
253984
|
-
function getVisibilityCommand() {
|
|
253985
|
-
return new Base44Command("visibility").description("Set the app's visibility on the server (public, private, or workspace)").addArgument(new Argument("<level>", "Visibility level").choices([
|
|
253986
|
-
...VISIBILITY_LEVELS
|
|
253987
|
-
])).action(setVisibility);
|
|
253988
|
-
}
|
|
253989
|
-
|
|
253990
253956
|
// src/core/resources/sandbox/schema.ts
|
|
253991
253957
|
var FileErrorSchema = exports_external.object({
|
|
253992
253958
|
code: exports_external.string(),
|
|
@@ -254340,7 +254306,7 @@ function getSecretsListCommand() {
|
|
|
254340
254306
|
}
|
|
254341
254307
|
|
|
254342
254308
|
// src/cli/commands/secrets/set.ts
|
|
254343
|
-
import { resolve as
|
|
254309
|
+
import { resolve as resolve10 } from "node:path";
|
|
254344
254310
|
function parseEntries(entries) {
|
|
254345
254311
|
const secrets = {};
|
|
254346
254312
|
for (const entry of entries) {
|
|
@@ -254371,7 +254337,7 @@ async function setSecretsAction({ log, runTask: runTask2 }, entries, options) {
|
|
|
254371
254337
|
validateInput(entries, options);
|
|
254372
254338
|
let secrets;
|
|
254373
254339
|
if (options.envFile) {
|
|
254374
|
-
secrets = await parseEnvFile(
|
|
254340
|
+
secrets = await parseEnvFile(resolve10(options.envFile));
|
|
254375
254341
|
if (Object.keys(secrets).length === 0) {
|
|
254376
254342
|
throw new InvalidInputError("The env file contains no valid KEY=VALUE entries.");
|
|
254377
254343
|
}
|
|
@@ -254400,7 +254366,7 @@ function getSecretsCommand() {
|
|
|
254400
254366
|
}
|
|
254401
254367
|
|
|
254402
254368
|
// src/cli/commands/site/deploy.ts
|
|
254403
|
-
import { resolve as
|
|
254369
|
+
import { resolve as resolve11 } from "node:path";
|
|
254404
254370
|
async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
|
|
254405
254371
|
if (isNonInteractive && !options.yes) {
|
|
254406
254372
|
throw new InvalidInputError("--yes is required in non-interactive mode");
|
|
@@ -254415,7 +254381,7 @@ async function deployAction2({ isNonInteractive, runTask: runTask2 }, options) {
|
|
|
254415
254381
|
]
|
|
254416
254382
|
});
|
|
254417
254383
|
}
|
|
254418
|
-
const outputDir =
|
|
254384
|
+
const outputDir = resolve11(project2.root, project2.site.outputDirectory);
|
|
254419
254385
|
if (!options.yes) {
|
|
254420
254386
|
const shouldDeploy = await Re({
|
|
254421
254387
|
message: `Deploy site from ${project2.site.outputDirectory}?`
|
|
@@ -254621,14 +254587,14 @@ var getLocalHosts = () => {
|
|
|
254621
254587
|
}
|
|
254622
254588
|
return results;
|
|
254623
254589
|
};
|
|
254624
|
-
var checkAvailablePort = (options8) => new Promise((
|
|
254590
|
+
var checkAvailablePort = (options8) => new Promise((resolve13, reject) => {
|
|
254625
254591
|
const server = net.createServer();
|
|
254626
254592
|
server.unref();
|
|
254627
254593
|
server.on("error", reject);
|
|
254628
254594
|
server.listen(options8, () => {
|
|
254629
254595
|
const { port } = server.address();
|
|
254630
254596
|
server.close(() => {
|
|
254631
|
-
|
|
254597
|
+
resolve13(port);
|
|
254632
254598
|
});
|
|
254633
254599
|
});
|
|
254634
254600
|
});
|
|
@@ -254887,7 +254853,7 @@ class FunctionManager {
|
|
|
254887
254853
|
});
|
|
254888
254854
|
}
|
|
254889
254855
|
waitForReady(name2, runningFunc) {
|
|
254890
|
-
return new Promise((
|
|
254856
|
+
return new Promise((resolve13, reject) => {
|
|
254891
254857
|
runningFunc.process.on("exit", (code2) => {
|
|
254892
254858
|
if (!runningFunc.ready) {
|
|
254893
254859
|
clearTimeout(timeout3);
|
|
@@ -254910,7 +254876,7 @@ class FunctionManager {
|
|
|
254910
254876
|
runningFunc.ready = true;
|
|
254911
254877
|
clearTimeout(timeout3);
|
|
254912
254878
|
runningFunc.process.stdout?.off("data", onData);
|
|
254913
|
-
|
|
254879
|
+
resolve13(runningFunc.port);
|
|
254914
254880
|
}
|
|
254915
254881
|
};
|
|
254916
254882
|
runningFunc.process.stdout?.on("data", onData);
|
|
@@ -256168,15 +256134,15 @@ class ServeRunner {
|
|
|
256168
256134
|
return;
|
|
256169
256135
|
}
|
|
256170
256136
|
this.stopping = true;
|
|
256171
|
-
const exited = new Promise((
|
|
256137
|
+
const exited = new Promise((resolve13) => child.once("exit", () => resolve13()));
|
|
256172
256138
|
if (process21.platform === "win32" && child.pid) {
|
|
256173
256139
|
const taskkill = spawn3("taskkill", ["/pid", String(child.pid), "/T", "/F"], {
|
|
256174
256140
|
stdio: "ignore",
|
|
256175
256141
|
windowsHide: true
|
|
256176
256142
|
});
|
|
256177
|
-
await new Promise((
|
|
256178
|
-
taskkill.once("exit", () =>
|
|
256179
|
-
taskkill.once("error", () =>
|
|
256143
|
+
await new Promise((resolve13) => {
|
|
256144
|
+
taskkill.once("exit", () => resolve13());
|
|
256145
|
+
taskkill.once("error", () => resolve13());
|
|
256180
256146
|
});
|
|
256181
256147
|
} else if (child.pid) {
|
|
256182
256148
|
try {
|
|
@@ -257070,7 +257036,7 @@ class NodeFsHandler {
|
|
|
257070
257036
|
this._addToNodeFs(path19, initialAdd, wh2, depth + 1);
|
|
257071
257037
|
}
|
|
257072
257038
|
}).on(EV.ERROR, this._boundHandleError);
|
|
257073
|
-
return new Promise((
|
|
257039
|
+
return new Promise((resolve14, reject) => {
|
|
257074
257040
|
if (!stream)
|
|
257075
257041
|
return reject();
|
|
257076
257042
|
stream.once(STR_END, () => {
|
|
@@ -257079,7 +257045,7 @@ class NodeFsHandler {
|
|
|
257079
257045
|
return;
|
|
257080
257046
|
}
|
|
257081
257047
|
const wasThrottled = throttler ? throttler.clear() : false;
|
|
257082
|
-
|
|
257048
|
+
resolve14(undefined);
|
|
257083
257049
|
previous.getChildren().filter((item) => {
|
|
257084
257050
|
return item !== directory && !current.has(item);
|
|
257085
257051
|
}).forEach((item) => {
|
|
@@ -257996,7 +257962,7 @@ async function createDevServer(options8) {
|
|
|
257996
257962
|
}
|
|
257997
257963
|
remoteProxy(req, res, next);
|
|
257998
257964
|
});
|
|
257999
|
-
const server = await new Promise((
|
|
257965
|
+
const server = await new Promise((resolve15, reject) => {
|
|
258000
257966
|
const s5 = app.listen(port, "127.0.0.1", (err) => {
|
|
258001
257967
|
if (err) {
|
|
258002
257968
|
if ("code" in err && err.code === "EADDRINUSE") {
|
|
@@ -258005,7 +257971,7 @@ async function createDevServer(options8) {
|
|
|
258005
257971
|
reject(err);
|
|
258006
257972
|
}
|
|
258007
257973
|
} else {
|
|
258008
|
-
|
|
257974
|
+
resolve15(s5);
|
|
258009
257975
|
}
|
|
258010
257976
|
});
|
|
258011
257977
|
});
|
|
@@ -258068,13 +258034,13 @@ async function createDevServer(options8) {
|
|
|
258068
258034
|
if (!server.listening) {
|
|
258069
258035
|
return;
|
|
258070
258036
|
}
|
|
258071
|
-
await new Promise((
|
|
258037
|
+
await new Promise((resolve15, reject) => {
|
|
258072
258038
|
server.close((error48) => {
|
|
258073
258039
|
if (error48) {
|
|
258074
258040
|
reject(error48);
|
|
258075
258041
|
return;
|
|
258076
258042
|
}
|
|
258077
|
-
|
|
258043
|
+
resolve15();
|
|
258078
258044
|
});
|
|
258079
258045
|
});
|
|
258080
258046
|
};
|
|
@@ -258183,13 +258149,13 @@ async function runScript(options8) {
|
|
|
258183
258149
|
}
|
|
258184
258150
|
// src/cli/commands/exec.ts
|
|
258185
258151
|
function readStdin2() {
|
|
258186
|
-
return new Promise((
|
|
258152
|
+
return new Promise((resolve15, reject) => {
|
|
258187
258153
|
let data = "";
|
|
258188
258154
|
process.stdin.setEncoding("utf-8");
|
|
258189
258155
|
process.stdin.on("data", (chunk) => {
|
|
258190
258156
|
data += chunk;
|
|
258191
258157
|
});
|
|
258192
|
-
process.stdin.on("end", () =>
|
|
258158
|
+
process.stdin.on("end", () => resolve15(data));
|
|
258193
258159
|
process.stdin.on("error", reject);
|
|
258194
258160
|
});
|
|
258195
258161
|
}
|
|
@@ -258231,7 +258197,7 @@ Examples:
|
|
|
258231
258197
|
}
|
|
258232
258198
|
|
|
258233
258199
|
// src/cli/commands/project/eject.ts
|
|
258234
|
-
import { resolve as
|
|
258200
|
+
import { resolve as resolve15 } from "node:path";
|
|
258235
258201
|
var import_kebabCase2 = __toESM(require_kebabCase(), 1);
|
|
258236
258202
|
async function eject(ctx, options8, command2) {
|
|
258237
258203
|
const { log, runTask: runTask2, isNonInteractive } = ctx;
|
|
@@ -258295,7 +258261,7 @@ async function eject(ctx, options8, command2) {
|
|
|
258295
258261
|
Ne("Operation cancelled.");
|
|
258296
258262
|
throw new CLIExitError(0);
|
|
258297
258263
|
}
|
|
258298
|
-
const resolvedPath =
|
|
258264
|
+
const resolvedPath = resolve15(selectedPath);
|
|
258299
258265
|
await runTask2("Downloading your project's code...", async (updateMessage) => {
|
|
258300
258266
|
await createProjectFilesForExistingProject({
|
|
258301
258267
|
projectId,
|
|
@@ -258358,7 +258324,6 @@ function createProgram(context) {
|
|
|
258358
258324
|
program2.addCommand(getScaffoldCommand());
|
|
258359
258325
|
program2.addCommand(getDashboardCommand());
|
|
258360
258326
|
program2.addCommand(getDeployCommand2());
|
|
258361
|
-
program2.addCommand(getVisibilityCommand());
|
|
258362
258327
|
program2.addCommand(getLinkCommand());
|
|
258363
258328
|
program2.addCommand(getEjectCommand());
|
|
258364
258329
|
program2.addCommand(getEntitiesPushCommand());
|
|
@@ -260668,14 +260633,14 @@ async function addSourceContext(frames) {
|
|
|
260668
260633
|
return frames;
|
|
260669
260634
|
}
|
|
260670
260635
|
function getContextLinesFromFile(path19, ranges, output) {
|
|
260671
|
-
return new Promise((
|
|
260636
|
+
return new Promise((resolve16) => {
|
|
260672
260637
|
const stream = createReadStream2(path19);
|
|
260673
260638
|
const lineReaded = createInterface2({
|
|
260674
260639
|
input: stream
|
|
260675
260640
|
});
|
|
260676
260641
|
function destroyStreamAndResolve() {
|
|
260677
260642
|
stream.destroy();
|
|
260678
|
-
|
|
260643
|
+
resolve16();
|
|
260679
260644
|
}
|
|
260680
260645
|
let lineNumber = 0;
|
|
260681
260646
|
let currentRangeIndex = 0;
|
|
@@ -261787,15 +261752,15 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
261787
261752
|
return true;
|
|
261788
261753
|
if (this.featureFlagsPoller === undefined)
|
|
261789
261754
|
return false;
|
|
261790
|
-
return new Promise((
|
|
261755
|
+
return new Promise((resolve16) => {
|
|
261791
261756
|
const timeout3 = setTimeout(() => {
|
|
261792
261757
|
cleanup();
|
|
261793
|
-
|
|
261758
|
+
resolve16(false);
|
|
261794
261759
|
}, timeoutMs);
|
|
261795
261760
|
const cleanup = this._events.on("localEvaluationFlagsLoaded", (count2) => {
|
|
261796
261761
|
clearTimeout(timeout3);
|
|
261797
261762
|
cleanup();
|
|
261798
|
-
|
|
261763
|
+
resolve16(count2 > 0);
|
|
261799
261764
|
});
|
|
261800
261765
|
});
|
|
261801
261766
|
}
|
|
@@ -262620,4 +262585,4 @@ export {
|
|
|
262620
262585
|
CLIExitError
|
|
262621
262586
|
};
|
|
262622
262587
|
|
|
262623
|
-
//# debugId=
|
|
262588
|
+
//# debugId=2758F4A8B728399A64756E2164756E21
|