@parcel/workers 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/child.js CHANGED
@@ -192,8 +192,7 @@ class Child {
192
192
  try {
193
193
  let v8 = require('v8');
194
194
 
195
- result = responseFromContent( // $FlowFixMe
196
- v8.writeHeapSnapshot('heap-' + args[0] + '-' + (this.childId ? 'worker' + this.childId : 'main') + '.heapsnapshot'));
195
+ result = responseFromContent(v8.writeHeapSnapshot('heap-' + args[0] + '-' + (this.childId ? 'worker' + this.childId : 'main') + '.heapsnapshot'));
197
196
  } catch (e) {
198
197
  result = errorResponseFromError(e);
199
198
  }
@@ -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.6.0",
3
+ "version": "2.7.0",
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.6.0",
25
- "@parcel/logger": "2.6.0",
26
- "@parcel/types": "2.6.0",
27
- "@parcel/utils": "2.6.0",
24
+ "@parcel/diagnostic": "2.7.0",
25
+ "@parcel/logger": "2.7.0",
26
+ "@parcel/types": "2.7.0",
27
+ "@parcel/utils": "2.7.0",
28
28
  "chrome-trace-event": "^1.0.2",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@parcel/core": "^2.6.0"
32
+ "@parcel/core": "^2.7.0"
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": "f2d0a3a27d6e493b23ddc2edbc8a4c0053ff34ab"
39
+ "gitHead": "9e5d05586577e89991ccf90400f2c741dca11aa3"
40
40
  }
package/src/child.js CHANGED
@@ -163,7 +163,6 @@ export class Child {
163
163
  try {
164
164
  let v8 = require('v8');
165
165
  result = responseFromContent(
166
- // $FlowFixMe
167
166
  v8.writeHeapSnapshot(
168
167
  'heap-' +
169
168
  args[0] +
@@ -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