@datapos/datapos-development 0.3.162 → 0.3.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datapos-development.es.js +65 -65
- package/package.json +1 -1
|
@@ -297,7 +297,7 @@ var Ft = 1, It = 2, ve = 4, We = 8, ge = 16, Ke = 32, Zt = 64, Je = 128, Pt = 25
|
|
|
297
297
|
function be(t, e) {
|
|
298
298
|
return It | (t ? ve : 0) | (e ? We : 0);
|
|
299
299
|
}
|
|
300
|
-
var Gt = 0, Se = 1, xt = 2, Ge = 3, $e = 4, Xe = 5,
|
|
300
|
+
var Gt = 0, Se = 1, xt = 2, Ge = 3, $e = 4, Xe = 5, K = function(e, r, a) {
|
|
301
301
|
this.options = e = ji(e), this.sourceFile = e.sourceFile, this.keywords = bt(Oi[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
302
302
|
var u = "";
|
|
303
303
|
e.allowReserved !== !0 && (u = oe[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (u += " await")), this.reservedWords = bt(u);
|
|
@@ -305,7 +305,7 @@ var Gt = 0, Se = 1, xt = 2, Ge = 3, $e = 4, Xe = 5, J = function(e, r, a) {
|
|
|
305
305
|
this.reservedWordsStrict = bt(f), this.reservedWordsStrictBind = bt(f + " " + oe.strictBind), this.input = String(r), this.containsEsc = !1, a ? (this.pos = a, this.lineStart = this.input.lastIndexOf(`
|
|
306
306
|
`, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(tt).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = h.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 = e.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 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Ft), this.regexpState = null, this.privateNameStack = [];
|
|
307
307
|
}, lt = { 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 } };
|
|
308
|
-
|
|
308
|
+
K.prototype.parse = function() {
|
|
309
309
|
var e = this.options.program || this.startNode();
|
|
310
310
|
return this.nextToken(), this.parseTopLevel(e);
|
|
311
311
|
};
|
|
@@ -349,24 +349,24 @@ lt.allowNewDotTarget.get = function() {
|
|
|
349
349
|
lt.inClassStaticBlock.get = function() {
|
|
350
350
|
return (this.currentVarScope().flags & Pt) > 0;
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
K.extend = function() {
|
|
353
353
|
for (var e = [], r = arguments.length; r--; ) e[r] = arguments[r];
|
|
354
354
|
for (var a = this, u = 0; u < e.length; u++)
|
|
355
355
|
a = e[u](a);
|
|
356
356
|
return a;
|
|
357
357
|
};
|
|
358
|
-
|
|
358
|
+
K.parse = function(e, r) {
|
|
359
359
|
return new this(r, e).parse();
|
|
360
360
|
};
|
|
361
|
-
|
|
361
|
+
K.parseExpressionAt = function(e, r, a) {
|
|
362
362
|
var u = new this(a, e, r);
|
|
363
363
|
return u.nextToken(), u.parseExpression();
|
|
364
364
|
};
|
|
365
|
-
|
|
365
|
+
K.tokenizer = function(e, r) {
|
|
366
366
|
return new this(r, e);
|
|
367
367
|
};
|
|
368
|
-
Object.defineProperties(
|
|
369
|
-
var et =
|
|
368
|
+
Object.defineProperties(K.prototype, lt);
|
|
369
|
+
var et = K.prototype, qi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
370
370
|
et.strictDirective = function(t) {
|
|
371
371
|
if (this.options.ecmaVersion < 5)
|
|
372
372
|
return !1;
|
|
@@ -439,7 +439,7 @@ et.checkYieldAwaitInDefaultParams = function() {
|
|
|
439
439
|
et.isSimpleAssignTarget = function(t) {
|
|
440
440
|
return t.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(t.expression) : t.type === "Identifier" || t.type === "MemberExpression";
|
|
441
441
|
};
|
|
442
|
-
var k =
|
|
442
|
+
var k = K.prototype;
|
|
443
443
|
k.parseTopLevel = function(t) {
|
|
444
444
|
var e = /* @__PURE__ */ Object.create(null);
|
|
445
445
|
for (t.body || (t.body = []); this.type !== h.eof; ) {
|
|
@@ -944,7 +944,7 @@ k.isDirectiveCandidate = function(t) {
|
|
|
944
944
|
return this.options.ecmaVersion >= 5 && t.type === "ExpressionStatement" && t.expression.type === "Literal" && typeof t.expression.value == "string" && // Reject parenthesized strings.
|
|
945
945
|
(this.input[t.start] === '"' || this.input[t.start] === "'");
|
|
946
946
|
};
|
|
947
|
-
var ct =
|
|
947
|
+
var ct = K.prototype;
|
|
948
948
|
ct.toAssignable = function(t, e, r) {
|
|
949
949
|
if (this.options.ecmaVersion >= 6 && t)
|
|
950
950
|
switch (t.type) {
|
|
@@ -1116,7 +1116,7 @@ var Z = function(e, r, a, u, f) {
|
|
|
1116
1116
|
f_expr: new Z("function", !0),
|
|
1117
1117
|
f_expr_gen: new Z("function", !0, !1, null, !0),
|
|
1118
1118
|
f_gen: new Z("function", !1, !1, null, !0)
|
|
1119
|
-
}, _t =
|
|
1119
|
+
}, _t = K.prototype;
|
|
1120
1120
|
_t.initialContext = function() {
|
|
1121
1121
|
return [q.b_stat];
|
|
1122
1122
|
};
|
|
@@ -1182,7 +1182,7 @@ h.name.updateContext = function(t) {
|
|
|
1182
1182
|
var e = !1;
|
|
1183
1183
|
this.options.ecmaVersion >= 6 && t !== h.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = !0), this.exprAllowed = e;
|
|
1184
1184
|
};
|
|
1185
|
-
var _ =
|
|
1185
|
+
var _ = K.prototype;
|
|
1186
1186
|
_.checkPropClash = function(t, e, r) {
|
|
1187
1187
|
if (!(this.options.ecmaVersion >= 9 && t.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (t.computed || t.method || t.shorthand))) {
|
|
1188
1188
|
var a = t.key, u;
|
|
@@ -1341,12 +1341,12 @@ _.parseSubscript = function(t, e, r, a, u, f, d) {
|
|
|
1341
1341
|
} else if (!a && this.eat(h.parenL)) {
|
|
1342
1342
|
var N = new ee(), M = this.yieldPos, j = this.awaitPos, B = this.awaitIdentPos;
|
|
1343
1343
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1344
|
-
var
|
|
1344
|
+
var J = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1, N);
|
|
1345
1345
|
if (u && !g && this.shouldParseAsyncArrow())
|
|
1346
|
-
return this.checkPatternErrors(N, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = j, this.awaitIdentPos = B, this.parseSubscriptAsyncArrow(e, r,
|
|
1346
|
+
return this.checkPatternErrors(N, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = j, this.awaitIdentPos = B, this.parseSubscriptAsyncArrow(e, r, J, d);
|
|
1347
1347
|
this.checkExpressionErrors(N, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = j || this.awaitPos, this.awaitIdentPos = B || this.awaitIdentPos;
|
|
1348
1348
|
var I = this.startNodeAt(e, r);
|
|
1349
|
-
I.callee = t, I.arguments =
|
|
1349
|
+
I.callee = t, I.arguments = J, v && (I.optional = g), t = this.finishNode(I, "CallExpression");
|
|
1350
1350
|
} else if (this.type === h.backQuote) {
|
|
1351
1351
|
(g || f) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
1352
1352
|
var X = this.startNodeAt(e, r);
|
|
@@ -1460,10 +1460,10 @@ _.parseParenAndDistinguishExpression = function(t, e) {
|
|
|
1460
1460
|
break;
|
|
1461
1461
|
} else
|
|
1462
1462
|
g.push(this.parseMaybeAssign(!1, N, this.parseParenItem));
|
|
1463
|
-
var
|
|
1463
|
+
var J = this.lastTokEnd, I = this.lastTokEndLoc;
|
|
1464
1464
|
if (this.expect(h.parenR), t && this.shouldParseArrow(g) && this.eat(h.arrow))
|
|
1465
1465
|
return this.checkPatternErrors(N, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = M, this.awaitPos = j, this.parseParenArrowList(r, a, g, e);
|
|
1466
|
-
(!g.length || w) && this.unexpected(this.lastTokStart), B && this.unexpected(B), this.checkExpressionErrors(N, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = j || this.awaitPos, g.length > 1 ? (u = this.startNodeAt(d, v), u.expressions = g, this.finishNodeAt(u, "SequenceExpression",
|
|
1466
|
+
(!g.length || w) && this.unexpected(this.lastTokStart), B && this.unexpected(B), this.checkExpressionErrors(N, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = j || this.awaitPos, g.length > 1 ? (u = this.startNodeAt(d, v), u.expressions = g, this.finishNodeAt(u, "SequenceExpression", J, I)) : u = g[0];
|
|
1467
1467
|
} else
|
|
1468
1468
|
u = this.parseParenExpression();
|
|
1469
1469
|
if (this.options.preserveParens) {
|
|
@@ -1635,7 +1635,7 @@ _.parseAwait = function(t) {
|
|
|
1635
1635
|
var e = this.startNode();
|
|
1636
1636
|
return this.next(), e.argument = this.parseMaybeUnary(null, !0, !1, t), this.finishNode(e, "AwaitExpression");
|
|
1637
1637
|
};
|
|
1638
|
-
var Xt =
|
|
1638
|
+
var Xt = K.prototype;
|
|
1639
1639
|
Xt.raise = function(t, e) {
|
|
1640
1640
|
var r = xe(this.input, t);
|
|
1641
1641
|
e += " (" + r.line + ":" + r.column + ")", this.sourceFile && (e += " in " + this.sourceFile);
|
|
@@ -1647,7 +1647,7 @@ Xt.curPosition = function() {
|
|
|
1647
1647
|
if (this.options.locations)
|
|
1648
1648
|
return new wt(this.curLine, this.pos - this.lineStart);
|
|
1649
1649
|
};
|
|
1650
|
-
var St =
|
|
1650
|
+
var St = K.prototype, Ji = function(e) {
|
|
1651
1651
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
1652
1652
|
};
|
|
1653
1653
|
St.enterScope = function(t) {
|
|
@@ -1704,7 +1704,7 @@ St.currentThisScope = function() {
|
|
|
1704
1704
|
};
|
|
1705
1705
|
var Ut = function(e, r, a) {
|
|
1706
1706
|
this.type = "", this.start = r, this.end = 0, e.options.locations && (this.loc = new Bt(e, a)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [r, 0]);
|
|
1707
|
-
}, qt =
|
|
1707
|
+
}, qt = K.prototype;
|
|
1708
1708
|
qt.startNode = function() {
|
|
1709
1709
|
return new Ut(this, this.start, this.startLoc);
|
|
1710
1710
|
};
|
|
@@ -1763,7 +1763,7 @@ for (var ue = 0, Le = [9, 10, 11, 12, 13, 14]; ue < Le.length; ue += 1) {
|
|
|
1763
1763
|
var is = Le[ue];
|
|
1764
1764
|
es(is);
|
|
1765
1765
|
}
|
|
1766
|
-
var P =
|
|
1766
|
+
var P = K.prototype, Qt = function(e, r) {
|
|
1767
1767
|
this.parent = e, this.base = r || this;
|
|
1768
1768
|
};
|
|
1769
1769
|
Qt.prototype.separatedFrom = function(e) {
|
|
@@ -2595,7 +2595,7 @@ P.regexp_eatFixedHexDigits = function(t, e) {
|
|
|
2595
2595
|
};
|
|
2596
2596
|
var se = function(e) {
|
|
2597
2597
|
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Bt(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
|
|
2598
|
-
}, D =
|
|
2598
|
+
}, D = K.prototype;
|
|
2599
2599
|
D.next = function(t) {
|
|
2600
2600
|
!t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new se(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
2601
2601
|
};
|
|
@@ -3098,8 +3098,8 @@ D.readWord = function() {
|
|
|
3098
3098
|
return this.keywords.test(t) && (e = At[t]), this.finishToken(e, t);
|
|
3099
3099
|
};
|
|
3100
3100
|
var bi = "8.15.0";
|
|
3101
|
-
|
|
3102
|
-
Parser:
|
|
3101
|
+
K.acorn = {
|
|
3102
|
+
Parser: K,
|
|
3103
3103
|
version: bi,
|
|
3104
3104
|
defaultOptions: Jt,
|
|
3105
3105
|
Position: wt,
|
|
@@ -3120,18 +3120,18 @@ J.acorn = {
|
|
|
3120
3120
|
nonASCIIwhitespace: ye
|
|
3121
3121
|
};
|
|
3122
3122
|
function ds(t, e) {
|
|
3123
|
-
return
|
|
3123
|
+
return K.parse(t, e);
|
|
3124
3124
|
}
|
|
3125
3125
|
function ms(t, e, r) {
|
|
3126
|
-
return
|
|
3126
|
+
return K.parseExpressionAt(t, e, r);
|
|
3127
3127
|
}
|
|
3128
3128
|
function ys(t, e) {
|
|
3129
|
-
return
|
|
3129
|
+
return K.tokenizer(t, e);
|
|
3130
3130
|
}
|
|
3131
3131
|
const xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3132
3132
|
__proto__: null,
|
|
3133
3133
|
Node: Ut,
|
|
3134
|
-
Parser:
|
|
3134
|
+
Parser: K,
|
|
3135
3135
|
Position: wt,
|
|
3136
3136
|
SourceLocation: Bt,
|
|
3137
3137
|
TokContext: Z,
|
|
@@ -3319,7 +3319,7 @@ function Be(t) {
|
|
|
3319
3319
|
function Es(t) {
|
|
3320
3320
|
var e = {}, r = e.dts, a = r !== void 0 && r, u = e.allowSatisfies, f = u !== void 0 && u;
|
|
3321
3321
|
return function(d) {
|
|
3322
|
-
var v = d.acorn || xs, g = gs(v), o = v.tokTypes, w = v.keywordTypes, N = v.isIdentifierStart, M = v.lineBreak, j = v.isNewLine, B = v.tokContexts,
|
|
3322
|
+
var v = d.acorn || xs, g = gs(v), o = v.tokTypes, w = v.keywordTypes, N = v.isIdentifierStart, M = v.lineBreak, j = v.isNewLine, B = v.tokContexts, J = v.isIdentifierChar, I = g.tokTypes, X = g.tokContexts, Ct = g.keywordsRegExp, Ti = g.tokenIsLiteralPropertyName, Pi = g.tokenIsTemplate, Ci = g.tokenIsTSDeclarationStart, U = g.tokenIsIdentifier, Ht = g.tokenIsKeywordOrIdentifier, ki = g.tokenIsTSTypeOperator;
|
|
3323
3323
|
function Ai(T, it, Y) {
|
|
3324
3324
|
Y === void 0 && (Y = T.length);
|
|
3325
3325
|
for (var G = it; G < Y; G++) {
|
|
@@ -3631,7 +3631,7 @@ function Es(t) {
|
|
|
3631
3631
|
var n = i + s.length;
|
|
3632
3632
|
if (this.input.slice(i, n) === s) {
|
|
3633
3633
|
var c = this.input.charCodeAt(n);
|
|
3634
|
-
return !(
|
|
3634
|
+
return !(J(c) || (64512 & c) == 55296);
|
|
3635
3635
|
}
|
|
3636
3636
|
return !1;
|
|
3637
3637
|
}, p.isAbstractConstructorSignature = function() {
|
|
@@ -4178,10 +4178,10 @@ function Es(t) {
|
|
|
4178
4178
|
s[m] = n[m];
|
|
4179
4179
|
}
|
|
4180
4180
|
}, p.tsParseModifiers = function(i) {
|
|
4181
|
-
for (var s = this, n = i.modified, c = i.allowedModifiers, l = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, S = function(
|
|
4182
|
-
H ===
|
|
4183
|
-
}, E = function(
|
|
4184
|
-
(n[
|
|
4181
|
+
for (var s = this, n = i.modified, c = i.allowedModifiers, l = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, S = function(z, H, W, $) {
|
|
4182
|
+
H === W && n[$] && s.raise(z.column, A.InvalidModifiersOrder({ orderedModifiers: [W, $] }));
|
|
4183
|
+
}, E = function(z, H, W, $) {
|
|
4184
|
+
(n[W] && H === $ || n[$] && H === W) && s.raise(z.column, A.IncompatibleModifiers({ modifiers: [W, $] }));
|
|
4185
4185
|
}; ; ) {
|
|
4186
4186
|
var L = this.startLoc, C = this.tsParseModifier(c.concat(l ?? []), m);
|
|
4187
4187
|
if (!C) break;
|
|
@@ -4620,12 +4620,12 @@ function Es(t) {
|
|
|
4620
4620
|
var C = s.tsTryParseIndexSignature(l);
|
|
4621
4621
|
if (C) return l.abstract && s.raise(l.start, A.IndexSignatureHasAbstract), l.accessibility && s.raise(l.start, A.IndexSignatureHasAccessibility({ modifier: l.accessibility })), l.declare && s.raise(l.start, A.IndexSignatureHasDeclare), l.override && s.raise(l.start, A.IndexSignatureHasOverride), C;
|
|
4622
4622
|
if (!s.inAbstractClass && l.abstract && s.raise(l.start, A.NonAbstractClassHasAbstractMethod), l.override && i && s.raise(l.start, A.OverrideNotInSubClass), l.static = n, n && (s.isClassElementNameStart() || s.type === o.star || (m = "static")), !m && c >= 8 && s.eatContextual("async") && (!s.isClassElementNameStart() && s.type !== o.star || s.canInsertSemicolon() ? m = "async" : x = !0), !m && (c >= 9 || !x) && s.eat(o.star) && (y = !0), !m && !x && !y) {
|
|
4623
|
-
var
|
|
4624
|
-
(s.eatContextual("get") || s.eatContextual("set")) && (s.isClassElementNameStart() ? b =
|
|
4623
|
+
var z = s.value;
|
|
4624
|
+
(s.eatContextual("get") || s.eatContextual("set")) && (s.isClassElementNameStart() ? b = z : m = z);
|
|
4625
4625
|
}
|
|
4626
4626
|
if (m ? (l.computed = !1, l.key = s.startNodeAt(s.lastTokStart, s.lastTokStartLoc), l.key.name = m, s.finishNode(l.key, "Identifier")) : s.parseClassElementName(l), s.parsePostMemberNameModifiers(l), s.isClassMethod() || c < 13 || s.type === o.parenL || b !== "method" || y || x) {
|
|
4627
|
-
var H = !l.static && Ve(l, "constructor"),
|
|
4628
|
-
H && b !== "method" && s.raise(l.key.start, "Constructor can't have get/set modifier"), l.kind = H ? "constructor" : b, s.parseClassMethod(l, y, x,
|
|
4627
|
+
var H = !l.static && Ve(l, "constructor"), W = H && i;
|
|
4628
|
+
H && b !== "method" && s.raise(l.key.start, "Constructor can't have get/set modifier"), l.kind = H ? "constructor" : b, s.parseClassMethod(l, y, x, W);
|
|
4629
4629
|
} else s.parseClassField(l);
|
|
4630
4630
|
return l;
|
|
4631
4631
|
}
|
|
@@ -4665,28 +4665,28 @@ function Es(t) {
|
|
|
4665
4665
|
}
|
|
4666
4666
|
return c && this.checkExpressionErrors(s, !0), l > -1 && (s.parenthesizedAssign = l), m > -1 && (s.trailingComma = m), S;
|
|
4667
4667
|
}, p.parseMaybeAssign = function(i, s, n) {
|
|
4668
|
-
var c, l, m, y, x, b, S, E, L, C,
|
|
4668
|
+
var c, l, m, y, x, b, S, E, L, C, z, H = this;
|
|
4669
4669
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
4670
4670
|
if (E = this.cloneCurLookaheadState(), !(L = this.tryParse(function() {
|
|
4671
4671
|
return H.parseMaybeAssignOrigin(i, s, n);
|
|
4672
4672
|
}, E)).error) return L.node;
|
|
4673
|
-
var
|
|
4674
|
-
$ === g.tokContexts.tc_oTag &&
|
|
4673
|
+
var W = this.context, $ = W[W.length - 1];
|
|
4674
|
+
$ === g.tokContexts.tc_oTag && W[W.length - 2] === g.tokContexts.tc_expr ? (W.pop(), W.pop()) : $ !== g.tokContexts.tc_oTag && $ !== g.tokContexts.tc_expr || W.pop();
|
|
4675
4675
|
}
|
|
4676
4676
|
if (!((c = L) != null && c.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(i, s, n);
|
|
4677
4677
|
E && !this.compareLookaheadState(E, this.getCurLookaheadState()) || (E = this.cloneCurLookaheadState());
|
|
4678
4678
|
var rt = this.tryParse(function(vt) {
|
|
4679
4679
|
var Nt, Lt;
|
|
4680
|
-
|
|
4680
|
+
z = H.tsParseTypeParameters();
|
|
4681
4681
|
var gt = H.parseMaybeAssignOrigin(i, s, n);
|
|
4682
|
-
return (gt.type !== "ArrowFunctionExpression" || (Nt = gt.extra) != null && Nt.parenthesized) && vt(), ((Lt =
|
|
4682
|
+
return (gt.type !== "ArrowFunctionExpression" || (Nt = gt.extra) != null && Nt.parenthesized) && vt(), ((Lt = z) == null ? void 0 : Lt.params.length) !== 0 && H.resetStartLocationFromNode(gt, z), gt.typeParameters = z, gt;
|
|
4683
4683
|
}, E);
|
|
4684
|
-
if (!rt.error && !rt.aborted) return
|
|
4684
|
+
if (!rt.error && !rt.aborted) return z && this.reportReservedArrowTypeParam(z), rt.node;
|
|
4685
4685
|
if (!L && (Fe(!0), !(C = this.tryParse(function() {
|
|
4686
4686
|
return H.parseMaybeAssignOrigin(i, s, n);
|
|
4687
4687
|
}, E)).error)) return C.node;
|
|
4688
4688
|
if ((l = L) != null && l.node) return this.setLookaheadState(L.failState), L.node;
|
|
4689
|
-
if (rt.node) return this.setLookaheadState(rt.failState),
|
|
4689
|
+
if (rt.node) return this.setLookaheadState(rt.failState), z && this.reportReservedArrowTypeParam(z), rt.node;
|
|
4690
4690
|
if ((m = C) != null && m.node) return this.setLookaheadState(C.failState), C.node;
|
|
4691
4691
|
throw (y = L) != null && y.thrown ? L.error : rt.thrown ? rt.error : (x = C) != null && x.thrown ? C.error : ((b = L) == null ? void 0 : b.error) || rt.error || ((S = C) == null ? void 0 : S.error);
|
|
4692
4692
|
}, p.parseAssignableListItem = function(i) {
|
|
@@ -4812,7 +4812,7 @@ function Es(t) {
|
|
|
4812
4812
|
if (this.options.ecmaVersion >= 6) {
|
|
4813
4813
|
var y = this.maybeInArrowParameters;
|
|
4814
4814
|
this.maybeInArrowParameters = !0, this.next();
|
|
4815
|
-
var x, b = this.start, S = this.startLoc, E = [], L = !0, C = !1,
|
|
4815
|
+
var x, b = this.start, S = this.startLoc, E = [], L = !0, C = !1, z = new Rt(), H = this.yieldPos, W = this.awaitPos;
|
|
4816
4816
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; ) {
|
|
4817
4817
|
if (L ? L = !1 : this.expect(o.comma), m && this.afterTrailingComma(o.parenR, !0)) {
|
|
4818
4818
|
C = !0;
|
|
@@ -4822,11 +4822,11 @@ function Es(t) {
|
|
|
4822
4822
|
x = this.start, E.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element");
|
|
4823
4823
|
break;
|
|
4824
4824
|
}
|
|
4825
|
-
E.push(this.parseMaybeAssign(s,
|
|
4825
|
+
E.push(this.parseMaybeAssign(s, z, this.parseParenItem));
|
|
4826
4826
|
}
|
|
4827
4827
|
var $ = this.lastTokEnd, rt = this.lastTokEndLoc;
|
|
4828
|
-
if (this.expect(o.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(o.arrow)) return this.checkPatternErrors(
|
|
4829
|
-
E.length && !C || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(
|
|
4828
|
+
if (this.expect(o.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(o.arrow)) return this.checkPatternErrors(z, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = H, this.awaitPos = W, this.parseParenArrowList(c, l, E, s);
|
|
4829
|
+
E.length && !C || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(z, !0), this.yieldPos = H || this.yieldPos, this.awaitPos = W || this.awaitPos, E.length > 1 ? ((n = this.startNodeAt(b, S)).expressions = E, this.finishNodeAt(n, "SequenceExpression", $, rt)) : n = E[0];
|
|
4830
4830
|
} else n = this.parseParenExpression();
|
|
4831
4831
|
if (this.options.preserveParens) {
|
|
4832
4832
|
var vt = this.startNodeAt(c, l);
|
|
@@ -4892,12 +4892,12 @@ function Es(t) {
|
|
|
4892
4892
|
});
|
|
4893
4893
|
if (L && this.unexpected(L), C) return C.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, A.InvalidPropertyAccessAfterInstantiationExpression), i = C;
|
|
4894
4894
|
}
|
|
4895
|
-
var
|
|
4895
|
+
var z = this.options.ecmaVersion >= 11, H = z && this.eat(o.questionDot);
|
|
4896
4896
|
c && H && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
4897
|
-
var
|
|
4898
|
-
if (
|
|
4897
|
+
var W = this.eat(o.bracketL);
|
|
4898
|
+
if (W || H && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
4899
4899
|
var $ = this.startNodeAt(s, n);
|
|
4900
|
-
$.object = i,
|
|
4900
|
+
$.object = i, W ? ($.property = this.parseExpression(), this.expect(o.bracketR)) : $.property = this.type === o.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), $.computed = !!W, z && ($.optional = H), i = this.finishNode($, "MemberExpression");
|
|
4901
4901
|
} else if (!c && this.eat(o.parenL)) {
|
|
4902
4902
|
var rt = this.maybeInArrowParameters;
|
|
4903
4903
|
this.maybeInArrowParameters = !0;
|
|
@@ -4908,7 +4908,7 @@ function Es(t) {
|
|
|
4908
4908
|
else {
|
|
4909
4909
|
this.checkExpressionErrors(vt, !0), this.yieldPos = Nt || this.yieldPos, this.awaitPos = Lt || this.awaitPos, this.awaitIdentPos = gt || this.awaitIdentPos;
|
|
4910
4910
|
var zt = this.startNodeAt(s, n);
|
|
4911
|
-
zt.callee = i, zt.arguments = Pe,
|
|
4911
|
+
zt.callee = i, zt.arguments = Pe, z && (zt.optional = H), i = this.finishNode(zt, "CallExpression");
|
|
4912
4912
|
}
|
|
4913
4913
|
this.maybeInArrowParameters = rt;
|
|
4914
4914
|
} else if (this.type === o.backQuote) {
|
|
@@ -5114,23 +5114,23 @@ async function Vs() {
|
|
|
5114
5114
|
let t = function(j) {
|
|
5115
5115
|
switch (j.type) {
|
|
5116
5116
|
case "FunctionDeclaration": {
|
|
5117
|
-
d.add(j.id.name);
|
|
5117
|
+
console.log(1111, j), d.add(j.id.name);
|
|
5118
5118
|
break;
|
|
5119
5119
|
}
|
|
5120
5120
|
case "MethodDefinition": {
|
|
5121
|
-
const B = j,
|
|
5122
|
-
console.log(3333, I, X, Ct
|
|
5121
|
+
const B = j, I = B.key.name, X = I === "constructor", Ct = B.accessibility ?? !1;
|
|
5122
|
+
console.log(3333, I, X, Ct), I && !X && !Ct && d.add(I);
|
|
5123
5123
|
break;
|
|
5124
5124
|
}
|
|
5125
5125
|
}
|
|
5126
5126
|
for (const B in j) {
|
|
5127
5127
|
if (B === "loc" || B === "range" || B === "start" || B === "end" || B === "comments") continue;
|
|
5128
|
-
const
|
|
5129
|
-
Array.isArray(
|
|
5128
|
+
const J = j[B];
|
|
5129
|
+
Array.isArray(J) ? J.forEach(t) : J && typeof J == "object" && typeof J.type == "string" && t(J);
|
|
5130
5130
|
}
|
|
5131
5131
|
};
|
|
5132
5132
|
console.info("🚀 Building connector configuration...");
|
|
5133
|
-
const e = JSON.parse(await R.readFile("package.json", "utf8")), r = JSON.parse(await R.readFile("config.json", "utf8")), a = await R.readFile("src/index.ts", "utf8"), f =
|
|
5133
|
+
const e = JSON.parse(await R.readFile("package.json", "utf8")), r = JSON.parse(await R.readFile("config.json", "utf8")), a = await R.readFile("src/index.ts", "utf8"), f = K.extend(Es()).parse(a, { ecmaVersion: "latest", sourceType: "module", locations: !0 }), d = /* @__PURE__ */ new Set();
|
|
5134
5134
|
t(f), console.log(`Extracted ${d.size} functions:`, Array.from(d));
|
|
5135
5135
|
let v = !1, g = !1;
|
|
5136
5136
|
const o = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, w = [...a.matchAll(o)].filter((j) => j[1] == null && j[2] !== "constructor"), N = [];
|
|
@@ -5200,8 +5200,8 @@ async function Hs() {
|
|
|
5200
5200
|
for (const j of r.dependencies)
|
|
5201
5201
|
if (j.vulnerabilities != null)
|
|
5202
5202
|
for (const B of j.vulnerabilities) {
|
|
5203
|
-
const
|
|
5204
|
-
|
|
5203
|
+
const J = B.severity?.toLowerCase() ?? "unknown";
|
|
5204
|
+
J in a ? a[J]++ : a.unknown++;
|
|
5205
5205
|
}
|
|
5206
5206
|
const u = {
|
|
5207
5207
|
critical: { color: "D32F2F", label: "critical" },
|
|
@@ -5214,9 +5214,9 @@ async function Hs() {
|
|
|
5214
5214
|
console.info("✅ No vulnerabilities found."), d.push(`[](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5215
5215
|
else
|
|
5216
5216
|
for (const [j, B] of Object.entries(a)) {
|
|
5217
|
-
const
|
|
5218
|
-
if (console.warn(`⚠️ ${B} ${
|
|
5219
|
-
const I = `https://img.shields.io/badge/OWASP-${B}%20${
|
|
5217
|
+
const J = u[j];
|
|
5218
|
+
if (console.warn(`⚠️ ${B} ${J.label} vulnerability(ies) found.`), B === 0) continue;
|
|
5219
|
+
const I = `https://img.shields.io/badge/OWASP-${B}%20${J.label}-${J.color}`;
|
|
5220
5220
|
d.push(`[](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5221
5221
|
}
|
|
5222
5222
|
const g = await R.readFile("./README.md", "utf8"), o = g.indexOf(t), w = g.indexOf(e);
|
package/package.json
CHANGED