parcel 2.5.0 → 2.6.2

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.
Files changed (3) hide show
  1. package/lib/cli.js +5 -2
  2. package/package.json +13 -13
  3. package/src/cli.js +4 -1
package/lib/cli.js CHANGED
@@ -193,7 +193,8 @@ var hmrOptions = {
193
193
  '--https': 'serves files over HTTPS',
194
194
  '--cert <path>': 'path to certificate to use with HTTPS',
195
195
  '--key <path>': 'path to private key to use with HTTPS',
196
- '--hmr-port <port>': ['hot module replacement port', process.env.HMR_PORT]
196
+ '--hmr-port <port>': ['hot module replacement port', process.env.HMR_PORT],
197
+ '--hmr-host <host>': ['hot module replacement host', process.env.HMR_HOST]
197
198
  };
198
199
 
199
200
  function applyOptions(cmd, options) {
@@ -227,6 +228,7 @@ program.on('--help', function () {
227
228
 
228
229
  _logger().INTERNAL_ORIGINAL_CONSOLE.log('');
229
230
  }); // Override to output option description if argument was missing
231
+ // $FlowFixMe[prop-missing]
230
232
 
231
233
  _commander().default.Command.prototype.optionMissingArgument = function (option) {
232
234
  _logger().INTERNAL_ORIGINAL_CONSOLE.error("error: option `%s' argument missing", option.flags);
@@ -484,9 +486,10 @@ async function normalizeOptions(command, inputFS) {
484
486
 
485
487
  if (command.name() !== 'build' && command.hmr !== false) {
486
488
  let hmrport = command.hmrPort ? parsePort(command.hmrPort) : port;
489
+ let hmrhost = command.hmrHost ? command.hmrHost : host;
487
490
  hmrOptions = {
488
491
  port: hmrport,
489
- host
492
+ host: hmrhost
490
493
  };
491
494
  }
492
495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parcel",
3
- "version": "2.5.0",
3
+ "version": "2.6.2",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,16 +21,16 @@
21
21
  "node": ">= 12.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@parcel/config-default": "2.5.0",
25
- "@parcel/core": "2.5.0",
26
- "@parcel/diagnostic": "2.5.0",
27
- "@parcel/events": "2.5.0",
28
- "@parcel/fs": "2.5.0",
29
- "@parcel/logger": "2.5.0",
30
- "@parcel/package-manager": "2.5.0",
31
- "@parcel/reporter-cli": "2.5.0",
32
- "@parcel/reporter-dev-server": "2.5.0",
33
- "@parcel/utils": "2.5.0",
24
+ "@parcel/config-default": "2.6.2",
25
+ "@parcel/core": "2.6.2",
26
+ "@parcel/diagnostic": "2.6.2",
27
+ "@parcel/events": "2.6.2",
28
+ "@parcel/fs": "2.6.2",
29
+ "@parcel/logger": "2.6.2",
30
+ "@parcel/package-manager": "2.6.2",
31
+ "@parcel/reporter-cli": "2.6.2",
32
+ "@parcel/reporter-dev-server": "2.6.2",
33
+ "@parcel/utils": "2.6.2",
34
34
  "chalk": "^4.1.0",
35
35
  "commander": "^7.0.0",
36
36
  "get-port": "^4.2.0",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "^7.0.0",
41
- "@parcel/babel-register": "2.5.0"
41
+ "@parcel/babel-register": "2.6.2"
42
42
  },
43
- "gitHead": "5cfb846d742eb86b1232e531be6e0e513551d838"
43
+ "gitHead": "e10fcfc1e8b71222da90978fb87f1b68e207473e"
44
44
  }
package/src/cli.js CHANGED
@@ -116,6 +116,7 @@ var hmrOptions = {
116
116
  '--cert <path>': 'path to certificate to use with HTTPS',
117
117
  '--key <path>': 'path to private key to use with HTTPS',
118
118
  '--hmr-port <port>': ['hot module replacement port', process.env.HMR_PORT],
119
+ '--hmr-host <host>': ['hot module replacement host', process.env.HMR_HOST],
119
120
  };
120
121
 
121
122
  function applyOptions(cmd, options) {
@@ -188,6 +189,7 @@ program.on('--help', function () {
188
189
  });
189
190
 
190
191
  // Override to output option description if argument was missing
192
+ // $FlowFixMe[prop-missing]
191
193
  commander.Command.prototype.optionMissingArgument = function (option) {
192
194
  INTERNAL_ORIGINAL_CONSOLE.error(
193
195
  "error: option `%s' argument missing",
@@ -445,8 +447,9 @@ async function normalizeOptions(
445
447
  let hmrOptions = null;
446
448
  if (command.name() !== 'build' && command.hmr !== false) {
447
449
  let hmrport = command.hmrPort ? parsePort(command.hmrPort) : port;
450
+ let hmrhost = command.hmrHost ? command.hmrHost : host;
448
451
 
449
- hmrOptions = {port: hmrport, host};
452
+ hmrOptions = {port: hmrport, host: hmrhost};
450
453
  }
451
454
 
452
455
  if (command.detailedReport === true) {