webpack-dev-server 4.9.2 → 4.9.3

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/README.md CHANGED
@@ -209,7 +209,9 @@ CLI documentation: https://webpack.js.org/api/cli/.
209
209
  Made with ♥ by the webpack team.
210
210
  ```
211
211
 
212
- _**Note**: For more information on above options explore this [link](https://webpack.js.org/configuration/dev-server/)._
212
+ > **Note**
213
+ >
214
+ > _Detailed documentation for above options is available on this [link](https://webpack.js.org/configuration/dev-server/)._
213
215
 
214
216
  ### With NPM Scripts
215
217
 
package/lib/Server.js CHANGED
@@ -1964,12 +1964,9 @@ class Server {
1964
1964
  (req, res) => {
1965
1965
  res.setHeader("Content-Type", "application/javascript");
1966
1966
 
1967
- const { createReadStream } = fs;
1968
1967
  const clientPath = path.join(__dirname, "..", "client");
1969
1968
 
1970
- createReadStream(
1971
- path.join(clientPath, "modules/sockjs-client/index.js")
1972
- ).pipe(res);
1969
+ res.sendFile(path.join(clientPath, "modules/sockjs-client/index.js"));
1973
1970
  }
1974
1971
  );
1975
1972
 
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "webpack-dev-server",
3
- "version": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "description": "Serves a webpack app. Updates the browser on changes.",
5
5
  "bin": "bin/webpack-dev-server.js",
6
6
  "main": "lib/Server.js",
7
7
  "types": "types/lib/Server.d.ts",
8
+ "author": "Tobias Koppers @sokra",
9
+ "bugs": "https://github.com/webpack/webpack-dev-server/issues",
10
+ "homepage": "https://github.com/webpack/webpack-dev-server#readme",
11
+ "repository": "https://github.com/webpack/webpack-dev-server",
12
+ "license": "MIT",
13
+ "funding": {
14
+ "type": "opencollective",
15
+ "url": "https://opencollective.com/webpack"
16
+ },
8
17
  "files": [
9
18
  "bin",
10
19
  "lib",
@@ -47,7 +56,7 @@
47
56
  "chokidar": "^3.5.3",
48
57
  "colorette": "^2.0.10",
49
58
  "compression": "^1.7.4",
50
- "connect-history-api-fallback": "^1.6.0",
59
+ "connect-history-api-fallback": "^2.0.0",
51
60
  "default-gateway": "^6.0.3",
52
61
  "express": "^4.17.3",
53
62
  "graceful-fs": "^4.2.6",
@@ -126,10 +135,5 @@
126
135
  "webpack-cli": {
127
136
  "optional": true
128
137
  }
129
- },
130
- "author": "Tobias Koppers @sokra",
131
- "bugs": "https://github.com/webpack/webpack-dev-server/issues",
132
- "homepage": "https://github.com/webpack/webpack-dev-server#readme",
133
- "repository": "https://github.com/webpack/webpack-dev-server.git",
134
- "license": "MIT"
138
+ }
135
139
  }