@digipair/skill-worker 0.84.0 → 0.84.2

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 CHANGED
@@ -23921,14 +23921,14 @@ function indent(str, spaces) {
23921
23921
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23922
23922
  // match is required
23923
23923
  if (!match) {
23924
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23924
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23925
23925
  v: nextMatch1
23926
23926
  };
23927
23927
  }
23928
23928
  var token = match.token, offset = match.offset;
23929
23929
  i1 += offset;
23930
23930
  if (token === " ") {
23931
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23931
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  tokens1 = _to_consumable_array$1(tokens1).concat([
23934
23934
  token
@@ -23947,7 +23947,7 @@ function indent(str, spaces) {
23947
23947
  if (contextKeys.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23950
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
23952
  if (dateTimeIdentifiers.some(function(el) {
23953
23953
  return el === name;
@@ -23966,9 +23966,9 @@ function indent(str, spaces) {
23966
23966
  if (dateTimeIdentifiers.some(function(el) {
23967
23967
  return el.startsWith(name);
23968
23968
  })) {
23969
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23969
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23970
23970
  }
23971
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23971
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23972
23972
  v: nextMatch1
23973
23973
  };
23974
23974
  };
@@ -28005,20 +28005,21 @@ const preparePinsSettings = (settings, context)=>{
28005
28005
  let WorkerService = class WorkerService {
28006
28006
  async task(params, _pinsSettingsList, context) {
28007
28007
  const { execute } = params;
28008
+ context.workflow = {
28009
+ steps: {}
28010
+ };
28008
28011
  return await executePinsList(execute, context, `${context.__PATH__}.execute`);
28009
28012
  }
28010
28013
  async action(params, _pinsSettingsList, context) {
28011
28014
  const { execute } = params;
28015
+ context.workflow = {
28016
+ steps: {}
28017
+ };
28012
28018
  return await executePinsList(execute, context, `${context.__PATH__}.execute`);
28013
28019
  }
28014
28020
  async activity(params, _pinsSettingsList, context) {
28015
28021
  const { name, execute } = params;
28016
28022
  const result = await executePinsList(execute, context, `${context.__PATH__}.execute`);
28017
- if (!context.workflow) {
28018
- context.workflow = {
28019
- steps: []
28020
- };
28021
- }
28022
28023
  context.workflow.steps[name] = result;
28023
28024
  return result;
28024
28025
  }
package/index.esm.js CHANGED
@@ -27983,20 +27983,21 @@ const preparePinsSettings = (settings, context)=>{
27983
27983
  let WorkerService = class WorkerService {
27984
27984
  async task(params, _pinsSettingsList, context) {
27985
27985
  const { execute } = params;
27986
+ context.workflow = {
27987
+ steps: {}
27988
+ };
27986
27989
  return await executePinsList(execute, context, `${context.__PATH__}.execute`);
27987
27990
  }
27988
27991
  async action(params, _pinsSettingsList, context) {
27989
27992
  const { execute } = params;
27993
+ context.workflow = {
27994
+ steps: {}
27995
+ };
27990
27996
  return await executePinsList(execute, context, `${context.__PATH__}.execute`);
27991
27997
  }
27992
27998
  async activity(params, _pinsSettingsList, context) {
27993
27999
  const { name, execute } = params;
27994
28000
  const result = await executePinsList(execute, context, `${context.__PATH__}.execute`);
27995
- if (!context.workflow) {
27996
- context.workflow = {
27997
- steps: []
27998
- };
27999
- }
28000
28001
  context.workflow.steps[name] = result;
28001
28002
  return result;
28002
28003
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-worker",
3
- "version": "0.84.0",
3
+ "version": "0.84.2",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service"