@parcel/workers 2.8.2 → 2.8.3

Sign up to get free protection for your applications and to get access to all the features.
package/lib/Worker.js CHANGED
@@ -61,8 +61,9 @@ class Worker extends _events().default {
61
61
 
62
62
  for (let i = 0; i < filteredArgs.length; i++) {
63
63
  let arg = filteredArgs[i];
64
+ let isArgWithParam = (arg === '-r' || arg === '--require') && filteredArgs[i + 1] === '@parcel/register' || arg === '--title';
64
65
 
65
- if ((arg === '-r' || arg === '--require') && filteredArgs[i + 1] === '@parcel/register') {
66
+ if (isArgWithParam) {
66
67
  filteredArgs.splice(i, 2);
67
68
  i--;
68
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/workers",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
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.8.2",
25
- "@parcel/logger": "2.8.2",
26
- "@parcel/types": "2.8.2",
27
- "@parcel/utils": "2.8.2",
24
+ "@parcel/diagnostic": "2.8.3",
25
+ "@parcel/logger": "2.8.3",
26
+ "@parcel/types": "2.8.3",
27
+ "@parcel/utils": "2.8.3",
28
28
  "chrome-trace-event": "^1.0.2",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@parcel/core": "^2.8.2"
32
+ "@parcel/core": "^2.8.3"
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": "3437f64e4c6f57d911614c480b742e229149f200"
39
+ "gitHead": "349a6caf40ec8abb6a49fcae0765f8f8deb2073d"
40
40
  }
package/src/Worker.js CHANGED
@@ -53,10 +53,11 @@ export default class Worker extends EventEmitter {
53
53
 
54
54
  for (let i = 0; i < filteredArgs.length; i++) {
55
55
  let arg = filteredArgs[i];
56
- if (
57
- (arg === '-r' || arg === '--require') &&
58
- filteredArgs[i + 1] === '@parcel/register'
59
- ) {
56
+ let isArgWithParam =
57
+ ((arg === '-r' || arg === '--require') &&
58
+ filteredArgs[i + 1] === '@parcel/register') ||
59
+ arg === '--title';
60
+ if (isArgWithParam) {
60
61
  filteredArgs.splice(i, 2);
61
62
  i--;
62
63
  }