@datapos/datapos-development 0.3.349 → 0.3.351
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { promises as se } from "node:fs";
|
|
2
2
|
import { nanoid as Vs } from "nanoid";
|
|
3
|
-
import
|
|
3
|
+
import Dt from "node:path";
|
|
4
4
|
import { fileURLToPath as Pr, URL as zs } from "node:url";
|
|
5
5
|
import { promisify as js } from "node:util";
|
|
6
6
|
import { exec as Fs, spawn as $s } from "node:child_process";
|
|
@@ -320,13 +320,13 @@ function it(e, t) {
|
|
|
320
320
|
return (r = i).path ?? (r.path = []), i.path.unshift(e), i;
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function It(e) {
|
|
324
324
|
return typeof e == "string" ? e : e?.message;
|
|
325
325
|
}
|
|
326
326
|
function qe(e, t, i) {
|
|
327
327
|
const r = { ...e, path: e.path ?? [] };
|
|
328
328
|
if (!e.message) {
|
|
329
|
-
const n =
|
|
329
|
+
const n = It(e.inst?._zod.def?.error?.(e)) ?? It(t?.error?.(e)) ?? It(i.customError?.(e)) ?? It(i.localeError?.(e)) ?? "Invalid input";
|
|
330
330
|
r.message = n;
|
|
331
331
|
}
|
|
332
332
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
@@ -334,7 +334,7 @@ function qe(e, t, i) {
|
|
|
334
334
|
function _i(e) {
|
|
335
335
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function bt(...e) {
|
|
338
338
|
const [t, i, r] = e;
|
|
339
339
|
return typeof t == "string" ? {
|
|
340
340
|
message: t,
|
|
@@ -1486,13 +1486,13 @@ const Ha = /* @__PURE__ */ k("$ZodCatch", (e, t) => {
|
|
|
1486
1486
|
Y.init(e, t), U(e._zod, "values", () => t.in._zod.values), U(e._zod, "optin", () => t.in._zod.optin), U(e._zod, "optout", () => t.out._zod.optout), U(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (i, r) => {
|
|
1487
1487
|
if (r.direction === "backward") {
|
|
1488
1488
|
const u = t.out._zod.run(i, r);
|
|
1489
|
-
return u instanceof Promise ? u.then((c) =>
|
|
1489
|
+
return u instanceof Promise ? u.then((c) => Nt(c, t.in, r)) : Nt(u, t.in, r);
|
|
1490
1490
|
}
|
|
1491
1491
|
const n = t.in._zod.run(i, r);
|
|
1492
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1492
|
+
return n instanceof Promise ? n.then((u) => Nt(u, t.out, r)) : Nt(n, t.out, r);
|
|
1493
1493
|
};
|
|
1494
1494
|
});
|
|
1495
|
-
function
|
|
1495
|
+
function Nt(e, t, i) {
|
|
1496
1496
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, i);
|
|
1497
1497
|
}
|
|
1498
1498
|
const Wa = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
|
|
@@ -1526,7 +1526,7 @@ function Xi(e, t, i, r) {
|
|
|
1526
1526
|
continue: !r._zod.def.abort
|
|
1527
1527
|
// params: inst._zod.def.params,
|
|
1528
1528
|
};
|
|
1529
|
-
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(
|
|
1529
|
+
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(bt(n));
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
var Ji;
|
|
@@ -1568,7 +1568,7 @@ function Ja() {
|
|
|
1568
1568
|
return new Xa();
|
|
1569
1569
|
}
|
|
1570
1570
|
(Ji = globalThis).__zod_globalRegistry ?? (Ji.__zod_globalRegistry = Ja());
|
|
1571
|
-
const
|
|
1571
|
+
const Lt = globalThis.__zod_globalRegistry;
|
|
1572
1572
|
function Ya(e, t) {
|
|
1573
1573
|
return new e({
|
|
1574
1574
|
type: "string",
|
|
@@ -1993,10 +1993,10 @@ function Bo(e, t, i) {
|
|
|
1993
1993
|
function Zo(e) {
|
|
1994
1994
|
const t = Uo((i) => (i.addIssue = (r) => {
|
|
1995
1995
|
if (typeof r == "string")
|
|
1996
|
-
i.issues.push(
|
|
1996
|
+
i.issues.push(bt(r, i.value, t._zod.def));
|
|
1997
1997
|
else {
|
|
1998
1998
|
const n = r;
|
|
1999
|
-
n.fatal && (n.continue = !1), n.code ?? (n.code = "custom"), n.input ?? (n.input = i.value), n.inst ?? (n.inst = t), n.continue ?? (n.continue = !t._zod.def.abort), i.issues.push(
|
|
1999
|
+
n.fatal && (n.continue = !1), n.code ?? (n.code = "custom"), n.input ?? (n.input = i.value), n.inst ?? (n.inst = t), n.continue ?? (n.continue = !t._zod.def.abort), i.issues.push(bt(n));
|
|
2000
2000
|
}
|
|
2001
2001
|
}, e(i.value, i)));
|
|
2002
2002
|
return t;
|
|
@@ -2070,23 +2070,23 @@ const Qo = (e, t) => {
|
|
|
2070
2070
|
]
|
|
2071
2071
|
})), e.clone = (i, r) => Ge(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => eu(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => iu(e, i, r), e.parseAsync = async (i, r) => tu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => ru(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => su(e, i, r), e.decode = (i, r) => nu(e, i, r), e.encodeAsync = async (i, r) => au(e, i, r), e.decodeAsync = async (i, r) => ou(e, i, r), e.safeEncode = (i, r) => uu(e, i, r), e.safeDecode = (i, r) => cu(e, i, r), e.safeEncodeAsync = async (i, r) => hu(e, i, r), e.safeDecodeAsync = async (i, r) => lu(e, i, r), e.refine = (i, r) => e.check(rc(i, r)), e.superRefine = (i) => e.check(sc(i)), e.overwrite = (i) => e.check(ct(i)), e.optional = () => nr(e), e.nullable = () => ar(e), e.nullish = () => nr(ar(e)), e.nonoptional = (i) => Xu(e, i), e.array = () => He(e), e.or = (i) => oe([e, i]), e.and = (i) => Fu(e, i), e.transform = (i) => or(e, Uu(i)), e.default = (i) => Gu(e, i), e.prefault = (i) => Ku(e, i), e.catch = (i) => Yu(e, i), e.pipe = (i) => or(e, i), e.readonly = () => tc(e), e.describe = (i) => {
|
|
2072
2072
|
const r = e.clone();
|
|
2073
|
-
return
|
|
2073
|
+
return Lt.add(r, { description: i }), r;
|
|
2074
2074
|
}, Object.defineProperty(e, "description", {
|
|
2075
2075
|
get() {
|
|
2076
|
-
return
|
|
2076
|
+
return Lt.get(e)?.description;
|
|
2077
2077
|
},
|
|
2078
2078
|
configurable: !0
|
|
2079
2079
|
}), e.meta = (...i) => {
|
|
2080
2080
|
if (i.length === 0)
|
|
2081
|
-
return
|
|
2081
|
+
return Lt.get(e);
|
|
2082
2082
|
const r = e.clone();
|
|
2083
|
-
return
|
|
2083
|
+
return Lt.add(r, i[0]), r;
|
|
2084
2084
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Hr = /* @__PURE__ */ k("_ZodString", (e, t) => {
|
|
2085
2085
|
Si.init(e, t), ee.init(e, t);
|
|
2086
2086
|
const i = e._zod.bag;
|
|
2087
2087
|
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(Io(...r)), e.includes = (...r) => e.check(Oo(...r)), e.startsWith = (...r) => e.check(Ro(...r)), e.endsWith = (...r) => e.check(Do(...r)), e.min = (...r) => e.check(zt(...r)), e.max = (...r) => e.check(Ur(...r)), e.length = (...r) => e.check(qr(...r)), e.nonempty = (...r) => e.check(zt(1, ...r)), e.lowercase = (r) => e.check(No(r)), e.uppercase = (r) => e.check(Lo(r)), e.trim = () => e.check(Vo()), e.normalize = (...r) => e.check(Mo(...r)), e.toLowerCase = () => e.check(zo()), e.toUpperCase = () => e.check(jo()), e.slugify = () => e.check(Fo());
|
|
2088
2088
|
}), pu = /* @__PURE__ */ k("ZodString", (e, t) => {
|
|
2089
|
-
Si.init(e, t), Hr.init(e, t), e.email = (i) => e.check(Qa(fu, i)), e.url = (i) => e.check(so(du, i)), e.jwt = (i) => e.check(bo(Eu, i)), e.emoji = (i) => e.check(no(mu, i)), e.guid = (i) => e.check(Yi(ir, i)), e.uuid = (i) => e.check(eo(
|
|
2089
|
+
Si.init(e, t), Hr.init(e, t), e.email = (i) => e.check(Qa(fu, i)), e.url = (i) => e.check(so(du, i)), e.jwt = (i) => e.check(bo(Eu, i)), e.emoji = (i) => e.check(no(mu, i)), e.guid = (i) => e.check(Yi(ir, i)), e.uuid = (i) => e.check(eo(Ot, i)), e.uuidv4 = (i) => e.check(to(Ot, i)), e.uuidv6 = (i) => e.check(io(Ot, i)), e.uuidv7 = (i) => e.check(ro(Ot, i)), e.nanoid = (i) => e.check(ao(yu, i)), e.guid = (i) => e.check(Yi(ir, i)), e.cuid = (i) => e.check(oo(vu, i)), e.cuid2 = (i) => e.check(uo(xu, i)), e.ulid = (i) => e.check(co(gu, i)), e.base64 = (i) => e.check(vo(Pu, i)), e.base64url = (i) => e.check(xo(Cu, i)), e.xid = (i) => e.check(ho(bu, i)), e.ksuid = (i) => e.check(lo(_u, i)), e.ipv4 = (i) => e.check(po(ku, i)), e.ipv6 = (i) => e.check(fo(wu, i)), e.cidrv4 = (i) => e.check(mo(Su, i)), e.cidrv6 = (i) => e.check(yo(Tu, i)), e.e164 = (i) => e.check(go(Au, i)), e.datetime = (i) => e.check(Ho(i)), e.date = (i) => e.check(Wo(i)), e.time = (i) => e.check(Xo(i)), e.duration = (i) => e.check(Yo(i));
|
|
2090
2090
|
});
|
|
2091
2091
|
function O(e) {
|
|
2092
2092
|
return Ya(pu, e);
|
|
@@ -2097,7 +2097,7 @@ const Q = /* @__PURE__ */ k("ZodStringFormat", (e, t) => {
|
|
|
2097
2097
|
na.init(e, t), Q.init(e, t);
|
|
2098
2098
|
}), ir = /* @__PURE__ */ k("ZodGUID", (e, t) => {
|
|
2099
2099
|
ra.init(e, t), Q.init(e, t);
|
|
2100
|
-
}),
|
|
2100
|
+
}), Ot = /* @__PURE__ */ k("ZodUUID", (e, t) => {
|
|
2101
2101
|
sa.init(e, t), Q.init(e, t);
|
|
2102
2102
|
}), du = /* @__PURE__ */ k("ZodURL", (e, t) => {
|
|
2103
2103
|
aa.init(e, t), Q.init(e, t);
|
|
@@ -2272,10 +2272,10 @@ const Zu = /* @__PURE__ */ k("ZodTransform", (e, t) => {
|
|
|
2272
2272
|
throw new Cr(e.constructor.name);
|
|
2273
2273
|
i.addIssue = (u) => {
|
|
2274
2274
|
if (typeof u == "string")
|
|
2275
|
-
i.issues.push(
|
|
2275
|
+
i.issues.push(bt(u, i.value, t));
|
|
2276
2276
|
else {
|
|
2277
2277
|
const c = u;
|
|
2278
|
-
c.fatal && (c.continue = !1), c.code ?? (c.code = "custom"), c.input ?? (c.input = i.value), c.inst ?? (c.inst = e), i.issues.push(
|
|
2278
|
+
c.fatal && (c.continue = !1), c.code ?? (c.code = "custom"), c.input ?? (c.input = i.value), c.inst ?? (c.inst = e), i.issues.push(bt(c));
|
|
2279
2279
|
}
|
|
2280
2280
|
};
|
|
2281
2281
|
const n = t.transform(i.value, i);
|
|
@@ -2746,7 +2746,7 @@ var Jc = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\u
|
|
|
2746
2746
|
ot.prototype.offset = function(t) {
|
|
2747
2747
|
return new ot(this.line, this.column + t);
|
|
2748
2748
|
};
|
|
2749
|
-
var
|
|
2749
|
+
var kt = function(t, i, r) {
|
|
2750
2750
|
this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
2751
2751
|
};
|
|
2752
2752
|
function Pi(e, t) {
|
|
@@ -2875,10 +2875,10 @@ function Qc(e, t) {
|
|
|
2875
2875
|
start: n,
|
|
2876
2876
|
end: u
|
|
2877
2877
|
};
|
|
2878
|
-
e.locations && (y.loc = new
|
|
2878
|
+
e.locations && (y.loc = new kt(this, c, d)), e.ranges && (y.range = [n, u]), t.push(y);
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
|
-
var
|
|
2881
|
+
var _t = 1, lt = 2, Ci = 4, is = 8, Ai = 16, rs = 32, Kt = 64, ss = 128, Qe = 256, wt = 512, Xt = _t | lt | Qe;
|
|
2882
2882
|
function Ei(e, t) {
|
|
2883
2883
|
return lt | (e ? Ci : 0) | (t ? is : 0);
|
|
2884
2884
|
}
|
|
@@ -2888,7 +2888,7 @@ var Ft = 0, Ii = 1, Fe = 2, ns = 3, as = 4, os = 5, J = function(t, i, r) {
|
|
|
2888
2888
|
t.allowReserved !== !0 && (n = ni[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = Ze(n);
|
|
2889
2889
|
var u = (n ? n + " " : "") + ni.strict;
|
|
2890
2890
|
this.reservedWordsStrict = Ze(u), this.reservedWordsStrictBind = Ze(u + " " + ni.strictBind), this.input = String(i), this.containsEsc = !1, r ? (this.pos = r, this.lineStart = this.input.lastIndexOf(`
|
|
2891
|
-
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(he).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = l.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(
|
|
2891
|
+
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(he).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = l.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(_t), this.regexpState = null, this.privateNameStack = [];
|
|
2892
2892
|
}, Re = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
2893
2893
|
J.prototype.parse = function() {
|
|
2894
2894
|
var t = this.options.program || this.startNode();
|
|
@@ -2906,7 +2906,7 @@ Re.inAsync.get = function() {
|
|
|
2906
2906
|
Re.canAwait.get = function() {
|
|
2907
2907
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2908
2908
|
var t = this.scopeStack[e], i = t.flags;
|
|
2909
|
-
if (i & (Qe |
|
|
2909
|
+
if (i & (Qe | wt))
|
|
2910
2910
|
return !1;
|
|
2911
2911
|
if (i & lt)
|
|
2912
2912
|
return (i & Ci) > 0;
|
|
@@ -2926,7 +2926,7 @@ Re.treatFunctionsAsVar.get = function() {
|
|
|
2926
2926
|
Re.allowNewDotTarget.get = function() {
|
|
2927
2927
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2928
2928
|
var t = this.scopeStack[e], i = t.flags;
|
|
2929
|
-
if (i & (Qe |
|
|
2929
|
+
if (i & (Qe | wt) || i & lt && !(i & Ai))
|
|
2930
2930
|
return !0;
|
|
2931
2931
|
}
|
|
2932
2932
|
return !1;
|
|
@@ -3197,7 +3197,7 @@ I.parseForAfterInit = function(e, t, i) {
|
|
|
3197
3197
|
return (this.type === l._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === l._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
|
|
3198
3198
|
};
|
|
3199
3199
|
I.parseFunctionStatement = function(e, t, i) {
|
|
3200
|
-
return this.next(), this.parseFunction(e,
|
|
3200
|
+
return this.next(), this.parseFunction(e, xt | (i ? 0 : di), !1, t);
|
|
3201
3201
|
};
|
|
3202
3202
|
I.parseIfStatement = function(e) {
|
|
3203
3203
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(l._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
@@ -3287,11 +3287,11 @@ I.parseVar = function(e, t, i, r) {
|
|
|
3287
3287
|
I.parseVarId = function(e, t) {
|
|
3288
3288
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ii : Fe, !1);
|
|
3289
3289
|
};
|
|
3290
|
-
var
|
|
3290
|
+
var xt = 1, di = 2, us = 4;
|
|
3291
3291
|
I.parseFunction = function(e, t, i, r, n) {
|
|
3292
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t & di && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t &
|
|
3292
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t & di && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & xt && (e.id = t & us && this.type !== l.name ? null : this.parseIdent(), e.id && !(t & di) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ii : Fe : ns));
|
|
3293
3293
|
var u = this.yieldPos, c = this.awaitPos, d = this.awaitIdentPos;
|
|
3294
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ei(e.async, e.generator)), t &
|
|
3294
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ei(e.async, e.generator)), t & xt || (e.id = this.type === l.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = u, this.awaitPos = c, this.awaitIdentPos = d, this.finishNode(e, t & xt ? "FunctionDeclaration" : "FunctionExpression");
|
|
3295
3295
|
};
|
|
3296
3296
|
I.parseFunctionParams = function(e) {
|
|
3297
3297
|
this.expect(l.parenL), e.params = this.parseBindingList(l.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -3340,7 +3340,7 @@ I.parseClassMethod = function(e, t, i, r) {
|
|
|
3340
3340
|
return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
3341
3341
|
};
|
|
3342
3342
|
I.parseClassField = function(e) {
|
|
3343
|
-
return $t(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && $t(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(l.eq) ? (this.enterScope(
|
|
3343
|
+
return $t(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && $t(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(l.eq) ? (this.enterScope(wt | Kt), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
3344
3344
|
};
|
|
3345
3345
|
I.parseClassStaticBlock = function(e) {
|
|
3346
3346
|
e.body = [];
|
|
@@ -3408,7 +3408,7 @@ I.parseExportDefaultDeclaration = function() {
|
|
|
3408
3408
|
var e;
|
|
3409
3409
|
if (this.type === l._function || (e = this.isAsyncFunction())) {
|
|
3410
3410
|
var t = this.startNode();
|
|
3411
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
3411
|
+
return this.next(), e && this.next(), this.parseFunction(t, xt | us, !1, e);
|
|
3412
3412
|
} else if (this.type === l._class) {
|
|
3413
3413
|
var i = this.startNode();
|
|
3414
3414
|
return this.parseClass(i, "nullableID");
|
|
@@ -4242,13 +4242,13 @@ We.exitScope = function() {
|
|
|
4242
4242
|
this.scopeStack.pop();
|
|
4243
4243
|
};
|
|
4244
4244
|
We.treatFunctionsAsVarInScope = function(e) {
|
|
4245
|
-
return e.flags & lt || !this.inModule && e.flags &
|
|
4245
|
+
return e.flags & lt || !this.inModule && e.flags & _t;
|
|
4246
4246
|
};
|
|
4247
4247
|
We.declareName = function(e, t, i) {
|
|
4248
4248
|
var r = !1;
|
|
4249
4249
|
if (t === Fe) {
|
|
4250
4250
|
var n = this.currentScope();
|
|
4251
|
-
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags &
|
|
4251
|
+
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & _t && delete this.undefinedExports[e];
|
|
4252
4252
|
} else if (t === as) {
|
|
4253
4253
|
var u = this.currentScope();
|
|
4254
4254
|
u.lexical.push(e);
|
|
@@ -4262,7 +4262,7 @@ We.declareName = function(e, t, i) {
|
|
|
4262
4262
|
r = !0;
|
|
4263
4263
|
break;
|
|
4264
4264
|
}
|
|
4265
|
-
if (y.var.push(e), this.inModule && y.flags &
|
|
4265
|
+
if (y.var.push(e), this.inModule && y.flags & _t && delete this.undefinedExports[e], y.flags & Xt)
|
|
4266
4266
|
break;
|
|
4267
4267
|
}
|
|
4268
4268
|
r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -4276,37 +4276,37 @@ We.currentScope = function() {
|
|
|
4276
4276
|
We.currentVarScope = function() {
|
|
4277
4277
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4278
4278
|
var t = this.scopeStack[e];
|
|
4279
|
-
if (t.flags & (Xt |
|
|
4279
|
+
if (t.flags & (Xt | wt | Qe))
|
|
4280
4280
|
return t;
|
|
4281
4281
|
}
|
|
4282
4282
|
};
|
|
4283
4283
|
We.currentThisScope = function() {
|
|
4284
4284
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4285
4285
|
var t = this.scopeStack[e];
|
|
4286
|
-
if (t.flags & (Xt |
|
|
4286
|
+
if (t.flags & (Xt | wt | Qe) && !(t.flags & Ai))
|
|
4287
4287
|
return t;
|
|
4288
4288
|
}
|
|
4289
4289
|
};
|
|
4290
|
-
var
|
|
4291
|
-
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new
|
|
4292
|
-
},
|
|
4293
|
-
|
|
4294
|
-
return new
|
|
4290
|
+
var St = function(t, i, r) {
|
|
4291
|
+
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new kt(t, r)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
|
|
4292
|
+
}, Tt = J.prototype;
|
|
4293
|
+
Tt.startNode = function() {
|
|
4294
|
+
return new St(this, this.start, this.startLoc);
|
|
4295
4295
|
};
|
|
4296
|
-
|
|
4297
|
-
return new
|
|
4296
|
+
Tt.startNodeAt = function(e, t) {
|
|
4297
|
+
return new St(this, e, t);
|
|
4298
4298
|
};
|
|
4299
4299
|
function hs(e, t, i, r) {
|
|
4300
4300
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
4301
4301
|
}
|
|
4302
|
-
|
|
4302
|
+
Tt.finishNode = function(e, t) {
|
|
4303
4303
|
return hs.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
4304
4304
|
};
|
|
4305
|
-
|
|
4305
|
+
Tt.finishNodeAt = function(e, t, i, r) {
|
|
4306
4306
|
return hs.call(this, e, t, i, r);
|
|
4307
4307
|
};
|
|
4308
|
-
|
|
4309
|
-
var t = new
|
|
4308
|
+
Tt.copyNode = function(e) {
|
|
4309
|
+
var t = new St(this, e.start, this.startLoc);
|
|
4310
4310
|
for (var i in e)
|
|
4311
4311
|
t[i] = e[i];
|
|
4312
4312
|
return t;
|
|
@@ -5179,7 +5179,7 @@ C.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
5179
5179
|
return !0;
|
|
5180
5180
|
};
|
|
5181
5181
|
var Qt = function(t) {
|
|
5182
|
-
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new
|
|
5182
|
+
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new kt(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
5183
5183
|
}, j = J.prototype;
|
|
5184
5184
|
j.next = function(e) {
|
|
5185
5185
|
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Qt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
@@ -5688,9 +5688,9 @@ J.acorn = {
|
|
|
5688
5688
|
version: Ns,
|
|
5689
5689
|
defaultOptions: jt,
|
|
5690
5690
|
Position: ot,
|
|
5691
|
-
SourceLocation:
|
|
5691
|
+
SourceLocation: kt,
|
|
5692
5692
|
getLineInfo: Pi,
|
|
5693
|
-
Node:
|
|
5693
|
+
Node: St,
|
|
5694
5694
|
TokenType: z,
|
|
5695
5695
|
tokTypes: l,
|
|
5696
5696
|
keywordTypes: at,
|
|
@@ -5715,10 +5715,10 @@ function Ah(e, t) {
|
|
|
5715
5715
|
}
|
|
5716
5716
|
const Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5717
5717
|
__proto__: null,
|
|
5718
|
-
Node:
|
|
5718
|
+
Node: St,
|
|
5719
5719
|
Parser: J,
|
|
5720
5720
|
Position: ot,
|
|
5721
|
-
SourceLocation:
|
|
5721
|
+
SourceLocation: kt,
|
|
5722
5722
|
TokContext: ce,
|
|
5723
5723
|
Token: Qt,
|
|
5724
5724
|
TokenType: z,
|
|
@@ -5763,7 +5763,7 @@ function Ut() {
|
|
|
5763
5763
|
return e;
|
|
5764
5764
|
}, Ut.apply(this, arguments);
|
|
5765
5765
|
}
|
|
5766
|
-
function
|
|
5766
|
+
function Rt(e, t) {
|
|
5767
5767
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, yi(e, t);
|
|
5768
5768
|
}
|
|
5769
5769
|
function yi(e, t) {
|
|
@@ -5874,8 +5874,8 @@ var N = { AbstractMethodHasImplementation: function(e) {
|
|
|
5874
5874
|
}, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", GenericsEndWithComma: "Trailing comma is not allowed at the end of generics.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: function(e) {
|
|
5875
5875
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
|
|
5876
5876
|
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, Rh = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, Dh = /^[\da-fA-F]+$/, Mh = /^\d+$/;
|
|
5877
|
-
function
|
|
5878
|
-
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ?
|
|
5877
|
+
function gt(e) {
|
|
5878
|
+
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? gt(e.object) + "." + gt(e.property) : void 0);
|
|
5879
5879
|
}
|
|
5880
5880
|
var ui = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
5881
5881
|
function br(e) {
|
|
@@ -5904,7 +5904,7 @@ function _r(e) {
|
|
|
5904
5904
|
function Fh(e) {
|
|
5905
5905
|
var t = {}, i = t.dts, r = i !== void 0 && i, n = t.allowSatisfies, u = n !== void 0 && n;
|
|
5906
5906
|
return function(c) {
|
|
5907
|
-
var d = c.acorn || Eh, y = Nh(d), o = d.tokTypes, w = d.keywordTypes, S = d.isIdentifierStart, A = d.lineBreak, F = d.isNewLine, Z = d.tokContexts, pe = d.isIdentifierChar, D = y.tokTypes, ne = y.tokContexts, ft = y.keywordsRegExp, Ae = y.tokenIsLiteralPropertyName, _e = y.tokenIsTemplate, Ke = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier,
|
|
5907
|
+
var d = c.acorn || Eh, y = Nh(d), o = d.tokTypes, w = d.keywordTypes, S = d.isIdentifierStart, A = d.lineBreak, F = d.isNewLine, Z = d.tokContexts, pe = d.isIdentifierChar, D = y.tokTypes, ne = y.tokContexts, ft = y.keywordsRegExp, Ae = y.tokenIsLiteralPropertyName, _e = y.tokenIsTemplate, Ke = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, Ct = y.tokenIsKeywordOrIdentifier, Rs = y.tokenIsTSTypeOperator;
|
|
5908
5908
|
function Ds(P, fe, ue) {
|
|
5909
5909
|
ue === void 0 && (ue = P.length);
|
|
5910
5910
|
for (var te = fe; te < ue; te++) {
|
|
@@ -5919,7 +5919,7 @@ function Fh(e) {
|
|
|
5919
5919
|
function s() {
|
|
5920
5920
|
return f.apply(this, arguments) || this;
|
|
5921
5921
|
}
|
|
5922
|
-
|
|
5922
|
+
Rt(s, f);
|
|
5923
5923
|
var a = s.prototype;
|
|
5924
5924
|
return a.takeDecorators = function(h) {
|
|
5925
5925
|
var p = this.decoratorStack[this.decoratorStack.length - 1];
|
|
@@ -5959,7 +5959,7 @@ function Fh(e) {
|
|
|
5959
5959
|
function m() {
|
|
5960
5960
|
return p.apply(this, arguments) || this;
|
|
5961
5961
|
}
|
|
5962
|
-
|
|
5962
|
+
Rt(m, p);
|
|
5963
5963
|
var v = m.prototype;
|
|
5964
5964
|
return v.jsx_readToken = function() {
|
|
5965
5965
|
for (var x = "", g = this.pos; ; ) {
|
|
@@ -6074,7 +6074,7 @@ function Fh(e) {
|
|
|
6074
6074
|
default:
|
|
6075
6075
|
this.unexpected();
|
|
6076
6076
|
}
|
|
6077
|
-
|
|
6077
|
+
gt(V.name) !== gt(L.name) && this.raise(V.start, "Expected corresponding JSX closing tag for <" + gt(L.name) + ">");
|
|
6078
6078
|
}
|
|
6079
6079
|
var E = L.name ? "Element" : "Fragment";
|
|
6080
6080
|
return _["opening" + E] = L, _["closing" + E] = V, _.children = T, this.type === B.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(_, "JSX" + E);
|
|
@@ -6092,7 +6092,7 @@ function Fh(e) {
|
|
|
6092
6092
|
function s() {
|
|
6093
6093
|
return f.apply(this, arguments) || this;
|
|
6094
6094
|
}
|
|
6095
|
-
|
|
6095
|
+
Rt(s, f);
|
|
6096
6096
|
var a = s.prototype;
|
|
6097
6097
|
return a.parseMaybeImportAttributes = function(h) {
|
|
6098
6098
|
if (this.type === B._with || this.type === te.assert) {
|
|
@@ -6123,7 +6123,7 @@ function Fh(e) {
|
|
|
6123
6123
|
return m;
|
|
6124
6124
|
})(p), { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: N.InvalidModifierOnTypeParameterPositions }), p;
|
|
6125
6125
|
}
|
|
6126
|
-
|
|
6126
|
+
Rt(fe, P);
|
|
6127
6127
|
var ue, te, B, f = fe.prototype;
|
|
6128
6128
|
return f.getTokenFromCodeInType = function(s) {
|
|
6129
6129
|
return s === 62 || s === 60 ? this.finishOp(o.relational, 1) : P.prototype.getTokenFromCode.call(this, s);
|
|
@@ -7106,7 +7106,7 @@ function Fh(e) {
|
|
|
7106
7106
|
this.unexpected();
|
|
7107
7107
|
}, f.parseIdentNode = function() {
|
|
7108
7108
|
var s = this.startNode();
|
|
7109
|
-
return
|
|
7109
|
+
return Ct(this.type) ? (s.name = this.value, s) : P.prototype.parseIdentNode.call(this);
|
|
7110
7110
|
}, f.parseVarStatement = function(s, a, h) {
|
|
7111
7111
|
h === void 0 && (h = !1);
|
|
7112
7112
|
var p = this.isAmbientContext;
|
|
@@ -7458,21 +7458,21 @@ function Fh(e) {
|
|
|
7458
7458
|
var Mi = g.tsTryParseGenericAsyncArrowFunction(a, h, x);
|
|
7459
7459
|
if (Mi) return s = Mi;
|
|
7460
7460
|
}
|
|
7461
|
-
var
|
|
7462
|
-
if (!
|
|
7461
|
+
var Et = g.tsParseTypeArgumentsInExpression();
|
|
7462
|
+
if (!Et) return s;
|
|
7463
7463
|
if (L && !g.match(o.parenL)) return V = g.curPosition(), s;
|
|
7464
7464
|
if (_e(g.type) || g.type === o.backQuote) {
|
|
7465
7465
|
var Vi = g.parseTaggedTemplateExpression(s, a, h, _);
|
|
7466
|
-
return Vi.typeParameters =
|
|
7466
|
+
return Vi.typeParameters = Et, Vi;
|
|
7467
7467
|
}
|
|
7468
7468
|
if (!p && g.eat(o.parenL)) {
|
|
7469
7469
|
var zi = new vt(), et = g.startNodeAt(a, h);
|
|
7470
|
-
return et.callee = s, et.arguments = g.parseExprList(o.parenR, g.options.ecmaVersion >= 8, !1, zi), g.tsCheckForInvalidTypeCasts(et.arguments), et.typeParameters =
|
|
7470
|
+
return et.callee = s, et.arguments = g.parseExprList(o.parenR, g.options.ecmaVersion >= 8, !1, zi), g.tsCheckForInvalidTypeCasts(et.arguments), et.typeParameters = Et, _ && (et.optional = L), g.checkExpressionErrors(zi, !0), s = g.finishNode(et, "CallExpression");
|
|
7471
7471
|
}
|
|
7472
7472
|
var ti = g.type;
|
|
7473
7473
|
if (!(g.tsMatchRightRelational() || ti === o.bitShift || ti !== o.parenL && (ji = ti, !!ji.startsExpr) && !g.hasPrecedingLineBreak())) {
|
|
7474
7474
|
var ji, ii = g.startNodeAt(a, h);
|
|
7475
|
-
return ii.expression = s, ii.typeParameters =
|
|
7475
|
+
return ii.expression = s, ii.typeParameters = Et, g.finishNode(ii, "TSInstantiationExpression");
|
|
7476
7476
|
}
|
|
7477
7477
|
});
|
|
7478
7478
|
if (V && this.unexpected(V), E) return E.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, N.InvalidPropertyAccessAfterInstantiationExpression), s = E;
|
|
@@ -7492,8 +7492,8 @@ function Fh(e) {
|
|
|
7492
7492
|
if (m && !G && this.shouldParseAsyncArrow()) this.checkPatternErrors($e, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = dt, this.awaitPos = mt, this.awaitIdentPos = Be, s = this.parseSubscriptAsyncArrow(a, h, Di, x);
|
|
7493
7493
|
else {
|
|
7494
7494
|
this.checkExpressionErrors($e, !0), this.yieldPos = dt || this.yieldPos, this.awaitPos = mt || this.awaitPos, this.awaitIdentPos = Be || this.awaitIdentPos;
|
|
7495
|
-
var
|
|
7496
|
-
|
|
7495
|
+
var At = this.startNodeAt(a, h);
|
|
7496
|
+
At.callee = s, At.arguments = Di, K && (At.optional = G), s = this.finishNode(At, "CallExpression");
|
|
7497
7497
|
}
|
|
7498
7498
|
this.maybeInArrowParameters = ve;
|
|
7499
7499
|
} else if (this.type === o.backQuote) {
|
|
@@ -7579,9 +7579,9 @@ function Fh(e) {
|
|
|
7579
7579
|
var L = this.parseIdent();
|
|
7580
7580
|
if (this.isContextual("as")) {
|
|
7581
7581
|
var V = this.parseIdent();
|
|
7582
|
-
|
|
7583
|
-
} else
|
|
7584
|
-
} else
|
|
7582
|
+
Ct(this.type) ? (g = !0, x = L, p = a ? this.parseIdent() : this.parseModuleExportName(), _ = !1) : (p = V, _ = !1);
|
|
7583
|
+
} else Ct(this.type) ? (_ = !1, p = a ? this.parseIdent() : this.parseModuleExportName()) : (g = !0, x = L);
|
|
7584
|
+
} else Ct(this.type) && (g = !0, a ? (x = P.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(x)) : x = this.parseModuleExportName());
|
|
7585
7585
|
g && h && this.raise(T, a ? N.TypeModifierIsUsedInTypeImports : N.TypeModifierIsUsedInTypeExports), s[m] = x, s[v] = p, s[a ? "importKind" : "exportKind"] = g ? "type" : "value", _ && this.eatContextual("as") && (s[v] = a ? this.parseIdent() : this.parseModuleExportName()), s[v] || (s[v] = this.copyNode(s[m])), a && this.checkLValSimple(s[v], 2);
|
|
7586
7586
|
}, f.raiseCommonCheck = function(s, a, h) {
|
|
7587
7587
|
return a === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : P.prototype.raise.call(this, s, a) : h ? P.prototype.raiseRecoverable.call(this, s, a) : P.prototype.raise.call(this, s, a);
|
|
@@ -7661,7 +7661,7 @@ async function Bh(e) {
|
|
|
7661
7661
|
}
|
|
7662
7662
|
await Promise.all(
|
|
7663
7663
|
t.map(async (i) => {
|
|
7664
|
-
const r =
|
|
7664
|
+
const r = Dt.join(e, i.name);
|
|
7665
7665
|
try {
|
|
7666
7666
|
await se.rm(r, { recursive: !0, force: !0 });
|
|
7667
7667
|
} catch (n) {
|
|
@@ -7714,7 +7714,7 @@ ${e}
|
|
|
7714
7714
|
async function me(e) {
|
|
7715
7715
|
return JSON.parse(await se.readFile(e, "utf8"));
|
|
7716
7716
|
}
|
|
7717
|
-
async function
|
|
7717
|
+
async function Pt(e) {
|
|
7718
7718
|
return await se.readFile(e, "utf8");
|
|
7719
7719
|
}
|
|
7720
7720
|
async function Uh(e) {
|
|
@@ -7733,7 +7733,7 @@ async function Le(e, t, i = [], r = !1) {
|
|
|
7733
7733
|
}
|
|
7734
7734
|
async function fl() {
|
|
7735
7735
|
Ne("Synchronise .editorconfig");
|
|
7736
|
-
const e =
|
|
7736
|
+
const e = Dt.dirname(Pr(import.meta.url)), t = [Dt.resolve(e, "../../.editorconfig")];
|
|
7737
7737
|
let i;
|
|
7738
7738
|
for (const c of t)
|
|
7739
7739
|
try {
|
|
@@ -7744,7 +7744,7 @@ async function fl() {
|
|
|
7744
7744
|
}
|
|
7745
7745
|
if (i === void 0)
|
|
7746
7746
|
throw new Error("Unable to locate default.editorconfig template.");
|
|
7747
|
-
const r =
|
|
7747
|
+
const r = Dt.resolve(process.cwd(), ".editorconfig");
|
|
7748
7748
|
ie(`Template: ${i}`), ie(`Destination: ${r}`);
|
|
7749
7749
|
const n = await se.readFile(i, "utf8");
|
|
7750
7750
|
let u;
|
|
@@ -7897,7 +7897,7 @@ async function Gh(e, t) {
|
|
|
7897
7897
|
}
|
|
7898
7898
|
async function Wh(e, t) {
|
|
7899
7899
|
ie(`${e} Build connector project configuration`);
|
|
7900
|
-
const [i, r] = await Promise.all([me("config.json"),
|
|
7900
|
+
const [i, r] = await Promise.all([me("config.json"), Pt("src/index.ts")]), n = kc.safeParse(i);
|
|
7901
7901
|
if (!n.success) {
|
|
7902
7902
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7903
7903
|
return;
|
|
@@ -7907,7 +7907,7 @@ async function Wh(e, t) {
|
|
|
7907
7907
|
}
|
|
7908
7908
|
async function Kh(e, t) {
|
|
7909
7909
|
ie(`${e} Build context project configuration`);
|
|
7910
|
-
const [i, r] = await Promise.all([me("config.json"),
|
|
7910
|
+
const [i, r] = await Promise.all([me("config.json"), Pt("src/index.ts")]), n = Lc.safeParse(i);
|
|
7911
7911
|
if (!n.success) {
|
|
7912
7912
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7913
7913
|
return;
|
|
@@ -7917,7 +7917,7 @@ async function Kh(e, t) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
async function Xh(e, t) {
|
|
7919
7919
|
ie(`${e} Build presenter project configuration`);
|
|
7920
|
-
const [i, r] = await Promise.all([me("config.json"),
|
|
7920
|
+
const [i, r] = await Promise.all([me("config.json"), Pt("src/index.ts")]), n = Bc.safeParse(i);
|
|
7921
7921
|
if (!n.success) {
|
|
7922
7922
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7923
7923
|
return;
|
|
@@ -7974,7 +7974,7 @@ async function el(e) {
|
|
|
7974
7974
|
const S = w.severity?.toLowerCase() ?? "unknown";
|
|
7975
7975
|
S in i ? i[S]++ : i.unknown++;
|
|
7976
7976
|
}
|
|
7977
|
-
const r = await tl(i), n = await
|
|
7977
|
+
const r = await tl(i), n = await Pt("./README.md"), u = n.indexOf(Sr), c = n.indexOf(Qh);
|
|
7978
7978
|
if (u === -1 || c === -1) {
|
|
7979
7979
|
console.error("❌ No OWASP badge markers found in 'README.md'.");
|
|
7980
7980
|
return;
|
|
@@ -8032,7 +8032,7 @@ async function bl(e = [], t = !0) {
|
|
|
8032
8032
|
}
|
|
8033
8033
|
async function rl(e, t) {
|
|
8034
8034
|
ie(`${e} Insert licenses into 'README.md'`);
|
|
8035
|
-
const i = await
|
|
8035
|
+
const i = await Pt("./README.md"), r = i.indexOf(Tr), n = i.indexOf(il);
|
|
8036
8036
|
if (r === -1 || n === -1) {
|
|
8037
8037
|
console.error("❌ No dependency license markers found in 'README.md'.");
|
|
8038
8038
|
return;
|