@parcel/workers 2.4.1 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,7 @@ class ProcessChild {
|
|
54
54
|
let processSend = (0, _nullthrows().default)(process.send).bind(process);
|
55
55
|
processSend((0, _core().serialize)(data).toString('base64'), err => {
|
56
56
|
if (err && err instanceof Error) {
|
57
|
+
// $FlowFixMe[prop-missing]
|
57
58
|
if (err.code === 'ERR_IPC_CHANNEL_CLOSED') {
|
58
59
|
// IPC connection closed
|
59
60
|
// no need to keep the worker running if it can't send or receive data
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/workers",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.6.1",
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
5
5
|
"license": "MIT",
|
6
6
|
"publishConfig": {
|
@@ -21,20 +21,20 @@
|
|
21
21
|
"node": ">= 12.0.0"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@parcel/diagnostic": "2.
|
25
|
-
"@parcel/logger": "2.
|
26
|
-
"@parcel/types": "2.
|
27
|
-
"@parcel/utils": "2.
|
24
|
+
"@parcel/diagnostic": "2.6.1",
|
25
|
+
"@parcel/logger": "2.6.1",
|
26
|
+
"@parcel/types": "2.6.1",
|
27
|
+
"@parcel/utils": "2.6.1",
|
28
28
|
"chrome-trace-event": "^1.0.2",
|
29
29
|
"nullthrows": "^1.1.1"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
|
-
"@parcel/core": "^2.
|
32
|
+
"@parcel/core": "^2.6.1"
|
33
33
|
},
|
34
34
|
"browser": {
|
35
35
|
"./src/cpuCount.js": false,
|
36
36
|
"./src/process/ProcessWorker.js": false,
|
37
37
|
"./src/threads/ThreadsWorker.js": false
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "b8b203da8302dfde6d875422c8c557a00b7d3c02"
|
40
40
|
}
|
@@ -37,6 +37,7 @@ export default class ProcessChild implements ChildImpl {
|
|
37
37
|
let processSend = nullthrows(process.send).bind(process);
|
38
38
|
processSend(serialize(data).toString('base64'), err => {
|
39
39
|
if (err && err instanceof Error) {
|
40
|
+
// $FlowFixMe[prop-missing]
|
40
41
|
if (err.code === 'ERR_IPC_CHANNEL_CLOSED') {
|
41
42
|
// IPC connection closed
|
42
43
|
// no need to keep the worker running if it can't send or receive data
|