@parcel/workers 2.0.0-nightly.896 → 2.0.0-nightly.905

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/workers",
3
- "version": "2.0.0-nightly.896+84e07f22",
3
+ "version": "2.0.0-nightly.905+d4b42567",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,15 +21,15 @@
21
21
  "node": ">= 12.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/diagnostic": "2.0.0-nightly.896+84e07f22",
25
- "@parcel/logger": "2.0.0-nightly.896+84e07f22",
26
- "@parcel/types": "2.0.0-nightly.896+84e07f22",
27
- "@parcel/utils": "2.0.0-nightly.896+84e07f22",
24
+ "@parcel/diagnostic": "2.0.0-nightly.905+d4b42567",
25
+ "@parcel/logger": "2.0.0-nightly.905+d4b42567",
26
+ "@parcel/types": "2.0.0-nightly.905+d4b42567",
27
+ "@parcel/utils": "2.0.0-nightly.905+d4b42567",
28
28
  "chrome-trace-event": "^1.0.2",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@parcel/core": "^2.0.0"
33
33
  },
34
- "gitHead": "84e07f22192f65a9fbe6bd56b2695e1e847cbe44"
34
+ "gitHead": "d4b42567e0267dac94b3fba68232242ced5ec022"
35
35
  }
package/src/cpuCount.js CHANGED
@@ -53,8 +53,9 @@ export default function getCores(bypassCache?: boolean = false): number {
53
53
  // Guess the amount of real cores
54
54
  cores = os
55
55
  .cpus()
56
- .filter((cpu, index) => !cpu.model.includes('Intel') || index % 2 === 1)
57
- .length;
56
+ .filter(
57
+ (cpu, index) => !cpu.model.includes('Intel') || index % 2 === 1,
58
+ ).length;
58
59
  }
59
60
 
60
61
  // Another fallback
@@ -3,7 +3,7 @@ import os from 'os';
3
3
 
4
4
  import getCores, {detectRealCores} from '../src/cpuCount';
5
5
 
6
- describe('cpuCount', function() {
6
+ describe('cpuCount', function () {
7
7
  it('Should be able to detect real cpu count', () => {
8
8
  // Windows not supported as getting the cpu count takes a couple seconds...
9
9
  if (os.platform() === 'win32') return;
@@ -2,7 +2,7 @@ import Logger from '@parcel/logger';
2
2
  import assert from 'assert';
3
3
  import WorkerFarm from '../src';
4
4
 
5
- describe('WorkerFarm', function() {
5
+ describe('WorkerFarm', function () {
6
6
  this.timeout(30000);
7
7
 
8
8
  it('Should start up workers', async () => {