@digipair/skill-web-chatbot 0.41.2 → 0.41.3
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.cjs2.js +5 -4
- package/index.esm2.js +10 -9
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -41196,11 +41196,12 @@ const applyTemplate = (value, context)=>{
|
|
|
41196
41196
|
if (typeof value === 'string') {
|
|
41197
41197
|
if (result.startsWith('NOEVAL:')) {
|
|
41198
41198
|
result = value.substring(7);
|
|
41199
|
+
} else {
|
|
41200
|
+
const template = handlebars_min.exports.compile(value, {
|
|
41201
|
+
noEscape: true
|
|
41202
|
+
});
|
|
41203
|
+
result = template(context);
|
|
41199
41204
|
}
|
|
41200
|
-
const template = handlebars_min.exports.compile(value, {
|
|
41201
|
-
noEscape: true
|
|
41202
|
-
});
|
|
41203
|
-
result = template(context);
|
|
41204
41205
|
if (result.startsWith('EVALUATE:')) {
|
|
41205
41206
|
const path = result.replace(/^EVALUATE:/, '');
|
|
41206
41207
|
result = evaluate(path, _extends({}, context, {
|
package/index.esm2.js
CHANGED
|
@@ -37322,14 +37322,14 @@ function indent(str, spaces) {
|
|
|
37322
37322
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
37323
37323
|
// match is required
|
|
37324
37324
|
if (!match) {
|
|
37325
|
-
return
|
|
37325
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
37326
37326
|
v: nextMatch1
|
|
37327
37327
|
};
|
|
37328
37328
|
}
|
|
37329
37329
|
var token = match.token, offset = match.offset;
|
|
37330
37330
|
i1 += offset;
|
|
37331
37331
|
if (token === " ") {
|
|
37332
|
-
return
|
|
37332
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
37333
37333
|
}
|
|
37334
37334
|
tokens1 = _to_consumable_array$c(tokens1).concat([
|
|
37335
37335
|
token
|
|
@@ -37348,7 +37348,7 @@ function indent(str, spaces) {
|
|
|
37348
37348
|
if (contextKeys.some(function(el) {
|
|
37349
37349
|
return el.startsWith(name);
|
|
37350
37350
|
})) {
|
|
37351
|
-
return
|
|
37351
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
37352
37352
|
}
|
|
37353
37353
|
if (dateTimeIdentifiers.some(function(el) {
|
|
37354
37354
|
return el === name;
|
|
@@ -37367,9 +37367,9 @@ function indent(str, spaces) {
|
|
|
37367
37367
|
if (dateTimeIdentifiers.some(function(el) {
|
|
37368
37368
|
return el.startsWith(name);
|
|
37369
37369
|
})) {
|
|
37370
|
-
return
|
|
37370
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
37371
37371
|
}
|
|
37372
|
-
return
|
|
37372
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
37373
37373
|
v: nextMatch1
|
|
37374
37374
|
};
|
|
37375
37375
|
};
|
|
@@ -41176,11 +41176,12 @@ const applyTemplate = (value, context)=>{
|
|
|
41176
41176
|
if (typeof value === 'string') {
|
|
41177
41177
|
if (result.startsWith('NOEVAL:')) {
|
|
41178
41178
|
result = value.substring(7);
|
|
41179
|
+
} else {
|
|
41180
|
+
const template = handlebars_min.exports.compile(value, {
|
|
41181
|
+
noEscape: true
|
|
41182
|
+
});
|
|
41183
|
+
result = template(context);
|
|
41179
41184
|
}
|
|
41180
|
-
const template = handlebars_min.exports.compile(value, {
|
|
41181
|
-
noEscape: true
|
|
41182
|
-
});
|
|
41183
|
-
result = template(context);
|
|
41184
41185
|
if (result.startsWith('EVALUATE:')) {
|
|
41185
41186
|
const path = result.replace(/^EVALUATE:/, '');
|
|
41186
41187
|
result = evaluate(path, _extends({}, context, {
|