dcp-worker 3.2.28-0 → 3.2.28-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.
Files changed (2) hide show
  1. package/bin/dcp-worker +2 -3
  2. package/package.json +1 -1
package/bin/dcp-worker CHANGED
@@ -270,7 +270,7 @@ async function main()
270
270
  const dcpWorkerOptions = dcpConfig.worker;
271
271
  const forceOptions = {
272
272
  paymentAddress,
273
- leavePublicGroup: cliArgs.leavePublicGroup || dcpConfig.worker.leavePublicGroup || cliArgs.publicGroupFallback || false,
273
+ leavePublicGroup: cliArgs.leavePublicGroup || (dcpConfig.worker.leavePublicGroup === 'true') || (dcpConfig.worker.leavePublicGroup === true) || false,
274
274
  maxWorkingSandboxes: cliArgs.cores,
275
275
  };
276
276
  const defaultOptions = {
@@ -648,8 +648,7 @@ function verifyDefaultConfigIntegrity()
648
648
  console.warn(' - the Windows Registry');
649
649
 
650
650
  // md5 calculation is incorrect on Windows. Possibly git/npm mangling line-endings?
651
- const os = requireNative('os');
652
- if (os?.platform() === 'win32')
651
+ if (require('os').platform() === 'win32')
653
652
  return;
654
653
 
655
654
  if (require('dcp/build').config.build !== 'debug')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-worker",
3
- "version": "3.2.28-0",
3
+ "version": "3.2.28-2",
4
4
  "description": "JavaScript portion of DCP Workers for Node.js",
5
5
  "main": "bin/dcp-worker",
6
6
  "keywords": [