dcp-worker 3.2.30-0 → 3.2.30-2
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 +4 -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: {
|
|
@@ -359,6 +358,7 @@ async function main()
|
|
|
359
358
|
startWorkerLogger(worker, cliArgs);
|
|
360
359
|
|
|
361
360
|
require('../lib/remote-console').setMainEval(function mainEval() { return eval(arguments[0]) });
|
|
361
|
+
require('../lib/remote-console').reintercept();
|
|
362
362
|
|
|
363
363
|
if (dcpWorkerOptions.publicGroupFallback)
|
|
364
364
|
{
|
|
@@ -381,12 +381,12 @@ async function main()
|
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
if (typeof ev === '
|
|
384
|
+
if (typeof ev === 'string') /* <= June 2023 Worker events: remove ~ Sep 2023 /wg */
|
|
385
385
|
slicesFetched = ev;
|
|
386
386
|
else
|
|
387
387
|
{
|
|
388
388
|
const task = ev;
|
|
389
|
-
slicesFetched = task.slices
|
|
389
|
+
slicesFetched = task.slices?.length;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
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-2",
|
|
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": {
|