base44 0.0.38 → 0.0.40
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/bin/binary-entry.ts +40 -0
- package/dist/{deno-runtime → assets/deno-runtime}/main.js.map +1 -1
- package/dist/cli/index.js +484 -483
- package/dist/cli/index.js.map +1 -1
- package/package.json +7 -4
- /package/dist/{deno-runtime → assets/deno-runtime}/main.js +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/.nvmrc +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/README.md +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/base44/agents/task_manager.jsonc +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/base44/app.jsonc.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/base44/config.jsonc.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/base44/entities/task.jsonc +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/components.json +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/gitignore.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/index.html +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/jsconfig.json +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/package.json +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/postcss.config.js +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/App.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/api/base44Client.js.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/components/Base44Logo.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/components/ui/button.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/components/ui/checkbox.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/components/ui/input.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/index.css +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/src/main.jsx +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/tailwind.config.js +0 -0
- /package/dist/{templates → assets/templates}/backend-and-client/vite.config.js +0 -0
- /package/dist/{templates → assets/templates}/backend-only/base44/app.jsonc.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-only/base44/config.jsonc.ejs +0 -0
- /package/dist/{templates → assets/templates}/backend-only/base44/gitignore.ejs +0 -0
- /package/dist/{templates → assets/templates}/templates.json +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -1,28 +1,46 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019cce82-2208-76e3-89fc-48bf55520a2a")}catch(e){}}();import { createRequire } from "node:module";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
7
12
|
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
8
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
22
|
for (let key of __getOwnPropNames(mod))
|
|
11
23
|
if (!__hasOwnProp.call(to, key))
|
|
12
24
|
__defProp(to, key, {
|
|
13
|
-
get: (
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
14
26
|
enumerable: true
|
|
15
27
|
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
16
30
|
return to;
|
|
17
31
|
};
|
|
18
32
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
+
var __returnValue = (v) => v;
|
|
34
|
+
function __exportSetter(name, newValue) {
|
|
35
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
36
|
+
}
|
|
19
37
|
var __export = (target, all) => {
|
|
20
38
|
for (var name in all)
|
|
21
39
|
__defProp(target, name, {
|
|
22
40
|
get: all[name],
|
|
23
41
|
enumerable: true,
|
|
24
42
|
configurable: true,
|
|
25
|
-
set: (
|
|
43
|
+
set: __exportSetter.bind(all, name)
|
|
26
44
|
});
|
|
27
45
|
};
|
|
28
46
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -2036,7 +2054,7 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
2036
2054
|
var token;
|
|
2037
2055
|
var key;
|
|
2038
2056
|
var root;
|
|
2039
|
-
module.exports = function
|
|
2057
|
+
module.exports = function parse5(text, reviver) {
|
|
2040
2058
|
source = String(text);
|
|
2041
2059
|
parseState = "start";
|
|
2042
2060
|
stack = [];
|
|
@@ -8915,10 +8933,10 @@ var require_ejs = __commonJS((exports) => {
|
|
|
8915
8933
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
8916
8934
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
8917
8935
|
exports.resolveInclude = function(name2, filename, isDir) {
|
|
8918
|
-
var
|
|
8936
|
+
var dirname6 = path11.dirname;
|
|
8919
8937
|
var extname = path11.extname;
|
|
8920
8938
|
var resolve = path11.resolve;
|
|
8921
|
-
var includePath = resolve(isDir ? filename :
|
|
8939
|
+
var includePath = resolve(isDir ? filename : dirname6(filename), name2);
|
|
8922
8940
|
var ext = extname(name2);
|
|
8923
8941
|
if (!ext) {
|
|
8924
8942
|
includePath += ".ejs";
|
|
@@ -13774,7 +13792,7 @@ var require_TemplateTag = __commonJS((exports, module) => {
|
|
|
13774
13792
|
}, {
|
|
13775
13793
|
key: "transformString",
|
|
13776
13794
|
value: function transformString(str) {
|
|
13777
|
-
var cb = function
|
|
13795
|
+
var cb = function cb2(res, transform2) {
|
|
13778
13796
|
return transform2.onString ? transform2.onString(res) : res;
|
|
13779
13797
|
};
|
|
13780
13798
|
return this.transformers.reduce(cb, str);
|
|
@@ -13782,7 +13800,7 @@ var require_TemplateTag = __commonJS((exports, module) => {
|
|
|
13782
13800
|
}, {
|
|
13783
13801
|
key: "transformSubstitution",
|
|
13784
13802
|
value: function transformSubstitution(substitution, resultSoFar) {
|
|
13785
|
-
var cb = function
|
|
13803
|
+
var cb = function cb2(res, transform2) {
|
|
13786
13804
|
return transform2.onSubstitution ? transform2.onSubstitution(res, resultSoFar) : res;
|
|
13787
13805
|
};
|
|
13788
13806
|
return this.transformers.reduce(cb, substitution);
|
|
@@ -13790,7 +13808,7 @@ var require_TemplateTag = __commonJS((exports, module) => {
|
|
|
13790
13808
|
}, {
|
|
13791
13809
|
key: "transformEndResult",
|
|
13792
13810
|
value: function transformEndResult(endResult) {
|
|
13793
|
-
var cb = function
|
|
13811
|
+
var cb = function cb2(res, transform2) {
|
|
13794
13812
|
return transform2.onEndResult ? transform2.onEndResult(res) : res;
|
|
13795
13813
|
};
|
|
13796
13814
|
return this.transformers.reduce(cb, endResult);
|
|
@@ -13822,7 +13840,7 @@ var require_trimResultTransformer = __commonJS((exports, module) => {
|
|
|
13822
13840
|
Object.defineProperty(exports, "__esModule", {
|
|
13823
13841
|
value: true
|
|
13824
13842
|
});
|
|
13825
|
-
var trimResultTransformer = function
|
|
13843
|
+
var trimResultTransformer = function trimResultTransformer2() {
|
|
13826
13844
|
var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
13827
13845
|
return {
|
|
13828
13846
|
onEndResult: function onEndResult(endResult) {
|
|
@@ -13874,7 +13892,7 @@ var require_stripIndentTransformer = __commonJS((exports, module) => {
|
|
|
13874
13892
|
return Array.from(arr);
|
|
13875
13893
|
}
|
|
13876
13894
|
}
|
|
13877
|
-
var stripIndentTransformer = function
|
|
13895
|
+
var stripIndentTransformer = function stripIndentTransformer2() {
|
|
13878
13896
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "initial";
|
|
13879
13897
|
return {
|
|
13880
13898
|
onEndResult: function onEndResult(endResult) {
|
|
@@ -13920,7 +13938,7 @@ var require_replaceResultTransformer = __commonJS((exports, module) => {
|
|
|
13920
13938
|
Object.defineProperty(exports, "__esModule", {
|
|
13921
13939
|
value: true
|
|
13922
13940
|
});
|
|
13923
|
-
var replaceResultTransformer = function
|
|
13941
|
+
var replaceResultTransformer = function replaceResultTransformer2(replaceWhat, replaceWith) {
|
|
13924
13942
|
return {
|
|
13925
13943
|
onEndResult: function onEndResult(endResult) {
|
|
13926
13944
|
if (replaceWhat == null || replaceWith == null) {
|
|
@@ -13954,7 +13972,7 @@ var require_replaceSubstitutionTransformer = __commonJS((exports, module) => {
|
|
|
13954
13972
|
Object.defineProperty(exports, "__esModule", {
|
|
13955
13973
|
value: true
|
|
13956
13974
|
});
|
|
13957
|
-
var replaceSubstitutionTransformer = function
|
|
13975
|
+
var replaceSubstitutionTransformer = function replaceSubstitutionTransformer2(replaceWhat, replaceWith) {
|
|
13958
13976
|
return {
|
|
13959
13977
|
onSubstitution: function onSubstitution(substitution, resultSoFar) {
|
|
13960
13978
|
if (replaceWhat == null || replaceWith == null) {
|
|
@@ -13992,7 +14010,7 @@ var require_replaceStringTransformer = __commonJS((exports, module) => {
|
|
|
13992
14010
|
Object.defineProperty(exports, "__esModule", {
|
|
13993
14011
|
value: true
|
|
13994
14012
|
});
|
|
13995
|
-
var replaceStringTransformer = function
|
|
14013
|
+
var replaceStringTransformer = function replaceStringTransformer2(replaceWhat, replaceWith) {
|
|
13996
14014
|
return {
|
|
13997
14015
|
onString: function onString(str) {
|
|
13998
14016
|
if (replaceWhat == null || replaceWith == null) {
|
|
@@ -14031,7 +14049,7 @@ var require_inlineArrayTransformer = __commonJS((exports, module) => {
|
|
|
14031
14049
|
conjunction: "",
|
|
14032
14050
|
serial: false
|
|
14033
14051
|
};
|
|
14034
|
-
var inlineArrayTransformer = function
|
|
14052
|
+
var inlineArrayTransformer = function inlineArrayTransformer2() {
|
|
14035
14053
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaults;
|
|
14036
14054
|
return {
|
|
14037
14055
|
onSubstitution: function onSubstitution(substitution, resultSoFar) {
|
|
@@ -14079,7 +14097,7 @@ var require_splitStringTransformer = __commonJS((exports, module) => {
|
|
|
14079
14097
|
Object.defineProperty(exports, "__esModule", {
|
|
14080
14098
|
value: true
|
|
14081
14099
|
});
|
|
14082
|
-
var splitStringTransformer = function
|
|
14100
|
+
var splitStringTransformer = function splitStringTransformer2(splitBy) {
|
|
14083
14101
|
return {
|
|
14084
14102
|
onSubstitution: function onSubstitution(substitution, resultSoFar) {
|
|
14085
14103
|
if (splitBy != null && typeof splitBy === "string") {
|
|
@@ -14117,10 +14135,10 @@ var require_removeNonPrintingValuesTransformer = __commonJS((exports, module) =>
|
|
|
14117
14135
|
Object.defineProperty(exports, "__esModule", {
|
|
14118
14136
|
value: true
|
|
14119
14137
|
});
|
|
14120
|
-
var isValidValue = function
|
|
14138
|
+
var isValidValue = function isValidValue2(x3) {
|
|
14121
14139
|
return x3 != null && !Number.isNaN(x3) && typeof x3 !== "boolean";
|
|
14122
14140
|
};
|
|
14123
|
-
var removeNonPrintingValuesTransformer = function
|
|
14141
|
+
var removeNonPrintingValuesTransformer = function removeNonPrintingValuesTransformer2() {
|
|
14124
14142
|
return {
|
|
14125
14143
|
onSubstitution: function onSubstitution(substitution) {
|
|
14126
14144
|
if (Array.isArray(substitution)) {
|
|
@@ -15456,7 +15474,7 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
15456
15474
|
function unicodeWords(string4) {
|
|
15457
15475
|
return string4.match(reUnicodeWord) || [];
|
|
15458
15476
|
}
|
|
15459
|
-
var runInContext = function
|
|
15477
|
+
var runInContext = function runInContext2(context) {
|
|
15460
15478
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
15461
15479
|
var { Array: Array2, Date: Date2, Error: Error2, Function: Function2, Math: Math2, Object: Object2, RegExp: RegExp2, String: String2, TypeError: TypeError2 } = context;
|
|
15462
15480
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
@@ -18022,7 +18040,7 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
18022
18040
|
}
|
|
18023
18041
|
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
|
|
18024
18042
|
});
|
|
18025
|
-
function
|
|
18043
|
+
function join13(array2, separator) {
|
|
18026
18044
|
return array2 == null ? "" : nativeJoin.call(array2, separator);
|
|
18027
18045
|
}
|
|
18028
18046
|
function last(array2) {
|
|
@@ -19954,7 +19972,7 @@ __p += '`;
|
|
|
19954
19972
|
lodash.isUndefined = isUndefined;
|
|
19955
19973
|
lodash.isWeakMap = isWeakMap;
|
|
19956
19974
|
lodash.isWeakSet = isWeakSet;
|
|
19957
|
-
lodash.join =
|
|
19975
|
+
lodash.join = join13;
|
|
19958
19976
|
lodash.kebabCase = kebabCase2;
|
|
19959
19977
|
lodash.last = last;
|
|
19960
19978
|
lodash.lastIndexOf = lastIndexOf;
|
|
@@ -19989,7 +20007,7 @@ __p += '`;
|
|
|
19989
20007
|
lodash.replace = replace3;
|
|
19990
20008
|
lodash.result = result;
|
|
19991
20009
|
lodash.round = round;
|
|
19992
|
-
lodash.runInContext =
|
|
20010
|
+
lodash.runInContext = runInContext2;
|
|
19993
20011
|
lodash.sample = sample;
|
|
19994
20012
|
lodash.size = size;
|
|
19995
20013
|
lodash.snakeCase = snakeCase;
|
|
@@ -20583,7 +20601,7 @@ function cleanDoc(doc2) {
|
|
|
20583
20601
|
return mapDoc(doc2, (currentDoc) => cleanDocFn(currentDoc));
|
|
20584
20602
|
}
|
|
20585
20603
|
function replaceEndOfLine(doc2, replacement = literalline) {
|
|
20586
|
-
return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ?
|
|
20604
|
+
return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ? join13(replacement, currentDoc.split(`
|
|
20587
20605
|
`)) : currentDoc);
|
|
20588
20606
|
}
|
|
20589
20607
|
function canBreakFn(doc2) {
|
|
@@ -20663,7 +20681,7 @@ function indentIfBreak(contents, options) {
|
|
|
20663
20681
|
negate: options.negate
|
|
20664
20682
|
};
|
|
20665
20683
|
}
|
|
20666
|
-
function
|
|
20684
|
+
function join13(separator, docs) {
|
|
20667
20685
|
assertDoc(separator);
|
|
20668
20686
|
assertDocArray(docs);
|
|
20669
20687
|
const parts = [];
|
|
@@ -21374,7 +21392,7 @@ var init_doc = __esm(() => {
|
|
|
21374
21392
|
MODE_FLAT = Symbol("MODE_FLAT");
|
|
21375
21393
|
DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
21376
21394
|
builders = {
|
|
21377
|
-
join:
|
|
21395
|
+
join: join13,
|
|
21378
21396
|
line,
|
|
21379
21397
|
softline,
|
|
21380
21398
|
hardline,
|
|
@@ -29142,7 +29160,7 @@ function Au(e2) {
|
|
|
29142
29160
|
}
|
|
29143
29161
|
function Tu(e2, t, r, n2 = {}) {
|
|
29144
29162
|
let s = [], i2, o2 = [], u2 = false, p = !n2.expandLastArg && e2.node.body.type === "ArrowFunctionExpression", c3;
|
|
29145
|
-
(function
|
|
29163
|
+
(function O2() {
|
|
29146
29164
|
let { node: h2 } = e2, g = Em(e2, t, r, n2);
|
|
29147
29165
|
if (s.length === 0)
|
|
29148
29166
|
s.push(g);
|
|
@@ -29150,7 +29168,7 @@ function Tu(e2, t, r, n2 = {}) {
|
|
|
29150
29168
|
let { leading: S2, trailing: j2 } = Mt3(e2, t);
|
|
29151
29169
|
s.push([S2, g]), o2.unshift(j2);
|
|
29152
29170
|
}
|
|
29153
|
-
p && (u2 || (u2 = h2.returnType && K3(h2).length > 0 || h2.typeParameters || K3(h2).some((S2) => S2.type !== "Identifier"))), !p || h2.body.type !== "ArrowFunctionExpression" ? (i2 = r("body", n2), c3 = h2.body) : e2.call(
|
|
29171
|
+
p && (u2 || (u2 = h2.returnType && K3(h2).length > 0 || h2.typeParameters || K3(h2).some((S2) => S2.type !== "Identifier"))), !p || h2.body.type !== "ArrowFunctionExpression" ? (i2 = r("body", n2), c3 = h2.body) : e2.call(O2, "body");
|
|
29154
29172
|
})();
|
|
29155
29173
|
let y2 = !Ee2(t.originalText, c3) && (ym(c3) || Fm(c3, i2, t) || !u2 && Au(c3)), D3 = e2.key === "callee" && Dt3(e2.parent), F2 = Symbol("arrow-chain"), C2 = dm(e2, n2, { signatureDocs: s, shouldBreak: u2 }), d2 = false, b2 = false, B2 = false;
|
|
29156
29174
|
return p && (D3 || n2.assignmentLayout) && (b2 = true, B2 = !T2(e2.node, x3.Leading & x3.Line), d2 = n2.assignmentLayout === "chain-tail-arrow-chain" || D3 && !y2), i2 = Cm(e2, t, n2, { bodyDoc: i2, bodyComments: o2, functionBody: c3, shouldPutBodyOnSameLine: y2 }), l([l(b2 ? m([B2 ? f : "", C2]) : C2, { shouldBreak: d2, id: F2 }), " =>", p ? yt4(i2, { groupId: F2 }) : l(i2), p && D3 ? P2(f, "", { groupId: F2 }) : ""]);
|
|
@@ -83211,9 +83229,9 @@ function Ur7(e7, r) {
|
|
|
83211
83229
|
`) ? t24.slice(0, -1) : t24;
|
|
83212
83230
|
}
|
|
83213
83231
|
function ye9(e7, r) {
|
|
83214
|
-
return function
|
|
83232
|
+
return function t24(n3, i2, u2) {
|
|
83215
83233
|
let a5 = { ...r(n3, i2, u2) };
|
|
83216
|
-
return a5.children && (a5.children = a5.children.map((o4, s) =>
|
|
83234
|
+
return a5.children && (a5.children = a5.children.map((o4, s) => t24(o4, s, [a5, ...u2]))), a5;
|
|
83217
83235
|
}(e7, null, []);
|
|
83218
83236
|
}
|
|
83219
83237
|
function Yr7(e7) {
|
|
@@ -83386,11 +83404,11 @@ function Ri7(e7, r, t24) {
|
|
|
83386
83404
|
}
|
|
83387
83405
|
function yf(e7) {
|
|
83388
83406
|
let r = [""];
|
|
83389
|
-
return function
|
|
83407
|
+
return function t24(n3) {
|
|
83390
83408
|
for (let i2 of n3) {
|
|
83391
83409
|
let u2 = W10(i2);
|
|
83392
83410
|
if (u2 === j7) {
|
|
83393
|
-
|
|
83411
|
+
t24(i2);
|
|
83394
83412
|
continue;
|
|
83395
83413
|
}
|
|
83396
83414
|
let a5 = i2, o4 = [];
|
|
@@ -85796,12 +85814,12 @@ $$`;
|
|
|
85796
85814
|
return;
|
|
85797
85815
|
return r[t24];
|
|
85798
85816
|
};
|
|
85799
|
-
gc2.exports = function
|
|
85817
|
+
gc2.exports = function e7() {
|
|
85800
85818
|
var r, t24, n3, i2, u2, a5, o4 = arguments[0], s = 1, l5 = arguments.length, c6 = false;
|
|
85801
85819
|
for (typeof o4 == "boolean" && (c6 = o4, o4 = arguments[1] || {}, s = 2), (o4 == null || typeof o4 != "object" && typeof o4 != "function") && (o4 = {});s < l5; ++s)
|
|
85802
85820
|
if (r = arguments[s], r != null)
|
|
85803
85821
|
for (t24 in r)
|
|
85804
|
-
n3 = mc2(o4, t24), i2 = mc2(r, t24), o4 !== i2 && (c6 && i2 && (hc2(i2) || (u2 = pc2(i2))) ? (u2 ? (u2 = false, a5 = n3 && pc2(n3) ? n3 : []) : a5 = n3 && hc2(n3) ? n3 : {}, dc2(o4, { name: t24, newValue:
|
|
85822
|
+
n3 = mc2(o4, t24), i2 = mc2(r, t24), o4 !== i2 && (c6 && i2 && (hc2(i2) || (u2 = pc2(i2))) ? (u2 ? (u2 = false, a5 = n3 && pc2(n3) ? n3 : []) : a5 = n3 && hc2(n3) ? n3 : {}, dc2(o4, { name: t24, newValue: e7(c6, a5, i2) })) : typeof i2 < "u" && dc2(o4, { name: t24, newValue: i2 }));
|
|
85805
85823
|
return o4;
|
|
85806
85824
|
};
|
|
85807
85825
|
});
|
|
@@ -92955,7 +92973,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
|
|
|
92955
92973
|
if (!(t25 instanceof e8))
|
|
92956
92974
|
throw new TypeError("Cannot call a class as a function");
|
|
92957
92975
|
}
|
|
92958
|
-
var Dp2 = function
|
|
92976
|
+
var Dp2 = function t25(e8, s3) {
|
|
92959
92977
|
if ((typeof e8 > "u" ? "undefined" : Aa3(e8)) !== "object")
|
|
92960
92978
|
return e8;
|
|
92961
92979
|
var r3 = new e8.constructor;
|
|
@@ -92963,8 +92981,8 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
|
|
|
92963
92981
|
if (e8.hasOwnProperty(n3)) {
|
|
92964
92982
|
var i3 = e8[n3], o4 = typeof i3 > "u" ? "undefined" : Aa3(i3);
|
|
92965
92983
|
n3 === "parent" && o4 === "object" ? s3 && (r3[n3] = s3) : i3 instanceof Array ? r3[n3] = i3.map(function(u3) {
|
|
92966
|
-
return
|
|
92967
|
-
}) : r3[n3] =
|
|
92984
|
+
return t25(u3, r3);
|
|
92985
|
+
}) : r3[n3] = t25(i3, r3);
|
|
92968
92986
|
}
|
|
92969
92987
|
return r3;
|
|
92970
92988
|
}, Mp2 = function() {
|
|
@@ -113612,7 +113630,7 @@ async function clearCache3() {
|
|
|
113612
113630
|
clearCache();
|
|
113613
113631
|
clearCache2();
|
|
113614
113632
|
}
|
|
113615
|
-
var require2, __filename2,
|
|
113633
|
+
var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __require2, __commonJS2 = (cb2, mod) => function __require22() {
|
|
113616
113634
|
return mod || (0, cb2[__getOwnPropNames2(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
113617
113635
|
}, __export3 = (target, all) => {
|
|
113618
113636
|
for (var name2 in all)
|
|
@@ -114355,7 +114373,7 @@ var init_prettier = __esm(() => {
|
|
|
114355
114373
|
init_doc();
|
|
114356
114374
|
require2 = __prettierCreateRequire(import.meta.url);
|
|
114357
114375
|
__filename2 = __prettierFileUrlToPath(import.meta.url);
|
|
114358
|
-
|
|
114376
|
+
__dirname3 = __prettierDirname(__filename2);
|
|
114359
114377
|
__create2 = Object.create;
|
|
114360
114378
|
__defProp3 = Object.defineProperty;
|
|
114361
114379
|
__getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -126288,7 +126306,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
126288
126306
|
return mapDoc2(doc2, (currentDoc) => cleanDocFn2(currentDoc));
|
|
126289
126307
|
}
|
|
126290
126308
|
function replaceEndOfLine2(doc2, replacement = literalline2) {
|
|
126291
|
-
return mapDoc2(doc2, (currentDoc) => typeof currentDoc === "string" ?
|
|
126309
|
+
return mapDoc2(doc2, (currentDoc) => typeof currentDoc === "string" ? join15(replacement, currentDoc.split(`
|
|
126292
126310
|
`)) : currentDoc);
|
|
126293
126311
|
}
|
|
126294
126312
|
function canBreakFn2(doc2) {
|
|
@@ -126374,7 +126392,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
126374
126392
|
negate: options8.negate
|
|
126375
126393
|
};
|
|
126376
126394
|
}
|
|
126377
|
-
function
|
|
126395
|
+
function join15(separator, docs) {
|
|
126378
126396
|
assertDoc2(separator);
|
|
126379
126397
|
assertDocArray2(docs);
|
|
126380
126398
|
const parts = [];
|
|
@@ -127039,7 +127057,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
|
|
|
127039
127057
|
}
|
|
127040
127058
|
}
|
|
127041
127059
|
var builders2 = {
|
|
127042
|
-
join:
|
|
127060
|
+
join: join15,
|
|
127043
127061
|
line: line3,
|
|
127044
127062
|
softline: softline2,
|
|
127045
127063
|
hardline: hardline4,
|
|
@@ -127865,7 +127883,7 @@ var require_exception2 = __commonJS((exports, module) => {
|
|
|
127865
127883
|
}
|
|
127866
127884
|
YAMLException.prototype = Object.create(Error.prototype);
|
|
127867
127885
|
YAMLException.prototype.constructor = YAMLException;
|
|
127868
|
-
YAMLException.prototype.toString = function
|
|
127886
|
+
YAMLException.prototype.toString = function toString2(compact) {
|
|
127869
127887
|
return this.name + ": " + formatError2(this, compact);
|
|
127870
127888
|
};
|
|
127871
127889
|
module.exports = YAMLException;
|
|
@@ -128054,7 +128072,7 @@ var require_schema2 = __commonJS((exports, module) => {
|
|
|
128054
128072
|
function Schema2(definition) {
|
|
128055
128073
|
return this.extend(definition);
|
|
128056
128074
|
}
|
|
128057
|
-
Schema2.prototype.extend = function
|
|
128075
|
+
Schema2.prototype.extend = function extend2(definition) {
|
|
128058
128076
|
var implicit = [];
|
|
128059
128077
|
var explicit = [];
|
|
128060
128078
|
if (definition instanceof Type) {
|
|
@@ -132207,7 +132225,7 @@ var require_constructor = __commonJS((exports) => {
|
|
|
132207
132225
|
Ono.toJSON = function toJSON(error48) {
|
|
132208
132226
|
return to_json_1.toJSON.call(error48);
|
|
132209
132227
|
};
|
|
132210
|
-
Ono.extend = function
|
|
132228
|
+
Ono.extend = function extend2(error48, originalError, props) {
|
|
132211
132229
|
if (props || originalError instanceof Error) {
|
|
132212
132230
|
return extend_error_1.extendError(error48, originalError, props);
|
|
132213
132231
|
} else if (originalError) {
|
|
@@ -133512,7 +133530,7 @@ var require_exception3 = __commonJS((exports, module) => {
|
|
|
133512
133530
|
}
|
|
133513
133531
|
YAMLException.prototype = Object.create(Error.prototype);
|
|
133514
133532
|
YAMLException.prototype.constructor = YAMLException;
|
|
133515
|
-
YAMLException.prototype.toString = function
|
|
133533
|
+
YAMLException.prototype.toString = function toString2(compact) {
|
|
133516
133534
|
return this.name + ": " + formatError2(this, compact);
|
|
133517
133535
|
};
|
|
133518
133536
|
module.exports = YAMLException;
|
|
@@ -133701,7 +133719,7 @@ var require_schema3 = __commonJS((exports, module) => {
|
|
|
133701
133719
|
function Schema2(definition) {
|
|
133702
133720
|
return this.extend(definition);
|
|
133703
133721
|
}
|
|
133704
|
-
Schema2.prototype.extend = function
|
|
133722
|
+
Schema2.prototype.extend = function extend2(definition) {
|
|
133705
133723
|
var implicit = [];
|
|
133706
133724
|
var explicit = [];
|
|
133707
133725
|
if (definition instanceof Type) {
|
|
@@ -142913,14 +142931,14 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
142913
142931
|
exports.encodings = null;
|
|
142914
142932
|
exports.defaultCharUnicode = "�";
|
|
142915
142933
|
exports.defaultCharSingleByte = "?";
|
|
142916
|
-
exports.encode = function
|
|
142934
|
+
exports.encode = function encode5(str, encoding, options8) {
|
|
142917
142935
|
str = "" + (str || "");
|
|
142918
142936
|
var encoder = exports.getEncoder(encoding, options8);
|
|
142919
142937
|
var res = encoder.write(str);
|
|
142920
142938
|
var trail = encoder.end();
|
|
142921
142939
|
return trail && trail.length > 0 ? Buffer7.concat([res, trail]) : res;
|
|
142922
142940
|
};
|
|
142923
|
-
exports.decode = function
|
|
142941
|
+
exports.decode = function decode4(buf, encoding, options8) {
|
|
142924
142942
|
if (typeof buf === "string") {
|
|
142925
142943
|
if (!exports.skipDecodeWarning) {
|
|
142926
142944
|
console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
|
|
@@ -143130,7 +143148,7 @@ var require_raw_body = __commonJS((exports, module) => {
|
|
|
143130
143148
|
return readStream(stream, encoding, length, limit, wrap(done));
|
|
143131
143149
|
}
|
|
143132
143150
|
return new Promise(function executor(resolve6, reject) {
|
|
143133
|
-
readStream(stream, encoding, length, limit, function
|
|
143151
|
+
readStream(stream, encoding, length, limit, function onRead2(err, buf) {
|
|
143134
143152
|
if (err)
|
|
143135
143153
|
return reject(err);
|
|
143136
143154
|
resolve6(buf);
|
|
@@ -152892,17 +152910,6 @@ var require_db = __commonJS((exports, module) => {
|
|
|
152892
152910
|
};
|
|
152893
152911
|
});
|
|
152894
152912
|
|
|
152895
|
-
// node_modules/mime-db/index.js
|
|
152896
|
-
var require_mime_db = __commonJS((exports, module) => {
|
|
152897
|
-
/*!
|
|
152898
|
-
* mime-db
|
|
152899
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
152900
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
152901
|
-
* MIT Licensed
|
|
152902
|
-
*/
|
|
152903
|
-
module.exports = require_db();
|
|
152904
|
-
});
|
|
152905
|
-
|
|
152906
152913
|
// node_modules/mime-types/mimeScore.js
|
|
152907
152914
|
var require_mimeScore = __commonJS((exports, module) => {
|
|
152908
152915
|
var FACET_SCORES = {
|
|
@@ -152947,7 +152954,7 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
152947
152954
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
152948
152955
|
* MIT Licensed
|
|
152949
152956
|
*/
|
|
152950
|
-
var db2 =
|
|
152957
|
+
var db2 = require_db();
|
|
152951
152958
|
var extname2 = __require("path").extname;
|
|
152952
152959
|
var mimeScore = require_mimeScore();
|
|
152953
152960
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
@@ -154234,7 +154241,7 @@ var require_round = __commonJS((exports, module) => {
|
|
|
154234
154241
|
|
|
154235
154242
|
// node_modules/math-intrinsics/isNaN.js
|
|
154236
154243
|
var require_isNaN = __commonJS((exports, module) => {
|
|
154237
|
-
module.exports = Number.isNaN || function
|
|
154244
|
+
module.exports = Number.isNaN || function isNaN2(a5) {
|
|
154238
154245
|
return a5 !== a5;
|
|
154239
154246
|
};
|
|
154240
154247
|
});
|
|
@@ -154242,7 +154249,7 @@ var require_isNaN = __commonJS((exports, module) => {
|
|
|
154242
154249
|
// node_modules/math-intrinsics/sign.js
|
|
154243
154250
|
var require_sign = __commonJS((exports, module) => {
|
|
154244
154251
|
var $isNaN = require_isNaN();
|
|
154245
|
-
module.exports = function
|
|
154252
|
+
module.exports = function sign2(number4) {
|
|
154246
154253
|
if ($isNaN(number4) || number4 === 0) {
|
|
154247
154254
|
return number4;
|
|
154248
154255
|
}
|
|
@@ -154368,7 +154375,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
154368
154375
|
var toStr = Object.prototype.toString;
|
|
154369
154376
|
var max = Math.max;
|
|
154370
154377
|
var funcType = "[object Function]";
|
|
154371
|
-
var concatty = function
|
|
154378
|
+
var concatty = function concatty2(a5, b7) {
|
|
154372
154379
|
var arr = [];
|
|
154373
154380
|
for (var i5 = 0;i5 < a5.length; i5 += 1) {
|
|
154374
154381
|
arr[i5] = a5[i5];
|
|
@@ -154378,7 +154385,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
154378
154385
|
}
|
|
154379
154386
|
return arr;
|
|
154380
154387
|
};
|
|
154381
|
-
var slicy = function
|
|
154388
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
154382
154389
|
var arr = [];
|
|
154383
154390
|
for (var i5 = offset || 0, j10 = 0;i5 < arrLike.length; i5 += 1, j10 += 1) {
|
|
154384
154391
|
arr[j10] = arrLike[i5];
|
|
@@ -154419,7 +154426,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
154419
154426
|
}
|
|
154420
154427
|
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
154421
154428
|
if (target.prototype) {
|
|
154422
|
-
var Empty = function
|
|
154429
|
+
var Empty = function Empty2() {};
|
|
154423
154430
|
Empty.prototype = target.prototype;
|
|
154424
154431
|
bound.prototype = new Empty;
|
|
154425
154432
|
Empty.prototype = null;
|
|
@@ -154658,7 +154665,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
154658
154665
|
}
|
|
154659
154666
|
}
|
|
154660
154667
|
var errorProto;
|
|
154661
|
-
var doEval = function
|
|
154668
|
+
var doEval = function doEval2(name2) {
|
|
154662
154669
|
var value;
|
|
154663
154670
|
if (name2 === "%AsyncFunction%") {
|
|
154664
154671
|
value = getEvalledConstructor("async function () {}");
|
|
@@ -154667,12 +154674,12 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
154667
154674
|
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
154668
154675
|
value = getEvalledConstructor("async function* () {}");
|
|
154669
154676
|
} else if (name2 === "%AsyncGenerator%") {
|
|
154670
|
-
var fn9 =
|
|
154677
|
+
var fn9 = doEval2("%AsyncGeneratorFunction%");
|
|
154671
154678
|
if (fn9) {
|
|
154672
154679
|
value = fn9.prototype;
|
|
154673
154680
|
}
|
|
154674
154681
|
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
154675
|
-
var gen =
|
|
154682
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
154676
154683
|
if (gen && getProto) {
|
|
154677
154684
|
value = getProto(gen.prototype);
|
|
154678
154685
|
}
|
|
@@ -154743,7 +154750,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
154743
154750
|
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
154744
154751
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
154745
154752
|
var reEscapeChar = /\\(\\)?/g;
|
|
154746
|
-
var stringToPath = function
|
|
154753
|
+
var stringToPath = function stringToPath2(string4) {
|
|
154747
154754
|
var first = $strSlice(string4, 0, 1);
|
|
154748
154755
|
var last = $strSlice(string4, -1);
|
|
154749
154756
|
if (first === "%" && last !== "%") {
|
|
@@ -154757,7 +154764,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
154757
154764
|
});
|
|
154758
154765
|
return result;
|
|
154759
154766
|
};
|
|
154760
|
-
var getBaseIntrinsic = function
|
|
154767
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
|
|
154761
154768
|
var intrinsicName = name2;
|
|
154762
154769
|
var alias;
|
|
154763
154770
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
@@ -155042,17 +155049,17 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155042
155049
|
var has = Object.prototype.hasOwnProperty;
|
|
155043
155050
|
var isArray = Array.isArray;
|
|
155044
155051
|
var overflowChannel = getSideChannel();
|
|
155045
|
-
var markOverflow = function
|
|
155052
|
+
var markOverflow = function markOverflow2(obj, maxIndex) {
|
|
155046
155053
|
overflowChannel.set(obj, maxIndex);
|
|
155047
155054
|
return obj;
|
|
155048
155055
|
};
|
|
155049
|
-
var isOverflow = function
|
|
155056
|
+
var isOverflow = function isOverflow2(obj) {
|
|
155050
155057
|
return overflowChannel.has(obj);
|
|
155051
155058
|
};
|
|
155052
|
-
var getMaxIndex = function
|
|
155059
|
+
var getMaxIndex = function getMaxIndex2(obj) {
|
|
155053
155060
|
return overflowChannel.get(obj);
|
|
155054
155061
|
};
|
|
155055
|
-
var setMaxIndex = function
|
|
155062
|
+
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
155056
155063
|
overflowChannel.set(obj, maxIndex);
|
|
155057
155064
|
};
|
|
155058
155065
|
var hexTable = function() {
|
|
@@ -155062,7 +155069,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155062
155069
|
}
|
|
155063
155070
|
return array3;
|
|
155064
155071
|
}();
|
|
155065
|
-
var compactQueue = function
|
|
155072
|
+
var compactQueue = function compactQueue2(queue) {
|
|
155066
155073
|
while (queue.length > 1) {
|
|
155067
155074
|
var item = queue.pop();
|
|
155068
155075
|
var obj = item.obj[item.prop];
|
|
@@ -155077,7 +155084,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155077
155084
|
}
|
|
155078
155085
|
}
|
|
155079
155086
|
};
|
|
155080
|
-
var arrayToObject = function
|
|
155087
|
+
var arrayToObject = function arrayToObject2(source3, options8) {
|
|
155081
155088
|
var obj = options8 && options8.plainObjects ? { __proto__: null } : {};
|
|
155082
155089
|
for (var i5 = 0;i5 < source3.length; ++i5) {
|
|
155083
155090
|
if (typeof source3[i5] !== "undefined") {
|
|
@@ -155086,7 +155093,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155086
155093
|
}
|
|
155087
155094
|
return obj;
|
|
155088
155095
|
};
|
|
155089
|
-
var merge3 = function
|
|
155096
|
+
var merge3 = function merge4(target, source3, options8) {
|
|
155090
155097
|
if (!source3) {
|
|
155091
155098
|
return target;
|
|
155092
155099
|
}
|
|
@@ -155135,7 +155142,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155135
155142
|
if (has.call(target, i5)) {
|
|
155136
155143
|
var targetItem = target[i5];
|
|
155137
155144
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
155138
|
-
target[i5] =
|
|
155145
|
+
target[i5] = merge4(targetItem, item, options8);
|
|
155139
155146
|
} else {
|
|
155140
155147
|
target[target.length] = item;
|
|
155141
155148
|
}
|
|
@@ -155148,7 +155155,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155148
155155
|
return Object.keys(source3).reduce(function(acc, key2) {
|
|
155149
155156
|
var value = source3[key2];
|
|
155150
155157
|
if (has.call(acc, key2)) {
|
|
155151
|
-
acc[key2] =
|
|
155158
|
+
acc[key2] = merge4(acc[key2], value, options8);
|
|
155152
155159
|
} else {
|
|
155153
155160
|
acc[key2] = value;
|
|
155154
155161
|
}
|
|
@@ -155182,7 +155189,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155182
155189
|
}
|
|
155183
155190
|
};
|
|
155184
155191
|
var limit = 1024;
|
|
155185
|
-
var encode5 = function
|
|
155192
|
+
var encode5 = function encode6(str, defaultEncoder, charset, kind, format3) {
|
|
155186
155193
|
if (str.length === 0) {
|
|
155187
155194
|
return str;
|
|
155188
155195
|
}
|
|
@@ -155227,7 +155234,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155227
155234
|
}
|
|
155228
155235
|
return out;
|
|
155229
155236
|
};
|
|
155230
|
-
var compact = function
|
|
155237
|
+
var compact = function compact2(value) {
|
|
155231
155238
|
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
155232
155239
|
var refs = [];
|
|
155233
155240
|
for (var i5 = 0;i5 < queue.length; ++i5) {
|
|
@@ -155246,16 +155253,16 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155246
155253
|
compactQueue(queue);
|
|
155247
155254
|
return value;
|
|
155248
155255
|
};
|
|
155249
|
-
var isRegExp = function
|
|
155256
|
+
var isRegExp = function isRegExp2(obj) {
|
|
155250
155257
|
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
155251
155258
|
};
|
|
155252
|
-
var isBuffer = function
|
|
155259
|
+
var isBuffer = function isBuffer2(obj) {
|
|
155253
155260
|
if (!obj || typeof obj !== "object") {
|
|
155254
155261
|
return false;
|
|
155255
155262
|
}
|
|
155256
155263
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
155257
155264
|
};
|
|
155258
|
-
var combine = function
|
|
155265
|
+
var combine = function combine2(a5, b7, arrayLimit, plainObjects) {
|
|
155259
155266
|
if (isOverflow(a5)) {
|
|
155260
155267
|
var newIndex = getMaxIndex(a5) + 1;
|
|
155261
155268
|
a5[newIndex] = b7;
|
|
@@ -155268,7 +155275,7 @@ var require_utils9 = __commonJS((exports, module) => {
|
|
|
155268
155275
|
}
|
|
155269
155276
|
return result;
|
|
155270
155277
|
};
|
|
155271
|
-
var maybeMap = function
|
|
155278
|
+
var maybeMap = function maybeMap2(val, fn9) {
|
|
155272
155279
|
if (isArray(val)) {
|
|
155273
155280
|
var mapped = [];
|
|
155274
155281
|
for (var i5 = 0;i5 < val.length; i5 += 1) {
|
|
@@ -155342,11 +155349,11 @@ var require_stringify4 = __commonJS((exports, module) => {
|
|
|
155342
155349
|
skipNulls: false,
|
|
155343
155350
|
strictNullHandling: false
|
|
155344
155351
|
};
|
|
155345
|
-
var isNonNullishPrimitive = function
|
|
155352
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive2(v10) {
|
|
155346
155353
|
return typeof v10 === "string" || typeof v10 === "number" || typeof v10 === "boolean" || typeof v10 === "symbol" || typeof v10 === "bigint";
|
|
155347
155354
|
};
|
|
155348
155355
|
var sentinel = {};
|
|
155349
|
-
var stringify = function
|
|
155356
|
+
var stringify = function stringify2(object2, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter2, sort, allowDots, serializeDate, format3, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
155350
155357
|
var obj = object2;
|
|
155351
155358
|
var tmpSc = sideChannel;
|
|
155352
155359
|
var step = 0;
|
|
@@ -155422,11 +155429,11 @@ var require_stringify4 = __commonJS((exports, module) => {
|
|
|
155422
155429
|
sideChannel.set(object2, step);
|
|
155423
155430
|
var valueSideChannel = getSideChannel();
|
|
155424
155431
|
valueSideChannel.set(sentinel, sideChannel);
|
|
155425
|
-
pushToArray(values,
|
|
155432
|
+
pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter2, sort, allowDots, serializeDate, format3, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
155426
155433
|
}
|
|
155427
155434
|
return values;
|
|
155428
155435
|
};
|
|
155429
|
-
var normalizeStringifyOptions = function
|
|
155436
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
155430
155437
|
if (!opts) {
|
|
155431
155438
|
return defaults;
|
|
155432
155439
|
}
|
|
@@ -155687,7 +155694,7 @@ var require_parse7 = __commonJS((exports, module) => {
|
|
|
155687
155694
|
}
|
|
155688
155695
|
return leaf;
|
|
155689
155696
|
};
|
|
155690
|
-
var splitKeyIntoSegments = function
|
|
155697
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options8) {
|
|
155691
155698
|
var key2 = options8.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
155692
155699
|
if (options8.depth <= 0) {
|
|
155693
155700
|
if (!options8.plainObjects && has.call(Object.prototype, key2)) {
|
|
@@ -155739,7 +155746,7 @@ var require_parse7 = __commonJS((exports, module) => {
|
|
|
155739
155746
|
}
|
|
155740
155747
|
return parseObject(keys, val, options8, valuesParsed);
|
|
155741
155748
|
};
|
|
155742
|
-
var normalizeParseOptions = function
|
|
155749
|
+
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
155743
155750
|
if (!opts) {
|
|
155744
155751
|
return defaults;
|
|
155745
155752
|
}
|
|
@@ -156265,10 +156272,10 @@ var require_view = __commonJS((exports, module) => {
|
|
|
156265
156272
|
var debug = require_src4()("express:view");
|
|
156266
156273
|
var path18 = __require("node:path");
|
|
156267
156274
|
var fs28 = __require("node:fs");
|
|
156268
|
-
var
|
|
156275
|
+
var dirname11 = path18.dirname;
|
|
156269
156276
|
var basename4 = path18.basename;
|
|
156270
156277
|
var extname2 = path18.extname;
|
|
156271
|
-
var
|
|
156278
|
+
var join16 = path18.join;
|
|
156272
156279
|
var resolve6 = path18.resolve;
|
|
156273
156280
|
module.exports = View;
|
|
156274
156281
|
function View(name2, options8) {
|
|
@@ -156304,7 +156311,7 @@ var require_view = __commonJS((exports, module) => {
|
|
|
156304
156311
|
for (var i5 = 0;i5 < roots.length && !path19; i5++) {
|
|
156305
156312
|
var root2 = roots[i5];
|
|
156306
156313
|
var loc = resolve6(root2, name2);
|
|
156307
|
-
var dir =
|
|
156314
|
+
var dir = dirname11(loc);
|
|
156308
156315
|
var file2 = basename4(loc);
|
|
156309
156316
|
path19 = this.resolve(dir, file2);
|
|
156310
156317
|
}
|
|
@@ -156328,14 +156335,14 @@ var require_view = __commonJS((exports, module) => {
|
|
|
156328
156335
|
});
|
|
156329
156336
|
sync = false;
|
|
156330
156337
|
};
|
|
156331
|
-
View.prototype.resolve = function
|
|
156338
|
+
View.prototype.resolve = function resolve7(dir, file2) {
|
|
156332
156339
|
var ext = this.ext;
|
|
156333
|
-
var path19 =
|
|
156340
|
+
var path19 = join16(dir, file2);
|
|
156334
156341
|
var stat2 = tryStat(path19);
|
|
156335
156342
|
if (stat2 && stat2.isFile()) {
|
|
156336
156343
|
return path19;
|
|
156337
156344
|
}
|
|
156338
|
-
path19 =
|
|
156345
|
+
path19 = join16(dir, basename4(file2, ext), "index" + ext);
|
|
156339
156346
|
stat2 = tryStat(path19);
|
|
156340
156347
|
if (stat2 && stat2.isFile()) {
|
|
156341
156348
|
return path19;
|
|
@@ -157583,12 +157590,12 @@ var require_dist = __commonJS((exports) => {
|
|
|
157583
157590
|
const { encode: encode5 = encodeURIComponent, delimiter = DEFAULT_DELIMITER } = options8;
|
|
157584
157591
|
const data = typeof path18 === "object" ? path18 : parse11(path18, options8);
|
|
157585
157592
|
const fn9 = tokensToFunction(data.tokens, delimiter, encode5);
|
|
157586
|
-
return function
|
|
157587
|
-
const [
|
|
157593
|
+
return function path19(params = {}) {
|
|
157594
|
+
const [path20, ...missing] = fn9(params);
|
|
157588
157595
|
if (missing.length) {
|
|
157589
157596
|
throw new TypeError(`Missing parameters: ${missing.join(", ")}`);
|
|
157590
157597
|
}
|
|
157591
|
-
return
|
|
157598
|
+
return path20;
|
|
157592
157599
|
};
|
|
157593
157600
|
}
|
|
157594
157601
|
function tokensToFunction(tokens, delimiter, encode5) {
|
|
@@ -157654,7 +157661,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
157654
157661
|
return decode4;
|
|
157655
157662
|
return (value) => value.split(delimiter).map(decode4);
|
|
157656
157663
|
});
|
|
157657
|
-
return function
|
|
157664
|
+
return function match2(input) {
|
|
157658
157665
|
const m7 = regexp.exec(input);
|
|
157659
157666
|
if (!m7)
|
|
157660
157667
|
return false;
|
|
@@ -157899,7 +157906,7 @@ var require_layer = __commonJS((exports, module) => {
|
|
|
157899
157906
|
}
|
|
157900
157907
|
};
|
|
157901
157908
|
Layer.prototype.match = function match(path18) {
|
|
157902
|
-
let
|
|
157909
|
+
let match2;
|
|
157903
157910
|
if (path18 != null) {
|
|
157904
157911
|
if (this.slash) {
|
|
157905
157912
|
this.params = {};
|
|
@@ -157907,19 +157914,19 @@ var require_layer = __commonJS((exports, module) => {
|
|
|
157907
157914
|
return true;
|
|
157908
157915
|
}
|
|
157909
157916
|
let i5 = 0;
|
|
157910
|
-
while (!
|
|
157911
|
-
|
|
157917
|
+
while (!match2 && i5 < this.matchers.length) {
|
|
157918
|
+
match2 = this.matchers[i5](path18);
|
|
157912
157919
|
i5++;
|
|
157913
157920
|
}
|
|
157914
157921
|
}
|
|
157915
|
-
if (!
|
|
157922
|
+
if (!match2) {
|
|
157916
157923
|
this.params = undefined;
|
|
157917
157924
|
this.path = undefined;
|
|
157918
157925
|
return false;
|
|
157919
157926
|
}
|
|
157920
|
-
this.params =
|
|
157921
|
-
this.path =
|
|
157922
|
-
this.keys = Object.keys(
|
|
157927
|
+
this.params = match2.params;
|
|
157928
|
+
this.path = match2.path;
|
|
157929
|
+
this.keys = Object.keys(match2.params);
|
|
157923
157930
|
return true;
|
|
157924
157931
|
};
|
|
157925
157932
|
function decodeParam(val) {
|
|
@@ -158287,18 +158294,18 @@ var require_router = __commonJS((exports, module) => {
|
|
|
158287
158294
|
return this;
|
|
158288
158295
|
};
|
|
158289
158296
|
Router.prototype.route = function route(path18) {
|
|
158290
|
-
const
|
|
158297
|
+
const route2 = new Route(path18);
|
|
158291
158298
|
const layer = new Layer(path18, {
|
|
158292
158299
|
sensitive: this.caseSensitive,
|
|
158293
158300
|
strict: this.strict,
|
|
158294
158301
|
end: true
|
|
158295
158302
|
}, handle);
|
|
158296
158303
|
function handle(req, res, next) {
|
|
158297
|
-
|
|
158304
|
+
route2.dispatch(req, res, next);
|
|
158298
158305
|
}
|
|
158299
|
-
layer.route =
|
|
158306
|
+
layer.route = route2;
|
|
158300
158307
|
this.stack.push(layer);
|
|
158301
|
-
return
|
|
158308
|
+
return route2;
|
|
158302
158309
|
};
|
|
158303
158310
|
methods.concat("all").forEach(function(method) {
|
|
158304
158311
|
Router.prototype[method] = function(path18) {
|
|
@@ -158622,7 +158629,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
158622
158629
|
this.router.param(name2, fn9);
|
|
158623
158630
|
return this;
|
|
158624
158631
|
};
|
|
158625
|
-
app.set = function
|
|
158632
|
+
app.set = function set2(setting, val) {
|
|
158626
158633
|
if (arguments.length === 1) {
|
|
158627
158634
|
return this.settings[setting];
|
|
158628
158635
|
}
|
|
@@ -158645,7 +158652,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
158645
158652
|
}
|
|
158646
158653
|
return this;
|
|
158647
158654
|
};
|
|
158648
|
-
app.path = function
|
|
158655
|
+
app.path = function path18() {
|
|
158649
158656
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
158650
158657
|
};
|
|
158651
158658
|
app.enabled = function enabled(setting) {
|
|
@@ -158897,7 +158904,7 @@ var require_encoding = __commonJS((exports, module) => {
|
|
|
158897
158904
|
}
|
|
158898
158905
|
function preferredEncodings(accept, provided, preferred) {
|
|
158899
158906
|
var accepts = parseAcceptEncoding(accept || "");
|
|
158900
|
-
var comparator = preferred ? function
|
|
158907
|
+
var comparator = preferred ? function comparator2(a5, b7) {
|
|
158901
158908
|
if (a5.q !== b7.q) {
|
|
158902
158909
|
return b7.q - a5.q;
|
|
158903
158910
|
}
|
|
@@ -159125,7 +159132,7 @@ var require_mediaType = __commonJS((exports, module) => {
|
|
|
159125
159132
|
var priorities = provided.map(function getPriority(type, index) {
|
|
159126
159133
|
return getMediaTypePriority(type, accepts, index);
|
|
159127
159134
|
});
|
|
159128
|
-
return priorities.filter(isQuality).sort(compareSpecs).map(function
|
|
159135
|
+
return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
|
|
159129
159136
|
return provided[priorities.indexOf(priority)];
|
|
159130
159137
|
});
|
|
159131
159138
|
}
|
|
@@ -159228,7 +159235,7 @@ var require_negotiator = __commonJS((exports, module) => {
|
|
|
159228
159235
|
var set2 = this.languages(available);
|
|
159229
159236
|
return set2 && set2[0];
|
|
159230
159237
|
};
|
|
159231
|
-
Negotiator.prototype.languages = function
|
|
159238
|
+
Negotiator.prototype.languages = function languages2(available) {
|
|
159232
159239
|
return preferredLanguages(this.request.headers["accept-language"], available);
|
|
159233
159240
|
};
|
|
159234
159241
|
Negotiator.prototype.mediaType = function mediaType(available) {
|
|
@@ -159510,7 +159517,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159510
159517
|
var proxyaddr = require_proxy_addr();
|
|
159511
159518
|
var req = Object.create(http.IncomingMessage.prototype);
|
|
159512
159519
|
module.exports = req;
|
|
159513
|
-
req.get = req.header = function
|
|
159520
|
+
req.get = req.header = function header2(name2) {
|
|
159514
159521
|
if (!name2) {
|
|
159515
159522
|
throw new TypeError("name argument is required to req.get");
|
|
159516
159523
|
}
|
|
@@ -159542,10 +159549,10 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159542
159549
|
return accepts(this).languages(...languages2);
|
|
159543
159550
|
};
|
|
159544
159551
|
req.range = function range(size, options8) {
|
|
159545
|
-
var
|
|
159546
|
-
if (!
|
|
159552
|
+
var range2 = this.get("Range");
|
|
159553
|
+
if (!range2)
|
|
159547
159554
|
return;
|
|
159548
|
-
return parseRange(size,
|
|
159555
|
+
return parseRange(size, range2, options8);
|
|
159549
159556
|
};
|
|
159550
159557
|
defineGetter(req, "query", function query() {
|
|
159551
159558
|
var queryparse = this.app.get("query parser fn");
|
|
@@ -159555,7 +159562,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159555
159562
|
var querystring = parse11(this).query;
|
|
159556
159563
|
return queryparse(querystring);
|
|
159557
159564
|
});
|
|
159558
|
-
req.is = function
|
|
159565
|
+
req.is = function is8(types) {
|
|
159559
159566
|
var arr = types;
|
|
159560
159567
|
if (!Array.isArray(types)) {
|
|
159561
159568
|
arr = new Array(arguments.length);
|
|
@@ -159578,7 +159585,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159578
159585
|
defineGetter(req, "secure", function secure() {
|
|
159579
159586
|
return this.protocol === "https";
|
|
159580
159587
|
});
|
|
159581
|
-
defineGetter(req, "ip", function
|
|
159588
|
+
defineGetter(req, "ip", function ip2() {
|
|
159582
159589
|
var trust = this.app.get("trust proxy fn");
|
|
159583
159590
|
return proxyaddr(this, trust);
|
|
159584
159591
|
});
|
|
@@ -159593,10 +159600,10 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159593
159600
|
if (!hostname3)
|
|
159594
159601
|
return [];
|
|
159595
159602
|
var offset = this.app.get("subdomain offset");
|
|
159596
|
-
var
|
|
159597
|
-
return
|
|
159603
|
+
var subdomains2 = !isIP(hostname3) ? hostname3.split(".").reverse() : [hostname3];
|
|
159604
|
+
return subdomains2.slice(offset);
|
|
159598
159605
|
});
|
|
159599
|
-
defineGetter(req, "path", function
|
|
159606
|
+
defineGetter(req, "path", function path18() {
|
|
159600
159607
|
return parse11(this).pathname;
|
|
159601
159608
|
});
|
|
159602
159609
|
defineGetter(req, "host", function host() {
|
|
@@ -159609,7 +159616,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
159609
159616
|
}
|
|
159610
159617
|
return val || undefined;
|
|
159611
159618
|
});
|
|
159612
|
-
defineGetter(req, "hostname", function
|
|
159619
|
+
defineGetter(req, "hostname", function hostname3() {
|
|
159613
159620
|
var host = this.host;
|
|
159614
159621
|
if (!host)
|
|
159615
159622
|
return;
|
|
@@ -160030,7 +160037,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160030
160037
|
var Stream2 = __require("stream");
|
|
160031
160038
|
var util2 = __require("util");
|
|
160032
160039
|
var extname2 = path18.extname;
|
|
160033
|
-
var
|
|
160040
|
+
var join16 = path18.join;
|
|
160034
160041
|
var normalize = path18.normalize;
|
|
160035
160042
|
var resolve6 = path18.resolve;
|
|
160036
160043
|
var sep = path18.sep;
|
|
@@ -160064,7 +160071,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160064
160071
|
this._root = opts.root ? resolve6(opts.root) : null;
|
|
160065
160072
|
}
|
|
160066
160073
|
util2.inherits(SendStream, Stream2);
|
|
160067
|
-
SendStream.prototype.error = function
|
|
160074
|
+
SendStream.prototype.error = function error48(status, err) {
|
|
160068
160075
|
if (hasListeners(this, "error")) {
|
|
160069
160076
|
return this.emit("error", createHttpError(status, err));
|
|
160070
160077
|
}
|
|
@@ -160179,7 +160186,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160179
160186
|
res.setHeader("Location", loc);
|
|
160180
160187
|
res.end(doc2);
|
|
160181
160188
|
};
|
|
160182
|
-
SendStream.prototype.pipe = function
|
|
160189
|
+
SendStream.prototype.pipe = function pipe2(res) {
|
|
160183
160190
|
var root2 = this._root;
|
|
160184
160191
|
this.res = res;
|
|
160185
160192
|
var path19 = decode4(this.path);
|
|
@@ -160202,7 +160209,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160202
160209
|
return res;
|
|
160203
160210
|
}
|
|
160204
160211
|
parts = path19.split(sep);
|
|
160205
|
-
path19 = normalize(
|
|
160212
|
+
path19 = normalize(join16(root2, path19));
|
|
160206
160213
|
} else {
|
|
160207
160214
|
if (UP_PATH_REGEXP.test(path19)) {
|
|
160208
160215
|
debug('malicious path "%s"', path19);
|
|
@@ -160233,7 +160240,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160233
160240
|
this.sendFile(path19);
|
|
160234
160241
|
return res;
|
|
160235
160242
|
};
|
|
160236
|
-
SendStream.prototype.send = function
|
|
160243
|
+
SendStream.prototype.send = function send2(path19, stat2) {
|
|
160237
160244
|
var len = stat2.size;
|
|
160238
160245
|
var options8 = this.options;
|
|
160239
160246
|
var opts = {};
|
|
@@ -160342,7 +160349,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160342
160349
|
return self2.onStatError(err);
|
|
160343
160350
|
return self2.error(404);
|
|
160344
160351
|
}
|
|
160345
|
-
var p4 =
|
|
160352
|
+
var p4 = join16(path19, self2._index[i5]);
|
|
160346
160353
|
debug('stat "%s"', p4);
|
|
160347
160354
|
fs28.stat(p4, function(err2, stat2) {
|
|
160348
160355
|
if (err2)
|
|
@@ -160358,18 +160365,18 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160358
160365
|
SendStream.prototype.stream = function stream(path19, options8) {
|
|
160359
160366
|
var self2 = this;
|
|
160360
160367
|
var res = this.res;
|
|
160361
|
-
var
|
|
160362
|
-
this.emit("stream",
|
|
160363
|
-
|
|
160368
|
+
var stream2 = fs28.createReadStream(path19, options8);
|
|
160369
|
+
this.emit("stream", stream2);
|
|
160370
|
+
stream2.pipe(res);
|
|
160364
160371
|
function cleanup() {
|
|
160365
|
-
|
|
160372
|
+
stream2.destroy();
|
|
160366
160373
|
}
|
|
160367
160374
|
onFinished(res, cleanup);
|
|
160368
|
-
|
|
160375
|
+
stream2.on("error", function onerror(err) {
|
|
160369
160376
|
cleanup();
|
|
160370
160377
|
self2.onStatError(err);
|
|
160371
160378
|
});
|
|
160372
|
-
|
|
160379
|
+
stream2.on("end", function onend() {
|
|
160373
160380
|
self2.emit("end");
|
|
160374
160381
|
});
|
|
160375
160382
|
};
|
|
@@ -160378,9 +160385,9 @@ var require_send = __commonJS((exports, module) => {
|
|
|
160378
160385
|
if (res.getHeader("Content-Type"))
|
|
160379
160386
|
return;
|
|
160380
160387
|
var ext = extname2(path19);
|
|
160381
|
-
var
|
|
160382
|
-
debug("content-type %s",
|
|
160383
|
-
res.setHeader("Content-Type",
|
|
160388
|
+
var type2 = mime.contentType(ext) || "application/octet-stream";
|
|
160389
|
+
debug("content-type %s", type2);
|
|
160390
|
+
res.setHeader("Content-Type", type2);
|
|
160384
160391
|
};
|
|
160385
160392
|
SendStream.prototype.setHeader = function setHeader(path19, stat2) {
|
|
160386
160393
|
var res = this.res;
|
|
@@ -160567,7 +160574,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
160567
160574
|
}
|
|
160568
160575
|
}).join(", "));
|
|
160569
160576
|
};
|
|
160570
|
-
res.send = function
|
|
160577
|
+
res.send = function send2(body) {
|
|
160571
160578
|
var chunk = body;
|
|
160572
160579
|
var encoding;
|
|
160573
160580
|
var req = this.req;
|
|
@@ -160641,7 +160648,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
160641
160648
|
}
|
|
160642
160649
|
return this;
|
|
160643
160650
|
};
|
|
160644
|
-
res.json = function
|
|
160651
|
+
res.json = function json2(obj) {
|
|
160645
160652
|
var app = this.app;
|
|
160646
160653
|
var escape3 = app.get("json escape");
|
|
160647
160654
|
var replacer = app.get("json replacer");
|
|
@@ -160791,7 +160798,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
160791
160798
|
}
|
|
160792
160799
|
return this.set(field, value);
|
|
160793
160800
|
};
|
|
160794
|
-
res.set = res.header = function
|
|
160801
|
+
res.set = res.header = function header2(field, val) {
|
|
160795
160802
|
if (arguments.length === 2) {
|
|
160796
160803
|
var value = Array.isArray(val) ? val.map(String) : String(val);
|
|
160797
160804
|
if (field.toLowerCase() === "content-type") {
|
|
@@ -160840,7 +160847,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
160840
160847
|
this.append("Set-Cookie", cookie.serialize(name2, String(val), opts));
|
|
160841
160848
|
return this;
|
|
160842
160849
|
};
|
|
160843
|
-
res.location = function
|
|
160850
|
+
res.location = function location2(url3) {
|
|
160844
160851
|
return this.set("Location", encodeUrl(url3));
|
|
160845
160852
|
};
|
|
160846
160853
|
res.redirect = function redirect(url3) {
|
|
@@ -161029,7 +161036,7 @@ var require_serve_static = __commonJS((exports, module) => {
|
|
|
161029
161036
|
opts.maxage = opts.maxage || opts.maxAge || 0;
|
|
161030
161037
|
opts.root = resolve6(root2);
|
|
161031
161038
|
var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener();
|
|
161032
|
-
return function
|
|
161039
|
+
return function serveStatic2(req, res, next) {
|
|
161033
161040
|
if (req.method !== "GET" && req.method !== "HEAD") {
|
|
161034
161041
|
if (fallthrough) {
|
|
161035
161042
|
return next();
|
|
@@ -161056,7 +161063,7 @@ var require_serve_static = __commonJS((exports, module) => {
|
|
|
161056
161063
|
forwardError = true;
|
|
161057
161064
|
});
|
|
161058
161065
|
}
|
|
161059
|
-
stream.on("error", function
|
|
161066
|
+
stream.on("error", function error48(err) {
|
|
161060
161067
|
if (forwardError || !(err.statusCode < 500)) {
|
|
161061
161068
|
next(err);
|
|
161062
161069
|
return;
|
|
@@ -161158,18 +161165,6 @@ var require_express = __commonJS((exports, module) => {
|
|
|
161158
161165
|
exports.urlencoded = bodyParser.urlencoded;
|
|
161159
161166
|
});
|
|
161160
161167
|
|
|
161161
|
-
// node_modules/express/index.js
|
|
161162
|
-
var require_express2 = __commonJS((exports, module) => {
|
|
161163
|
-
/*!
|
|
161164
|
-
* express
|
|
161165
|
-
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
161166
|
-
* Copyright(c) 2013 Roman Shtylman
|
|
161167
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
161168
|
-
* MIT Licensed
|
|
161169
|
-
*/
|
|
161170
|
-
module.exports = require_express();
|
|
161171
|
-
});
|
|
161172
|
-
|
|
161173
161168
|
// node_modules/eventemitter3/index.js
|
|
161174
161169
|
var require_eventemitter3 = __commonJS((exports, module) => {
|
|
161175
161170
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -161295,10 +161290,10 @@ var require_eventemitter3 = __commonJS((exports, module) => {
|
|
|
161295
161290
|
}
|
|
161296
161291
|
return true;
|
|
161297
161292
|
};
|
|
161298
|
-
EventEmitter3.prototype.on = function
|
|
161293
|
+
EventEmitter3.prototype.on = function on12(event, fn9, context) {
|
|
161299
161294
|
return addListener(this, event, fn9, context, false);
|
|
161300
161295
|
};
|
|
161301
|
-
EventEmitter3.prototype.once = function
|
|
161296
|
+
EventEmitter3.prototype.once = function once9(event, fn9, context) {
|
|
161302
161297
|
return addListener(this, event, fn9, context, true);
|
|
161303
161298
|
};
|
|
161304
161299
|
EventEmitter3.prototype.removeListener = function removeListener(event, fn9, context, once9) {
|
|
@@ -161350,7 +161345,7 @@ var require_eventemitter3 = __commonJS((exports, module) => {
|
|
|
161350
161345
|
|
|
161351
161346
|
// node_modules/requires-port/index.js
|
|
161352
161347
|
var require_requires_port = __commonJS((exports, module) => {
|
|
161353
|
-
module.exports = function
|
|
161348
|
+
module.exports = function required2(port, protocol) {
|
|
161354
161349
|
protocol = protocol.split(":")[0];
|
|
161355
161350
|
port = +port;
|
|
161356
161351
|
if (!port)
|
|
@@ -162074,7 +162069,7 @@ var require_web_incoming = __commonJS((exports, module) => {
|
|
|
162074
162069
|
delete req.headers["transfer-encoding"];
|
|
162075
162070
|
}
|
|
162076
162071
|
},
|
|
162077
|
-
timeout: function
|
|
162072
|
+
timeout: function timeout3(req, res, options8) {
|
|
162078
162073
|
if (options8.timeout) {
|
|
162079
162074
|
req.socket.setTimeout(options8.timeout);
|
|
162080
162075
|
}
|
|
@@ -162126,7 +162121,7 @@ var require_web_incoming = __commonJS((exports, module) => {
|
|
|
162126
162121
|
req.on("error", proxyError);
|
|
162127
162122
|
proxyReq.on("error", proxyError);
|
|
162128
162123
|
function createErrorHandler(proxyReq2, url3) {
|
|
162129
|
-
return function
|
|
162124
|
+
return function proxyError2(err) {
|
|
162130
162125
|
if (req.socket.destroyed && err.code === "ECONNRESET") {
|
|
162131
162126
|
server.emit("econnreset", err, req, res, url3);
|
|
162132
162127
|
return proxyReq2.abort();
|
|
@@ -162391,22 +162386,6 @@ var require_http_proxy2 = __commonJS((exports, module) => {
|
|
|
162391
162386
|
module.exports = ProxyServer;
|
|
162392
162387
|
});
|
|
162393
162388
|
|
|
162394
|
-
// node_modules/http-proxy/index.js
|
|
162395
|
-
var require_http_proxy3 = __commonJS((exports, module) => {
|
|
162396
|
-
/*!
|
|
162397
|
-
* Caron dimonio, con occhi di bragia
|
|
162398
|
-
* loro accennando, tutte le raccoglie;
|
|
162399
|
-
* batte col remo qualunque s’adagia
|
|
162400
|
-
*
|
|
162401
|
-
* Charon the demon, with the eyes of glede,
|
|
162402
|
-
* Beckoning to them, collects them all together,
|
|
162403
|
-
* Beats with his oar whoever lags behind
|
|
162404
|
-
*
|
|
162405
|
-
* Dante - The Divine Comedy (Canto III)
|
|
162406
|
-
*/
|
|
162407
|
-
module.exports = require_http_proxy2();
|
|
162408
|
-
});
|
|
162409
|
-
|
|
162410
162389
|
// node_modules/http-proxy-middleware/dist/errors.js
|
|
162411
162390
|
var require_errors2 = __commonJS((exports) => {
|
|
162412
162391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -162885,7 +162864,7 @@ var require_router2 = __commonJS((exports) => {
|
|
|
162885
162864
|
var require_http_proxy_middleware = __commonJS((exports) => {
|
|
162886
162865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
162887
162866
|
exports.HttpProxyMiddleware = undefined;
|
|
162888
|
-
var httpProxy =
|
|
162867
|
+
var httpProxy = require_http_proxy2();
|
|
162889
162868
|
var configuration_1 = require_configuration();
|
|
162890
162869
|
var get_plugins_1 = require_get_plugins();
|
|
162891
162870
|
var path_filter_1 = require_path_filter();
|
|
@@ -166560,7 +166539,7 @@ var require_mediaType2 = __commonJS((exports, module) => {
|
|
|
166560
166539
|
var priorities = provided.map(function getPriority(type, index) {
|
|
166561
166540
|
return getMediaTypePriority(type, accepts, index);
|
|
166562
166541
|
});
|
|
166563
|
-
return priorities.filter(isQuality).sort(compareSpecs).map(function
|
|
166542
|
+
return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
|
|
166564
166543
|
return provided[priorities.indexOf(priority)];
|
|
166565
166544
|
});
|
|
166566
166545
|
}
|
|
@@ -166662,7 +166641,7 @@ var require_negotiator2 = __commonJS((exports, module) => {
|
|
|
166662
166641
|
var set2 = this.languages(available);
|
|
166663
166642
|
return set2 && set2[0];
|
|
166664
166643
|
};
|
|
166665
|
-
Negotiator.prototype.languages = function
|
|
166644
|
+
Negotiator.prototype.languages = function languages2(available) {
|
|
166666
166645
|
return preferredLanguages(this.request.headers["accept-language"], available);
|
|
166667
166646
|
};
|
|
166668
166647
|
Negotiator.prototype.mediaType = function mediaType(available) {
|
|
@@ -175205,17 +175184,6 @@ var require_db2 = __commonJS((exports, module) => {
|
|
|
175205
175184
|
};
|
|
175206
175185
|
});
|
|
175207
175186
|
|
|
175208
|
-
// node_modules/socket.io/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/index.js
|
|
175209
|
-
var require_mime_db2 = __commonJS((exports, module) => {
|
|
175210
|
-
/*!
|
|
175211
|
-
* mime-db
|
|
175212
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
175213
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
175214
|
-
* MIT Licensed
|
|
175215
|
-
*/
|
|
175216
|
-
module.exports = require_db2();
|
|
175217
|
-
});
|
|
175218
|
-
|
|
175219
175187
|
// node_modules/socket.io/node_modules/accepts/node_modules/mime-types/index.js
|
|
175220
175188
|
var require_mime_types2 = __commonJS((exports) => {
|
|
175221
175189
|
/*!
|
|
@@ -175224,7 +175192,7 @@ var require_mime_types2 = __commonJS((exports) => {
|
|
|
175224
175192
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
175225
175193
|
* MIT Licensed
|
|
175226
175194
|
*/
|
|
175227
|
-
var db2 =
|
|
175195
|
+
var db2 = require_db2();
|
|
175228
175196
|
var extname2 = __require("path").extname;
|
|
175229
175197
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
175230
175198
|
var TEXT_TYPE_REGEXP = /^text\//i;
|
|
@@ -176618,7 +176586,7 @@ var require_mediaType3 = __commonJS((exports, module) => {
|
|
|
176618
176586
|
var priorities = provided.map(function getPriority(type, index) {
|
|
176619
176587
|
return getMediaTypePriority(type, accepts, index);
|
|
176620
176588
|
});
|
|
176621
|
-
return priorities.filter(isQuality).sort(compareSpecs).map(function
|
|
176589
|
+
return priorities.filter(isQuality).sort(compareSpecs).map(function getType2(priority) {
|
|
176622
176590
|
return provided[priorities.indexOf(priority)];
|
|
176623
176591
|
});
|
|
176624
176592
|
}
|
|
@@ -176720,7 +176688,7 @@ var require_negotiator3 = __commonJS((exports, module) => {
|
|
|
176720
176688
|
var set2 = this.languages(available);
|
|
176721
176689
|
return set2 && set2[0];
|
|
176722
176690
|
};
|
|
176723
|
-
Negotiator.prototype.languages = function
|
|
176691
|
+
Negotiator.prototype.languages = function languages2(available) {
|
|
176724
176692
|
return preferredLanguages(this.request.headers["accept-language"], available);
|
|
176725
176693
|
};
|
|
176726
176694
|
Negotiator.prototype.mediaType = function mediaType(available) {
|
|
@@ -185263,17 +185231,6 @@ var require_db3 = __commonJS((exports, module) => {
|
|
|
185263
185231
|
};
|
|
185264
185232
|
});
|
|
185265
185233
|
|
|
185266
|
-
// node_modules/engine.io/node_modules/accepts/node_modules/mime-types/node_modules/mime-db/index.js
|
|
185267
|
-
var require_mime_db3 = __commonJS((exports, module) => {
|
|
185268
|
-
/*!
|
|
185269
|
-
* mime-db
|
|
185270
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
185271
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
185272
|
-
* MIT Licensed
|
|
185273
|
-
*/
|
|
185274
|
-
module.exports = require_db3();
|
|
185275
|
-
});
|
|
185276
|
-
|
|
185277
185234
|
// node_modules/engine.io/node_modules/accepts/node_modules/mime-types/index.js
|
|
185278
185235
|
var require_mime_types3 = __commonJS((exports) => {
|
|
185279
185236
|
/*!
|
|
@@ -185282,7 +185239,7 @@ var require_mime_types3 = __commonJS((exports) => {
|
|
|
185282
185239
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
185283
185240
|
* MIT Licensed
|
|
185284
185241
|
*/
|
|
185285
|
-
var db2 =
|
|
185242
|
+
var db2 = require_db3();
|
|
185286
185243
|
var extname2 = __require("path").extname;
|
|
185287
185244
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
185288
185245
|
var TEXT_TYPE_REGEXP = /^text\//i;
|
|
@@ -187621,7 +187578,7 @@ var require_event_target = __commonJS((exports, module) => {
|
|
|
187621
187578
|
}
|
|
187622
187579
|
let wrapper;
|
|
187623
187580
|
if (type === "message") {
|
|
187624
|
-
wrapper = function
|
|
187581
|
+
wrapper = function onMessage2(data, isBinary) {
|
|
187625
187582
|
const event = new MessageEvent("message", {
|
|
187626
187583
|
data: isBinary ? data : data.toString()
|
|
187627
187584
|
});
|
|
@@ -188646,7 +188603,7 @@ var require_stream6 = __commonJS((exports, module) => {
|
|
|
188646
188603
|
if (!duplex2.push(data))
|
|
188647
188604
|
ws8.pause();
|
|
188648
188605
|
});
|
|
188649
|
-
ws8.once("error", function
|
|
188606
|
+
ws8.once("error", function error48(err) {
|
|
188650
188607
|
if (duplex2.destroyed)
|
|
188651
188608
|
return;
|
|
188652
188609
|
terminateOnDestroy = false;
|
|
@@ -188664,7 +188621,7 @@ var require_stream6 = __commonJS((exports, module) => {
|
|
|
188664
188621
|
return;
|
|
188665
188622
|
}
|
|
188666
188623
|
let called = false;
|
|
188667
|
-
ws8.once("error", function
|
|
188624
|
+
ws8.once("error", function error48(err2) {
|
|
188668
188625
|
called = true;
|
|
188669
188626
|
callback(err2);
|
|
188670
188627
|
});
|
|
@@ -188678,7 +188635,7 @@ var require_stream6 = __commonJS((exports, module) => {
|
|
|
188678
188635
|
};
|
|
188679
188636
|
duplex2._final = function(callback) {
|
|
188680
188637
|
if (ws8.readyState === ws8.CONNECTING) {
|
|
188681
|
-
ws8.once("open", function
|
|
188638
|
+
ws8.once("open", function open2() {
|
|
188682
188639
|
duplex2._final(callback);
|
|
188683
188640
|
});
|
|
188684
188641
|
return;
|
|
@@ -188702,7 +188659,7 @@ var require_stream6 = __commonJS((exports, module) => {
|
|
|
188702
188659
|
};
|
|
188703
188660
|
duplex2._write = function(chunk, encoding, callback) {
|
|
188704
188661
|
if (ws8.readyState === ws8.CONNECTING) {
|
|
188705
|
-
ws8.once("open", function
|
|
188662
|
+
ws8.once("open", function open2() {
|
|
188706
188663
|
duplex2._write(chunk, encoding, callback);
|
|
188707
188664
|
});
|
|
188708
188665
|
return;
|
|
@@ -202350,17 +202307,6 @@ var require_db4 = __commonJS((exports, module) => {
|
|
|
202350
202307
|
};
|
|
202351
202308
|
});
|
|
202352
202309
|
|
|
202353
|
-
// node_modules/multer/node_modules/type-is/node_modules/mime-types/node_modules/mime-db/index.js
|
|
202354
|
-
var require_mime_db4 = __commonJS((exports, module) => {
|
|
202355
|
-
/*!
|
|
202356
|
-
* mime-db
|
|
202357
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
202358
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
202359
|
-
* MIT Licensed
|
|
202360
|
-
*/
|
|
202361
|
-
module.exports = require_db4();
|
|
202362
|
-
});
|
|
202363
|
-
|
|
202364
202310
|
// node_modules/multer/node_modules/type-is/node_modules/mime-types/index.js
|
|
202365
202311
|
var require_mime_types4 = __commonJS((exports) => {
|
|
202366
202312
|
/*!
|
|
@@ -202369,7 +202315,7 @@ var require_mime_types4 = __commonJS((exports) => {
|
|
|
202369
202315
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
202370
202316
|
* MIT Licensed
|
|
202371
202317
|
*/
|
|
202372
|
-
var db2 =
|
|
202318
|
+
var db2 = require_db4();
|
|
202373
202319
|
var extname2 = __require("path").extname;
|
|
202374
202320
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
202375
202321
|
var TEXT_TYPE_REGEXP = /^text\//i;
|
|
@@ -206397,14 +206343,14 @@ var require_counter = __commonJS((exports, module) => {
|
|
|
206397
206343
|
this.value = 0;
|
|
206398
206344
|
}
|
|
206399
206345
|
Counter.prototype = Object.create(EventEmitter3.prototype);
|
|
206400
|
-
Counter.prototype.increment = function
|
|
206346
|
+
Counter.prototype.increment = function increment2() {
|
|
206401
206347
|
this.value++;
|
|
206402
206348
|
};
|
|
206403
206349
|
Counter.prototype.decrement = function decrement() {
|
|
206404
206350
|
if (--this.value === 0)
|
|
206405
206351
|
this.emit("zero");
|
|
206406
206352
|
};
|
|
206407
|
-
Counter.prototype.isZero = function
|
|
206353
|
+
Counter.prototype.isZero = function isZero2() {
|
|
206408
206354
|
return this.value === 0;
|
|
206409
206355
|
};
|
|
206410
206356
|
Counter.prototype.onceZero = function onceZero(fn9) {
|
|
@@ -206953,7 +206899,7 @@ var require_buffer_list = __commonJS((exports, module) => {
|
|
|
206953
206899
|
}
|
|
206954
206900
|
_createClass(BufferList, [{
|
|
206955
206901
|
key: "push",
|
|
206956
|
-
value: function
|
|
206902
|
+
value: function push4(v10) {
|
|
206957
206903
|
var entry = {
|
|
206958
206904
|
data: v10,
|
|
206959
206905
|
next: null
|
|
@@ -206967,7 +206913,7 @@ var require_buffer_list = __commonJS((exports, module) => {
|
|
|
206967
206913
|
}
|
|
206968
206914
|
}, {
|
|
206969
206915
|
key: "unshift",
|
|
206970
|
-
value: function
|
|
206916
|
+
value: function unshift2(v10) {
|
|
206971
206917
|
var entry = {
|
|
206972
206918
|
data: v10,
|
|
206973
206919
|
next: this.head
|
|
@@ -206998,7 +206944,7 @@ var require_buffer_list = __commonJS((exports, module) => {
|
|
|
206998
206944
|
}
|
|
206999
206945
|
}, {
|
|
207000
206946
|
key: "join",
|
|
207001
|
-
value: function
|
|
206947
|
+
value: function join16(s5) {
|
|
207002
206948
|
if (this.length === 0)
|
|
207003
206949
|
return "";
|
|
207004
206950
|
var p4 = this.head;
|
|
@@ -207442,7 +207388,7 @@ var require__stream_writable = __commonJS((exports, module) => {
|
|
|
207442
207388
|
}
|
|
207443
207389
|
});
|
|
207444
207390
|
} else {
|
|
207445
|
-
realHasInstance = function
|
|
207391
|
+
realHasInstance = function realHasInstance2(object2) {
|
|
207446
207392
|
return object2 instanceof this;
|
|
207447
207393
|
};
|
|
207448
207394
|
}
|
|
@@ -207801,7 +207747,7 @@ var require__stream_writable = __commonJS((exports, module) => {
|
|
|
207801
207747
|
}
|
|
207802
207748
|
return this._writableState.destroyed;
|
|
207803
207749
|
},
|
|
207804
|
-
set: function
|
|
207750
|
+
set: function set2(value) {
|
|
207805
207751
|
if (!this._writableState) {
|
|
207806
207752
|
return;
|
|
207807
207753
|
}
|
|
@@ -207889,7 +207835,7 @@ var require__stream_duplex = __commonJS((exports, module) => {
|
|
|
207889
207835
|
}
|
|
207890
207836
|
return this._readableState.destroyed && this._writableState.destroyed;
|
|
207891
207837
|
},
|
|
207892
|
-
set: function
|
|
207838
|
+
set: function set2(value) {
|
|
207893
207839
|
if (this._readableState === undefined || this._writableState === undefined) {
|
|
207894
207840
|
return;
|
|
207895
207841
|
}
|
|
@@ -208240,28 +208186,28 @@ var require_end_of_stream = __commonJS((exports, module) => {
|
|
|
208240
208186
|
callback = once9(callback || noop7);
|
|
208241
208187
|
var readable2 = opts.readable || opts.readable !== false && stream.readable;
|
|
208242
208188
|
var writable2 = opts.writable || opts.writable !== false && stream.writable;
|
|
208243
|
-
var onlegacyfinish = function
|
|
208189
|
+
var onlegacyfinish = function onlegacyfinish2() {
|
|
208244
208190
|
if (!stream.writable)
|
|
208245
208191
|
onfinish();
|
|
208246
208192
|
};
|
|
208247
208193
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
208248
|
-
var onfinish = function
|
|
208194
|
+
var onfinish = function onfinish2() {
|
|
208249
208195
|
writable2 = false;
|
|
208250
208196
|
writableEnded = true;
|
|
208251
208197
|
if (!readable2)
|
|
208252
208198
|
callback.call(stream);
|
|
208253
208199
|
};
|
|
208254
208200
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
208255
|
-
var onend = function
|
|
208201
|
+
var onend = function onend2() {
|
|
208256
208202
|
readable2 = false;
|
|
208257
208203
|
readableEnded = true;
|
|
208258
208204
|
if (!writable2)
|
|
208259
208205
|
callback.call(stream);
|
|
208260
208206
|
};
|
|
208261
|
-
var onerror = function
|
|
208207
|
+
var onerror = function onerror2(err) {
|
|
208262
208208
|
callback.call(stream, err);
|
|
208263
208209
|
};
|
|
208264
|
-
var onclose = function
|
|
208210
|
+
var onclose = function onclose2() {
|
|
208265
208211
|
var err;
|
|
208266
208212
|
if (readable2 && !readableEnded) {
|
|
208267
208213
|
if (!stream._readableState || !stream._readableState.ended)
|
|
@@ -208274,7 +208220,7 @@ var require_end_of_stream = __commonJS((exports, module) => {
|
|
|
208274
208220
|
return callback.call(stream, err);
|
|
208275
208221
|
}
|
|
208276
208222
|
};
|
|
208277
|
-
var onrequest = function
|
|
208223
|
+
var onrequest = function onrequest2() {
|
|
208278
208224
|
stream.req.on("finish", onfinish);
|
|
208279
208225
|
};
|
|
208280
208226
|
if (isRequest(stream)) {
|
|
@@ -208431,7 +208377,7 @@ var require_async_iterator = __commonJS((exports, module) => {
|
|
|
208431
208377
|
});
|
|
208432
208378
|
});
|
|
208433
208379
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
208434
|
-
var createReadableStreamAsyncIterator = function
|
|
208380
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
|
|
208435
208381
|
var _Object$create;
|
|
208436
208382
|
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
208437
208383
|
value: stream,
|
|
@@ -208620,7 +208566,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
208620
208566
|
var Duplex4;
|
|
208621
208567
|
Readable6.ReadableState = ReadableState;
|
|
208622
208568
|
var EE3 = __require("events").EventEmitter;
|
|
208623
|
-
var EElistenerCount = function
|
|
208569
|
+
var EElistenerCount = function EElistenerCount2(emitter, type) {
|
|
208624
208570
|
return emitter.listeners(type).length;
|
|
208625
208571
|
};
|
|
208626
208572
|
var Stream2 = __require("stream");
|
|
@@ -208637,7 +208583,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
208637
208583
|
if (debugUtil && debugUtil.debuglog) {
|
|
208638
208584
|
debug = debugUtil.debuglog("stream");
|
|
208639
208585
|
} else {
|
|
208640
|
-
debug = function
|
|
208586
|
+
debug = function debug2() {};
|
|
208641
208587
|
}
|
|
208642
208588
|
var BufferList = require_buffer_list();
|
|
208643
208589
|
var destroyImpl = require_destroy();
|
|
@@ -208725,7 +208671,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
208725
208671
|
}
|
|
208726
208672
|
return this._readableState.destroyed;
|
|
208727
208673
|
},
|
|
208728
|
-
set: function
|
|
208674
|
+
set: function set2(value) {
|
|
208729
208675
|
if (!this._readableState) {
|
|
208730
208676
|
return;
|
|
208731
208677
|
}
|
|
@@ -209319,7 +209265,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
209319
209265
|
get: function get() {
|
|
209320
209266
|
return this._readableState.flowing;
|
|
209321
209267
|
},
|
|
209322
|
-
set: function
|
|
209268
|
+
set: function set2(state) {
|
|
209323
209269
|
if (this._readableState) {
|
|
209324
209270
|
this._readableState.flowing = state;
|
|
209325
209271
|
}
|
|
@@ -209929,7 +209875,7 @@ var require_typedarray = __commonJS((exports) => {
|
|
|
209929
209875
|
return packIEEE754(v10, 8, 23);
|
|
209930
209876
|
}
|
|
209931
209877
|
(function() {
|
|
209932
|
-
var ArrayBuffer2 = function
|
|
209878
|
+
var ArrayBuffer2 = function ArrayBuffer3(length) {
|
|
209933
209879
|
length = ECMAScript.ToInt32(length);
|
|
209934
209880
|
if (length < 0)
|
|
209935
209881
|
throw new RangeError("ArrayBuffer size is not a small enough positive integer");
|
|
@@ -209943,7 +209889,7 @@ var require_typedarray = __commonJS((exports) => {
|
|
|
209943
209889
|
configureProperties(this);
|
|
209944
209890
|
};
|
|
209945
209891
|
exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer2;
|
|
209946
|
-
var ArrayBufferView = function
|
|
209892
|
+
var ArrayBufferView = function ArrayBufferView2() {};
|
|
209947
209893
|
function makeConstructor(bytesPerElement, pack2, unpack2) {
|
|
209948
209894
|
var ctor;
|
|
209949
209895
|
ctor = function(buffer2, byteOffset, length) {
|
|
@@ -210129,7 +210075,7 @@ var require_typedarray = __commonJS((exports) => {
|
|
|
210129
210075
|
var u16array = new exports.Uint16Array([4660]), u8array = new exports.Uint8Array(u16array.buffer);
|
|
210130
210076
|
return r5(u8array, 0) === 18;
|
|
210131
210077
|
}();
|
|
210132
|
-
var DataView2 = function
|
|
210078
|
+
var DataView2 = function DataView3(buffer2, byteOffset, byteLength) {
|
|
210133
210079
|
if (arguments.length === 0) {
|
|
210134
210080
|
buffer2 = new exports.ArrayBuffer(0);
|
|
210135
210081
|
} else if (!(buffer2 instanceof exports.ArrayBuffer || ECMAScript.Class(buffer2) === "ArrayBuffer")) {
|
|
@@ -210644,7 +210590,7 @@ var require_dist5 = __commonJS((exports, module) => {
|
|
|
210644
210590
|
});
|
|
210645
210591
|
module.exports = __toCommonJS(src_exports);
|
|
210646
210592
|
var import_promises22 = __require("node:fs/promises");
|
|
210647
|
-
var
|
|
210593
|
+
var import_node_fs22 = __require("node:fs");
|
|
210648
210594
|
var DEVIN_LOCAL_PATH = "/opt/.devin";
|
|
210649
210595
|
var CURSOR2 = "cursor";
|
|
210650
210596
|
var CURSOR_CLI = "cursor-cli";
|
|
@@ -210701,13 +210647,17 @@ var require_dist5 = __commonJS((exports, module) => {
|
|
|
210701
210647
|
return { isAgent: true, agent: { name: REPLIT } };
|
|
210702
210648
|
}
|
|
210703
210649
|
try {
|
|
210704
|
-
await (0, import_promises22.access)(DEVIN_LOCAL_PATH,
|
|
210650
|
+
await (0, import_promises22.access)(DEVIN_LOCAL_PATH, import_node_fs22.constants.F_OK);
|
|
210705
210651
|
return { isAgent: true, agent: { name: DEVIN } };
|
|
210706
210652
|
} catch (error48) {}
|
|
210707
210653
|
return { isAgent: false, agent: undefined };
|
|
210708
210654
|
}
|
|
210709
210655
|
});
|
|
210710
210656
|
|
|
210657
|
+
// src/cli/index.ts
|
|
210658
|
+
import { dirname as dirname15, join as join19 } from "node:path";
|
|
210659
|
+
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
210660
|
+
|
|
210711
210661
|
// node_modules/commander/esm.mjs
|
|
210712
210662
|
var import__ = __toESM(require_commander(), 1);
|
|
210713
210663
|
var {
|
|
@@ -210725,7 +210675,7 @@ var {
|
|
|
210725
210675
|
} = import__.default;
|
|
210726
210676
|
|
|
210727
210677
|
// src/cli/commands/agents/pull.ts
|
|
210728
|
-
import { dirname as
|
|
210678
|
+
import { dirname as dirname7, join as join10 } from "node:path";
|
|
210729
210679
|
|
|
210730
210680
|
// node_modules/@clack/core/dist/index.mjs
|
|
210731
210681
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -225367,6 +225317,9 @@ var UserInfoSchema = exports_external.object({
|
|
|
225367
225317
|
name: exports_external.string()
|
|
225368
225318
|
});
|
|
225369
225319
|
|
|
225320
|
+
// src/core/clients/base44-client.ts
|
|
225321
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
225322
|
+
|
|
225370
225323
|
// node_modules/ky/distribution/errors/HTTPError.js
|
|
225371
225324
|
class HTTPError extends Error {
|
|
225372
225325
|
response;
|
|
@@ -226188,8 +226141,7 @@ var distribution_default = ky;
|
|
|
226188
226141
|
|
|
226189
226142
|
// src/core/config.ts
|
|
226190
226143
|
import { homedir } from "node:os";
|
|
226191
|
-
import {
|
|
226192
|
-
import { fileURLToPath } from "node:url";
|
|
226144
|
+
import { join } from "node:path";
|
|
226193
226145
|
|
|
226194
226146
|
// src/core/consts.ts
|
|
226195
226147
|
var PROJECT_SUBDIR = "base44";
|
|
@@ -226261,19 +226213,12 @@ var TestOverridesSchema = exports_external.object({
|
|
|
226261
226213
|
});
|
|
226262
226214
|
|
|
226263
226215
|
// src/core/config.ts
|
|
226264
|
-
var __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
226265
226216
|
function getBase44GlobalDir() {
|
|
226266
226217
|
return join(homedir(), ".base44");
|
|
226267
226218
|
}
|
|
226268
226219
|
function getAuthFilePath() {
|
|
226269
226220
|
return join(getBase44GlobalDir(), "auth", "auth.json");
|
|
226270
226221
|
}
|
|
226271
|
-
function getTemplatesDir() {
|
|
226272
|
-
return join(__dirname2, "../templates");
|
|
226273
|
-
}
|
|
226274
|
-
function getTemplatesIndexPath() {
|
|
226275
|
-
return join(getTemplatesDir(), "templates.json");
|
|
226276
|
-
}
|
|
226277
226222
|
function getAppConfigPath(projectRoot) {
|
|
226278
226223
|
return join(projectRoot, PROJECT_SUBDIR, ".app.jsonc");
|
|
226279
226224
|
}
|
|
@@ -226604,7 +226549,7 @@ import {
|
|
|
226604
226549
|
readdir,
|
|
226605
226550
|
unlink
|
|
226606
226551
|
} from "node:fs/promises";
|
|
226607
|
-
import { dirname
|
|
226552
|
+
import { dirname } from "node:path";
|
|
226608
226553
|
async function pathExists(path) {
|
|
226609
226554
|
try {
|
|
226610
226555
|
await access(path);
|
|
@@ -226614,14 +226559,14 @@ async function pathExists(path) {
|
|
|
226614
226559
|
}
|
|
226615
226560
|
}
|
|
226616
226561
|
async function writeFile(filePath, content) {
|
|
226617
|
-
const dir =
|
|
226562
|
+
const dir = dirname(filePath);
|
|
226618
226563
|
if (!await pathExists(dir)) {
|
|
226619
226564
|
await mkdir(dir, { recursive: true });
|
|
226620
226565
|
}
|
|
226621
226566
|
await fsWriteFile(filePath, content, "utf-8");
|
|
226622
226567
|
}
|
|
226623
226568
|
async function copyFile(src, dest) {
|
|
226624
|
-
const dir =
|
|
226569
|
+
const dir = dirname(dest);
|
|
226625
226570
|
if (!await pathExists(dir)) {
|
|
226626
226571
|
await mkdir(dir, { recursive: true });
|
|
226627
226572
|
}
|
|
@@ -226662,7 +226607,7 @@ async function readJsonFile(filePath) {
|
|
|
226662
226607
|
}
|
|
226663
226608
|
}
|
|
226664
226609
|
async function writeJsonFile(filePath, data) {
|
|
226665
|
-
const dir =
|
|
226610
|
+
const dir = dirname(filePath);
|
|
226666
226611
|
if (!await pathExists(dir)) {
|
|
226667
226612
|
await mkdir(dir, { recursive: true });
|
|
226668
226613
|
}
|
|
@@ -227812,7 +227757,7 @@ import path3 from "node:path";
|
|
|
227812
227757
|
|
|
227813
227758
|
// node_modules/tar/dist/esm/list.js
|
|
227814
227759
|
import fs2 from "node:fs";
|
|
227815
|
-
import { dirname as
|
|
227760
|
+
import { dirname as dirname2, parse as parse6 } from "path";
|
|
227816
227761
|
|
|
227817
227762
|
// node_modules/tar/dist/esm/options.js
|
|
227818
227763
|
var argmap = new Map([
|
|
@@ -229388,7 +229333,7 @@ var filesFilter = (opt, files) => {
|
|
|
229388
229333
|
if (m !== undefined) {
|
|
229389
229334
|
ret = m;
|
|
229390
229335
|
} else {
|
|
229391
|
-
ret = mapHas(
|
|
229336
|
+
ret = mapHas(dirname2(file2), root);
|
|
229392
229337
|
}
|
|
229393
229338
|
}
|
|
229394
229339
|
map2.set(file2, ret);
|
|
@@ -232549,10 +232494,10 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
|
|
|
232549
232494
|
// node_modules/unicorn-magic/node.js
|
|
232550
232495
|
import { promisify } from "node:util";
|
|
232551
232496
|
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
232552
|
-
import { fileURLToPath
|
|
232497
|
+
import { fileURLToPath } from "node:url";
|
|
232553
232498
|
var execFileOriginal = promisify(execFileCallback);
|
|
232554
232499
|
function toPath(urlOrPath) {
|
|
232555
|
-
return urlOrPath instanceof URL ?
|
|
232500
|
+
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
232556
232501
|
}
|
|
232557
232502
|
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
232558
232503
|
|
|
@@ -232967,9 +232912,9 @@ var shouldExpandGlobstarDirectory = (pattern) => {
|
|
|
232967
232912
|
if (!match) {
|
|
232968
232913
|
return false;
|
|
232969
232914
|
}
|
|
232970
|
-
const
|
|
232971
|
-
const hasWildcards = /[*?[\]{}]/.test(
|
|
232972
|
-
const hasExtension = nodePath.extname(
|
|
232915
|
+
const dirname3 = match[1];
|
|
232916
|
+
const hasWildcards = /[*?[\]{}]/.test(dirname3);
|
|
232917
|
+
const hasExtension = nodePath.extname(dirname3) && !dirname3.startsWith(".");
|
|
232973
232918
|
return !hasWildcards && !hasExtension;
|
|
232974
232919
|
};
|
|
232975
232920
|
var getDirectoryGlob = ({ directoryPath, files, extensions }) => {
|
|
@@ -233226,7 +233171,7 @@ var generateGlobTasks = normalizeArguments(generateTasks);
|
|
|
233226
233171
|
var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
|
|
233227
233172
|
|
|
233228
233173
|
// src/core/project/config.ts
|
|
233229
|
-
import { dirname as
|
|
233174
|
+
import { dirname as dirname5, join as join6 } from "node:path";
|
|
233230
233175
|
|
|
233231
233176
|
// src/core/resources/agent/schema.ts
|
|
233232
233177
|
var EntityOperationSchema = exports_external.enum(["create", "update", "delete", "read"]);
|
|
@@ -234036,7 +233981,7 @@ async function fetchFunctionLogs(functionName, filters = {}) {
|
|
|
234036
233981
|
return result.data;
|
|
234037
233982
|
}
|
|
234038
233983
|
// src/core/resources/function/config.ts
|
|
234039
|
-
import { basename as basename2, dirname as
|
|
233984
|
+
import { basename as basename2, dirname as dirname3, join as join5, relative } from "node:path";
|
|
234040
233985
|
async function readFunctionConfig(configPath) {
|
|
234041
233986
|
const parsed = await readJsonFile(configPath);
|
|
234042
233987
|
const result = FunctionConfigSchema.safeParse(parsed);
|
|
@@ -234047,7 +233992,7 @@ async function readFunctionConfig(configPath) {
|
|
|
234047
233992
|
}
|
|
234048
233993
|
async function readFunction(configPath) {
|
|
234049
233994
|
const config5 = await readFunctionConfig(configPath);
|
|
234050
|
-
const functionDir =
|
|
233995
|
+
const functionDir = dirname3(configPath);
|
|
234051
233996
|
const entryPath = join5(functionDir, config5.entry);
|
|
234052
233997
|
if (!await pathExists(entryPath)) {
|
|
234053
233998
|
throw new InvalidInputError(`Function entry file not found: ${entryPath} (referenced in ${configPath})`, {
|
|
@@ -234074,11 +234019,11 @@ async function readAllFunctions(functionsDir) {
|
|
|
234074
234019
|
absolute: true,
|
|
234075
234020
|
ignore: ENTRY_IGNORE_DOT_PATHS
|
|
234076
234021
|
});
|
|
234077
|
-
const configFilesDirs = new Set(configFiles.map((f) =>
|
|
234078
|
-
const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(
|
|
234022
|
+
const configFilesDirs = new Set(configFiles.map((f) => dirname3(f)));
|
|
234023
|
+
const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname3(entryFile)));
|
|
234079
234024
|
const functionsFromConfig = await Promise.all(configFiles.map((configPath) => readFunction(configPath)));
|
|
234080
234025
|
const functionsWithoutConfig = await Promise.all(entryFilesWithoutConfig.map(async (entryFile) => {
|
|
234081
|
-
const functionDir =
|
|
234026
|
+
const functionDir = dirname3(entryFile);
|
|
234082
234027
|
const filePaths = await globby("**/*.{js,ts,json}", {
|
|
234083
234028
|
cwd: functionDir,
|
|
234084
234029
|
absolute: true
|
|
@@ -234113,9 +234058,9 @@ async function readAllFunctions(functionsDir) {
|
|
|
234113
234058
|
return functions;
|
|
234114
234059
|
}
|
|
234115
234060
|
// src/core/resources/function/deploy.ts
|
|
234116
|
-
import { dirname as
|
|
234061
|
+
import { dirname as dirname4, relative as relative2 } from "node:path";
|
|
234117
234062
|
async function loadFunctionCode(fn) {
|
|
234118
|
-
const functionDir =
|
|
234063
|
+
const functionDir = dirname4(fn.entryPath);
|
|
234119
234064
|
const loadedFiles = await Promise.all(fn.filePaths.map(async (filePath) => {
|
|
234120
234065
|
const content = await readTextFile(filePath);
|
|
234121
234066
|
const path11 = relative2(functionDir, filePath).split(/[/\\]/).join("/");
|
|
@@ -234145,12 +234090,12 @@ async function findConfigInDir(dir) {
|
|
|
234145
234090
|
}
|
|
234146
234091
|
async function findProjectRoot(startPath) {
|
|
234147
234092
|
let current = startPath || process.cwd();
|
|
234148
|
-
while (current !==
|
|
234093
|
+
while (current !== dirname5(current)) {
|
|
234149
234094
|
const configPath = await findConfigInDir(current);
|
|
234150
234095
|
if (configPath) {
|
|
234151
234096
|
return { root: current, configPath };
|
|
234152
234097
|
}
|
|
234153
|
-
current =
|
|
234098
|
+
current = dirname5(current);
|
|
234154
234099
|
}
|
|
234155
234100
|
return null;
|
|
234156
234101
|
}
|
|
@@ -234172,7 +234117,7 @@ async function readProjectConfig(projectRoot) {
|
|
|
234172
234117
|
throw new SchemaValidationError("Invalid project configuration", result.error, configPath);
|
|
234173
234118
|
}
|
|
234174
234119
|
const project = result.data;
|
|
234175
|
-
const configDir =
|
|
234120
|
+
const configDir = dirname5(configPath);
|
|
234176
234121
|
const [entities, functions, agents, connectors] = await Promise.all([
|
|
234177
234122
|
entityResource.readAll(join6(configDir, project.entitiesDir)),
|
|
234178
234123
|
functionResource.readAll(join6(configDir, project.functionsDir)),
|
|
@@ -234274,33 +234219,152 @@ async function readAppConfig(projectRoot) {
|
|
|
234274
234219
|
// src/core/project/template.ts
|
|
234275
234220
|
var import_ejs = __toESM(require_ejs(), 1);
|
|
234276
234221
|
var import_front_matter = __toESM(require_front_matter(), 1);
|
|
234277
|
-
import { dirname as
|
|
234222
|
+
import { dirname as dirname6, join as join8 } from "node:path";
|
|
234223
|
+
|
|
234224
|
+
// src/core/assets.ts
|
|
234225
|
+
import { cpSync, existsSync } from "node:fs";
|
|
234226
|
+
import { homedir as homedir2 } from "node:os";
|
|
234227
|
+
import { join as join7 } from "node:path";
|
|
234228
|
+
// package.json
|
|
234229
|
+
var package_default = {
|
|
234230
|
+
name: "base44",
|
|
234231
|
+
version: "0.0.40",
|
|
234232
|
+
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
234233
|
+
type: "module",
|
|
234234
|
+
bin: {
|
|
234235
|
+
base44: "./bin/run.js"
|
|
234236
|
+
},
|
|
234237
|
+
files: [
|
|
234238
|
+
"dist/cli",
|
|
234239
|
+
"dist/assets",
|
|
234240
|
+
"bin"
|
|
234241
|
+
],
|
|
234242
|
+
scripts: {
|
|
234243
|
+
build: "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts",
|
|
234244
|
+
"build:watch": "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts --watch",
|
|
234245
|
+
typecheck: "tsc --noEmit",
|
|
234246
|
+
dev: "./bin/dev.ts",
|
|
234247
|
+
start: "./bin/run.js",
|
|
234248
|
+
clean: "rm -rf dist && mkdir -p dist",
|
|
234249
|
+
lint: "biome check src tests",
|
|
234250
|
+
"lint:fix": "biome check --write src tests",
|
|
234251
|
+
test: "vitest run",
|
|
234252
|
+
"test:watch": "vitest",
|
|
234253
|
+
"build:binaries": "bun run infra/build-binaries.ts",
|
|
234254
|
+
"package:binaries": "bun run infra/package-binaries.ts",
|
|
234255
|
+
knip: "knip",
|
|
234256
|
+
"knip:fix": "knip --fix"
|
|
234257
|
+
},
|
|
234258
|
+
keywords: [
|
|
234259
|
+
"base44",
|
|
234260
|
+
"cli",
|
|
234261
|
+
"command-line"
|
|
234262
|
+
],
|
|
234263
|
+
author: "",
|
|
234264
|
+
license: "MIT",
|
|
234265
|
+
repository: {
|
|
234266
|
+
type: "git",
|
|
234267
|
+
url: "https://github.com/base44/cli"
|
|
234268
|
+
},
|
|
234269
|
+
devDependencies: {
|
|
234270
|
+
"@biomejs/biome": "^2.0.0",
|
|
234271
|
+
"@clack/prompts": "^1.0.1",
|
|
234272
|
+
"@seald-io/nedb": "^4.1.2",
|
|
234273
|
+
"@types/bun": "^1.2.15",
|
|
234274
|
+
"@types/common-tags": "^1.8.4",
|
|
234275
|
+
"@types/cors": "^2.8.19",
|
|
234276
|
+
"@types/deno": "^2.5.0",
|
|
234277
|
+
"@types/ejs": "^3.1.5",
|
|
234278
|
+
"@types/express": "^5.0.6",
|
|
234279
|
+
"@types/json-schema": "^7.0.15",
|
|
234280
|
+
"@types/lodash": "^4.17.24",
|
|
234281
|
+
"@types/multer": "^2.0.0",
|
|
234282
|
+
"@types/node": "^22.10.5",
|
|
234283
|
+
"@vercel/detect-agent": "^1.1.0",
|
|
234284
|
+
chalk: "^5.6.2",
|
|
234285
|
+
chokidar: "^5.0.0",
|
|
234286
|
+
commander: "^12.1.0",
|
|
234287
|
+
"common-tags": "^1.8.2",
|
|
234288
|
+
cors: "^2.8.5",
|
|
234289
|
+
dotenv: "17.3.1",
|
|
234290
|
+
ejs: "^3.1.10",
|
|
234291
|
+
execa: "^9.6.1",
|
|
234292
|
+
express: "^5.0.1",
|
|
234293
|
+
"front-matter": "^4.0.2",
|
|
234294
|
+
"get-port": "^7.1.0",
|
|
234295
|
+
globby: "^16.1.0",
|
|
234296
|
+
"http-proxy-middleware": "^3.0.5",
|
|
234297
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
234298
|
+
json5: "^2.2.3",
|
|
234299
|
+
knip: "^5.83.1",
|
|
234300
|
+
ky: "^1.14.2",
|
|
234301
|
+
lodash: "^4.17.23",
|
|
234302
|
+
msw: "^2.12.10",
|
|
234303
|
+
multer: "^2.0.0",
|
|
234304
|
+
nanoid: "^5.1.6",
|
|
234305
|
+
open: "^11.0.0",
|
|
234306
|
+
"p-wait-for": "^6.0.0",
|
|
234307
|
+
"posthog-node": "5.21.2",
|
|
234308
|
+
"socket.io": "^4.8.3",
|
|
234309
|
+
"strip-ansi": "^7.1.2",
|
|
234310
|
+
tar: "^7.5.4",
|
|
234311
|
+
"tmp-promise": "^3.0.3",
|
|
234312
|
+
typescript: "^5.7.2",
|
|
234313
|
+
vitest: "^4.0.16",
|
|
234314
|
+
zod: "^4.3.5"
|
|
234315
|
+
},
|
|
234316
|
+
engines: {
|
|
234317
|
+
node: ">=20.19.0"
|
|
234318
|
+
}
|
|
234319
|
+
};
|
|
234320
|
+
|
|
234321
|
+
// src/core/assets.ts
|
|
234322
|
+
var ASSETS_DIR = join7(homedir2(), ".base44", "assets", package_default.version);
|
|
234323
|
+
function getTemplatesDir() {
|
|
234324
|
+
return join7(ASSETS_DIR, "templates");
|
|
234325
|
+
}
|
|
234326
|
+
function getTemplatesIndexPath() {
|
|
234327
|
+
return join7(ASSETS_DIR, "templates", "templates.json");
|
|
234328
|
+
}
|
|
234329
|
+
function getDenoWrapperPath() {
|
|
234330
|
+
return join7(ASSETS_DIR, "deno-runtime", "main.js");
|
|
234331
|
+
}
|
|
234332
|
+
function ensureNpmAssets(sourceDir) {
|
|
234333
|
+
if (existsSync(ASSETS_DIR))
|
|
234334
|
+
return;
|
|
234335
|
+
if (!existsSync(sourceDir))
|
|
234336
|
+
return;
|
|
234337
|
+
cpSync(sourceDir, ASSETS_DIR, { recursive: true });
|
|
234338
|
+
}
|
|
234339
|
+
|
|
234340
|
+
// src/core/project/template.ts
|
|
234278
234341
|
async function listTemplates() {
|
|
234279
|
-
const
|
|
234342
|
+
const indexPath = getTemplatesIndexPath();
|
|
234343
|
+
const parsed = await readJsonFile(indexPath);
|
|
234280
234344
|
const result = TemplatesConfigSchema.safeParse(parsed);
|
|
234281
234345
|
if (!result.success) {
|
|
234282
|
-
throw new SchemaValidationError("Invalid templates configuration", result.error,
|
|
234346
|
+
throw new SchemaValidationError("Invalid templates configuration", result.error, indexPath);
|
|
234283
234347
|
}
|
|
234284
234348
|
return result.data.templates;
|
|
234285
234349
|
}
|
|
234286
234350
|
async function renderTemplate(template, destPath, data) {
|
|
234287
|
-
const templateDir =
|
|
234351
|
+
const templateDir = join8(getTemplatesDir(), template.path);
|
|
234288
234352
|
const files = await globby("**/*", {
|
|
234289
234353
|
cwd: templateDir,
|
|
234290
234354
|
dot: true,
|
|
234291
234355
|
onlyFiles: true
|
|
234292
234356
|
});
|
|
234293
234357
|
for (const file2 of files) {
|
|
234294
|
-
const srcPath =
|
|
234358
|
+
const srcPath = join8(templateDir, file2);
|
|
234295
234359
|
try {
|
|
234296
234360
|
if (file2.endsWith(".ejs")) {
|
|
234297
234361
|
const rendered = await import_ejs.default.renderFile(srcPath, data);
|
|
234298
234362
|
const { attributes, body } = import_front_matter.default(rendered);
|
|
234299
|
-
const destFile = attributes.outputFileName ?
|
|
234300
|
-
const destFilePath =
|
|
234363
|
+
const destFile = attributes.outputFileName ? join8(dirname6(file2), attributes.outputFileName) : file2.replace(/\.ejs$/, "");
|
|
234364
|
+
const destFilePath = join8(destPath, destFile);
|
|
234301
234365
|
await writeFile(destFilePath, body);
|
|
234302
234366
|
} else {
|
|
234303
|
-
const destFilePath =
|
|
234367
|
+
const destFilePath = join8(destPath, file2);
|
|
234304
234368
|
await copyFile(srcPath, destFilePath);
|
|
234305
234369
|
}
|
|
234306
234370
|
} catch (error48) {
|
|
@@ -234324,11 +234388,7 @@ async function createProjectFiles(options) {
|
|
|
234324
234388
|
const { name: name2, description, path: basePath, template } = options;
|
|
234325
234389
|
await assertProjectNotExists(basePath);
|
|
234326
234390
|
const { projectId } = await createProject(name2, description);
|
|
234327
|
-
await renderTemplate(template, basePath, {
|
|
234328
|
-
name: name2,
|
|
234329
|
-
description,
|
|
234330
|
-
projectId
|
|
234331
|
-
});
|
|
234391
|
+
await renderTemplate(template, basePath, { name: name2, description, projectId });
|
|
234332
234392
|
return {
|
|
234333
234393
|
projectId,
|
|
234334
234394
|
projectDir: basePath
|
|
@@ -234403,7 +234463,7 @@ async function getSiteFilePaths(outputDir) {
|
|
|
234403
234463
|
// src/core/site/deploy.ts
|
|
234404
234464
|
import { randomUUID } from "node:crypto";
|
|
234405
234465
|
import { tmpdir } from "node:os";
|
|
234406
|
-
import { join as
|
|
234466
|
+
import { join as join9 } from "node:path";
|
|
234407
234467
|
async function deploySite(siteOutputDir) {
|
|
234408
234468
|
if (!await pathExists(siteOutputDir)) {
|
|
234409
234469
|
throw new InvalidInputError(`Output directory does not exist: ${siteOutputDir}. Make sure to build your project first.`, {
|
|
@@ -234420,7 +234480,7 @@ async function deploySite(siteOutputDir) {
|
|
|
234420
234480
|
]
|
|
234421
234481
|
});
|
|
234422
234482
|
}
|
|
234423
|
-
const archivePath =
|
|
234483
|
+
const archivePath = join9(tmpdir(), `base44-site-${randomUUID()}.tar.gz`);
|
|
234424
234484
|
try {
|
|
234425
234485
|
await createArchive(siteOutputDir, archivePath);
|
|
234426
234486
|
return await uploadSite(archivePath);
|
|
@@ -234482,8 +234542,12 @@ async function handleUnauthorized(request, _options, response) {
|
|
|
234482
234542
|
return;
|
|
234483
234543
|
}
|
|
234484
234544
|
retriedRequests.add(request);
|
|
234545
|
+
const requestId = request.headers.get("X-Request-ID");
|
|
234485
234546
|
return distribution_default(request.clone(), {
|
|
234486
|
-
headers: {
|
|
234547
|
+
headers: {
|
|
234548
|
+
...requestId && { "X-Request-ID": requestId },
|
|
234549
|
+
Authorization: `Bearer ${newAccessToken}`
|
|
234550
|
+
}
|
|
234487
234551
|
});
|
|
234488
234552
|
}
|
|
234489
234553
|
var base44Client = distribution_default.create({
|
|
@@ -234493,6 +234557,9 @@ var base44Client = distribution_default.create({
|
|
|
234493
234557
|
},
|
|
234494
234558
|
hooks: {
|
|
234495
234559
|
beforeRequest: [
|
|
234560
|
+
(request) => {
|
|
234561
|
+
request.headers.set("X-Request-ID", randomUUID2());
|
|
234562
|
+
},
|
|
234496
234563
|
captureRequestBody,
|
|
234497
234564
|
async (request) => {
|
|
234498
234565
|
try {
|
|
@@ -234518,10 +234585,18 @@ function getAppClient() {
|
|
|
234518
234585
|
});
|
|
234519
234586
|
}
|
|
234520
234587
|
// src/core/clients/oauth-client.ts
|
|
234588
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
234521
234589
|
var oauthClient = distribution_default.create({
|
|
234522
234590
|
prefixUrl: getBase44ApiUrl(),
|
|
234523
234591
|
headers: {
|
|
234524
234592
|
"User-Agent": "Base44 CLI"
|
|
234593
|
+
},
|
|
234594
|
+
hooks: {
|
|
234595
|
+
beforeRequest: [
|
|
234596
|
+
(request) => {
|
|
234597
|
+
request.headers.set("X-Request-ID", randomUUID3());
|
|
234598
|
+
}
|
|
234599
|
+
]
|
|
234525
234600
|
}
|
|
234526
234601
|
});
|
|
234527
234602
|
// src/core/auth/api.ts
|
|
@@ -234666,7 +234741,8 @@ async function deleteSecret(name2) {
|
|
|
234666
234741
|
let response;
|
|
234667
234742
|
try {
|
|
234668
234743
|
response = await appClient.delete("secrets", {
|
|
234669
|
-
searchParams: { secret_name: name2 }
|
|
234744
|
+
searchParams: { secret_name: name2 },
|
|
234745
|
+
timeout: false
|
|
234670
234746
|
});
|
|
234671
234747
|
} catch (error48) {
|
|
234672
234748
|
throw await ApiError.fromHttpError(error48, "deleting secret");
|
|
@@ -235484,7 +235560,7 @@ function isPlainObject2(value) {
|
|
|
235484
235560
|
}
|
|
235485
235561
|
|
|
235486
235562
|
// node_modules/execa/lib/arguments/file-url.js
|
|
235487
|
-
import { fileURLToPath as
|
|
235563
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
235488
235564
|
var safeNormalizeFileUrl = (file2, name2) => {
|
|
235489
235565
|
const fileString = normalizeFileUrl(normalizeDenoExecPath(file2));
|
|
235490
235566
|
if (typeof fileString !== "string") {
|
|
@@ -235494,7 +235570,7 @@ var safeNormalizeFileUrl = (file2, name2) => {
|
|
|
235494
235570
|
};
|
|
235495
235571
|
var normalizeDenoExecPath = (file2) => isDenoExecPath(file2) ? file2.toString() : file2;
|
|
235496
235572
|
var isDenoExecPath = (file2) => typeof file2 !== "string" && file2 && Object.getPrototypeOf(file2) === String.prototype;
|
|
235497
|
-
var normalizeFileUrl = (file2) => file2 instanceof URL ?
|
|
235573
|
+
var normalizeFileUrl = (file2) => file2 instanceof URL ? fileURLToPath2(file2) : file2;
|
|
235498
235574
|
|
|
235499
235575
|
// node_modules/execa/lib/methods/parameters.js
|
|
235500
235576
|
var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
@@ -236348,10 +236424,10 @@ function pathKey(options = {}) {
|
|
|
236348
236424
|
import { promisify as promisify3 } from "node:util";
|
|
236349
236425
|
import { execFile as execFileCallback2, execFileSync as execFileSyncOriginal2 } from "node:child_process";
|
|
236350
236426
|
import path11 from "node:path";
|
|
236351
|
-
import { fileURLToPath as
|
|
236427
|
+
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
236352
236428
|
var execFileOriginal2 = promisify3(execFileCallback2);
|
|
236353
236429
|
function toPath2(urlOrPath) {
|
|
236354
|
-
return urlOrPath instanceof URL ?
|
|
236430
|
+
return urlOrPath instanceof URL ? fileURLToPath3(urlOrPath) : urlOrPath;
|
|
236355
236431
|
}
|
|
236356
236432
|
function traversePathUp(startPath) {
|
|
236357
236433
|
return {
|
|
@@ -241969,95 +242045,6 @@ var {
|
|
|
241969
242045
|
getEachMessage: getEachMessage2,
|
|
241970
242046
|
getCancelSignal: getCancelSignal2
|
|
241971
242047
|
} = getIpcExport();
|
|
241972
|
-
// package.json
|
|
241973
|
-
var package_default = {
|
|
241974
|
-
name: "base44",
|
|
241975
|
-
version: "0.0.38",
|
|
241976
|
-
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
241977
|
-
type: "module",
|
|
241978
|
-
bin: {
|
|
241979
|
-
base44: "./bin/run.js"
|
|
241980
|
-
},
|
|
241981
|
-
files: [
|
|
241982
|
-
"dist",
|
|
241983
|
-
"bin"
|
|
241984
|
-
],
|
|
241985
|
-
scripts: {
|
|
241986
|
-
build: "bun run clean && cp -r templates dist/ && bun run infra/build.ts",
|
|
241987
|
-
"build:watch": "bun run clean && cp -r templates dist/ && bun run infra/build.ts --watch",
|
|
241988
|
-
typecheck: "tsc --noEmit",
|
|
241989
|
-
dev: "./bin/dev.ts",
|
|
241990
|
-
start: "./bin/run.js",
|
|
241991
|
-
clean: "rm -rf dist && mkdir -p dist",
|
|
241992
|
-
lint: "biome check src tests",
|
|
241993
|
-
"lint:fix": "biome check --write src tests",
|
|
241994
|
-
test: "vitest run",
|
|
241995
|
-
"test:watch": "vitest",
|
|
241996
|
-
knip: "knip",
|
|
241997
|
-
"knip:fix": "knip --fix"
|
|
241998
|
-
},
|
|
241999
|
-
keywords: [
|
|
242000
|
-
"base44",
|
|
242001
|
-
"cli",
|
|
242002
|
-
"command-line"
|
|
242003
|
-
],
|
|
242004
|
-
author: "",
|
|
242005
|
-
license: "MIT",
|
|
242006
|
-
repository: {
|
|
242007
|
-
type: "git",
|
|
242008
|
-
url: "https://github.com/base44/cli"
|
|
242009
|
-
},
|
|
242010
|
-
devDependencies: {
|
|
242011
|
-
"@biomejs/biome": "^2.0.0",
|
|
242012
|
-
"@clack/prompts": "^1.0.1",
|
|
242013
|
-
"@seald-io/nedb": "^4.1.2",
|
|
242014
|
-
"@types/bun": "^1.2.15",
|
|
242015
|
-
"@types/common-tags": "^1.8.4",
|
|
242016
|
-
"@types/cors": "^2.8.19",
|
|
242017
|
-
"@types/deno": "^2.5.0",
|
|
242018
|
-
"@types/ejs": "^3.1.5",
|
|
242019
|
-
"@types/express": "^5.0.6",
|
|
242020
|
-
"@types/json-schema": "^7.0.15",
|
|
242021
|
-
"@types/lodash": "^4.17.24",
|
|
242022
|
-
"@types/multer": "^2.0.0",
|
|
242023
|
-
"@types/node": "^22.10.5",
|
|
242024
|
-
"@vercel/detect-agent": "^1.1.0",
|
|
242025
|
-
chalk: "^5.6.2",
|
|
242026
|
-
chokidar: "^5.0.0",
|
|
242027
|
-
commander: "^12.1.0",
|
|
242028
|
-
"common-tags": "^1.8.2",
|
|
242029
|
-
cors: "^2.8.5",
|
|
242030
|
-
dotenv: "17.3.1",
|
|
242031
|
-
ejs: "^3.1.10",
|
|
242032
|
-
execa: "^9.6.1",
|
|
242033
|
-
express: "^5.0.1",
|
|
242034
|
-
"front-matter": "^4.0.2",
|
|
242035
|
-
"get-port": "^7.1.0",
|
|
242036
|
-
globby: "^16.1.0",
|
|
242037
|
-
"http-proxy-middleware": "^3.0.5",
|
|
242038
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
242039
|
-
json5: "^2.2.3",
|
|
242040
|
-
knip: "^5.83.1",
|
|
242041
|
-
ky: "^1.14.2",
|
|
242042
|
-
lodash: "^4.17.23",
|
|
242043
|
-
msw: "^2.12.10",
|
|
242044
|
-
multer: "^2.0.0",
|
|
242045
|
-
nanoid: "^5.1.6",
|
|
242046
|
-
open: "^11.0.0",
|
|
242047
|
-
"p-wait-for": "^6.0.0",
|
|
242048
|
-
"posthog-node": "5.21.2",
|
|
242049
|
-
"socket.io": "^4.8.3",
|
|
242050
|
-
"strip-ansi": "^7.1.2",
|
|
242051
|
-
tar: "^7.5.4",
|
|
242052
|
-
"tmp-promise": "^3.0.3",
|
|
242053
|
-
typescript: "^5.7.2",
|
|
242054
|
-
vitest: "^4.0.16",
|
|
242055
|
-
zod: "^4.3.5"
|
|
242056
|
-
},
|
|
242057
|
-
engines: {
|
|
242058
|
-
node: ">=20.19.0"
|
|
242059
|
-
}
|
|
242060
|
-
};
|
|
242061
242048
|
|
|
242062
242049
|
// src/cli/utils/version-check.ts
|
|
242063
242050
|
async function checkForUpgrade() {
|
|
@@ -242181,8 +242168,8 @@ function getDashboardUrl(projectId) {
|
|
|
242181
242168
|
// src/cli/commands/agents/pull.ts
|
|
242182
242169
|
async function pullAgentsAction() {
|
|
242183
242170
|
const { project: project2 } = await readProjectConfig();
|
|
242184
|
-
const configDir =
|
|
242185
|
-
const agentsDir =
|
|
242171
|
+
const configDir = dirname7(project2.configPath);
|
|
242172
|
+
const agentsDir = join10(configDir, project2.agentsDir);
|
|
242186
242173
|
const remoteAgents = await runTask("Fetching agents from Base44", async () => {
|
|
242187
242174
|
return await fetchAgents();
|
|
242188
242175
|
}, {
|
|
@@ -242276,11 +242263,11 @@ function getWhoamiCommand(context) {
|
|
|
242276
242263
|
}
|
|
242277
242264
|
|
|
242278
242265
|
// src/cli/commands/connectors/pull.ts
|
|
242279
|
-
import { dirname as
|
|
242266
|
+
import { dirname as dirname8, join as join11 } from "node:path";
|
|
242280
242267
|
async function pullConnectorsAction() {
|
|
242281
242268
|
const { project: project2 } = await readProjectConfig();
|
|
242282
|
-
const configDir =
|
|
242283
|
-
const connectorsDir =
|
|
242269
|
+
const configDir = dirname8(project2.configPath);
|
|
242270
|
+
const connectorsDir = join11(configDir, project2.connectorsDir);
|
|
242284
242271
|
const remoteConnectors = await runTask("Fetching connectors from Base44", async () => {
|
|
242285
242272
|
return await listConnectors();
|
|
242286
242273
|
}, {
|
|
@@ -242315,7 +242302,7 @@ function getConnectorsPullCommand(context) {
|
|
|
242315
242302
|
// node_modules/open/index.js
|
|
242316
242303
|
import process20 from "node:process";
|
|
242317
242304
|
import path16 from "node:path";
|
|
242318
|
-
import { fileURLToPath as
|
|
242305
|
+
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
242319
242306
|
import childProcess3 from "node:child_process";
|
|
242320
242307
|
import fs19, { constants as fsConstants2 } from "node:fs/promises";
|
|
242321
242308
|
|
|
@@ -242641,8 +242628,8 @@ var is_in_ssh_default = isInSsh;
|
|
|
242641
242628
|
|
|
242642
242629
|
// node_modules/open/index.js
|
|
242643
242630
|
var fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
242644
|
-
var
|
|
242645
|
-
var localXdgOpenPath = path16.join(
|
|
242631
|
+
var __dirname2 = import.meta.url ? path16.dirname(fileURLToPath4(import.meta.url)) : "";
|
|
242632
|
+
var localXdgOpenPath = path16.join(__dirname2, "xdg-open");
|
|
242646
242633
|
var { platform: platform6, arch } = process20;
|
|
242647
242634
|
var tryEachApp = async (apps, opener) => {
|
|
242648
242635
|
if (apps.length === 0) {
|
|
@@ -242786,7 +242773,7 @@ var baseOpen = async (options) => {
|
|
|
242786
242773
|
if (app) {
|
|
242787
242774
|
command = app;
|
|
242788
242775
|
} else {
|
|
242789
|
-
const isBundled = !
|
|
242776
|
+
const isBundled = !__dirname2 || __dirname2 === "/";
|
|
242790
242777
|
let exeLocalXdgOpen = false;
|
|
242791
242778
|
try {
|
|
242792
242779
|
await fs19.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
@@ -243167,7 +243154,7 @@ function getFunctionsDeployCommand(context) {
|
|
|
243167
243154
|
}
|
|
243168
243155
|
|
|
243169
243156
|
// src/cli/commands/project/create.ts
|
|
243170
|
-
import { basename as basename3, join as
|
|
243157
|
+
import { basename as basename3, join as join12, resolve as resolve2 } from "node:path";
|
|
243171
243158
|
var import_kebabCase = __toESM(require_kebabCase(), 1);
|
|
243172
243159
|
var DEFAULT_TEMPLATE_ID = "backend-only";
|
|
243173
243160
|
async function getTemplateById(templateId) {
|
|
@@ -243303,7 +243290,7 @@ async function executeCreate({
|
|
|
243303
243290
|
updateMessage("Building project...");
|
|
243304
243291
|
await execa({ cwd: resolvedPath, shell: true })`${buildCommand}`;
|
|
243305
243292
|
updateMessage("Deploying site...");
|
|
243306
|
-
return await deploySite(
|
|
243293
|
+
return await deploySite(join12(resolvedPath, outputDirectory));
|
|
243307
243294
|
}, {
|
|
243308
243295
|
successMessage: theme.colors.base44Orange("Site deployed successfully"),
|
|
243309
243296
|
errorMessage: "Failed to deploy site"
|
|
@@ -243929,10 +243916,10 @@ function toPascalCase(name2) {
|
|
|
243929
243916
|
return name2.split(/[-_\s]+/).map((w8) => w8.charAt(0).toUpperCase() + w8.slice(1)).join("");
|
|
243930
243917
|
}
|
|
243931
243918
|
// src/core/types/update-project.ts
|
|
243932
|
-
import { join as
|
|
243919
|
+
import { join as join15 } from "node:path";
|
|
243933
243920
|
var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
|
|
243934
243921
|
async function updateProjectConfig(projectRoot) {
|
|
243935
|
-
const tsconfigPath =
|
|
243922
|
+
const tsconfigPath = join15(projectRoot, "tsconfig.json");
|
|
243936
243923
|
if (!await pathExists(tsconfigPath)) {
|
|
243937
243924
|
return false;
|
|
243938
243925
|
}
|
|
@@ -243975,9 +243962,9 @@ function getTypesCommand(context) {
|
|
|
243975
243962
|
}
|
|
243976
243963
|
|
|
243977
243964
|
// src/cli/dev/dev-server/main.ts
|
|
243978
|
-
import { dirname as
|
|
243965
|
+
import { dirname as dirname13, join as join18 } from "node:path";
|
|
243979
243966
|
var import_cors = __toESM(require_lib4(), 1);
|
|
243980
|
-
var import_express4 = __toESM(
|
|
243967
|
+
var import_express4 = __toESM(require_express(), 1);
|
|
243981
243968
|
|
|
243982
243969
|
// node_modules/get-port/index.js
|
|
243983
243970
|
import net from "node:net";
|
|
@@ -244134,10 +244121,6 @@ function createDevLogger() {
|
|
|
244134
244121
|
|
|
244135
244122
|
// src/cli/dev/dev-server/function-manager.ts
|
|
244136
244123
|
import { spawn as spawn2, spawnSync as spawnSync2 } from "node:child_process";
|
|
244137
|
-
import { dirname as dirname12, join as join15 } from "node:path";
|
|
244138
|
-
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
244139
|
-
var __dirname5 = dirname12(fileURLToPath7(import.meta.url));
|
|
244140
|
-
var WRAPPER_PATH = join15(__dirname5, "../deno-runtime/main.js");
|
|
244141
244124
|
var READY_TIMEOUT = 30000;
|
|
244142
244125
|
|
|
244143
244126
|
class FunctionManager {
|
|
@@ -244145,9 +244128,11 @@ class FunctionManager {
|
|
|
244145
244128
|
running = new Map;
|
|
244146
244129
|
starting = new Map;
|
|
244147
244130
|
logger;
|
|
244148
|
-
|
|
244131
|
+
wrapperPath;
|
|
244132
|
+
constructor(functions, logger, wrapperPath) {
|
|
244149
244133
|
this.functions = new Map(functions.map((f7) => [f7.name, f7]));
|
|
244150
244134
|
this.logger = logger;
|
|
244135
|
+
this.wrapperPath = wrapperPath;
|
|
244151
244136
|
if (functions.length > 0) {
|
|
244152
244137
|
this.verifyDenoIsInstalled();
|
|
244153
244138
|
}
|
|
@@ -244220,7 +244205,7 @@ class FunctionManager {
|
|
|
244220
244205
|
}
|
|
244221
244206
|
spawnFunction(func, port) {
|
|
244222
244207
|
this.logger.log(`Spawning function "${func.name}" on port ${port}`);
|
|
244223
|
-
const process21 = spawn2("deno", ["run", "--allow-all",
|
|
244208
|
+
const process21 = spawn2("deno", ["run", "--allow-all", this.wrapperPath], {
|
|
244224
244209
|
env: {
|
|
244225
244210
|
...globalThis.process.env,
|
|
244226
244211
|
FUNCTION_PATH: func.entryPath,
|
|
@@ -244290,7 +244275,7 @@ class FunctionManager {
|
|
|
244290
244275
|
}
|
|
244291
244276
|
|
|
244292
244277
|
// src/cli/dev/dev-server/routes/functions.ts
|
|
244293
|
-
var import_express = __toESM(
|
|
244278
|
+
var import_express = __toESM(require_express(), 1);
|
|
244294
244279
|
var import_http_proxy_middleware = __toESM(require_dist2(), 1);
|
|
244295
244280
|
import { ServerResponse } from "node:http";
|
|
244296
244281
|
function createFunctionRouter(manager, logger) {
|
|
@@ -244338,9 +244323,8 @@ function createFunctionRouter(manager, logger) {
|
|
|
244338
244323
|
var import_nedb = __toESM(require_nedb(), 1);
|
|
244339
244324
|
|
|
244340
244325
|
class Database {
|
|
244341
|
-
collections;
|
|
244342
|
-
|
|
244343
|
-
this.collections = new Map;
|
|
244326
|
+
collections = new Map;
|
|
244327
|
+
load(entities) {
|
|
244344
244328
|
for (const entity2 of entities) {
|
|
244345
244329
|
this.collections.set(entity2.name, new import_nedb.default);
|
|
244346
244330
|
}
|
|
@@ -244351,6 +244335,12 @@ class Database {
|
|
|
244351
244335
|
getCollectionNames() {
|
|
244352
244336
|
return Array.from(this.collections.keys());
|
|
244353
244337
|
}
|
|
244338
|
+
dropAll() {
|
|
244339
|
+
for (const collection of this.collections.values()) {
|
|
244340
|
+
collection.remove({}, { multi: true });
|
|
244341
|
+
}
|
|
244342
|
+
this.collections.clear();
|
|
244343
|
+
}
|
|
244354
244344
|
}
|
|
244355
244345
|
|
|
244356
244346
|
// node_modules/socket.io/wrapper.mjs
|
|
@@ -244386,7 +244376,7 @@ function broadcastEntityEvent(io6, appId, entityName, event) {
|
|
|
244386
244376
|
}
|
|
244387
244377
|
|
|
244388
244378
|
// src/cli/dev/dev-server/routes/entities.ts
|
|
244389
|
-
var import_express2 = __toESM(
|
|
244379
|
+
var import_express2 = __toESM(require_express(), 1);
|
|
244390
244380
|
|
|
244391
244381
|
// node_modules/nanoid/index.js
|
|
244392
244382
|
import { webcrypto as crypto } from "node:crypto";
|
|
@@ -244631,9 +244621,9 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
|
|
|
244631
244621
|
}
|
|
244632
244622
|
|
|
244633
244623
|
// src/cli/dev/dev-server/routes/integrations.ts
|
|
244634
|
-
var import_express3 = __toESM(
|
|
244624
|
+
var import_express3 = __toESM(require_express(), 1);
|
|
244635
244625
|
var import_multer = __toESM(require_multer(), 1);
|
|
244636
|
-
import { randomUUID as
|
|
244626
|
+
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
244637
244627
|
import fs28 from "node:fs";
|
|
244638
244628
|
import path18 from "node:path";
|
|
244639
244629
|
function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
@@ -244644,7 +244634,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244644
244634
|
destination: mediaFilesDir,
|
|
244645
244635
|
filename: (_req, file2, cb2) => {
|
|
244646
244636
|
const ext = path18.extname(file2.originalname);
|
|
244647
|
-
cb2(null, `${
|
|
244637
|
+
cb2(null, `${randomUUID4()}${ext}`);
|
|
244648
244638
|
}
|
|
244649
244639
|
});
|
|
244650
244640
|
const MAX_FILE_SIZE = 50 * 1024 * 1024;
|
|
@@ -244671,7 +244661,7 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
|
|
|
244671
244661
|
res.status(400).json({ error: "file_uri is required" });
|
|
244672
244662
|
return;
|
|
244673
244663
|
}
|
|
244674
|
-
const signature =
|
|
244664
|
+
const signature = randomUUID4();
|
|
244675
244665
|
const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
|
|
244676
244666
|
res.json({ signed_url });
|
|
244677
244667
|
});
|
|
@@ -245436,9 +245426,9 @@ class NodeFsHandler {
|
|
|
245436
245426
|
if (this.fsw.closed) {
|
|
245437
245427
|
return;
|
|
245438
245428
|
}
|
|
245439
|
-
const
|
|
245429
|
+
const dirname12 = sp2.dirname(file2);
|
|
245440
245430
|
const basename5 = sp2.basename(file2);
|
|
245441
|
-
const parent = this.fsw._getWatchedDir(
|
|
245431
|
+
const parent = this.fsw._getWatchedDir(dirname12);
|
|
245442
245432
|
let prevStats = stats;
|
|
245443
245433
|
if (parent.has(basename5))
|
|
245444
245434
|
return;
|
|
@@ -245465,7 +245455,7 @@ class NodeFsHandler {
|
|
|
245465
245455
|
prevStats = newStats2;
|
|
245466
245456
|
}
|
|
245467
245457
|
} catch (error48) {
|
|
245468
|
-
this.fsw._remove(
|
|
245458
|
+
this.fsw._remove(dirname12, basename5);
|
|
245469
245459
|
}
|
|
245470
245460
|
} else if (parent.has(basename5)) {
|
|
245471
245461
|
const at13 = newStats.atimeMs;
|
|
@@ -246327,79 +246317,74 @@ var WATCH_QUEUE_DELAY_MS = 500;
|
|
|
246327
246317
|
class WatchBase44 extends EventEmitter4 {
|
|
246328
246318
|
itemsToWatch;
|
|
246329
246319
|
logger;
|
|
246330
|
-
|
|
246331
|
-
|
|
246320
|
+
entryNames;
|
|
246321
|
+
watchers = new Map;
|
|
246332
246322
|
queueWaitForCreationTimeout = null;
|
|
246333
246323
|
constructor(itemsToWatch, logger) {
|
|
246334
246324
|
super();
|
|
246335
246325
|
this.itemsToWatch = itemsToWatch;
|
|
246336
246326
|
this.logger = logger;
|
|
246327
|
+
this.entryNames = Object.keys(itemsToWatch);
|
|
246337
246328
|
}
|
|
246338
246329
|
async start() {
|
|
246339
|
-
if (this.watchers.
|
|
246330
|
+
if (this.watchers.size > 0) {
|
|
246340
246331
|
return;
|
|
246341
246332
|
}
|
|
246342
|
-
for (const
|
|
246343
|
-
|
|
246344
|
-
|
|
246345
|
-
|
|
246346
|
-
this.queueWaitForCreation.push(item);
|
|
246333
|
+
for (const name2 of this.entryNames) {
|
|
246334
|
+
const targetPath = this.itemsToWatch[name2];
|
|
246335
|
+
if (await pathExists(targetPath)) {
|
|
246336
|
+
this.watchers.set(name2, this.watchTarget(name2, targetPath));
|
|
246347
246337
|
}
|
|
246348
246338
|
}
|
|
246349
|
-
this.
|
|
246339
|
+
this.watchEntries();
|
|
246350
246340
|
}
|
|
246351
246341
|
async close() {
|
|
246352
246342
|
if (this.queueWaitForCreationTimeout) {
|
|
246353
246343
|
clearTimeout(this.queueWaitForCreationTimeout);
|
|
246354
246344
|
this.queueWaitForCreationTimeout = null;
|
|
246355
246345
|
}
|
|
246356
|
-
for (const watcher of this.watchers) {
|
|
246346
|
+
for (const watcher of this.watchers.values()) {
|
|
246357
246347
|
await watcher.close();
|
|
246358
246348
|
}
|
|
246359
|
-
this.watchers
|
|
246360
|
-
this.queueWaitForCreation = [];
|
|
246349
|
+
this.watchers.clear();
|
|
246361
246350
|
}
|
|
246362
|
-
|
|
246351
|
+
watchEntries() {
|
|
246363
246352
|
if (this.queueWaitForCreationTimeout) {
|
|
246364
246353
|
clearTimeout(this.queueWaitForCreationTimeout);
|
|
246365
246354
|
}
|
|
246366
246355
|
this.queueWaitForCreationTimeout = setTimeout(async () => {
|
|
246367
|
-
const
|
|
246368
|
-
|
|
246369
|
-
|
|
246370
|
-
|
|
246371
|
-
|
|
246356
|
+
for (const name2 of this.entryNames) {
|
|
246357
|
+
const path19 = this.itemsToWatch[name2];
|
|
246358
|
+
const watchItem = this.watchers.get(name2);
|
|
246359
|
+
const exists = await pathExists(path19);
|
|
246360
|
+
if (!watchItem && exists) {
|
|
246361
|
+
this.emit("change", name2, path19);
|
|
246362
|
+
this.watchers.set(name2, this.watchTarget(name2, path19));
|
|
246363
|
+
} else if (watchItem && !exists) {
|
|
246364
|
+
await watchItem.close();
|
|
246365
|
+
this.emit("change", name2, path19);
|
|
246366
|
+
setTimeout(() => {
|
|
246367
|
+
this.watchers.forEach((watcher, watcherName) => {
|
|
246368
|
+
if (watcher.closed) {
|
|
246369
|
+
this.watchers.delete(watcherName);
|
|
246370
|
+
}
|
|
246371
|
+
});
|
|
246372
|
+
});
|
|
246372
246373
|
}
|
|
246373
246374
|
}
|
|
246374
|
-
this.
|
|
246375
|
-
|
|
246376
|
-
this.watchCreationQueue();
|
|
246377
|
-
} else {
|
|
246378
|
-
this.queueWaitForCreationTimeout = null;
|
|
246379
|
-
}
|
|
246375
|
+
this.queueWaitForCreationTimeout = null;
|
|
246376
|
+
this.watchEntries();
|
|
246380
246377
|
}, WATCH_QUEUE_DELAY_MS);
|
|
246381
246378
|
}
|
|
246382
|
-
watchTarget(
|
|
246383
|
-
const
|
|
246384
|
-
this.emit("change", item.name, relative6(item.path, path19));
|
|
246385
|
-
}, WATCH_DEBOUNCE_MS);
|
|
246386
|
-
const watcher = watch(item.path, {
|
|
246379
|
+
watchTarget(name2, targetPath) {
|
|
246380
|
+
const watcher = watch(targetPath, {
|
|
246387
246381
|
ignoreInitial: true
|
|
246388
246382
|
});
|
|
246389
|
-
watcher.on("all",
|
|
246390
|
-
|
|
246391
|
-
|
|
246392
|
-
return;
|
|
246393
|
-
}
|
|
246394
|
-
await watcher.close();
|
|
246395
|
-
this.queueWaitForCreation.push(item);
|
|
246396
|
-
this.watchCreationQueue();
|
|
246397
|
-
setTimeout(() => {
|
|
246398
|
-
this.watchers = this.watchers.filter((watcher2) => !watcher2.closed);
|
|
246399
|
-
});
|
|
246400
|
-
});
|
|
246383
|
+
watcher.on("all", import_debounce.default(async (_event, path19) => {
|
|
246384
|
+
this.emit("change", name2, relative6(targetPath, path19));
|
|
246385
|
+
}, WATCH_DEBOUNCE_MS));
|
|
246401
246386
|
watcher.on("error", (err) => {
|
|
246402
|
-
this.logger.error(`Watch handler failed for ${
|
|
246387
|
+
this.logger.error(`Watch handler failed for ${targetPath}`, err instanceof Error ? err : undefined);
|
|
246403
246388
|
});
|
|
246404
246389
|
return watcher;
|
|
246405
246390
|
}
|
|
@@ -246431,13 +246416,14 @@ async function createDevServer(options8) {
|
|
|
246431
246416
|
next();
|
|
246432
246417
|
});
|
|
246433
246418
|
const devLogger = createDevLogger();
|
|
246434
|
-
const functionManager = new FunctionManager(functions, devLogger);
|
|
246419
|
+
const functionManager = new FunctionManager(functions, devLogger, options8.denoWrapperPath);
|
|
246435
246420
|
const functionRoutes = createFunctionRouter(functionManager, devLogger);
|
|
246436
246421
|
app.use("/api/apps/:appId/functions", functionRoutes);
|
|
246437
246422
|
if (functionManager.getFunctionNames().length > 0) {
|
|
246438
246423
|
R2.info(`Loaded functions: ${functionManager.getFunctionNames().join(", ")}`);
|
|
246439
246424
|
}
|
|
246440
|
-
const db2 = new Database
|
|
246425
|
+
const db2 = new Database;
|
|
246426
|
+
db2.load(entities);
|
|
246441
246427
|
if (db2.getCollectionNames().length > 0) {
|
|
246442
246428
|
R2.info(`Loaded entities: ${db2.getCollectionNames().join(", ")}`);
|
|
246443
246429
|
}
|
|
@@ -246471,16 +246457,14 @@ async function createDevServer(options8) {
|
|
|
246471
246457
|
emitEntityEvent = (appId, entityName, event) => {
|
|
246472
246458
|
broadcastEntityEvent(io6, appId, entityName, event);
|
|
246473
246459
|
};
|
|
246474
|
-
const base44ConfigWatcher = new WatchBase44(
|
|
246475
|
-
|
|
246476
|
-
|
|
246477
|
-
|
|
246478
|
-
}
|
|
246479
|
-
], devLogger);
|
|
246460
|
+
const base44ConfigWatcher = new WatchBase44({
|
|
246461
|
+
functions: join18(dirname13(project2.configPath), project2.functionsDir),
|
|
246462
|
+
entities: join18(dirname13(project2.configPath), project2.entitiesDir)
|
|
246463
|
+
}, devLogger);
|
|
246480
246464
|
base44ConfigWatcher.on("change", async (name2) => {
|
|
246481
246465
|
try {
|
|
246466
|
+
const { functions: functions2, entities: entities2 } = await options8.loadResources();
|
|
246482
246467
|
if (name2 === "functions") {
|
|
246483
|
-
const { functions: functions2 } = await options8.loadResources();
|
|
246484
246468
|
const previousFunctionCount = functionManager.getFunctionNames().length;
|
|
246485
246469
|
functionManager.reload(functions2);
|
|
246486
246470
|
const names = functionManager.getFunctionNames();
|
|
@@ -246490,6 +246474,17 @@ async function createDevServer(options8) {
|
|
|
246490
246474
|
devLogger.log("All functions removed");
|
|
246491
246475
|
}
|
|
246492
246476
|
}
|
|
246477
|
+
if (name2 === "entities") {
|
|
246478
|
+
const previousEntityCount = db2.getCollectionNames().length;
|
|
246479
|
+
db2.dropAll();
|
|
246480
|
+
if (previousEntityCount > 0) {
|
|
246481
|
+
devLogger.log("Entities directory changed, clearing data...");
|
|
246482
|
+
}
|
|
246483
|
+
db2.load(entities2);
|
|
246484
|
+
if (db2.getCollectionNames().length > 0) {
|
|
246485
|
+
devLogger.log(`Loaded entities: ${db2.getCollectionNames().join(", ")}`);
|
|
246486
|
+
}
|
|
246487
|
+
}
|
|
246493
246488
|
} catch (error48) {
|
|
246494
246489
|
const errorMessage = error48 instanceof Error ? error48.message : String(error48);
|
|
246495
246490
|
devLogger.error(errorMessage);
|
|
@@ -246512,6 +246507,7 @@ async function devAction(options8) {
|
|
|
246512
246507
|
const port = options8.port ? Number(options8.port) : undefined;
|
|
246513
246508
|
const { port: resolvedPort } = await createDevServer({
|
|
246514
246509
|
port,
|
|
246510
|
+
denoWrapperPath: getDenoWrapperPath(),
|
|
246515
246511
|
loadResources: async () => {
|
|
246516
246512
|
const { functions, entities, project: project2 } = await readProjectConfig();
|
|
246517
246513
|
return { functions, entities, project: project2 };
|
|
@@ -246653,7 +246649,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
|
|
|
246653
246649
|
import { release, type } from "node:os";
|
|
246654
246650
|
|
|
246655
246651
|
// node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
246656
|
-
import { dirname as
|
|
246652
|
+
import { dirname as dirname14, posix, sep } from "path";
|
|
246657
246653
|
function createModulerModifier() {
|
|
246658
246654
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
246659
246655
|
return async (frames) => {
|
|
@@ -246662,7 +246658,7 @@ function createModulerModifier() {
|
|
|
246662
246658
|
return frames;
|
|
246663
246659
|
};
|
|
246664
246660
|
}
|
|
246665
|
-
function createGetModuleFromFilename(basePath = process.argv[1] ?
|
|
246661
|
+
function createGetModuleFromFilename(basePath = process.argv[1] ? dirname14(process.argv[1]) : process.cwd(), isWindows5 = sep === "\\") {
|
|
246666
246662
|
const normalizedBase = isWindows5 ? normalizeWindowsPath2(basePath) : basePath;
|
|
246667
246663
|
return (filename) => {
|
|
246668
246664
|
if (!filename)
|
|
@@ -250851,11 +250847,16 @@ function addCommandInfoToErrorReporter(program2, errorReporter) {
|
|
|
250851
250847
|
});
|
|
250852
250848
|
}
|
|
250853
250849
|
// src/cli/index.ts
|
|
250850
|
+
var __dirname4 = dirname15(fileURLToPath6(import.meta.url));
|
|
250854
250851
|
async function runCLI() {
|
|
250852
|
+
ensureNpmAssets(join19(__dirname4, "../assets"));
|
|
250855
250853
|
const errorReporter = new ErrorReporter;
|
|
250856
250854
|
errorReporter.registerProcessErrorHandlers();
|
|
250857
250855
|
const isNonInteractive = !process.stdin.isTTY || !process.stdout.isTTY;
|
|
250858
|
-
const context = {
|
|
250856
|
+
const context = {
|
|
250857
|
+
errorReporter,
|
|
250858
|
+
isNonInteractive
|
|
250859
|
+
};
|
|
250859
250860
|
const program2 = createProgram(context);
|
|
250860
250861
|
try {
|
|
250861
250862
|
const userInfo = await readAuth();
|
|
@@ -250880,6 +250881,6 @@ export {
|
|
|
250880
250881
|
CLIExitError
|
|
250881
250882
|
};
|
|
250882
250883
|
|
|
250883
|
-
//# debugId=
|
|
250884
|
+
//# debugId=5549E900F751553564756E2164756E21
|
|
250884
250885
|
|
|
250885
|
-
//# chunkId=
|
|
250886
|
+
//# chunkId=019cce82-2208-76e3-89fc-48bf55520a2a
|