@friggframework/core 0.2.13-canary.b5020ae.0 → 0.2.14-canary.229.0b51a4e.0

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.
Files changed (2) hide show
  1. package/Worker.js +3 -3
  2. package/package.json +4 -4
package/Worker.js CHANGED
@@ -23,17 +23,17 @@ class Worker {
23
23
  });
24
24
  }
25
25
 
26
- async run(params) {
26
+ async run(params, context = {}) {
27
27
  const records = get(params, 'Records');
28
28
 
29
29
  for (const record of records) {
30
30
  const runParams = JSON.parse(record.body);
31
31
  this._validateParams(runParams);
32
- await this._run(runParams);
32
+ await this._run(runParams, context);
33
33
  }
34
34
  }
35
35
 
36
- async _run(params) {
36
+ async _run(params, context = {}) {
37
37
  // validate params and instantiate any class to do work based on the
38
38
  // parameters
39
39
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "0.2.13-canary.b5020ae.0",
4
+ "version": "0.2.14-canary.229.0b51a4e.0",
5
5
  "devDependencies": {
6
6
  "@friggframework/eslint-config": "^1.0.8",
7
7
  "eslint": "^8.22.0",
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "homepage": "https://github.com/friggframework/frigg#readme",
26
26
  "dependencies": {
27
- "@friggframework/assertions": "1.0.9-canary.b5020ae.0",
28
- "@friggframework/errors": "1.1.7-canary.b5020ae.0",
27
+ "@friggframework/assertions": "^1.0.8",
28
+ "@friggframework/errors": "^1.1.6",
29
29
  "aws-sdk": "^2.1200.0",
30
30
  "lodash": "^4.17.21",
31
31
  "moment": "^2.29.4",
32
32
  "node-fetch": "^2.6.7"
33
33
  },
34
34
  "description": "",
35
- "gitHead": "b5020aeffe07e6476eb5d04ac7e6c1eaeb127e57"
35
+ "gitHead": "0b51a4e18bb8c08faad1709ae3d8ea7661c68571"
36
36
  }