@veloceapps/sdk 8.0.0-154 → 8.0.0-155
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +4 -2
- package/esm2020/core/services/flow-state.service.mjs +5 -2
- package/fesm2015/veloceapps-sdk-core.mjs +7 -2
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +7 -2
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -1233,7 +1233,10 @@ class FlowStateService {
|
|
1233
1233
|
executeProcessorScript(request, configurationProcessor, inputData) {
|
1234
1234
|
let functionToExecute = this.executedFunctions[configurationProcessor.apiName];
|
1235
1235
|
if (!functionToExecute) {
|
1236
|
-
|
1236
|
+
const script = `${configurationProcessor.script}\nreturn transform;`;
|
1237
|
+
const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
|
1238
|
+
const sourceMap = `\n//# sourceURL=${scope ? scope + '/' : ''}${configurationProcessor.apiName}.js`;
|
1239
|
+
functionToExecute = new Function(script + sourceMap)();
|
1237
1240
|
this.executedFunctions[configurationProcessor.apiName] = functionToExecute;
|
1238
1241
|
}
|
1239
1242
|
return functionToExecute({
|
@@ -2355,7 +2358,9 @@ class ConfigurationStateService {
|
|
2355
2358
|
executeProcessorScript(request, configurationProcessor, inputData) {
|
2356
2359
|
let functionToExecute = this.executedFunctions[configurationProcessor.apiName];
|
2357
2360
|
if (!functionToExecute) {
|
2358
|
-
|
2361
|
+
const script = `${configurationProcessor.script}\nreturn transform;`;
|
2362
|
+
const sourceMap = `\n//# sourceURL=${configurationProcessor.apiName}.js`;
|
2363
|
+
functionToExecute = new Function(script + sourceMap)();
|
2359
2364
|
this.executedFunctions[configurationProcessor.apiName] = functionToExecute;
|
2360
2365
|
}
|
2361
2366
|
return functionToExecute({
|