webpack-dev-server 2.4.4 → 2.4.5

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 (2) hide show
  1. package/lib/Server.js +1 -1
  2. package/package.json +1 -1
package/lib/Server.js CHANGED
@@ -417,7 +417,7 @@ Server.prototype.checkHost = function(headers) {
417
417
  // also allow public hostname if provided
418
418
  if(typeof this.publicHost === "string") {
419
419
  const idxPublic = this.publicHost.indexOf(":");
420
- const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0, idx) : this.publicHost;
420
+ const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0, idxPublic) : this.publicHost;
421
421
  if(hostname === publicHostname) return true;
422
422
  }
423
423
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-dev-server",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Serves a webpack app. Updates the browser on changes.",
6
6
  "peerDependencies": {