dcp-worker 3.2.30-0 → 3.2.30-1
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/bin/dcp-worker +3 -4
- package/package.json +2 -2
package/bin/dcp-worker
CHANGED
|
@@ -127,8 +127,7 @@ function parseCliArgs()
|
|
|
127
127
|
publicGroupFallback: {
|
|
128
128
|
describe: 'If set, worker will prefer private groups but fall back on the public group if no preferred work is available',
|
|
129
129
|
type: 'boolean',
|
|
130
|
-
default:
|
|
131
|
-
defaultDescription: undefined,
|
|
130
|
+
default: undefined,
|
|
132
131
|
},
|
|
133
132
|
|
|
134
133
|
identityKey: {
|
|
@@ -381,12 +380,12 @@ async function main()
|
|
|
381
380
|
return;
|
|
382
381
|
}
|
|
383
382
|
|
|
384
|
-
if (typeof ev === '
|
|
383
|
+
if (typeof ev === 'string') /* <= June 2023 Worker events: remove ~ Sep 2023 /wg */
|
|
385
384
|
slicesFetched = ev;
|
|
386
385
|
else
|
|
387
386
|
{
|
|
388
387
|
const task = ev;
|
|
389
|
-
slicesFetched = task.slices
|
|
388
|
+
slicesFetched = task.slices?.length;
|
|
390
389
|
}
|
|
391
390
|
|
|
392
391
|
dcpWorkerOptions.leavePublicGroup = Boolean(slicesFetched > 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dcp-worker",
|
|
3
|
-
"version": "3.2.30-
|
|
3
|
+
"version": "3.2.30-1",
|
|
4
4
|
"description": "JavaScript portion of DCP Workers for Node.js",
|
|
5
5
|
"main": "bin/dcp-worker",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"blessed": "^0.1.81",
|
|
38
38
|
"blessed-contrib": "^4.11.0",
|
|
39
39
|
"chalk": "^4.1.0",
|
|
40
|
-
"dcp-client": "
|
|
40
|
+
"dcp-client": "4.2.32",
|
|
41
41
|
"semver": "^7.3.8"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|