@datapos/datapos-development 0.3.165 → 0.3.166

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.
@@ -570,8 +570,8 @@ A.parseStatement = function(t, e, r) {
570
570
  var o = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
571
571
  if (o)
572
572
  return e && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), o === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(u, !1, o), this.semicolon(), this.finishNode(u, "VariableDeclaration");
573
- var P = this.value, _ = this.parseExpression();
574
- return a === h.name && _.type === "Identifier" && this.eat(h.colon) ? this.parseLabeledStatement(u, P, _, t) : this.parseExpressionStatement(u, _);
573
+ var P = this.value, I = this.parseExpression();
574
+ return a === h.name && I.type === "Identifier" && this.eat(h.colon) ? this.parseLabeledStatement(u, P, I, t) : this.parseExpressionStatement(u, I);
575
575
  }
576
576
  };
577
577
  A.parseBreakContinueStatement = function(t, e) {
@@ -605,8 +605,8 @@ A.parseForStatement = function(t) {
605
605
  var v = this.startNode();
606
606
  return this.next(), g === "await using" && this.next(), this.parseVar(v, !0, g), this.finishNode(v, "VariableDeclaration"), this.parseForAfterInit(t, v, e);
607
607
  }
608
- var o = this.containsEsc, P = new te(), _ = this.start, R = e > -1 ? this.parseExprSubscripts(P, "await") : this.parseExpression(!0, P);
609
- return this.type === h._in || (d = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === h._in && this.unexpected(e), t.await = !0) : d && this.options.ecmaVersion >= 8 && (R.start === _ && !o && R.type === "Identifier" && R.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (t.await = !1)), f && d && this.raise(R.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(R, !1, P), this.checkLValPattern(R), this.parseForIn(t, R)) : (this.checkExpressionErrors(P, !0), e > -1 && this.unexpected(e), this.parseFor(t, R));
608
+ var o = this.containsEsc, P = new te(), I = this.start, R = e > -1 ? this.parseExprSubscripts(P, "await") : this.parseExpression(!0, P);
609
+ return this.type === h._in || (d = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === h._in && this.unexpected(e), t.await = !0) : d && this.options.ecmaVersion >= 8 && (R.start === I && !o && R.type === "Identifier" && R.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (t.await = !1)), f && d && this.raise(R.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(R, !1, P), this.checkLValPattern(R), this.parseForIn(t, R)) : (this.checkExpressionErrors(P, !0), e > -1 && this.unexpected(e), this.parseFor(t, R));
610
610
  };
611
611
  A.parseForAfterInit = function(t, e, r) {
612
612
  return (this.type === h._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && e.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === h._in ? r > -1 && this.unexpected(r) : t.await = r > -1), this.parseForIn(t, e)) : (r > -1 && this.unexpected(r), this.parseFor(t, e));
@@ -1264,7 +1264,7 @@ N.parseExprOp = function(t, e, r, a, u) {
1264
1264
  g && (f = h.logicalAND.binop);
1265
1265
  var v = this.value;
1266
1266
  this.next();
1267
- var o = this.start, P = this.startLoc, _ = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, u), o, P, f, u), R = this.buildBinary(e, r, t, _, v, d || g);
1267
+ var o = this.start, P = this.startLoc, I = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, u), o, P, f, u), R = this.buildBinary(e, r, t, I, v, d || g);
1268
1268
  return (d && this.type === h.coalesce || g && (this.type === h.logicalOR || this.type === h.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(R, e, r, a, u);
1269
1269
  }
1270
1270
  return t;
@@ -1339,14 +1339,14 @@ N.parseSubscript = function(t, e, r, a, u, f, d) {
1339
1339
  var P = this.startNodeAt(e, r);
1340
1340
  P.object = t, o ? (P.property = this.parseExpression(), this.expect(h.bracketR)) : this.type === h.privateId && t.type !== "Super" ? P.property = this.parsePrivateIdent() : P.property = this.parseIdent(this.options.allowReserved !== "never"), P.computed = !!o, g && (P.optional = v), t = this.finishNode(P, "MemberExpression");
1341
1341
  } else if (!a && this.eat(h.parenL)) {
1342
- var _ = new te(), R = this.yieldPos, K = this.awaitPos, z = this.awaitIdentPos;
1342
+ var I = new te(), R = this.yieldPos, K = this.awaitPos, z = this.awaitIdentPos;
1343
1343
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1344
- var X = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1, _);
1344
+ var X = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1, I);
1345
1345
  if (u && !v && this.shouldParseAsyncArrow())
1346
- return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = R, this.awaitPos = K, this.awaitIdentPos = z, this.parseSubscriptAsyncArrow(e, r, X, d);
1347
- this.checkExpressionErrors(_, !0), this.yieldPos = R || this.yieldPos, this.awaitPos = K || this.awaitPos, this.awaitIdentPos = z || this.awaitIdentPos;
1348
- var I = this.startNodeAt(e, r);
1349
- I.callee = t, I.arguments = X, g && (I.optional = v), t = this.finishNode(I, "CallExpression");
1346
+ return this.checkPatternErrors(I, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = R, this.awaitPos = K, this.awaitIdentPos = z, this.parseSubscriptAsyncArrow(e, r, X, d);
1347
+ this.checkExpressionErrors(I, !0), this.yieldPos = R || this.yieldPos, this.awaitPos = K || this.awaitPos, this.awaitIdentPos = z || this.awaitIdentPos;
1348
+ var _ = this.startNodeAt(e, r);
1349
+ _.callee = t, _.arguments = X, g && (_.optional = v), t = this.finishNode(_, "CallExpression");
1350
1350
  } else if (this.type === h.backQuote) {
1351
1351
  (v || f) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1352
1352
  var et = this.startNodeAt(e, r);
@@ -1384,8 +1384,8 @@ N.parseExprAtom = function(t, e, r) {
1384
1384
  case h._false:
1385
1385
  return a = this.startNode(), a.value = this.type === h._null ? null : this.type === h._true, a.raw = this.type.keyword, this.next(), this.finishNode(a, "Literal");
1386
1386
  case h.parenL:
1387
- var P = this.start, _ = this.parseParenAndDistinguishExpression(u, e);
1388
- return t && (t.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(_) && (t.parenthesizedAssign = P), t.parenthesizedBind < 0 && (t.parenthesizedBind = P)), _;
1387
+ var P = this.start, I = this.parseParenAndDistinguishExpression(u, e);
1388
+ return t && (t.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(I) && (t.parenthesizedAssign = P), t.parenthesizedBind < 0 && (t.parenthesizedBind = P)), I;
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:
@@ -1447,7 +1447,7 @@ N.parseParenAndDistinguishExpression = function(t, e) {
1447
1447
  var r = this.start, a = this.startLoc, u, f = this.options.ecmaVersion >= 8;
1448
1448
  if (this.options.ecmaVersion >= 6) {
1449
1449
  this.next();
1450
- var d = this.start, g = this.startLoc, v = [], o = !0, P = !1, _ = new te(), R = this.yieldPos, K = this.awaitPos, z;
1450
+ var d = this.start, g = this.startLoc, v = [], o = !0, P = !1, I = new te(), R = this.yieldPos, K = this.awaitPos, z;
1451
1451
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== h.parenR; )
1452
1452
  if (o ? o = !1 : this.expect(h.comma), f && this.afterTrailingComma(h.parenR, !0)) {
1453
1453
  P = !0;
@@ -1459,11 +1459,11 @@ N.parseParenAndDistinguishExpression = function(t, e) {
1459
1459
  );
1460
1460
  break;
1461
1461
  } else
1462
- v.push(this.parseMaybeAssign(!1, _, this.parseParenItem));
1463
- var X = this.lastTokEnd, I = this.lastTokEndLoc;
1462
+ v.push(this.parseMaybeAssign(!1, I, this.parseParenItem));
1463
+ var X = this.lastTokEnd, _ = this.lastTokEndLoc;
1464
1464
  if (this.expect(h.parenR), t && this.shouldParseArrow(v) && this.eat(h.arrow))
1465
- return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = R, this.awaitPos = K, this.parseParenArrowList(r, a, v, e);
1466
- (!v.length || P) && this.unexpected(this.lastTokStart), z && this.unexpected(z), this.checkExpressionErrors(_, !0), this.yieldPos = R || this.yieldPos, this.awaitPos = K || this.awaitPos, v.length > 1 ? (u = this.startNodeAt(d, g), u.expressions = v, this.finishNodeAt(u, "SequenceExpression", X, I)) : u = v[0];
1465
+ return this.checkPatternErrors(I, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = R, this.awaitPos = K, this.parseParenArrowList(r, a, v, e);
1466
+ (!v.length || P) && this.unexpected(this.lastTokStart), z && this.unexpected(z), this.checkExpressionErrors(I, !0), this.yieldPos = R || this.yieldPos, this.awaitPos = K || this.awaitPos, v.length > 1 ? (u = this.startNodeAt(d, g), u.expressions = v, this.finishNodeAt(u, "SequenceExpression", X, _)) : u = v[0];
1467
1467
  } else
1468
1468
  u = this.parseParenExpression();
1469
1469
  if (this.options.preserveParens) {
@@ -2890,14 +2890,14 @@ D.readRegexp = function() {
2890
2890
  };
2891
2891
  D.readInt = function(t, e, r) {
2892
2892
  for (var a = this.options.ecmaVersion >= 12 && e === void 0, u = r && this.input.charCodeAt(this.pos) === 48, f = this.pos, d = 0, g = 0, v = 0, o = e ?? 1 / 0; v < o; ++v, ++this.pos) {
2893
- var P = this.input.charCodeAt(this.pos), _ = void 0;
2893
+ var P = this.input.charCodeAt(this.pos), I = void 0;
2894
2894
  if (a && P === 95) {
2895
2895
  u && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), g === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), v === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), g = P;
2896
2896
  continue;
2897
2897
  }
2898
- if (P >= 97 ? _ = P - 97 + 10 : P >= 65 ? _ = P - 65 + 10 : P >= 48 && P <= 57 ? _ = P - 48 : _ = 1 / 0, _ >= t)
2898
+ if (P >= 97 ? I = P - 97 + 10 : P >= 65 ? I = P - 65 + 10 : P >= 48 && P <= 57 ? I = P - 48 : I = 1 / 0, I >= t)
2899
2899
  break;
2900
- g = P, d = d * t + _;
2900
+ g = P, d = d * t + I;
2901
2901
  }
2902
2902
  return a && g === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === f || e != null && this.pos - f !== e ? null : d;
2903
2903
  };
@@ -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 g = d.acorn || xs, v = gs(g), o = g.tokTypes, P = g.keywordTypes, _ = g.isIdentifierStart, R = g.lineBreak, K = g.isNewLine, z = g.tokContexts, X = g.isIdentifierChar, I = v.tokTypes, et = v.tokContexts, se = v.keywordsRegExp, Ti = v.tokenIsLiteralPropertyName, Pi = v.tokenIsTemplate, Ci = v.tokenIsTSDeclarationStart, B = v.tokenIsIdentifier, qt = v.tokenIsKeywordOrIdentifier, ki = v.tokenIsTSTypeOperator;
3322
+ var g = d.acorn || xs, v = gs(g), o = g.tokTypes, P = g.keywordTypes, I = g.isIdentifierStart, R = g.lineBreak, K = g.isNewLine, z = g.tokContexts, X = g.isIdentifierChar, _ = v.tokTypes, et = v.tokContexts, se = v.keywordsRegExp, Ti = v.tokenIsLiteralPropertyName, Pi = v.tokenIsTemplate, Ci = v.tokenIsTSDeclarationStart, B = v.tokenIsIdentifier, qt = v.tokenIsKeywordOrIdentifier, ki = v.tokenIsTSTypeOperator;
3323
3323
  function Ai(T, it, Q) {
3324
3324
  Q === void 0 && (Q = T.length);
3325
3325
  for (var J = it; J < Q; J++) {
@@ -3547,17 +3547,17 @@ function Es(t) {
3547
3547
  var s = this.curContext();
3548
3548
  if (s === et.tc_expr) return this.jsx_readToken();
3549
3549
  if (s === et.tc_oTag || s === et.tc_cTag) {
3550
- if (_(i)) return this.jsx_readWord();
3551
- if (i == 62) return ++this.pos, this.finishToken(I.jsxTagEnd);
3550
+ if (I(i)) return this.jsx_readWord();
3551
+ if (i == 62) return ++this.pos, this.finishToken(_.jsxTagEnd);
3552
3552
  if ((i === 34 || i === 39) && s == et.tc_oTag) return this.jsx_readString(i);
3553
3553
  }
3554
- if (i === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33) return ++this.pos, this.finishToken(I.jsxTagStart);
3554
+ if (i === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33) return ++this.pos, this.finishToken(_.jsxTagStart);
3555
3555
  }
3556
3556
  return T.prototype.readToken.call(this, i);
3557
3557
  }, p.getTokenFromCode = function(i) {
3558
- return this.inType ? this.getTokenFromCodeInType(i) : i === 64 ? (++this.pos, this.finishToken(I.at)) : T.prototype.getTokenFromCode.call(this, i);
3558
+ return this.inType ? this.getTokenFromCodeInType(i) : i === 64 ? (++this.pos, this.finishToken(_.at)) : T.prototype.getTokenFromCode.call(this, i);
3559
3559
  }, p.isAbstractClass = function() {
3560
- return this.ts_isContextual(I.abstract) && this.lookahead().type === o._class;
3560
+ return this.ts_isContextual(_.abstract) && this.lookahead().type === o._class;
3561
3561
  }, p.finishNode = function(i, s) {
3562
3562
  return i.type !== "" && i.end !== 0 ? i : T.prototype.finishNode.call(this, i, s);
3563
3563
  }, p.tryParse = function(i, s) {
@@ -3635,7 +3635,7 @@ function Es(t) {
3635
3635
  }
3636
3636
  return !1;
3637
3637
  }, p.isAbstractConstructorSignature = function() {
3638
- return this.ts_isContextual(I.abstract) && this.lookahead().type === o._new;
3638
+ return this.ts_isContextual(_.abstract) && this.lookahead().type === o._new;
3639
3639
  }, p.nextTokenStartSince = function(i) {
3640
3640
  return ce.lastIndex = i, ce.test(this.input) ? ce.lastIndex : i;
3641
3641
  }, p.lookaheadCharCode = function() {
@@ -3666,7 +3666,7 @@ function Es(t) {
3666
3666
  return this.setLookaheadState(s), c;
3667
3667
  }, p.readWord = function() {
3668
3668
  var i = this.readWord1(), s = o.name;
3669
- return this.keywords.test(i) ? s = P[i] : new RegExp(se).test(i) && (s = I[i]), this.finishToken(s, i);
3669
+ return this.keywords.test(i) ? s = P[i] : new RegExp(se).test(i) && (s = _[i]), this.finishToken(s, i);
3670
3670
  }, p.skipBlockComment = function() {
3671
3671
  var i;
3672
3672
  this.isLookahead || (i = this.options.onComment && this.curPosition());
@@ -3715,7 +3715,7 @@ function Es(t) {
3715
3715
  }, p.isContextualWithState = function(i, s) {
3716
3716
  return s.type === o.name && s.value === i && !s.containsEsc;
3717
3717
  }, p.tsIsStartOfMappedType = function() {
3718
- return this.next(), this.eat(o.plusMin) ? this.ts_isContextual(I.readonly) : (this.ts_isContextual(I.readonly) && this.next(), !!this.match(o.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(o._in))));
3718
+ return this.next(), this.eat(o.plusMin) ? this.ts_isContextual(_.readonly) : (this.ts_isContextual(_.readonly) && this.next(), !!this.match(o.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(o._in))));
3719
3719
  }, p.tsInDisallowConditionalTypesContext = function(i) {
3720
3720
  var s = this.inDisallowConditionalTypesContext;
3721
3721
  this.inDisallowConditionalTypesContext = !0;
@@ -3738,7 +3738,7 @@ function Es(t) {
3738
3738
  return !1;
3739
3739
  }, p.ts_eatContextualWithState = function(i, s, n) {
3740
3740
  if (se.test(i)) {
3741
- if (this.ts_isContextualWithState(n, I[i])) {
3741
+ if (this.ts_isContextualWithState(n, _[i])) {
3742
3742
  for (var c = 0; c < s; c++) this.next();
3743
3743
  return !0;
3744
3744
  }
@@ -3750,7 +3750,7 @@ function Es(t) {
3750
3750
  }, p.canHaveLeadingDecorator = function() {
3751
3751
  return this.match(o._class);
3752
3752
  }, p.eatContextual = function(i) {
3753
- return se.test(i) ? !!this.ts_isContextual(I[i]) && (this.next(), !0) : T.prototype.eatContextual.call(this, i);
3753
+ return se.test(i) ? !!this.ts_isContextual(_[i]) && (this.next(), !0) : T.prototype.eatContextual.call(this, i);
3754
3754
  }, p.tsIsExternalModuleReference = function() {
3755
3755
  return this.isContextual("require") && this.lookaheadCharCode() === 40;
3756
3756
  }, p.tsParseExternalModuleReference = function() {
@@ -3776,7 +3776,7 @@ function Es(t) {
3776
3776
  }
3777
3777
  return this.next(), T.prototype.exitScope.call(this), this.finishNode(i, "TSModuleBlock");
3778
3778
  }, p.tsParseAmbientExternalModuleDeclaration = function(i) {
3779
- return this.ts_isContextual(I.global) ? (i.global = !0, i.id = this.parseIdent()) : this.match(o.string) ? i.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (T.prototype.enterScope.call(this, Lt), i.body = this.tsParseModuleBlock(), T.prototype.exitScope.call(this)) : T.prototype.semicolon.call(this), this.finishNode(i, "TSModuleDeclaration");
3779
+ return this.ts_isContextual(_.global) ? (i.global = !0, i.id = this.parseIdent()) : this.match(o.string) ? i.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (T.prototype.enterScope.call(this, Lt), i.body = this.tsParseModuleBlock(), T.prototype.exitScope.call(this)) : T.prototype.semicolon.call(this), this.finishNode(i, "TSModuleDeclaration");
3780
3780
  }, p.tsTryParseDeclare = function(i) {
3781
3781
  var s = this;
3782
3782
  if (!this.isLineTerminator()) {
@@ -3784,10 +3784,10 @@ function Es(t) {
3784
3784
  return this.isContextual("let") && (c = o._var, n = "let"), this.tsInAmbientContext(function() {
3785
3785
  if (c === o._function) return i.declare = !0, s.parseFunctionStatement(i, !1, !0);
3786
3786
  if (c === o._class) return i.declare = !0, s.parseClass(i, !0);
3787
- if (c === I.enum) return s.tsParseEnumDeclaration(i, { declare: !0 });
3788
- if (c === I.global) return s.tsParseAmbientExternalModuleDeclaration(i);
3787
+ if (c === _.enum) return s.tsParseEnumDeclaration(i, { declare: !0 });
3788
+ if (c === _.global) return s.tsParseAmbientExternalModuleDeclaration(i);
3789
3789
  if (c === o._const || c === o._var) return s.match(o._const) && s.isLookaheadContextual("enum") ? (s.expect(o._const), s.tsParseEnumDeclaration(i, { const: !0, declare: !0 })) : (i.declare = !0, s.parseVarStatement(i, n || s.value, !0));
3790
- if (c === I.interface) {
3790
+ if (c === _.interface) {
3791
3791
  var l = s.tsParseInterfaceDeclaration(i, { declare: !0 });
3792
3792
  if (l) return l;
3793
3793
  }
@@ -3880,7 +3880,7 @@ function Es(t) {
3880
3880
  return s.type !== "Identifier" && s.type !== "RestElement" && s.type !== "ObjectPattern" && s.type !== "ArrayPattern" && i.raise(s.start, w.UnsupportedSignatureParameterKind(s.type)), s;
3881
3881
  });
3882
3882
  }, p.tsParseTypePredicateAsserts = function() {
3883
- if (this.type !== I.asserts) return !1;
3883
+ if (this.type !== _.asserts) return !1;
3884
3884
  var i = this.containsEsc;
3885
3885
  return this.next(), !(!B(this.type) && !this.match(o._this) || (i && this.raise(this.lastTokStart, "Escape sequence in keyword asserts"), 0));
3886
3886
  }, p.tsParseThisTypeNode = function() {
@@ -4257,7 +4257,7 @@ function Es(t) {
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) {
4259
4259
  if (this.match(o._class)) return i.abstract = !0, this.parseClass(i, !0);
4260
- if (this.ts_isContextual(I.interface)) {
4260
+ if (this.ts_isContextual(_.interface)) {
4261
4261
  if (!this.hasFollowingLineBreak()) return i.abstract = !0, this.tsParseInterfaceDeclaration(i);
4262
4262
  } else this.unexpected(i.start);
4263
4263
  }, p.tsIsDeclarationStart = function() {
@@ -4284,7 +4284,7 @@ function Es(t) {
4284
4284
  var i = this.type, s = this.isAsyncFunction(), n = this.isLet();
4285
4285
  if (B(i)) {
4286
4286
  if (s && !this.containsEsc || n) return !1;
4287
- if ((i === I.type || i === I.interface) && !this.containsEsc) {
4287
+ if ((i === _.type || i === _.interface) && !this.containsEsc) {
4288
4288
  var c = this.lookahead();
4289
4289
  if (B(c.type) && !this.isContextualWithState("from", c) || c.type === o.braceL) return !1;
4290
4290
  }
@@ -4317,7 +4317,7 @@ function Es(t) {
4317
4317
  }, p.tsParseTypeAliasDeclaration = function(i) {
4318
4318
  var s = this;
4319
4319
  return i.id = this.parseIdent(), this.checkLValSimple(i.id, 6), i.typeAnnotation = this.tsInType(function() {
4320
- if (i.typeParameters = s.tsTryParseTypeParameters(s.tsParseInOutModifiers.bind(s)), s.expect(o.eq), s.ts_isContextual(I.interface) && s.lookahead().type !== o.dot) {
4320
+ if (i.typeParameters = s.tsTryParseTypeParameters(s.tsParseInOutModifiers.bind(s)), s.expect(o.eq), s.ts_isContextual(_.interface) && s.lookahead().type !== o.dot) {
4321
4321
  var n = s.startNode();
4322
4322
  return s.next(), s.finishNode(n, "TSIntrinsicKeyword");
4323
4323
  }
@@ -4351,7 +4351,7 @@ function Es(t) {
4351
4351
  var i = this.type;
4352
4352
  if (B(i)) {
4353
4353
  if (this.isContextual("async") || this.isContextual("let")) return !1;
4354
- if ((i === I.type || i === I.interface) && !this.containsEsc) {
4354
+ if ((i === _.type || i === _.interface) && !this.containsEsc) {
4355
4355
  var s = this.lookahead();
4356
4356
  if (B(s.type) && !this.isContextualWithState("from", s) || s.type === o.braceL) return !1;
4357
4357
  }
@@ -4427,7 +4427,7 @@ function Es(t) {
4427
4427
  var i = this.startNode();
4428
4428
  return this.next(), i.abstract = !0, this.parseClass(i, !0);
4429
4429
  }
4430
- if (this.match(I.interface)) {
4430
+ if (this.match(_.interface)) {
4431
4431
  var s = this.tsParseInterfaceDeclaration(this.startNode());
4432
4432
  if (s) return s;
4433
4433
  }
@@ -4447,7 +4447,7 @@ function Es(t) {
4447
4447
  }, p.parseExport = function(i, s) {
4448
4448
  var n = this.lookahead();
4449
4449
  if (this.ts_eatWithState(o._import, 2, n)) {
4450
- this.ts_isContextual(I.type) && this.lookaheadCharCode() !== 61 ? (i.importKind = "type", this.importOrExportOuterKind = "type", this.next()) : (i.importKind = "value", this.importOrExportOuterKind = "value");
4450
+ this.ts_isContextual(_.type) && this.lookaheadCharCode() !== 61 ? (i.importKind = "type", this.importOrExportOuterKind = "type", this.next()) : (i.importKind = "value", this.importOrExportOuterKind = "value");
4451
4451
  var c = this.tsParseImportEqualsDeclaration(i, !0);
4452
4452
  return this.importOrExportOuterKind = void 0, c;
4453
4453
  }
@@ -4459,7 +4459,7 @@ function Es(t) {
4459
4459
  var m = i;
4460
4460
  return this.expectContextual("namespace"), m.id = this.parseIdent(), this.semicolon(), this.importOrExportOuterKind = void 0, this.finishNode(m, "TSNamespaceExportDeclaration");
4461
4461
  }
4462
- if (this.ts_isContextualWithState(n, I.type) && this.lookahead(2).type === o.braceL ? (this.next(), this.importOrExportOuterKind = "type", i.exportKind = "type") : (this.importOrExportOuterKind = "value", i.exportKind = "value"), this.next(), this.eat(o.star)) return this.parseExportAllDeclaration(i, s);
4462
+ if (this.ts_isContextualWithState(n, _.type) && this.lookahead(2).type === o.braceL ? (this.next(), this.importOrExportOuterKind = "type", i.exportKind = "type") : (this.importOrExportOuterKind = "value", i.exportKind = "value"), this.next(), this.eat(o.star)) return this.parseExportAllDeclaration(i, s);
4463
4463
  if (this.eat(o._default)) return this.checkExport(s, "default", this.lastTokStart), i.declaration = this.parseExportDefaultDeclaration(), this.finishNode(i, "ExportDefaultDeclaration");
4464
4464
  if (this.shouldParseExportStatement()) i.declaration = this.parseExportDeclaration(i), i.declaration.type === "VariableDeclaration" ? this.checkVariableExport(s, i.declaration.declarations) : this.checkExport(s, i.declaration.id, i.declaration.id.start), i.specifiers = [], i.source = null;
4465
4465
  else {
@@ -4489,9 +4489,9 @@ function Es(t) {
4489
4489
  return T.prototype.toAssignableList.call(this, i, s);
4490
4490
  }, p.reportReservedArrowTypeParam = function(i) {
4491
4491
  }, p.parseExprAtom = function(i, s, n) {
4492
- if (this.type === I.jsxText) return this.jsx_parseText();
4493
- if (this.type === I.jsxTagStart) return this.jsx_parseElement();
4494
- if (this.type === I.at) return this.parseDecorators(), this.parseExprAtom();
4492
+ if (this.type === _.jsxText) return this.jsx_parseText();
4493
+ if (this.type === _.jsxTagStart) return this.jsx_parseElement();
4494
+ if (this.type === _.at) return this.parseDecorators(), this.parseExprAtom();
4495
4495
  if (B(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(z.f_expr), this.parseFunction(this.startNodeAt(l, m), 0, !1, !0, s);
@@ -4534,12 +4534,12 @@ function Es(t) {
4534
4534
  }
4535
4535
  return l;
4536
4536
  }, p.parseStatement = function(i, s, n) {
4537
- if (this.match(I.at) && this.parseDecorators(!0), this.match(o._const) && this.isLookaheadContextual("enum")) {
4537
+ if (this.match(_.at) && this.parseDecorators(!0), this.match(o._const) && this.isLookaheadContextual("enum")) {
4538
4538
  var c = this.startNode();
4539
4539
  return this.expect(o._const), this.tsParseEnumDeclaration(c, { const: !0 });
4540
4540
  }
4541
- if (this.ts_isContextual(I.enum)) return this.tsParseEnumDeclaration(this.startNode());
4542
- if (this.ts_isContextual(I.interface)) {
4541
+ if (this.ts_isContextual(_.enum)) return this.tsParseEnumDeclaration(this.startNode());
4542
+ if (this.ts_isContextual(_.interface)) {
4543
4543
  var l = this.tsParseInterfaceDeclaration(this.startNode());
4544
4544
  if (l) return l;
4545
4545
  }
@@ -4551,7 +4551,7 @@ function Es(t) {
4551
4551
  }, p.parseExpressionStatement = function(i, s) {
4552
4552
  return (s.type === "Identifier" ? this.tsParseExpressionStatement(i, s) : void 0) || T.prototype.parseExpressionStatement.call(this, i, s);
4553
4553
  }, p.shouldParseExportStatement = function() {
4554
- return !!this.tsIsDeclarationStart() || !!this.match(I.at) || T.prototype.shouldParseExportStatement.call(this);
4554
+ return !!this.tsIsDeclarationStart() || !!this.match(_.at) || T.prototype.shouldParseExportStatement.call(this);
4555
4555
  }, p.parseConditional = function(i, s, n, c, l) {
4556
4556
  if (this.eat(o.question)) {
4557
4557
  var m = this.startNodeAt(s, n);
@@ -4575,11 +4575,11 @@ function Es(t) {
4575
4575
  return i;
4576
4576
  }, p.parseExportDeclaration = function(i) {
4577
4577
  var s = this;
4578
- if (!this.isAmbientContext && this.ts_isContextual(I.declare)) return this.tsInAmbientContext(function() {
4578
+ if (!this.isAmbientContext && this.ts_isContextual(_.declare)) return this.tsInAmbientContext(function() {
4579
4579
  return s.parseExportDeclaration(i);
4580
4580
  });
4581
4581
  var n = this.start, c = this.startLoc, l = this.eatContextual("declare");
4582
- !l || !this.ts_isContextual(I.declare) && this.shouldParseExportStatement() || this.raise(this.start, w.ExpectedAmbientAfterExportDeclare);
4582
+ !l || !this.ts_isContextual(_.declare) && this.shouldParseExportStatement() || this.raise(this.start, w.ExpectedAmbientAfterExportDeclare);
4583
4583
  var m = B(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) {
@@ -4690,7 +4690,7 @@ function Es(t) {
4690
4690
  if ((m = k) != null && m.node) return this.setLookaheadState(k.failState), k.node;
4691
4691
  throw (y = L) != null && y.thrown ? L.error : rt.thrown ? rt.error : (x = k) != null && x.thrown ? k.error : ((b = L) == null ? void 0 : b.error) || rt.error || ((S = k) == null ? void 0 : S.error);
4692
4692
  }, p.parseAssignableListItem = function(i) {
4693
- for (var s = []; this.match(I.at); ) s.push(this.parseDecorator());
4693
+ for (var s = []; this.match(_.at); ) s.push(this.parseDecorator());
4694
4694
  var n, c = this.start, l = this.startLoc, m = !1, y = !1;
4695
4695
  if (i !== void 0) {
4696
4696
  var x = {};
@@ -4924,7 +4924,7 @@ function Es(t) {
4924
4924
  }, p.parseProperty = function(i, s) {
4925
4925
  if (!i) {
4926
4926
  var n = [];
4927
- if (this.match(I.at)) for (; this.match(I.at); ) n.push(this.parseDecorator());
4927
+ if (this.match(_.at)) for (; this.match(_.at); ) n.push(this.parseDecorator());
4928
4928
  var c = T.prototype.parseProperty.call(this, i, s);
4929
4929
  return c.type === "SpreadElement" && n.length && this.raise(c.start, "Decorators can't be used with SpreadElement"), n.length && (c.decorators = n, n = []), c;
4930
4930
  }
@@ -4944,7 +4944,7 @@ function Es(t) {
4944
4944
  var l = this.enterClassBody(), m = this.startNode(), y = !1;
4945
4945
  m.body = [];
4946
4946
  var x = [];
4947
- for (this.expect(o.braceL); this.type !== o.braceR; ) if (this.match(I.at)) x.push(this.parseDecorator());
4947
+ for (this.expect(o.braceL); this.type !== o.braceR; ) if (this.match(_.at)) x.push(this.parseDecorator());
4948
4948
  else {
4949
4949
  var b = this.parseClassElement(i.superClass !== null);
4950
4950
  x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" && Ss(l, b) && this.raiseRecoverable(b.key.start, "Identifier '#" + b.key.name + "' has already been declared"));
@@ -4974,14 +4974,14 @@ function Es(t) {
4974
4974
  var c = new this(n, i, s);
4975
4975
  return a && (c.isAmbientContext = !0), c.nextToken(), c.parseExpression();
4976
4976
  }, p.parseImportSpecifier = function() {
4977
- if (this.ts_isContextual(I.type)) {
4977
+ if (this.ts_isContextual(_.type)) {
4978
4978
  var i = this.startNode();
4979
4979
  return i.imported = this.parseModuleExportName(), this.parseTypeOnlyImportExportSpecifier(i, !0, this.importOrExportOuterKind === "type"), this.finishNode(i, "ImportSpecifier");
4980
4980
  }
4981
4981
  var s = T.prototype.parseImportSpecifier.call(this);
4982
4982
  return s.importKind = "value", s;
4983
4983
  }, p.parseExportSpecifier = function(i) {
4984
- var s = this.ts_isContextual(I.type);
4984
+ var s = this.ts_isContextual(_.type);
4985
4985
  if (!this.match(o.string) && s) {
4986
4986
  var n = this.startNode();
4987
4987
  return n.local = this.parseModuleExportName(), this.parseTypeOnlyImportExportSpecifier(n, !1, this.importOrExportOuterKind === "type"), this.finishNode(n, "ExportSpecifier"), this.checkExport(i, n.exported, n.exported.start), n;
@@ -5010,7 +5010,7 @@ function Es(t) {
5010
5010
  var n = this.curContext();
5011
5011
  n == et.tc_oTag ? this.context.push(z.b_expr) : n == et.tc_expr ? this.context.push(z.b_tmpl) : T.prototype.updateContext.call(this, i), this.exprAllowed = !0;
5012
5012
  } else {
5013
- if (s !== o.slash || i !== I.jsxTagStart) return T.prototype.updateContext.call(this, i);
5013
+ if (s !== o.slash || i !== _.jsxTagStart) return T.prototype.updateContext.call(this, i);
5014
5014
  this.context.length -= 2, this.context.push(et.tc_cTag), this.exprAllowed = !1;
5015
5015
  }
5016
5016
  }, p.jsx_parseOpeningElementAt = function(i, s) {
@@ -5021,8 +5021,8 @@ function Es(t) {
5021
5021
  });
5022
5022
  m && (c.typeParameters = m);
5023
5023
  }
5024
- for (c.attributes = []; this.type !== o.slash && this.type !== I.jsxTagEnd; ) c.attributes.push(this.jsx_parseAttribute());
5025
- return c.selfClosing = this.eat(o.slash), this.expect(I.jsxTagEnd), this.finishNode(c, l ? "JSXOpeningElement" : "JSXOpeningFragment");
5024
+ for (c.attributes = []; this.type !== o.slash && this.type !== _.jsxTagEnd; ) c.attributes.push(this.jsx_parseAttribute());
5025
+ return c.selfClosing = this.eat(o.slash), this.expect(_.jsxTagEnd), this.finishNode(c, l ? "JSXOpeningElement" : "JSXOpeningFragment");
5026
5026
  }, p.enterScope = function(i) {
5027
5027
  i === Lt && this.importsStack.push([]), T.prototype.enterScope.call(this, i);
5028
5028
  var s = T.prototype.currentScope.call(this);
@@ -5088,11 +5088,11 @@ async function Ds(t) {
5088
5088
  try {
5089
5089
  const P = await M.stat(o);
5090
5090
  if (P.isDirectory()) {
5091
- const _ = await M.readdir(o), R = { childCount: _.length, name: v, typeId: "folder" };
5092
- d.push(R), await r(o, _);
5091
+ const I = await M.readdir(o), R = { childCount: I.length, name: v, typeId: "folder" };
5092
+ d.push(R), await r(o, I);
5093
5093
  } else {
5094
- const _ = { id: Ii(), lastModifiedAt: P.mtimeMs, name: v, size: P.size, typeId: "object" };
5095
- d.push(_);
5094
+ const I = { id: Ii(), lastModifiedAt: P.mtimeMs, name: v, size: P.size, typeId: "object" };
5095
+ d.push(I);
5096
5096
  }
5097
5097
  } catch (P) {
5098
5098
  throw new Error(`Unable to get information for '${v}' in 'buildPublicDirectoryIndex'. ${String(P)}`);
@@ -5113,13 +5113,13 @@ async function Vs() {
5113
5113
  try {
5114
5114
  let t = function(P) {
5115
5115
  if (P.type === "MethodDefinition") {
5116
- const _ = P, K = _.key.name, z = K === "constructor", X = _.accessibility ?? !1;
5116
+ const I = P, K = I.key.name, z = K === "constructor", X = I.accessibility ?? !1;
5117
5117
  K && !z && !X && (v.push(K), Is.includes(K) && (u = !0), _s.includes(K) && (f = !0));
5118
5118
  }
5119
- for (const _ in P) {
5120
- if (_ === "loc" || _ === "range" || _ === "start" || _ === "end" || _ === "comments") continue;
5121
- console.log(1111, P);
5122
- const R = P[_];
5119
+ for (const I in P) {
5120
+ if (I === "loc" || I === "range" || I === "start" || I === "end" || I === "comments") continue;
5121
+ console.log(1111, I, P);
5122
+ const R = P[I];
5123
5123
  console.log(2222, R), Array.isArray(R) ? R.forEach(t) : R && typeof R == "object" && typeof R.type == "string" && t(R);
5124
5124
  }
5125
5125
  };
@@ -5205,12 +5205,12 @@ async function Hs() {
5205
5205
  for (const [K, z] of Object.entries(a)) {
5206
5206
  const X = u[K];
5207
5207
  if (console.warn(`⚠️ ${z} ${X.label} vulnerability(ies) found.`), z === 0) continue;
5208
- const I = `https://img.shields.io/badge/OWASP-${z}%20${X.label}-${X.color}`;
5209
- d.push(`[![OWASP](${I})](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
5208
+ const _ = `https://img.shields.io/badge/OWASP-${z}%20${X.label}-${X.color}`;
5209
+ d.push(`[![OWASP](${_})](https://data-positioning.github.io/${f.id}/dependency-check-reports/dependency-check-report.html)`);
5210
5210
  }
5211
5211
  const v = await M.readFile("./README.md", "utf8"), o = v.indexOf(t), P = v.indexOf(e);
5212
5212
  (o === -1 || P === -1) && (console.error("❌ OWASP badge markers not found in README.md."), process.exit(1));
5213
- const _ = d.join(" "), R = v.substring(0, o + t.length) + _ + v.substring(P);
5213
+ const I = d.join(" "), R = v.substring(0, o + t.length) + I + v.substring(P);
5214
5214
  await M.writeFile("README.md", R, "utf8"), console.info("✅ OWASP dependency check badge(s) inserted into README.md");
5215
5215
  } catch (r) {
5216
5216
  console.error("❌ Error updating README with OWASP badges:", r), process.exit(1);
@@ -5246,11 +5246,11 @@ async function zs(t, e) {
5246
5246
  for (const g of d) {
5247
5247
  const v = `${u}/${g}`, o = `${f}/${g}`;
5248
5248
  if ((await M.stat(v)).isDirectory()) {
5249
- const _ = await M.readdir(v);
5250
- await r(v, o, _);
5249
+ const I = await M.readdir(v);
5250
+ await r(v, o, I);
5251
5251
  } else {
5252
5252
  console.info(`⚙️ Uploading '${u}/${g}'...`);
5253
- const _ = `wrangler r2 object put "datapos-sample-data-eu/${f}/${g}" --file="${u}/${g}" --jurisdiction=eu --remote`, R = await Dt(_);
5253
+ const I = `wrangler r2 object put "datapos-sample-data-eu/${f}/${g}" --file="${u}/${g}" --jurisdiction=eu --remote`, R = await Dt(I);
5254
5254
  if (R.stderr) throw new Error(R.stderr);
5255
5255
  }
5256
5256
  }
@@ -5284,9 +5284,9 @@ async function Gs(t) {
5284
5284
  for (const g of d) {
5285
5285
  const v = `${u}/${g.name}`, o = f ? `${f}/${g.name}` : g.name;
5286
5286
  if (!g.isDirectory()) {
5287
- const P = `${t}_${r}/${o}`.replace(/\\/g, "/"), _ = g.name.endsWith(".js") ? "application/javascript" : g.name.endsWith(".css") ? "text/css" : "application/octet-stream";
5287
+ const P = `${t}_${r}/${o}`.replace(/\\/g, "/"), I = g.name.endsWith(".js") ? "application/javascript" : g.name.endsWith(".css") ? "text/css" : "application/octet-stream";
5288
5288
  console.info(`⚙️ Uploading '${o}' → '${P}'...`);
5289
- const { stderr: R } = await Dt(`wrangler r2 object put "${P}" --file="${v}" --content-type ${_} --jurisdiction=eu --remote`);
5289
+ const { stderr: R } = await Dt(`wrangler r2 object put "${P}" --file="${v}" --content-type ${I} --jurisdiction=eu --remote`);
5290
5290
  if (R) throw new Error(R);
5291
5291
  }
5292
5292
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.165",
3
+ "version": "0.3.166",
4
4
  "description": "A library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",