@openfn/ws-worker 0.1.2 → 0.1.3

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,5 +1,13 @@
1
1
  # ws-worker
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix log event mapping
8
+ - Updated dependencies
9
+ - @openfn/engine-multi@0.1.3
10
+
3
11
  ## 0.1.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -257,7 +257,7 @@ function execute(channel, engine, logger, plan, options = {}) {
257
257
  addEvent("workflow-start", onWorkflowStart),
258
258
  addEvent("job-start", onJobStart),
259
259
  addEvent("job-complete", onJobComplete),
260
- addEvent("log", onJobLog),
260
+ addEvent("workflow-log", onJobLog),
261
261
  addEvent("workflow-complete", onWorkflowComplete),
262
262
  addEvent("workflow-error", onWorkflowError)
263
263
  );
package/dist/start.js CHANGED
@@ -4913,7 +4913,7 @@ async function createMock() {
4913
4913
  await resolvers.credential?.(configuration);
4914
4914
  }
4915
4915
  const info = (...message) => {
4916
- dispatch("log", {
4916
+ dispatch("workflow-log", {
4917
4917
  workflowId,
4918
4918
  message,
4919
4919
  level: "info",
@@ -5231,7 +5231,7 @@ function execute(channel, engine, logger2, plan, options = {}) {
5231
5231
  addEvent("workflow-start", onWorkflowStart),
5232
5232
  addEvent("job-start", onJobStart),
5233
5233
  addEvent("job-complete", onJobComplete),
5234
- addEvent("log", onJobLog),
5234
+ addEvent("workflow-log", onJobLog),
5235
5235
  addEvent("workflow-complete", onWorkflowComplete),
5236
5236
  addEvent("workflow-error", onWorkflowError)
5237
5237
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/ws-worker",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A Websocket Worker to connect Lightning to a Runtime Engine",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "koa-logger": "^3.2.1",
22
22
  "phoenix": "^1.7.7",
23
23
  "ws": "^8.14.1",
24
- "@openfn/engine-multi": "0.1.2",
24
+ "@openfn/engine-multi": "0.1.3",
25
25
  "@openfn/logger": "0.0.18",
26
26
  "@openfn/runtime": "0.0.32"
27
27
  },
@@ -40,7 +40,7 @@
40
40
  "tsup": "^6.2.3",
41
41
  "typescript": "^4.6.4",
42
42
  "yargs": "^17.6.2",
43
- "@openfn/lightning-mock": "1.0.3"
43
+ "@openfn/lightning-mock": "1.0.4"
44
44
  },
45
45
  "files": [
46
46
  "dist",