@digipair/skill-web-chatbot 0.32.4 → 0.32.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.cjs2.js +2 -4
- package/index.esm2.js +2 -4
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -56522,7 +56522,8 @@ const applyTemplate = (value, context)=>{
|
|
|
56522
56522
|
atob: (value)=>atob(value),
|
|
56523
56523
|
btoa: (value)=>btoa(value),
|
|
56524
56524
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
56525
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
56525
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
56526
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
56526
56527
|
}));
|
|
56527
56528
|
}
|
|
56528
56529
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -56673,9 +56674,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
56673
56674
|
variables: context.variables || {},
|
|
56674
56675
|
conditions: context.conditions || {}
|
|
56675
56676
|
});
|
|
56676
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
56677
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
56678
|
-
}
|
|
56679
56677
|
const conditions = {};
|
|
56680
56678
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
56681
56679
|
conditions[key] = await applyTemplate(value, localContext);
|
package/index.esm2.js
CHANGED
|
@@ -56502,7 +56502,8 @@ const applyTemplate = (value, context)=>{
|
|
|
56502
56502
|
atob: (value)=>atob(value),
|
|
56503
56503
|
btoa: (value)=>btoa(value),
|
|
56504
56504
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
|
56505
|
-
decodeURIComponent: (value)=>decodeURIComponent(value)
|
|
56505
|
+
decodeURIComponent: (value)=>decodeURIComponent(value),
|
|
56506
|
+
JSONparse: (value)=>JSON.parse(value)
|
|
56506
56507
|
}));
|
|
56507
56508
|
}
|
|
56508
56509
|
} else if (typeof value === 'object' && Array.isArray(value)) {
|
|
@@ -56653,9 +56654,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
56653
56654
|
variables: context.variables || {},
|
|
56654
56655
|
conditions: context.conditions || {}
|
|
56655
56656
|
});
|
|
56656
|
-
for (const [key, value] of Object.entries(settings.variables || {})){
|
|
56657
|
-
localContext.variables[key] = applyTemplate(value, localContext);
|
|
56658
|
-
}
|
|
56659
56657
|
const conditions = {};
|
|
56660
56658
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
56661
56659
|
conditions[key] = await applyTemplate(value, localContext);
|