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

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # v0.2.14 (Tue Nov 07 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, null[@Jo-lefthook](https://github.com/Jo-lefthook), for all your work!
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Add support for Worker context [#229](https://github.com/friggframework/frigg/pull/229) ([@Jo-lefthook](https://github.com/Jo-lefthook))
10
+ - Add support for Worker context ([@Jo-lefthook](https://github.com/Jo-lefthook))
11
+
12
+ #### Authors: 1
13
+
14
+ - [@Jo-lefthook](https://github.com/Jo-lefthook)
15
+
16
+ ---
17
+
1
18
  # v0.2.12 (Tue Apr 04 2023)
2
19
 
3
20
  :tada: This release contains work from a new contributor! :tada:
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",
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": "1798cd2df869210ccb12bc3a07377d130d253f2d"
36
36
  }