@ldsg/workflow-node-type 0.2.7 → 0.2.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA6C7C,eAAO,MAAM,wCAAwC,EAAE,cAAc,CAAC,+BAA+B,CAYlG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resource-records/end/handler/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,+BAA+B,EAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA8C7C,eAAO,MAAM,wCAAwC,EAAE,cAAc,CAAC,+BAA+B,CAYlG,CAAC"}
@@ -11,7 +11,7 @@ const jsonata_1 = __importDefault(require("jsonata"));
11
11
  const constants_2 = require("./constants");
12
12
  function handler(params) {
13
13
  const { workflowNodeProperties } = params;
14
- const { output } = workflowNodeProperties;
14
+ const { input, output } = workflowNodeProperties;
15
15
  const { jsonataStr } = output;
16
16
  const expression = (0, jsonata_1.default)(jsonataStr);
17
17
  class EndWorkflowNodeExecuter extends workflow_1.WorkflowNodeExecuter {
@@ -19,9 +19,8 @@ function handler(params) {
19
19
  super(...arguments);
20
20
  this.execute = async () => {
21
21
  const { setVariables, nodeIdToVariablesMap } = this;
22
- const variables = await expression.evaluate({
23
- nodeIdToVariablesMap: Object.fromEntries(nodeIdToVariablesMap),
24
- });
22
+ const nodeIdToVariablesMapObject = Object.fromEntries(nodeIdToVariablesMap);
23
+ const variables = await expression.evaluate(nodeIdToVariablesMapObject);
25
24
  setVariables({
26
25
  variables,
27
26
  });
@@ -7,7 +7,7 @@ const workflow_1 = require("@ldsg/workflow");
7
7
  const constants_2 = require("./constants");
8
8
  function handler(params) {
9
9
  const { workflowNodeProperties } = params;
10
- const { input } = workflowNodeProperties;
10
+ const { input, output } = workflowNodeProperties;
11
11
  class StartWorkflowNodeExecuter extends workflow_1.WorkflowNodeExecuter {
12
12
  constructor() {
13
13
  super(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/workflow-node-type",
3
- "version": "0.2.7",
3
+ "version": "0.2.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -17,15 +17,15 @@
17
17
  "json-schema": "0.4.0",
18
18
  "jsonata": "^2.0.6",
19
19
  "lodash": "^4.17.21",
20
- "@ldsg/handler": "0.2.7",
21
- "@ldsg/workflow": "0.2.7",
22
- "@ldsg/resource-definition": "0.2.7",
23
- "@ldsg/resource": "0.2.7"
20
+ "@ldsg/handler": "0.2.10",
21
+ "@ldsg/workflow": "0.2.10",
22
+ "@ldsg/resource": "0.2.10",
23
+ "@ldsg/resource-definition": "0.2.10"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/json-schema": "^7.0.15",
27
27
  "@types/lodash": "^4.14.202",
28
- "@ldsg/types": "0.2.7"
28
+ "@ldsg/types": "0.2.10"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsc --project tsconfig.build.json",