@modern-js/server 1.6.0 → 1.6.1-beta.0

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.
@@ -138,10 +138,10 @@ export class ModernDevServer extends ModernServer {
138
138
  }
139
139
 
140
140
  async onClose() {
141
- var _this$socketServer;
141
+ var _this$watcher, _this$socketServer;
142
142
 
143
143
  await super.onClose();
144
- await this.watcher.close();
144
+ await ((_this$watcher = this.watcher) === null || _this$watcher === void 0 ? void 0 : _this$watcher.close());
145
145
  await new Promise(resolve => {
146
146
  if (this.devMiddleware) {
147
147
  this.devMiddleware.close(() => {
@@ -163,10 +163,10 @@ class ModernDevServer extends _prodServer.ModernServer {
163
163
  }
164
164
 
165
165
  async onClose() {
166
- var _this$socketServer;
166
+ var _this$watcher, _this$socketServer;
167
167
 
168
168
  await super.onClose();
169
- await this.watcher.close();
169
+ await ((_this$watcher = this.watcher) === null || _this$watcher === void 0 ? void 0 : _this$watcher.close());
170
170
  await new Promise(resolve => {
171
171
  if (this.devMiddleware) {
172
172
  this.devMiddleware.close(() => {
@@ -9,7 +9,7 @@ export declare class ModernDevServer extends ModernServer {
9
9
  private readonly dev;
10
10
  private readonly compiler?;
11
11
  private socketServer;
12
- private watcher;
12
+ private watcher?;
13
13
  private devMiddleware;
14
14
  constructor(options: ModernDevServerOptions);
15
15
  private getDevOptions;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.6.0",
14
+ "version": "1.6.1-beta.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -30,19 +30,19 @@
30
30
  "dependencies": {
31
31
  "@babel/core": "^7.18.0",
32
32
  "@babel/register": "^7.17.7",
33
- "@modern-js/prod-server": "^1.2.1",
33
+ "@modern-js/prod-server": "^1.2.2",
34
34
  "@modern-js/server-utils": "^1.2.11",
35
- "@modern-js/webpack": "^1.12.2",
36
- "@modern-js/utils": "^1.8.0",
35
+ "@modern-js/webpack": "^1.12.3",
36
+ "@modern-js/utils": "^1.8.1",
37
37
  "devcert": "^1.2.2",
38
38
  "minimatch": "^3.0.4",
39
39
  "path-to-regexp": "^6.2.0",
40
40
  "ws": "^8.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@modern-js/core": "1.13.1",
43
+ "@modern-js/core": "1.13.3",
44
44
  "@modern-js/server-core": "1.4.1",
45
- "@modern-js/types": "1.6.0",
45
+ "@modern-js/types": "1.6.2",
46
46
  "@scripts/build": "0.0.0",
47
47
  "@scripts/jest-config": "0.0.0",
48
48
  "@types/jest": "^27",
@@ -62,7 +62,8 @@
62
62
  },
63
63
  "publishConfig": {
64
64
  "registry": "https://registry.npmjs.org/",
65
- "access": "public"
65
+ "access": "public",
66
+ "types": "./dist/types/index.d.ts"
66
67
  },
67
68
  "wireit": {
68
69
  "build": {