@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 +6 -6
- package/src/cpuCount.js +3 -2
- package/test/cpuCount.test.js +1 -1
- package/test/workerfarm.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/workers",
|
3
|
-
"version": "2.0.0-nightly.
|
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.
|
25
|
-
"@parcel/logger": "2.0.0-nightly.
|
26
|
-
"@parcel/types": "2.0.0-nightly.
|
27
|
-
"@parcel/utils": "2.0.0-nightly.
|
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": "
|
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(
|
57
|
-
|
56
|
+
.filter(
|
57
|
+
(cpu, index) => !cpu.model.includes('Intel') || index % 2 === 1,
|
58
|
+
).length;
|
58
59
|
}
|
59
60
|
|
60
61
|
// Another fallback
|
package/test/cpuCount.test.js
CHANGED
@@ -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;
|
package/test/workerfarm.js
CHANGED