webpack-dev-server 3.5.0 → 3.7.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,54 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.7.1](https://github.com/webpack/webpack-dev-server/compare/v3.7.0...v3.7.1) (2019-06-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * retry finding port when port is null and get ports in sequence ([#1993](https://github.com/webpack/webpack-dev-server/issues/1993)) ([bc57514](https://github.com/webpack/webpack-dev-server/commit/bc57514))
11
+
12
+
13
+
14
+ ## [3.7.0](https://github.com/webpack/webpack-dev-server/compare/v3.5.1...v3.7.0) (2019-06-06)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * change clientLogLevel order to be called first ([#1973](https://github.com/webpack/webpack-dev-server/issues/1973)) ([57c8c92](https://github.com/webpack/webpack-dev-server/commit/57c8c92))
20
+ * es6 syntax in client ([#1982](https://github.com/webpack/webpack-dev-server/issues/1982)) ([802aa30](https://github.com/webpack/webpack-dev-server/commit/802aa30))
21
+
22
+
23
+ ### Features
24
+
25
+ * **server:** add serverMode option ([#1937](https://github.com/webpack/webpack-dev-server/issues/1937)) ([44a8cde](https://github.com/webpack/webpack-dev-server/commit/44a8cde))
26
+
27
+
28
+
29
+ ## [3.6.0](https://github.com/webpack/webpack-dev-server/compare/v3.5.1...v3.6.0) (2019-06-05)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **config:** enable `--overlay` ([#1968](https://github.com/webpack/webpack-dev-server/issues/1968)) ([dc81e23](https://github.com/webpack/webpack-dev-server/commit/dc81e23))
35
+ * **server:** don't ignore node_modules by default ([#1970](https://github.com/webpack/webpack-dev-server/issues/1970)) ([699f8b4](https://github.com/webpack/webpack-dev-server/commit/699f8b4)), closes [#1794](https://github.com/webpack/webpack-dev-server/issues/1794)
36
+
37
+
38
+ ### Features
39
+
40
+ * **server:** add serverMode option ([#1937](https://github.com/webpack/webpack-dev-server/issues/1937)) ([44a8cde](https://github.com/webpack/webpack-dev-server/commit/44a8cde))
41
+
42
+
43
+
44
+ ### [3.5.1](https://github.com/webpack/webpack-dev-server/compare/v3.5.0...v3.5.1) (2019-06-01)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * allow passing promise function of webpack.config.js ([#1947](https://github.com/webpack/webpack-dev-server/issues/1947)) ([8cf1053](https://github.com/webpack/webpack-dev-server/commit/8cf1053))
50
+
51
+
52
+
5
53
  ## [3.5.0](https://github.com/webpack/webpack-dev-server/compare/v3.4.1...v3.5.0) (2019-05-31)
6
54
 
7
55
 
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+ /* eslint-disable
3
+ no-unused-vars
4
+ */
5
+
6
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
+
8
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
9
+
10
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11
+
12
+ module.exports =
13
+ /*#__PURE__*/
14
+ function () {
15
+ function BaseClient() {
16
+ _classCallCheck(this, BaseClient);
17
+ }
18
+
19
+ _createClass(BaseClient, null, [{
20
+ key: "getClientPath",
21
+ value: function getClientPath(options) {
22
+ throw new Error('Client needs implementation');
23
+ }
24
+ }]);
25
+
26
+ return BaseClient;
27
+ }();
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+ /* eslint-disable
3
+ no-unused-vars
4
+ */
5
+
6
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
7
+
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+
10
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11
+
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
13
+
14
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
15
+
16
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
+
18
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
+
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ var SockJS = require('sockjs-client/dist/sockjs');
25
+
26
+ var BaseClient = require('./BaseClient');
27
+
28
+ module.exports =
29
+ /*#__PURE__*/
30
+ function (_BaseClient) {
31
+ _inherits(SockJSClient, _BaseClient);
32
+
33
+ function SockJSClient(url) {
34
+ var _this;
35
+
36
+ _classCallCheck(this, SockJSClient);
37
+
38
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(SockJSClient).call(this));
39
+ _this.sock = new SockJS(url);
40
+ return _this;
41
+ }
42
+
43
+ _createClass(SockJSClient, [{
44
+ key: "onOpen",
45
+ value: function onOpen(f) {
46
+ this.sock.onopen = f;
47
+ }
48
+ }, {
49
+ key: "onClose",
50
+ value: function onClose(f) {
51
+ this.sock.onclose = f;
52
+ } // call f with the message string as the first argument
53
+
54
+ }, {
55
+ key: "onMessage",
56
+ value: function onMessage(f) {
57
+ this.sock.onmessage = function (e) {
58
+ f(e.data);
59
+ };
60
+ }
61
+ }], [{
62
+ key: "getClientPath",
63
+ value: function getClientPath(options) {
64
+ return require.resolve('./SockJSClient');
65
+ }
66
+ }]);
67
+
68
+ return SockJSClient;
69
+ }(BaseClient);
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
+
13
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
+
15
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
+
17
+ var BaseClient = require('./BaseClient');
18
+
19
+ module.exports =
20
+ /*#__PURE__*/
21
+ function (_BaseClient) {
22
+ _inherits(WebsocketClient, _BaseClient);
23
+
24
+ function WebsocketClient() {
25
+ _classCallCheck(this, WebsocketClient);
26
+
27
+ return _possibleConstructorReturn(this, _getPrototypeOf(WebsocketClient).apply(this, arguments));
28
+ }
29
+
30
+ return WebsocketClient;
31
+ }(BaseClient);