@digipair/skill-mongodb 0.32.3 → 0.32.6
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 +7 -9
- package/index.esm.js +7 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23581,14 +23581,14 @@ function indent(str, spaces) {
|
|
|
23581
23581
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23582
23582
|
// match is required
|
|
23583
23583
|
if (!match) {
|
|
23584
|
-
return
|
|
23584
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23585
23585
|
v: nextMatch1
|
|
23586
23586
|
};
|
|
23587
23587
|
}
|
|
23588
23588
|
var token = match.token, offset = match.offset;
|
|
23589
23589
|
i1 += offset;
|
|
23590
23590
|
if (token === " ") {
|
|
23591
|
-
return
|
|
23591
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23592
23592
|
}
|
|
23593
23593
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23594
23594
|
token
|
|
@@ -23607,7 +23607,7 @@ function indent(str, spaces) {
|
|
|
23607
23607
|
if (contextKeys.some(function(el) {
|
|
23608
23608
|
return el.startsWith(name);
|
|
23609
23609
|
})) {
|
|
23610
|
-
return
|
|
23610
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23611
23611
|
}
|
|
23612
23612
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23613
23613
|
return el === name;
|
|
@@ -23626,9 +23626,9 @@ function indent(str, spaces) {
|
|
|
23626
23626
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23627
23627
|
return el.startsWith(name);
|
|
23628
23628
|
})) {
|
|
23629
|
-
return
|
|
23629
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23630
23630
|
}
|
|
23631
|
-
return
|
|
23631
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23632
23632
|
v: nextMatch1
|
|
23633
23633
|
};
|
|
23634
23634
|
};
|
|
@@ -27439,7 +27439,8 @@ const applyTemplate = (value, context)=>{
|
|
|
27439
27439
|
atob: (value)=>atob(value),
|
|
27440
27440
|
btoa: (value)=>btoa(value),
|
|
27441
27441
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
27442
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
27442
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27443
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
27443
27444
|
}));
|
|
27444
27445
|
}
|
|
27445
27446
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -27530,9 +27531,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27530
27531
|
variables: context.variables || {},
|
|
27531
27532
|
conditions: context.conditions || {}
|
|
27532
27533
|
});
|
|
27533
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27534
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27535
|
-
}
|
|
27536
27534
|
const conditions = {};
|
|
27537
27535
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27538
27536
|
conditions[key] = await applyTemplate(value, localContext);
|
package/index.esm.js
CHANGED
|
@@ -23531,14 +23531,14 @@ function indent(str, spaces) {
|
|
|
23531
23531
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23532
23532
|
// match is required
|
|
23533
23533
|
if (!match) {
|
|
23534
|
-
return
|
|
23534
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23535
23535
|
v: nextMatch1
|
|
23536
23536
|
};
|
|
23537
23537
|
}
|
|
23538
23538
|
var token = match.token, offset = match.offset;
|
|
23539
23539
|
i1 += offset;
|
|
23540
23540
|
if (token === " ") {
|
|
23541
|
-
return
|
|
23541
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23542
23542
|
}
|
|
23543
23543
|
tokens1 = _to_consumable_array$a(tokens1).concat([
|
|
23544
23544
|
token
|
|
@@ -23557,7 +23557,7 @@ function indent(str, spaces) {
|
|
|
23557
23557
|
if (contextKeys.some(function(el) {
|
|
23558
23558
|
return el.startsWith(name);
|
|
23559
23559
|
})) {
|
|
23560
|
-
return
|
|
23560
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23561
23561
|
}
|
|
23562
23562
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23563
23563
|
return el === name;
|
|
@@ -23576,9 +23576,9 @@ function indent(str, spaces) {
|
|
|
23576
23576
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23577
23577
|
return el.startsWith(name);
|
|
23578
23578
|
})) {
|
|
23579
|
-
return
|
|
23579
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23580
23580
|
}
|
|
23581
|
-
return
|
|
23581
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23582
23582
|
v: nextMatch1
|
|
23583
23583
|
};
|
|
23584
23584
|
};
|
|
@@ -27389,7 +27389,8 @@ const applyTemplate = (value, context)=>{
|
|
|
27389
27389
|
atob: (value)=>atob(value),
|
|
27390
27390
|
btoa: (value)=>btoa(value),
|
|
27391
27391
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
27392
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
27392
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
27393
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
27393
27394
|
}));
|
|
27394
27395
|
}
|
|
27395
27396
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -27480,9 +27481,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27480
27481
|
variables: context.variables || {},
|
|
27481
27482
|
conditions: context.conditions || {}
|
|
27482
27483
|
});
|
|
27483
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
27484
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
27485
|
-
}
|
|
27486
27484
|
const conditions = {};
|
|
27487
27485
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27488
27486
|
conditions[key] = await applyTemplate(value, localContext);
|