@parcel/workers 2.0.0-dev.1565 → 2.0.0-dev.1573

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Handle.js CHANGED
@@ -20,8 +20,7 @@ let HANDLE_ID = 0;
20
20
  const handleById = new Map();
21
21
  class Handle {
22
22
  constructor(opts) {
23
- var _opts$id;
24
- this.id = (_opts$id = opts.id) !== null && _opts$id !== void 0 ? _opts$id : ++HANDLE_ID;
23
+ this.id = opts.id ?? ++HANDLE_ID;
25
24
  this.fn = opts.fn;
26
25
  this.childId = opts.childId;
27
26
  handleById.set(this.id, this);
package/lib/child.js CHANGED
@@ -232,7 +232,6 @@ class Child {
232
232
 
233
233
  // Keep in mind to make sure responses to these calls are JSON.Stringify safe
234
234
  addCall(request, awaitResponse = true) {
235
- var _promise;
236
235
  // $FlowFixMe
237
236
  let call = {
238
237
  ...request,
@@ -252,7 +251,7 @@ class Child {
252
251
  }
253
252
  this.callQueue.push(call);
254
253
  this.processQueue();
255
- return (_promise = promise) !== null && _promise !== void 0 ? _promise : Promise.resolve();
254
+ return promise ?? Promise.resolve();
256
255
  }
257
256
  sendRequest(call) {
258
257
  let idx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/workers",
3
- "version": "2.0.0-dev.1565+c422b7ff3",
3
+ "version": "2.0.0-dev.1573+c9a0ab031",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -18,23 +18,23 @@
18
18
  "source": "src/index.js",
19
19
  "types": "index.d.ts",
20
20
  "engines": {
21
- "node": ">= 12.0.0"
21
+ "node": ">= 16.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/diagnostic": "2.0.0-dev.1565+c422b7ff3",
25
- "@parcel/logger": "2.0.0-dev.1565+c422b7ff3",
26
- "@parcel/profiler": "2.12.1-dev.3188+c422b7ff3",
27
- "@parcel/types-internal": "2.12.1-dev.3188+c422b7ff3",
28
- "@parcel/utils": "2.0.0-dev.1565+c422b7ff3",
24
+ "@parcel/diagnostic": "2.0.0-dev.1573+c9a0ab031",
25
+ "@parcel/logger": "2.0.0-dev.1573+c9a0ab031",
26
+ "@parcel/profiler": "2.12.1-dev.3196+c9a0ab031",
27
+ "@parcel/types-internal": "2.12.1-dev.3196+c9a0ab031",
28
+ "@parcel/utils": "2.0.0-dev.1573+c9a0ab031",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@parcel/core": "^2.0.0-dev.1563+c422b7ff3"
32
+ "@parcel/core": "^2.0.0-dev.1571+c9a0ab031"
33
33
  },
34
34
  "browser": {
35
35
  "./src/process/ProcessWorker.js": false,
36
36
  "./src/threads/ThreadsWorker.js": false,
37
37
  "./src/core-worker.js": "./src/core-worker.browser.js"
38
38
  },
39
- "gitHead": "c422b7ff3c383779781ea5169d86191508b01e5b"
39
+ "gitHead": "c9a0ab031986a896a5991de16420b12988d013cd"
40
40
  }