@openfn/ws-worker 1.2.2 → 1.3.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.
- package/CHANGELOG.md +15 -0
- package/dist/index.js +2 -2
- package/dist/start.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# ws-worker
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- afcd041: Better error reporting in logs and on final state
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [afcd041]
|
|
12
|
+
- Updated dependencies [afcd041]
|
|
13
|
+
- Updated dependencies [afcd041]
|
|
14
|
+
- @openfn/runtime@1.4.0
|
|
15
|
+
- @openfn/lexicon@1.0.2
|
|
16
|
+
- @openfn/engine-multi@1.1.13
|
|
17
|
+
|
|
3
18
|
## 1.2.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var name, version, description, main, type, scripts, bin, author, license, depen
|
|
|
29
29
|
var init_package = __esm({
|
|
30
30
|
"package.json"() {
|
|
31
31
|
name = "@openfn/ws-worker";
|
|
32
|
-
version = "1.
|
|
32
|
+
version = "1.3.0";
|
|
33
33
|
description = "A Websocket Worker to connect Lightning to a Runtime Engine";
|
|
34
34
|
main = "dist/index.js";
|
|
35
35
|
type = "module";
|
|
@@ -564,7 +564,7 @@ var calculateJobExitReason = (jobId, state = { data: {} }, error) => {
|
|
|
564
564
|
error_type = error.subtype || error.type || error.name;
|
|
565
565
|
} else if (state.errors?.[jobId]) {
|
|
566
566
|
reason = "fail";
|
|
567
|
-
({ message: error_message,
|
|
567
|
+
({ message: error_message, name: error_type } = state.errors[jobId]);
|
|
568
568
|
}
|
|
569
569
|
return { reason, error_type, error_message };
|
|
570
570
|
};
|
package/dist/start.js
CHANGED
|
@@ -37,7 +37,7 @@ var name, version, description, main, type, scripts, bin, author, license, depen
|
|
|
37
37
|
var init_package = __esm({
|
|
38
38
|
"package.json"() {
|
|
39
39
|
name = "@openfn/ws-worker";
|
|
40
|
-
version = "1.
|
|
40
|
+
version = "1.3.0";
|
|
41
41
|
description = "A Websocket Worker to connect Lightning to a Runtime Engine";
|
|
42
42
|
main = "dist/index.js";
|
|
43
43
|
type = "module";
|
|
@@ -703,7 +703,7 @@ var calculateJobExitReason = (jobId, state = { data: {} }, error) => {
|
|
|
703
703
|
error_type = error.subtype || error.type || error.name;
|
|
704
704
|
} else if (state.errors?.[jobId]) {
|
|
705
705
|
reason = "fail";
|
|
706
|
-
({ message: error_message,
|
|
706
|
+
({ message: error_message, name: error_type } = state.errors[jobId]);
|
|
707
707
|
}
|
|
708
708
|
return { reason, error_type, error_message };
|
|
709
709
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/ws-worker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A Websocket Worker to connect Lightning to a Runtime Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"koa-logger": "^3.2.1",
|
|
23
23
|
"phoenix": "1.7.10",
|
|
24
24
|
"ws": "^8.14.1",
|
|
25
|
-
"@openfn/engine-multi": "1.1.
|
|
25
|
+
"@openfn/engine-multi": "1.1.13",
|
|
26
|
+
"@openfn/lexicon": "^1.0.2",
|
|
26
27
|
"@openfn/logger": "1.0.1",
|
|
27
|
-
"@openfn/runtime": "1.
|
|
28
|
-
"@openfn/lexicon": "^1.0.1"
|
|
28
|
+
"@openfn/runtime": "1.4.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/koa": "^2.13.5",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tsup": "^6.2.3",
|
|
43
43
|
"typescript": "^4.6.4",
|
|
44
44
|
"yargs": "^17.6.2",
|
|
45
|
-
"@openfn/lightning-mock": "2.0.
|
|
45
|
+
"@openfn/lightning-mock": "2.0.13"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist",
|