@veloceapps/sdk 8.0.0-156 → 8.0.0-158

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.
@@ -1231,13 +1231,13 @@ class FlowStateService {
1231
1231
  return this.executeProcessorScript(request, configurationProcessor, executable.inputData);
1232
1232
  }
1233
1233
  executeProcessorScript(request, configurationProcessor, inputData) {
1234
- let functionToExecute = this.executedFunctions[configurationProcessor.apiName];
1234
+ const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
1235
+ let functionToExecute = this.executedFunctions[scope + configurationProcessor.apiName];
1235
1236
  if (!functionToExecute) {
1236
1237
  const script = `${configurationProcessor.script}\nreturn transform;`;
1237
- const scope = configurationProcessor.ownerId && this.getScopeByOwnerId(configurationProcessor.ownerId);
1238
1238
  const sourceMap = `\n//# sourceURL=${scope ? scope + '/' : ''}${configurationProcessor.apiName}.js`;
1239
1239
  functionToExecute = new Function(script + sourceMap)();
1240
- this.executedFunctions[configurationProcessor.apiName] = functionToExecute;
1240
+ this.executedFunctions[scope + configurationProcessor.apiName] = functionToExecute;
1241
1241
  }
1242
1242
  return functionToExecute({
1243
1243
  request,