@digipair/skill-mongodb 0.21.2 → 0.21.7
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/index.cjs.js +13 -9
- package/index.esm.js +13 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -20414,6 +20414,7 @@ about the parse state.
|
|
|
20414
20414
|
var _a;
|
|
20415
20415
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
20416
20416
|
var parser = this.p.parser;
|
|
20417
|
+
if (this.reducePos < this.pos - 25 /* Lookahead.Margin */ ) this.setLookAhead(this.pos);
|
|
20417
20418
|
var dPrec = parser.dynamicPrecedence(type);
|
|
20418
20419
|
if (dPrec) this.score += dPrec;
|
|
20419
20420
|
if (depth == 0) {
|
|
@@ -21366,7 +21367,7 @@ function cutAt(tree, pos, side) {
|
|
|
21366
21367
|
cursor.moveTo(pos);
|
|
21367
21368
|
for(;;){
|
|
21368
21369
|
if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
|
|
21369
|
-
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /*
|
|
21370
|
+
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Lookahead.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Lookahead.Margin */ ));
|
|
21370
21371
|
if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
|
|
21371
21372
|
if (!cursor.parent()) return side < 0 ? 0 : tree.length;
|
|
21372
21373
|
}
|
|
@@ -21489,7 +21490,7 @@ var TokenCache$1 = /*#__PURE__*/ function() {
|
|
|
21489
21490
|
token.mask = mask;
|
|
21490
21491
|
token.context = context;
|
|
21491
21492
|
}
|
|
21492
|
-
if (token.lookAhead > token.end + 25 /*
|
|
21493
|
+
if (token.lookAhead > token.end + 25 /* Lookahead.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
|
|
21493
21494
|
if (token.value != 0 /* Term.Err */ ) {
|
|
21494
21495
|
var startIndex = actionIndex;
|
|
21495
21496
|
if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
|
|
@@ -23580,14 +23581,14 @@ function indent(str, spaces) {
|
|
|
23580
23581
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23581
23582
|
// match is required
|
|
23582
23583
|
if (!match) {
|
|
23583
|
-
return
|
|
23584
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23584
23585
|
v: nextMatch1
|
|
23585
23586
|
};
|
|
23586
23587
|
}
|
|
23587
23588
|
var token = match.token, offset = match.offset;
|
|
23588
23589
|
i1 += offset;
|
|
23589
23590
|
if (token === " ") {
|
|
23590
|
-
return
|
|
23591
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23591
23592
|
}
|
|
23592
23593
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23593
23594
|
token
|
|
@@ -23606,7 +23607,7 @@ function indent(str, spaces) {
|
|
|
23606
23607
|
if (contextKeys.some(function(el) {
|
|
23607
23608
|
return el.startsWith(name);
|
|
23608
23609
|
})) {
|
|
23609
|
-
return
|
|
23610
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23610
23611
|
}
|
|
23611
23612
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23612
23613
|
return el === name;
|
|
@@ -23625,9 +23626,9 @@ function indent(str, spaces) {
|
|
|
23625
23626
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23626
23627
|
return el.startsWith(name);
|
|
23627
23628
|
})) {
|
|
23628
|
-
return
|
|
23629
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23629
23630
|
}
|
|
23630
|
-
return
|
|
23631
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23631
23632
|
v: nextMatch1
|
|
23632
23633
|
};
|
|
23633
23634
|
};
|
|
@@ -24430,6 +24431,7 @@ var parser = LRParser.deserialize({
|
|
|
24430
24431
|
},
|
|
24431
24432
|
dynamicPrecedences: {
|
|
24432
24433
|
"31": -1,
|
|
24434
|
+
"67": 1,
|
|
24433
24435
|
"71": -1,
|
|
24434
24436
|
"73": -1
|
|
24435
24437
|
},
|
|
@@ -27431,7 +27433,9 @@ const applyTemplate = (value, context)=>{
|
|
|
27431
27433
|
result = template(context);
|
|
27432
27434
|
if (result.startsWith('EVALUATE:')) {
|
|
27433
27435
|
const path = result.replace(/^EVALUATE:/, '');
|
|
27434
|
-
result = evaluate(path, context
|
|
27436
|
+
result = evaluate(path, _extends$1({}, context, {
|
|
27437
|
+
getTime: (time)=>new Date(time).getTime()
|
|
27438
|
+
}));
|
|
27435
27439
|
}
|
|
27436
27440
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
27437
27441
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|
|
@@ -71139,7 +71143,7 @@ var HEADERS_TO_IGNORE = {
|
|
|
71139
71143
|
// credentials: { accessKeyId, secretAccessKey, [sessionToken] }
|
|
71140
71144
|
function RequestSigner(request, credentials) {
|
|
71141
71145
|
if (typeof request === "string") request = url.parse(request);
|
|
71142
|
-
var headers = request.headers = request.headers || {}, hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host);
|
|
71146
|
+
var headers = request.headers = Object.assign({}, request.headers || {}), hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host);
|
|
71143
71147
|
this.request = request;
|
|
71144
71148
|
this.credentials = credentials || this.defaultCredentials();
|
|
71145
71149
|
this.service = request.service || hostParts[0] || "";
|
package/index.esm.js
CHANGED
|
@@ -20364,6 +20364,7 @@ about the parse state.
|
|
|
20364
20364
|
var _a;
|
|
20365
20365
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
20366
20366
|
var parser = this.p.parser;
|
|
20367
|
+
if (this.reducePos < this.pos - 25 /* Lookahead.Margin */ ) this.setLookAhead(this.pos);
|
|
20367
20368
|
var dPrec = parser.dynamicPrecedence(type);
|
|
20368
20369
|
if (dPrec) this.score += dPrec;
|
|
20369
20370
|
if (depth == 0) {
|
|
@@ -21316,7 +21317,7 @@ function cutAt(tree, pos, side) {
|
|
|
21316
21317
|
cursor.moveTo(pos);
|
|
21317
21318
|
for(;;){
|
|
21318
21319
|
if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
|
|
21319
|
-
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /*
|
|
21320
|
+
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Lookahead.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Lookahead.Margin */ ));
|
|
21320
21321
|
if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
|
|
21321
21322
|
if (!cursor.parent()) return side < 0 ? 0 : tree.length;
|
|
21322
21323
|
}
|
|
@@ -21439,7 +21440,7 @@ var TokenCache$1 = /*#__PURE__*/ function() {
|
|
|
21439
21440
|
token.mask = mask;
|
|
21440
21441
|
token.context = context;
|
|
21441
21442
|
}
|
|
21442
|
-
if (token.lookAhead > token.end + 25 /*
|
|
21443
|
+
if (token.lookAhead > token.end + 25 /* Lookahead.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
|
|
21443
21444
|
if (token.value != 0 /* Term.Err */ ) {
|
|
21444
21445
|
var startIndex = actionIndex;
|
|
21445
21446
|
if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
|
|
@@ -23530,14 +23531,14 @@ function indent(str, spaces) {
|
|
|
23530
23531
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23531
23532
|
// match is required
|
|
23532
23533
|
if (!match) {
|
|
23533
|
-
return
|
|
23534
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23534
23535
|
v: nextMatch1
|
|
23535
23536
|
};
|
|
23536
23537
|
}
|
|
23537
23538
|
var token = match.token, offset = match.offset;
|
|
23538
23539
|
i1 += offset;
|
|
23539
23540
|
if (token === " ") {
|
|
23540
|
-
return
|
|
23541
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23541
23542
|
}
|
|
23542
23543
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23543
23544
|
token
|
|
@@ -23556,7 +23557,7 @@ function indent(str, spaces) {
|
|
|
23556
23557
|
if (contextKeys.some(function(el) {
|
|
23557
23558
|
return el.startsWith(name);
|
|
23558
23559
|
})) {
|
|
23559
|
-
return
|
|
23560
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23560
23561
|
}
|
|
23561
23562
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23562
23563
|
return el === name;
|
|
@@ -23575,9 +23576,9 @@ function indent(str, spaces) {
|
|
|
23575
23576
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23576
23577
|
return el.startsWith(name);
|
|
23577
23578
|
})) {
|
|
23578
|
-
return
|
|
23579
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23579
23580
|
}
|
|
23580
|
-
return
|
|
23581
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23581
23582
|
v: nextMatch1
|
|
23582
23583
|
};
|
|
23583
23584
|
};
|
|
@@ -24380,6 +24381,7 @@ var parser = LRParser.deserialize({
|
|
|
24380
24381
|
},
|
|
24381
24382
|
dynamicPrecedences: {
|
|
24382
24383
|
"31": -1,
|
|
24384
|
+
"67": 1,
|
|
24383
24385
|
"71": -1,
|
|
24384
24386
|
"73": -1
|
|
24385
24387
|
},
|
|
@@ -27381,7 +27383,9 @@ const applyTemplate = (value, context)=>{
|
|
|
27381
27383
|
result = template(context);
|
|
27382
27384
|
if (result.startsWith('EVALUATE:')) {
|
|
27383
27385
|
const path = result.replace(/^EVALUATE:/, '');
|
|
27384
|
-
result = evaluate(path, context
|
|
27386
|
+
result = evaluate(path, _extends$1({}, context, {
|
|
27387
|
+
getTime: (time)=>new Date(time).getTime()
|
|
27388
|
+
}));
|
|
27385
27389
|
}
|
|
27386
27390
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
27387
27391
|
result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
|
|
@@ -71089,7 +71093,7 @@ var HEADERS_TO_IGNORE = {
|
|
|
71089
71093
|
// credentials: { accessKeyId, secretAccessKey, [sessionToken] }
|
|
71090
71094
|
function RequestSigner(request, credentials) {
|
|
71091
71095
|
if (typeof request === "string") request = url.parse(request);
|
|
71092
|
-
var headers = request.headers = request.headers || {}, hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host);
|
|
71096
|
+
var headers = request.headers = Object.assign({}, request.headers || {}), hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host);
|
|
71093
71097
|
this.request = request;
|
|
71094
71098
|
this.credentials = credentials || this.defaultCredentials();
|
|
71095
71099
|
this.service = request.service || hostParts[0] || "";
|