@datapos/datapos-development 0.3.160 → 0.3.162
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 +77 -81
- package/package.json +1 -1
|
@@ -1103,7 +1103,7 @@ ct.checkLValInnerPattern = function(t, e, r) {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
var Z = function(e, r, a, u, f) {
|
|
1105
1105
|
this.token = e, this.isExpr = !!r, this.preserveSpace = !!a, this.override = u, this.generator = !!f;
|
|
1106
|
-
},
|
|
1106
|
+
}, q = {
|
|
1107
1107
|
b_stat: new Z("{", !1),
|
|
1108
1108
|
b_expr: new Z("{", !0),
|
|
1109
1109
|
b_tmpl: new Z("${", !1),
|
|
@@ -1118,14 +1118,14 @@ var Z = function(e, r, a, u, f) {
|
|
|
1118
1118
|
f_gen: new Z("function", !1, !1, null, !0)
|
|
1119
1119
|
}, _t = J.prototype;
|
|
1120
1120
|
_t.initialContext = function() {
|
|
1121
|
-
return [
|
|
1121
|
+
return [q.b_stat];
|
|
1122
1122
|
};
|
|
1123
1123
|
_t.curContext = function() {
|
|
1124
1124
|
return this.context[this.context.length - 1];
|
|
1125
1125
|
};
|
|
1126
1126
|
_t.braceIsBlock = function(t) {
|
|
1127
1127
|
var e = this.curContext();
|
|
1128
|
-
return e ===
|
|
1128
|
+
return e === q.f_expr || e === q.f_stat ? !0 : t === h.colon && (e === q.b_stat || e === q.b_expr) ? !e.isExpr : t === h._return || t === h.name && this.exprAllowed ? tt.test(this.input.slice(this.lastTokEnd, this.start)) : t === h._else || t === h.semi || t === h.eof || t === h.parenR || t === h.arrow ? !0 : t === h.braceL ? e === q.b_stat : t === h._var || t === h._const || t === h.name ? !1 : !this.exprAllowed;
|
|
1129
1129
|
};
|
|
1130
1130
|
_t.inGeneratorContext = function() {
|
|
1131
1131
|
for (var t = this.context.length - 1; t >= 1; t--) {
|
|
@@ -1148,33 +1148,33 @@ h.parenR.updateContext = h.braceR.updateContext = function() {
|
|
|
1148
1148
|
return;
|
|
1149
1149
|
}
|
|
1150
1150
|
var t = this.context.pop();
|
|
1151
|
-
t ===
|
|
1151
|
+
t === q.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
|
|
1152
1152
|
};
|
|
1153
1153
|
h.braceL.updateContext = function(t) {
|
|
1154
|
-
this.context.push(this.braceIsBlock(t) ?
|
|
1154
|
+
this.context.push(this.braceIsBlock(t) ? q.b_stat : q.b_expr), this.exprAllowed = !0;
|
|
1155
1155
|
};
|
|
1156
1156
|
h.dollarBraceL.updateContext = function() {
|
|
1157
|
-
this.context.push(
|
|
1157
|
+
this.context.push(q.b_tmpl), this.exprAllowed = !0;
|
|
1158
1158
|
};
|
|
1159
1159
|
h.parenL.updateContext = function(t) {
|
|
1160
1160
|
var e = t === h._if || t === h._for || t === h._with || t === h._while;
|
|
1161
|
-
this.context.push(e ?
|
|
1161
|
+
this.context.push(e ? q.p_stat : q.p_expr), this.exprAllowed = !0;
|
|
1162
1162
|
};
|
|
1163
1163
|
h.incDec.updateContext = function() {
|
|
1164
1164
|
};
|
|
1165
1165
|
h._function.updateContext = h._class.updateContext = function(t) {
|
|
1166
|
-
t.beforeExpr && t !== h._else && !(t === h.semi && this.curContext() !==
|
|
1166
|
+
t.beforeExpr && t !== h._else && !(t === h.semi && this.curContext() !== q.p_stat) && !(t === h._return && tt.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === h.colon || t === h.braceL) && this.curContext() === q.b_stat) ? this.context.push(q.f_expr) : this.context.push(q.f_stat), this.exprAllowed = !1;
|
|
1167
1167
|
};
|
|
1168
1168
|
h.colon.updateContext = function() {
|
|
1169
1169
|
this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
|
|
1170
1170
|
};
|
|
1171
1171
|
h.backQuote.updateContext = function() {
|
|
1172
|
-
this.curContext() ===
|
|
1172
|
+
this.curContext() === q.q_tmpl ? this.context.pop() : this.context.push(q.q_tmpl), this.exprAllowed = !1;
|
|
1173
1173
|
};
|
|
1174
1174
|
h.star.updateContext = function(t) {
|
|
1175
1175
|
if (t === h._function) {
|
|
1176
1176
|
var e = this.context.length - 1;
|
|
1177
|
-
this.context[e] ===
|
|
1177
|
+
this.context[e] === q.f_expr ? this.context[e] = q.f_expr_gen : this.context[e] = q.f_gen;
|
|
1178
1178
|
}
|
|
1179
1179
|
this.exprAllowed = !0;
|
|
1180
1180
|
};
|
|
@@ -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 z = 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, z, 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 = z, 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);
|
|
@@ -1365,7 +1365,7 @@ _.parseExprAtom = function(t, e, r) {
|
|
|
1365
1365
|
case h.name:
|
|
1366
1366
|
var f = this.start, d = this.startLoc, v = this.containsEsc, g = this.parseIdent(!1);
|
|
1367
1367
|
if (this.options.ecmaVersion >= 8 && !v && g.name === "async" && !this.canInsertSemicolon() && this.eat(h._function))
|
|
1368
|
-
return this.overrideContext(
|
|
1368
|
+
return this.overrideContext(q.f_expr), this.parseFunction(this.startNodeAt(f, d), 0, !1, !0, e);
|
|
1369
1369
|
if (u && !this.canInsertSemicolon()) {
|
|
1370
1370
|
if (this.eat(h.arrow))
|
|
1371
1371
|
return this.parseArrowExpression(this.startNodeAt(f, d), [g], !1, e);
|
|
@@ -1389,7 +1389,7 @@ _.parseExprAtom = function(t, e, r) {
|
|
|
1389
1389
|
case h.bracketL:
|
|
1390
1390
|
return a = this.startNode(), this.next(), a.elements = this.parseExprList(h.bracketR, !0, !0, t), this.finishNode(a, "ArrayExpression");
|
|
1391
1391
|
case h.braceL:
|
|
1392
|
-
return this.overrideContext(
|
|
1392
|
+
return this.overrideContext(q.b_expr), this.parseObj(!1, t);
|
|
1393
1393
|
case h._function:
|
|
1394
1394
|
return a = this.startNode(), this.next(), this.parseFunction(a, 0);
|
|
1395
1395
|
case h._class:
|
|
@@ -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 z = 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", z, I)) : u = g[0];
|
|
1467
1467
|
} else
|
|
1468
1468
|
u = this.parseParenExpression();
|
|
1469
1469
|
if (this.options.preserveParens) {
|
|
@@ -3110,7 +3110,7 @@ J.acorn = {
|
|
|
3110
3110
|
tokTypes: h,
|
|
3111
3111
|
keywordTypes: At,
|
|
3112
3112
|
TokContext: Z,
|
|
3113
|
-
tokContexts:
|
|
3113
|
+
tokContexts: q,
|
|
3114
3114
|
isIdentifierChar: dt,
|
|
3115
3115
|
isIdentifierStart: pt,
|
|
3116
3116
|
Token: se,
|
|
@@ -3148,7 +3148,7 @@ const xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3148
3148
|
nonASCIIwhitespace: ye,
|
|
3149
3149
|
parse: ds,
|
|
3150
3150
|
parseExpressionAt: ms,
|
|
3151
|
-
tokContexts:
|
|
3151
|
+
tokContexts: q,
|
|
3152
3152
|
tokTypes: h,
|
|
3153
3153
|
tokenizer: ys,
|
|
3154
3154
|
version: bi
|
|
@@ -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, z = 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++) {
|
|
@@ -3601,7 +3601,7 @@ function Es(t) {
|
|
|
3601
3601
|
}, p.atPossibleAsyncArrow = function(i) {
|
|
3602
3602
|
return i.type === "Identifier" && i.name === "async" && this.lastTokEndLoc.column === i.end && !this.canInsertSemicolon() && i.end - i.start == 5 && i.start === this.potentialArrowAt;
|
|
3603
3603
|
}, p.tsIsIdentifier = function() {
|
|
3604
|
-
return
|
|
3604
|
+
return U(this.type);
|
|
3605
3605
|
}, p.tsTryParseTypeOrTypePredicateAnnotation = function() {
|
|
3606
3606
|
return this.match(o.colon) ? this.tsParseTypeOrTypePredicateAnnotation(o.colon) : void 0;
|
|
3607
3607
|
}, p.tsTryParseGenericAsyncArrowFunction = function(i, s, n) {
|
|
@@ -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 !(z(c) || (64512 & c) == 55296);
|
|
3635
3635
|
}
|
|
3636
3636
|
return !1;
|
|
3637
3637
|
}, p.isAbstractConstructorSignature = function() {
|
|
@@ -3791,7 +3791,7 @@ function Es(t) {
|
|
|
3791
3791
|
var l = s.tsParseInterfaceDeclaration(i, { declare: !0 });
|
|
3792
3792
|
if (l) return l;
|
|
3793
3793
|
}
|
|
3794
|
-
return
|
|
3794
|
+
return U(c) ? s.tsParseDeclaration(i, s.value, !0) : void 0;
|
|
3795
3795
|
});
|
|
3796
3796
|
}
|
|
3797
3797
|
}, p.tsIsListTerminator = function(i) {
|
|
@@ -3847,7 +3847,7 @@ function Es(t) {
|
|
|
3847
3847
|
return i(), s.tsParseType();
|
|
3848
3848
|
});
|
|
3849
3849
|
}, p.tsSkipParameterStart = function() {
|
|
3850
|
-
if (
|
|
3850
|
+
if (U(this.type) || this.match(o._this)) return this.next(), !0;
|
|
3851
3851
|
if (this.match(o.braceL)) try {
|
|
3852
3852
|
return this.parseObj(!0), !0;
|
|
3853
3853
|
} catch {
|
|
@@ -3882,7 +3882,7 @@ function Es(t) {
|
|
|
3882
3882
|
}, p.tsParseTypePredicateAsserts = function() {
|
|
3883
3883
|
if (this.type !== I.asserts) return !1;
|
|
3884
3884
|
var i = this.containsEsc;
|
|
3885
|
-
return this.next(), !(!
|
|
3885
|
+
return this.next(), !(!U(this.type) && !this.match(o._this) || (i && this.raise(this.lastTokStart, "Escape sequence in keyword asserts"), 0));
|
|
3886
3886
|
}, p.tsParseThisTypeNode = function() {
|
|
3887
3887
|
var i = this.startNode();
|
|
3888
3888
|
return this.next(), this.finishNode(i, "TSThisType");
|
|
@@ -4058,7 +4058,7 @@ function Es(t) {
|
|
|
4058
4058
|
return this.tsParseTemplateLiteralType();
|
|
4059
4059
|
default:
|
|
4060
4060
|
var s = this.type;
|
|
4061
|
-
if (
|
|
4061
|
+
if (U(s) || s === o._void || s === o._null) {
|
|
4062
4062
|
var n = s === o._void ? "TSVoidKeyword" : s === o._null ? "TSNullKeyword" : (function(l) {
|
|
4063
4063
|
switch (l) {
|
|
4064
4064
|
case "any":
|
|
@@ -4127,7 +4127,7 @@ function Es(t) {
|
|
|
4127
4127
|
return i.tsParseType();
|
|
4128
4128
|
}), this.finishNode(n, "TSConditionalType");
|
|
4129
4129
|
}, p.tsIsUnambiguouslyIndexSignature = function() {
|
|
4130
|
-
return this.next(), !!
|
|
4130
|
+
return this.next(), !!U(this.type) && (this.next(), this.match(o.colon));
|
|
4131
4131
|
}, p.tsInType = function(i) {
|
|
4132
4132
|
var s = this.inType;
|
|
4133
4133
|
this.inType = !0;
|
|
@@ -4165,7 +4165,7 @@ function Es(t) {
|
|
|
4165
4165
|
}, p.tsNextTokenCanFollowModifier = function() {
|
|
4166
4166
|
return this.next(!0), this.tsTokenCanFollowModifier();
|
|
4167
4167
|
}, p.tsParseModifier = function(i, s) {
|
|
4168
|
-
if (
|
|
4168
|
+
if (U(this.type) || this.type === o._in) {
|
|
4169
4169
|
var n = this.value;
|
|
4170
4170
|
if (i.indexOf(n) !== -1 && !this.containsEsc) {
|
|
4171
4171
|
if (s && this.tsIsStartOfStaticBlocks()) return;
|
|
@@ -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(W,
|
|
4182
|
-
|
|
4183
|
-
}, E = function(W,
|
|
4184
|
-
(n[K] &&
|
|
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(W, H, K, $) {
|
|
4182
|
+
H === K && n[$] && s.raise(W.column, A.InvalidModifiersOrder({ orderedModifiers: [K, $] }));
|
|
4183
|
+
}, E = function(W, H, K, $) {
|
|
4184
|
+
(n[K] && H === $ || n[$] && H === K) && s.raise(W.column, A.IncompatibleModifiers({ modifiers: [K, $] }));
|
|
4185
4185
|
}; ; ) {
|
|
4186
4186
|
var L = this.startLoc, C = this.tsParseModifier(c.concat(l ?? []), m);
|
|
4187
4187
|
if (!C) break;
|
|
@@ -4252,7 +4252,7 @@ function Es(t) {
|
|
|
4252
4252
|
return this.expect(o.braceR), i;
|
|
4253
4253
|
}, p.tsParseInterfaceDeclaration = function(i, s) {
|
|
4254
4254
|
if (s === void 0 && (s = {}), this.hasFollowingLineBreak()) return null;
|
|
4255
|
-
this.expectContextual("interface"), s.declare && (i.declare = !0),
|
|
4255
|
+
this.expectContextual("interface"), s.declare && (i.declare = !0), U(this.type) ? (i.id = this.parseIdent(), this.checkLValSimple(i.id, 7)) : (i.id = null, this.raise(this.start, A.MissingInterfaceName)), i.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (i.extends = this.tsParseHeritageClause("extends"));
|
|
4256
4256
|
var n = this.startNode();
|
|
4257
4257
|
return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), i.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(i, "TSInterfaceDeclaration");
|
|
4258
4258
|
}, p.tsParseAbstractDeclaration = function(i) {
|
|
@@ -4282,15 +4282,15 @@ function Es(t) {
|
|
|
4282
4282
|
return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(!1);
|
|
4283
4283
|
}, p.tsIsExportDefaultSpecifier = function() {
|
|
4284
4284
|
var i = this.type, s = this.isAsyncFunction(), n = this.isLet();
|
|
4285
|
-
if (
|
|
4285
|
+
if (U(i)) {
|
|
4286
4286
|
if (s && !this.containsEsc || n) return !1;
|
|
4287
4287
|
if ((i === I.type || i === I.interface) && !this.containsEsc) {
|
|
4288
4288
|
var c = this.lookahead();
|
|
4289
|
-
if (
|
|
4289
|
+
if (U(c.type) && !this.isContextualWithState("from", c) || c.type === o.braceL) return !1;
|
|
4290
4290
|
}
|
|
4291
4291
|
} else if (!this.match(o._default)) return !1;
|
|
4292
4292
|
var l = this.nextTokenStart(), m = this.isUnparsedContextual(l, "from");
|
|
4293
|
-
if (this.input.charCodeAt(l) === 44 ||
|
|
4293
|
+
if (this.input.charCodeAt(l) === 44 || U(this.type) && m) return !0;
|
|
4294
4294
|
if (this.match(o._default) && m) {
|
|
4295
4295
|
var y = this.input.charCodeAt(this.nextTokenStartSince(l + 4));
|
|
4296
4296
|
return y === 34 || y === 39;
|
|
@@ -4326,19 +4326,19 @@ function Es(t) {
|
|
|
4326
4326
|
}, p.tsParseDeclaration = function(i, s, n) {
|
|
4327
4327
|
switch (s) {
|
|
4328
4328
|
case "abstract":
|
|
4329
|
-
if (this.tsCheckLineTerminator(n) && (this.match(o._class) ||
|
|
4329
|
+
if (this.tsCheckLineTerminator(n) && (this.match(o._class) || U(this.type))) return this.tsParseAbstractDeclaration(i);
|
|
4330
4330
|
break;
|
|
4331
4331
|
case "module":
|
|
4332
4332
|
if (this.tsCheckLineTerminator(n)) {
|
|
4333
4333
|
if (this.match(o.string)) return this.tsParseAmbientExternalModuleDeclaration(i);
|
|
4334
|
-
if (
|
|
4334
|
+
if (U(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
|
|
4335
4335
|
}
|
|
4336
4336
|
break;
|
|
4337
4337
|
case "namespace":
|
|
4338
|
-
if (this.tsCheckLineTerminator(n) &&
|
|
4338
|
+
if (this.tsCheckLineTerminator(n) && U(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
|
|
4339
4339
|
break;
|
|
4340
4340
|
case "type":
|
|
4341
|
-
if (this.tsCheckLineTerminator(n) &&
|
|
4341
|
+
if (this.tsCheckLineTerminator(n) && U(this.type)) return this.tsParseTypeAliasDeclaration(i);
|
|
4342
4342
|
}
|
|
4343
4343
|
}, p.tsTryParseExportDeclaration = function() {
|
|
4344
4344
|
return this.tsParseDeclaration(this.startNode(), this.value, !0);
|
|
@@ -4349,15 +4349,15 @@ function Es(t) {
|
|
|
4349
4349
|
}, p.isExportDefaultSpecifier = function() {
|
|
4350
4350
|
if (this.tsIsDeclarationStart()) return !1;
|
|
4351
4351
|
var i = this.type;
|
|
4352
|
-
if (
|
|
4352
|
+
if (U(i)) {
|
|
4353
4353
|
if (this.isContextual("async") || this.isContextual("let")) return !1;
|
|
4354
4354
|
if ((i === I.type || i === I.interface) && !this.containsEsc) {
|
|
4355
4355
|
var s = this.lookahead();
|
|
4356
|
-
if (
|
|
4356
|
+
if (U(s.type) && !this.isContextualWithState("from", s) || s.type === o.braceL) return !1;
|
|
4357
4357
|
}
|
|
4358
4358
|
} else if (!this.match(o._default)) return !1;
|
|
4359
4359
|
var n = this.nextTokenStart(), c = this.isUnparsedContextual(n, "from");
|
|
4360
|
-
if (this.input.charCodeAt(n) === 44 ||
|
|
4360
|
+
if (this.input.charCodeAt(n) === 44 || U(this.type) && c) return !0;
|
|
4361
4361
|
if (this.match(o._default) && c) {
|
|
4362
4362
|
var l = this.input.charCodeAt(this.nextTokenStartSince(n + 4));
|
|
4363
4363
|
return l === 34 || l === 39;
|
|
@@ -4413,9 +4413,9 @@ function Es(t) {
|
|
|
4413
4413
|
return i;
|
|
4414
4414
|
}, p.parseImport = function(i) {
|
|
4415
4415
|
var s = this.lookahead();
|
|
4416
|
-
if (i.importKind = "value", this.importOrExportOuterKind = "value",
|
|
4416
|
+
if (i.importKind = "value", this.importOrExportOuterKind = "value", U(s.type) || this.match(o.star) || this.match(o.braceL)) {
|
|
4417
4417
|
var n = this.lookahead(2);
|
|
4418
|
-
if (n.type !== o.comma && !this.isContextualWithState("from", n) && n.type !== o.eq && this.ts_eatContextualWithState("type", 1, s) && (this.importOrExportOuterKind = "type", i.importKind = "type", s = this.lookahead(), n = this.lookahead(2)),
|
|
4418
|
+
if (n.type !== o.comma && !this.isContextualWithState("from", n) && n.type !== o.eq && this.ts_eatContextualWithState("type", 1, s) && (this.importOrExportOuterKind = "type", i.importKind = "type", s = this.lookahead(), n = this.lookahead(2)), U(s.type) && n.type === o.eq) {
|
|
4419
4419
|
this.next();
|
|
4420
4420
|
var c = this.tsParseImportEqualsDeclaration(i);
|
|
4421
4421
|
return this.importOrExportOuterKind = "value", c;
|
|
@@ -4492,7 +4492,7 @@ function Es(t) {
|
|
|
4492
4492
|
if (this.type === I.jsxText) return this.jsx_parseText();
|
|
4493
4493
|
if (this.type === I.jsxTagStart) return this.jsx_parseElement();
|
|
4494
4494
|
if (this.type === I.at) return this.parseDecorators(), this.parseExprAtom();
|
|
4495
|
-
if (
|
|
4495
|
+
if (U(this.type)) {
|
|
4496
4496
|
var c = this.potentialArrowAt === this.start, l = this.start, m = this.startLoc, y = this.containsEsc, x = this.parseIdent(!1);
|
|
4497
4497
|
if (this.options.ecmaVersion >= 8 && !y && x.name === "async" && !this.canInsertSemicolon() && this.eat(o._function)) return this.overrideContext(B.f_expr), this.parseFunction(this.startNodeAt(l, m), 0, !1, !0, s);
|
|
4498
4498
|
if (c && !this.canInsertSemicolon()) {
|
|
@@ -4503,12 +4503,12 @@ function Es(t) {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
return T.prototype.parseExprAtom.call(this, i, s, n);
|
|
4505
4505
|
}, p.parseExprAtomDefault = function() {
|
|
4506
|
-
if (
|
|
4506
|
+
if (U(this.type)) {
|
|
4507
4507
|
var i = this.potentialArrowAt === this.start, s = this.containsEsc, n = this.parseIdent();
|
|
4508
4508
|
if (!s && n.name === "async" && !this.canInsertSemicolon()) {
|
|
4509
4509
|
var c = this.type;
|
|
4510
4510
|
if (c === o._function) return this.next(), this.parseFunction(this.startNodeAtNode(n), void 0, !0, !0);
|
|
4511
|
-
if (
|
|
4511
|
+
if (U(c)) {
|
|
4512
4512
|
if (this.lookaheadCharCode() === 61) {
|
|
4513
4513
|
var l = this.parseIdent(!1);
|
|
4514
4514
|
return !this.canInsertSemicolon() && this.eat(o.arrow) || this.unexpected(), this.parseArrowExpression(this.startNodeAtNode(n), [l], !0);
|
|
@@ -4580,7 +4580,7 @@ function Es(t) {
|
|
|
4580
4580
|
});
|
|
4581
4581
|
var n = this.start, c = this.startLoc, l = this.eatContextual("declare");
|
|
4582
4582
|
!l || !this.ts_isContextual(I.declare) && this.shouldParseExportStatement() || this.raise(this.start, A.ExpectedAmbientAfterExportDeclare);
|
|
4583
|
-
var m =
|
|
4583
|
+
var m = U(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
|
|
4584
4584
|
return m ? ((m.type === "TSInterfaceDeclaration" || m.type === "TSTypeAliasDeclaration" || l) && (i.exportKind = "type"), l && (this.resetStartLocation(m, n, c), m.declare = !0), m) : null;
|
|
4585
4585
|
}, p.parseClassId = function(i, s) {
|
|
4586
4586
|
if (s || !this.isContextual("implements")) {
|
|
@@ -4624,8 +4624,8 @@ function Es(t) {
|
|
|
4624
4624
|
(s.eatContextual("get") || s.eatContextual("set")) && (s.isClassElementNameStart() ? b = W : m = W);
|
|
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
|
|
4628
|
-
|
|
4627
|
+
var H = !l.static && Ve(l, "constructor"), K = 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, K);
|
|
4629
4629
|
} else s.parseClassField(l);
|
|
4630
4630
|
return l;
|
|
4631
4631
|
}
|
|
@@ -4657,7 +4657,7 @@ function Es(t) {
|
|
|
4657
4657
|
var c = !1, l = -1, m = -1, y = -1;
|
|
4658
4658
|
s ? (l = s.parenthesizedAssign, m = s.trailingComma, y = s.doubleProto, s.parenthesizedAssign = s.trailingComma = -1) : (s = new Rt(), c = !0);
|
|
4659
4659
|
var x = this.start, b = this.startLoc;
|
|
4660
|
-
(this.type === o.parenL ||
|
|
4660
|
+
(this.type === o.parenL || U(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = i === "await");
|
|
4661
4661
|
var S = this.parseMaybeConditional(i, s);
|
|
4662
4662
|
if (n && (S = n.call(this, S, x, b)), this.type.isAssign) {
|
|
4663
4663
|
var E = this.startNodeAt(x, b);
|
|
@@ -4665,10 +4665,10 @@ 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, W,
|
|
4668
|
+
var c, l, m, y, x, b, S, E, L, C, W, H = this;
|
|
4669
4669
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
4670
4670
|
if (E = this.cloneCurLookaheadState(), !(L = this.tryParse(function() {
|
|
4671
|
-
return
|
|
4671
|
+
return H.parseMaybeAssignOrigin(i, s, n);
|
|
4672
4672
|
}, E)).error) return L.node;
|
|
4673
4673
|
var K = this.context, $ = K[K.length - 1];
|
|
4674
4674
|
$ === g.tokContexts.tc_oTag && K[K.length - 2] === g.tokContexts.tc_expr ? (K.pop(), K.pop()) : $ !== g.tokContexts.tc_oTag && $ !== g.tokContexts.tc_expr || K.pop();
|
|
@@ -4677,13 +4677,13 @@ function Es(t) {
|
|
|
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
|
-
W =
|
|
4681
|
-
var gt =
|
|
4682
|
-
return (gt.type !== "ArrowFunctionExpression" || (Nt = gt.extra) != null && Nt.parenthesized) && vt(), ((Lt = W) == null ? void 0 : Lt.params.length) !== 0 &&
|
|
4680
|
+
W = H.tsParseTypeParameters();
|
|
4681
|
+
var gt = H.parseMaybeAssignOrigin(i, s, n);
|
|
4682
|
+
return (gt.type !== "ArrowFunctionExpression" || (Nt = gt.extra) != null && Nt.parenthesized) && vt(), ((Lt = W) == null ? void 0 : Lt.params.length) !== 0 && H.resetStartLocationFromNode(gt, W), gt.typeParameters = W, gt;
|
|
4683
4683
|
}, E);
|
|
4684
4684
|
if (!rt.error && !rt.aborted) return W && this.reportReservedArrowTypeParam(W), rt.node;
|
|
4685
4685
|
if (!L && (Fe(!0), !(C = this.tryParse(function() {
|
|
4686
|
-
return
|
|
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
4689
|
if (rt.node) return this.setLookaheadState(rt.failState), W && this.reportReservedArrowTypeParam(W), rt.node;
|
|
@@ -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, W = new Rt(),
|
|
4815
|
+
var x, b = this.start, S = this.startLoc, E = [], L = !0, C = !1, W = new Rt(), H = this.yieldPos, K = 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;
|
|
@@ -4825,8 +4825,8 @@ function Es(t) {
|
|
|
4825
4825
|
E.push(this.parseMaybeAssign(s, W, 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(W, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos =
|
|
4829
|
-
E.length && !C || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(W, !0), this.yieldPos =
|
|
4828
|
+
if (this.expect(o.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(o.arrow)) return this.checkPatternErrors(W, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = H, this.awaitPos = K, this.parseParenArrowList(c, l, E, s);
|
|
4829
|
+
E.length && !C || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(W, !0), this.yieldPos = H || this.yieldPos, this.awaitPos = K || 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,27 +4892,27 @@ 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 W = this.options.ecmaVersion >= 11,
|
|
4896
|
-
c &&
|
|
4895
|
+
var W = this.options.ecmaVersion >= 11, H = W && this.eat(o.questionDot);
|
|
4896
|
+
c && H && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
4897
4897
|
var K = this.eat(o.bracketL);
|
|
4898
|
-
if (K ||
|
|
4898
|
+
if (K || H && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
4899
4899
|
var $ = this.startNodeAt(s, n);
|
|
4900
|
-
$.object = i, K ? ($.property = this.parseExpression(), this.expect(o.bracketR)) : $.property = this.type === o.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), $.computed = !!K, W && ($.optional =
|
|
4900
|
+
$.object = i, K ? ($.property = this.parseExpression(), this.expect(o.bracketR)) : $.property = this.type === o.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), $.computed = !!K, W && ($.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;
|
|
4904
4904
|
var vt = new Rt(), Nt = this.yieldPos, Lt = this.awaitPos, gt = this.awaitIdentPos;
|
|
4905
4905
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
4906
4906
|
var Pe = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, vt);
|
|
4907
|
-
if (l && !
|
|
4907
|
+
if (l && !H && this.shouldParseAsyncArrow()) this.checkPatternErrors(vt, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Nt, this.awaitPos = Lt, this.awaitIdentPos = gt, i = this.parseSubscriptAsyncArrow(s, n, Pe, y);
|
|
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, W && (zt.optional =
|
|
4911
|
+
zt.callee = i, zt.arguments = Pe, W && (zt.optional = H), i = this.finishNode(zt, "CallExpression");
|
|
4912
4912
|
}
|
|
4913
4913
|
this.maybeInArrowParameters = rt;
|
|
4914
4914
|
} else if (this.type === o.backQuote) {
|
|
4915
|
-
(
|
|
4915
|
+
(H || b) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
4916
4916
|
var re = this.startNodeAt(s, n);
|
|
4917
4917
|
re.tag = i, re.quasi = this.parseTemplate({ isTagged: !0 }), i = this.finishNode(re, "TaggedTemplateExpression");
|
|
4918
4918
|
}
|
|
@@ -5118,19 +5118,15 @@ async function Vs() {
|
|
|
5118
5118
|
break;
|
|
5119
5119
|
}
|
|
5120
5120
|
case "MethodDefinition": {
|
|
5121
|
-
const B = j;
|
|
5122
|
-
console.log(
|
|
5123
|
-
const U = B.key;
|
|
5124
|
-
console.log(2222, U);
|
|
5125
|
-
const I = U.name, X = I === "constructor", Ct = U.type === "PrivateIdentifier";
|
|
5126
|
-
console.log(3333, U, X, Ct, B.accessibility), I && !Ct && !X && d.add(I);
|
|
5121
|
+
const B = j, z = B.key, I = z.name, X = I === "constructor", Ct = z.type === "PrivateIdentifier";
|
|
5122
|
+
console.log(3333, I, X, Ct, B.accessibility), I && !Ct && !X && d.add(I);
|
|
5127
5123
|
break;
|
|
5128
5124
|
}
|
|
5129
5125
|
}
|
|
5130
5126
|
for (const B in j) {
|
|
5131
5127
|
if (B === "loc" || B === "range" || B === "start" || B === "end" || B === "comments") continue;
|
|
5132
|
-
const
|
|
5133
|
-
Array.isArray(
|
|
5128
|
+
const z = j[B];
|
|
5129
|
+
Array.isArray(z) ? z.forEach(t) : z && typeof z == "object" && typeof z.type == "string" && t(z);
|
|
5134
5130
|
}
|
|
5135
5131
|
};
|
|
5136
5132
|
console.info("🚀 Building connector configuration...");
|
|
@@ -5204,8 +5200,8 @@ async function Hs() {
|
|
|
5204
5200
|
for (const j of r.dependencies)
|
|
5205
5201
|
if (j.vulnerabilities != null)
|
|
5206
5202
|
for (const B of j.vulnerabilities) {
|
|
5207
|
-
const
|
|
5208
|
-
|
|
5203
|
+
const z = B.severity?.toLowerCase() ?? "unknown";
|
|
5204
|
+
z in a ? a[z]++ : a.unknown++;
|
|
5209
5205
|
}
|
|
5210
5206
|
const u = {
|
|
5211
5207
|
critical: { color: "D32F2F", label: "critical" },
|
|
@@ -5218,9 +5214,9 @@ async function Hs() {
|
|
|
5218
5214
|
console.info("✅ No vulnerabilities found."), d.push(`[](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5219
5215
|
else
|
|
5220
5216
|
for (const [j, B] of Object.entries(a)) {
|
|
5221
|
-
const
|
|
5222
|
-
if (console.warn(`⚠️ ${B} ${
|
|
5223
|
-
const I = `https://img.shields.io/badge/OWASP-${B}%20${
|
|
5217
|
+
const z = u[j];
|
|
5218
|
+
if (console.warn(`⚠️ ${B} ${z.label} vulnerability(ies) found.`), B === 0) continue;
|
|
5219
|
+
const I = `https://img.shields.io/badge/OWASP-${B}%20${z.label}-${z.color}`;
|
|
5224
5220
|
d.push(`[](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5225
5221
|
}
|
|
5226
5222
|
const g = await R.readFile("./README.md", "utf8"), o = g.indexOf(t), w = g.indexOf(e);
|
package/package.json
CHANGED