@parcel/workers 2.0.0-nightly.898 → 2.0.0-nightly.907

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.898+c8a64c9a",
3
+ "version": "2.0.0-nightly.907+d2a9b6bd",
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.898+c8a64c9a",
25
- "@parcel/logger": "2.0.0-nightly.898+c8a64c9a",
26
- "@parcel/types": "2.0.0-nightly.898+c8a64c9a",
27
- "@parcel/utils": "2.0.0-nightly.898+c8a64c9a",
24
+ "@parcel/diagnostic": "2.0.0-nightly.907+d2a9b6bd",
25
+ "@parcel/logger": "2.0.0-nightly.907+d2a9b6bd",
26
+ "@parcel/types": "2.0.0-nightly.907+d2a9b6bd",
27
+ "@parcel/utils": "2.0.0-nightly.907+d2a9b6bd",
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": "c8a64c9a533072c12681ca0805d1e4d7481ee53d"
34
+ "gitHead": "d2a9b6bdd93855b468fa9911dad27a49e54e9557"
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 () => {