@rspack/dev-server 0.0.0-20220909061012 → 0.0.0-20221025154751
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 +6 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -15
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +7 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +28 -0
- package/dist/logger.js.map +1 -0
- package/dist/reload.d.ts +9 -0
- package/dist/reload.d.ts.map +1 -0
- package/dist/reload.js +23 -0
- package/dist/reload.js.map +1 -0
- package/dist/server.d.ts +51 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +158 -0
- package/dist/server.js.map +1 -0
- package/dist/ws.d.ts +13 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +12 -0
- package/dist/ws.js.map +1 -0
- package/package.json +17 -9
- package/src/index.ts +1 -1
- package/src/logger.ts +30 -0
- package/src/reload.ts +31 -0
- package/src/server.ts +227 -0
- package/src/ws.ts +18 -0
- package/tsconfig.json +9 -7
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/server/index.d.ts +0 -2
- package/dist/server/index.js +0 -14
- package/src/server/index.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# rspack-dev-server
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20221025154751
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- e6d0926a2: unify version
|
|
8
|
+
- Updated dependencies [e6d0926a2]
|
|
9
|
+
- @rspack/core@0.0.0-20221025154751
|
|
10
|
+
- @rspack/dev-middleware@0.0.0-20221025154751
|
|
11
|
+
- @rspack/dev-client@0.0.0-20221025154751
|
|
8
12
|
|
|
9
13
|
## 0.0.4
|
|
10
14
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { RspackDevServer } from "./server";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
exports.RspackDevServer = void 0;
|
|
4
|
+
var server_1 = require("./server");
|
|
5
|
+
Object.defineProperty(exports, "RspackDevServer", { enumerable: true, get: function () { return server_1.RspackDevServer; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA2C;AAAlC,yGAAA,eAAe,OAAA"}
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC3B;AAUD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAejD"}
|
package/dist/logger.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createLogger = void 0;
|
|
4
|
+
const COLOR = {
|
|
5
|
+
RESET: "\x1b[0m",
|
|
6
|
+
//
|
|
7
|
+
RED: "\x1b[31m",
|
|
8
|
+
GREEN: "\x1b[32m",
|
|
9
|
+
YELLOW: "\x1b[33m"
|
|
10
|
+
};
|
|
11
|
+
function createLogger(name) {
|
|
12
|
+
if (!name.length) {
|
|
13
|
+
throw Error();
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
error(...msgs) {
|
|
17
|
+
console.log("[", name, "]:", COLOR.RED, msgs, COLOR.RESET);
|
|
18
|
+
},
|
|
19
|
+
warn(...msgs) {
|
|
20
|
+
console.log("[", name, "]:", COLOR.YELLOW, msgs, COLOR.RESET);
|
|
21
|
+
},
|
|
22
|
+
info(...msgs) {
|
|
23
|
+
console.log("[", name, "]:", COLOR.GREEN, msgs, COLOR.RESET);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.createLogger = createLogger;
|
|
28
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;AAMA,MAAM,KAAK,GAAG;IACb,KAAK,EAAE,SAAS;IAChB,EAAE;IACF,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;CAClB,CAAC;AAEF,SAAgB,YAAY,CAAC,IAAY;IACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACjB,MAAM,KAAK,EAAE,CAAC;KACd;IACD,OAAO;QACN,KAAK,CAAC,GAAG,IAAW;YACnB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;QACD,IAAI,CAAC,GAAG,IAAW;YAClB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,GAAG,IAAW;YAClB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;KACD,CAAC;AACH,CAAC;AAfD,oCAeC"}
|
package/dist/reload.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RspackOptionsNormalized } from "@rspack/core";
|
|
2
|
+
interface Status {
|
|
3
|
+
isUnloading: boolean;
|
|
4
|
+
currentHash: string;
|
|
5
|
+
previousHash: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare function reloadApp({ liveReload, hmr }: RspackOptionsNormalized["devServer"], status: Status): void;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=reload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reload.d.ts","sourceRoot":"","sources":["../src/reload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE5D,UAAU,MAAM;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,wBAAgB,SAAS,CACxB,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,uBAAuB,CAAC,WAAW,CAAC,EACzD,MAAM,EAAE,MAAM,QAoBd"}
|
package/dist/reload.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reloadApp = void 0;
|
|
4
|
+
function reloadApp({ liveReload, hmr }, status) {
|
|
5
|
+
if (status.isUnloading) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
function applyReload(rootWindow, intervalId) {
|
|
9
|
+
clearInterval(intervalId);
|
|
10
|
+
console.log("App update, Reloading...");
|
|
11
|
+
rootWindow.location.reload();
|
|
12
|
+
}
|
|
13
|
+
if (liveReload) {
|
|
14
|
+
let rootWindow = self;
|
|
15
|
+
const intervalId = self.setInterval(() => {
|
|
16
|
+
if (rootWindow.location.protocol !== "about:") {
|
|
17
|
+
applyReload(rootWindow, intervalId);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.reloadApp = reloadApp;
|
|
23
|
+
//# sourceMappingURL=reload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reload.js","sourceRoot":"","sources":["../src/reload.ts"],"names":[],"mappings":";;;AAQA,SAAgB,SAAS,CACxB,EAAE,UAAU,EAAE,GAAG,EAAwC,EACzD,MAAc;IAEd,IAAI,MAAM,CAAC,WAAW,EAAE;QACvB,OAAO;KACP;IAED,SAAS,WAAW,CAAC,UAAkB,EAAE,UAAkB;QAC1D,aAAa,CAAC,UAAU,CAAC,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACxC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAED,IAAI,UAAU,EAAE;QACf,IAAI,UAAU,GAAG,IAAI,CAAC;QACtB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;YACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ,EAAE;gBAC9C,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;aACpC;QACF,CAAC,CAAC,CAAC;KACH;AACF,CAAC;AAtBD,8BAsBC"}
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import type { Compiler, RspackOptionsNormalized } from "@rspack/core";
|
|
4
|
+
import type { Logger } from "./logger";
|
|
5
|
+
import type { Socket } from "net";
|
|
6
|
+
import type { FSWatcher, WatchOptions } from "chokidar";
|
|
7
|
+
import type { WebSocketServer, ClientConnection } from "./ws";
|
|
8
|
+
import type { Application } from "express";
|
|
9
|
+
import type { Server } from "http";
|
|
10
|
+
declare type Host = "local-ip" | "local-ipv4" | "local-ipv6" | string;
|
|
11
|
+
declare type Port = number | string | "auto";
|
|
12
|
+
export declare class RspackDevServer {
|
|
13
|
+
compiler: Compiler;
|
|
14
|
+
options: RspackOptionsNormalized["devServer"];
|
|
15
|
+
logger: Logger;
|
|
16
|
+
staticWatchers: FSWatcher[];
|
|
17
|
+
sockets: Socket[];
|
|
18
|
+
app: Application;
|
|
19
|
+
server: Server;
|
|
20
|
+
private listeners;
|
|
21
|
+
private currentHash;
|
|
22
|
+
private middleware;
|
|
23
|
+
webSocketServer: WebSocketServer | undefined;
|
|
24
|
+
constructor(compiler: Compiler);
|
|
25
|
+
static isAbsoluteURL(URL: string): boolean;
|
|
26
|
+
static findIp(gateway: string): string | undefined;
|
|
27
|
+
static internalIP(family: "v6" | "v4"): Promise<string | undefined>;
|
|
28
|
+
static internalIPSync(family: "v6" | "v4"): Promise<string | undefined>;
|
|
29
|
+
static getHostname(hostname: Host): Promise<string>;
|
|
30
|
+
static getFreePort(port: Port, host: string): Promise<string | number>;
|
|
31
|
+
static findCacheDir(): string;
|
|
32
|
+
private getCompilerOptions;
|
|
33
|
+
sendMessage(clients: ClientConnection[], type: string, data?: any, params?: any): void;
|
|
34
|
+
watchFiles(watchPath: string | string[], watchOptions?: WatchOptions): void;
|
|
35
|
+
invalidate(callback?: () => void): void;
|
|
36
|
+
start(): Promise<void>;
|
|
37
|
+
startCallback(callback?: (err?: Error) => void): void;
|
|
38
|
+
stopCallback(callback?: (err?: Error) => void): void;
|
|
39
|
+
listen(port: Port, hostname: string, fn: (err?: Error) => void): void;
|
|
40
|
+
close(callback?: (err?: Error) => void): void;
|
|
41
|
+
stop(): Promise<void>;
|
|
42
|
+
private initialize;
|
|
43
|
+
private setupApp;
|
|
44
|
+
private setupWatchStaticFiles;
|
|
45
|
+
private setupDevMiddleware;
|
|
46
|
+
private createWebsocketServer;
|
|
47
|
+
private setupMiddlewares;
|
|
48
|
+
private createServer;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"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"}
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RspackDevServer = void 0;
|
|
7
|
+
const chokidar_1 = __importDefault(require("chokidar"));
|
|
8
|
+
const http_1 = __importDefault(require("http"));
|
|
9
|
+
const logger_1 = require("./logger");
|
|
10
|
+
const webpack_dev_server_1 = __importDefault(require("webpack-dev-server"));
|
|
11
|
+
const express_1 = __importDefault(require("express"));
|
|
12
|
+
const dev_middleware_1 = require("@rspack/dev-middleware");
|
|
13
|
+
const ws_1 = require("./ws");
|
|
14
|
+
// copy from webpack-dev-server
|
|
15
|
+
class RspackDevServer {
|
|
16
|
+
constructor(compiler) {
|
|
17
|
+
this.compiler = compiler;
|
|
18
|
+
this.logger = (0, logger_1.createLogger)("rspack-dev-server");
|
|
19
|
+
this.staticWatchers = [];
|
|
20
|
+
this.listeners = [];
|
|
21
|
+
this.sockets = [];
|
|
22
|
+
this.currentHash = "";
|
|
23
|
+
this.options = compiler.options["devServer"];
|
|
24
|
+
}
|
|
25
|
+
static isAbsoluteURL(URL) {
|
|
26
|
+
return webpack_dev_server_1.default.isAbsoluteURL(URL);
|
|
27
|
+
}
|
|
28
|
+
static findIp(gateway) {
|
|
29
|
+
return webpack_dev_server_1.default.findIp(gateway);
|
|
30
|
+
}
|
|
31
|
+
static async internalIP(family) {
|
|
32
|
+
return webpack_dev_server_1.default.internalIP(family);
|
|
33
|
+
}
|
|
34
|
+
static async internalIPSync(family) {
|
|
35
|
+
return webpack_dev_server_1.default.internalIPSync(family);
|
|
36
|
+
}
|
|
37
|
+
static async getHostname(hostname) {
|
|
38
|
+
return webpack_dev_server_1.default.getHostname(hostname);
|
|
39
|
+
}
|
|
40
|
+
static async getFreePort(port, host) {
|
|
41
|
+
return webpack_dev_server_1.default.getFreePort(port, host);
|
|
42
|
+
}
|
|
43
|
+
static findCacheDir() {
|
|
44
|
+
// TODO: we need remove the `webpack-dev-server` tag in WebpackDevServer;
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
getCompilerOptions() {
|
|
48
|
+
return this.compiler.options;
|
|
49
|
+
}
|
|
50
|
+
sendMessage(clients, type, data, params) {
|
|
51
|
+
for (const client of clients) {
|
|
52
|
+
if (client.readyState === 1) {
|
|
53
|
+
client.send(JSON.stringify({ type, data, params }));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
watchFiles(watchPath, watchOptions) {
|
|
58
|
+
const watcher = chokidar_1.default.watch(watchPath, watchOptions);
|
|
59
|
+
// disabling refreshing on changing the content
|
|
60
|
+
if (this.options.liveReload) {
|
|
61
|
+
watcher.on("change", item => {
|
|
62
|
+
if (this.webSocketServer) {
|
|
63
|
+
this.sendMessage(this.webSocketServer.clients, "static-changed", item);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
this.staticWatchers.push(watcher);
|
|
68
|
+
}
|
|
69
|
+
invalidate(callback = () => { }) {
|
|
70
|
+
if (this.middleware) {
|
|
71
|
+
this.middleware.invalidate(callback);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async start() {
|
|
75
|
+
this.initialize();
|
|
76
|
+
this.createWebsocketServer();
|
|
77
|
+
await new Promise(resolve => this.server.listen({
|
|
78
|
+
port: this.options.port,
|
|
79
|
+
host: "localhost"
|
|
80
|
+
}, () => {
|
|
81
|
+
console.log(`begin server at http://localhost:${this.options.port}`);
|
|
82
|
+
resolve({});
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
startCallback(callback) {
|
|
86
|
+
throw new Error("Method not implemented.");
|
|
87
|
+
}
|
|
88
|
+
stopCallback(callback) {
|
|
89
|
+
throw new Error("Method not implemented.");
|
|
90
|
+
}
|
|
91
|
+
listen(port, hostname, fn) {
|
|
92
|
+
throw new Error("Method not implemented.");
|
|
93
|
+
}
|
|
94
|
+
close(callback) {
|
|
95
|
+
throw new Error("Method not implemented.");
|
|
96
|
+
}
|
|
97
|
+
async stop() {
|
|
98
|
+
await Promise.all(this.staticWatchers.map(watcher => watcher.close()));
|
|
99
|
+
this.middleware = null;
|
|
100
|
+
this.staticWatchers = [];
|
|
101
|
+
if (this.server) {
|
|
102
|
+
this.server.close();
|
|
103
|
+
}
|
|
104
|
+
if (this.webSocketServer) {
|
|
105
|
+
await new Promise(resolve => {
|
|
106
|
+
this.webSocketServer;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
initialize() {
|
|
111
|
+
this.setupApp();
|
|
112
|
+
this.setupDevMiddleware();
|
|
113
|
+
this.setupWatchStaticFiles();
|
|
114
|
+
this.setupMiddlewares();
|
|
115
|
+
this.createServer();
|
|
116
|
+
}
|
|
117
|
+
setupApp() {
|
|
118
|
+
this.app = (0, express_1.default)();
|
|
119
|
+
}
|
|
120
|
+
setupWatchStaticFiles() {
|
|
121
|
+
if (this.options.static.watch === false) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
this.watchFiles(this.options.static.directory, this.options.static.watch);
|
|
125
|
+
}
|
|
126
|
+
setupDevMiddleware() {
|
|
127
|
+
this.middleware = (0, dev_middleware_1.rdm)(this.compiler, this.options.devMiddleware);
|
|
128
|
+
}
|
|
129
|
+
createWebsocketServer() {
|
|
130
|
+
if (this.options.webSocketServer !== false) {
|
|
131
|
+
this.webSocketServer = (0, ws_1.createWebsocketServer)(this);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
setupMiddlewares() {
|
|
135
|
+
const middlewares = [];
|
|
136
|
+
middlewares.push({
|
|
137
|
+
name: "rdm",
|
|
138
|
+
middleware: this.middleware
|
|
139
|
+
});
|
|
140
|
+
middlewares.push({
|
|
141
|
+
name: "express-static",
|
|
142
|
+
middleware: express_1.default.static(this.options.static.directory)
|
|
143
|
+
});
|
|
144
|
+
middlewares.forEach(m => {
|
|
145
|
+
if (m.path) {
|
|
146
|
+
this.app.use(m.path, m.middleware);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.app.use(m.middleware);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
createServer() {
|
|
154
|
+
this.server = http_1.default.createServer(this.app);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.RspackDevServer = RspackDevServer;
|
|
158
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;AAaA,wDAAgC;AAChC,gDAAwB;AACxB,qCAAwC;AACxC,4EAAkD;AAClD,sDAA8B;AAC9B,2DAA6C;AAC7C,6BAA6C;AAc7C,+BAA+B;AAC/B,MAAa,eAAe;IAa3B,YAAmB,QAAkB;QAAlB,aAAQ,GAAR,QAAQ,CAAU;QACpC,IAAI,CAAC,MAAM,GAAG,IAAA,qBAAY,EAAC,mBAAmB,CAAC,CAAC;QAChD,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAW;QAC/B,OAAO,4BAAgB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,OAAe;QAC5B,OAAO,4BAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAmB;QAC1C,OAAO,4BAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,cAAc,CAC1B,MAAmB;QAEnB,OAAO,4BAAgB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,QAAc;QACtC,OAAO,4BAAgB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAU,EAAE,IAAY;QAChD,OAAO,4BAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,YAAY;QAClB,yEAAyE;QACzE,OAAO,EAAE,CAAC;IACX,CAAC;IAEO,kBAAkB;QACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC9B,CAAC;IAED,WAAW,CACV,OAA2B,EAC3B,IAAY,EACZ,IAAU,EACV,MAAY;QAEZ,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,IAAI,MAAM,CAAC,UAAU,KAAK,CAAC,EAAE;gBAC5B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;aACpD;SACD;IACF,CAAC;IAED,UAAU,CAAC,SAA4B,EAAE,YAA2B;QACnE,MAAM,OAAO,GAAG,kBAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QAExD,+CAA+C;QAC/C,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC5B,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;gBAC3B,IAAI,IAAI,CAAC,eAAe,EAAE;oBACzB,IAAI,CAAC,WAAW,CACf,IAAI,CAAC,eAAe,CAAC,OAAO,EAC5B,gBAAgB,EAChB,IAAI,CACJ,CAAC;iBACF;YACF,CAAC,CAAC,CAAC;SACH;QAED,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,UAAU,CAAC,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC;QAC7B,IAAI,IAAI,CAAC,UAAU,EAAE;YACpB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;SACrC;IACF,CAAC;IAED,KAAK,CAAC,KAAK;QACV,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,CACjB;YACC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,IAAI,EAAE,WAAW;SACjB,EACD,GAAG,EAAE;YACJ,OAAO,CAAC,GAAG,CAAC,oCAAoC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YACrE,OAAO,CAAC,EAAE,CAAC,CAAC;QACb,CAAC,CACD,CACD,CAAC;IACH,CAAC;IAED,aAAa,CAAC,QAAgC;QAC7C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,QAAgC;QAC5C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,CAAC,IAAU,EAAE,QAAgB,EAAE,EAAyB;QAC7D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IACD,KAAK,CAAC,QAAgC;QACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,IAAI;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACvE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,MAAM,EAAE;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;SACpB;QACD,IAAI,IAAI,CAAC,eAAe,EAAE;YACzB,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBAC3B,IAAI,CAAC,eAAe,CAAC;YACtB,CAAC,CAAC,CAAC;SACH;IACF,CAAC;IAEO,UAAU;QACjB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7B,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IAAI,CAAC,YAAY,EAAE,CAAC;IACrB,CAAC;IAEO,QAAQ;QACf,IAAI,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IACtB,CAAC;IAEO,qBAAqB;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,EAAE;YACxC,OAAO;SACP;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3E,CAAC;IAEO,kBAAkB;QACzB,IAAI,CAAC,UAAU,GAAG,IAAA,oBAAG,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAClE,CAAC;IAEO,qBAAqB;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,KAAK,EAAE;YAC3C,IAAI,CAAC,eAAe,GAAG,IAAA,0BAAqB,EAAC,IAAI,CAAC,CAAC;SACnD;IACF,CAAC;IAEO,gBAAgB;QACvB,MAAM,WAAW,GAAiB,EAAE,CAAC;QACrC,WAAW,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,KAAK;YACX,UAAU,EAAE,IAAI,CAAC,UAAU;SAC3B,CAAC,CAAC;QAEH,WAAW,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,gBAAgB;YACtB,UAAU,EAAE,iBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;SACzD,CAAC,CAAC;QAEH,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACvB,IAAI,CAAC,CAAC,IAAI,EAAE;gBACX,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;aACnC;iBAAM;gBACN,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;aAC3B;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IAEO,YAAY;QACnB,IAAI,CAAC,MAAM,GAAG,cAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;CACD;AAhMD,0CAgMC"}
|
package/dist/ws.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RspackDevServer } from "./server";
|
|
2
|
+
import WebSocket from "ws";
|
|
3
|
+
export declare type ClientConnection = WebSocket & {
|
|
4
|
+
isAlive?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface WebSocketServer {
|
|
7
|
+
heartbeatInterval: number;
|
|
8
|
+
implementation: WebSocket.Server<WebSocket.WebSocket>;
|
|
9
|
+
server: RspackDevServer;
|
|
10
|
+
clients: ClientConnection[];
|
|
11
|
+
}
|
|
12
|
+
export declare function createWebsocketServer(server: RspackDevServer): WebSocketServer;
|
|
13
|
+
//# sourceMappingURL=ws.d.ts.map
|
package/dist/ws.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,SAAS,MAAM,IAAI,CAAC;AAG3B,oBAAY,gBAAgB,GAAG,SAAS,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,eAAe,GACrB,eAAe,CAEjB"}
|
package/dist/ws.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createWebsocketServer = void 0;
|
|
7
|
+
const WebsocketServer_1 = __importDefault(require("webpack-dev-server/lib/servers/WebsocketServer"));
|
|
8
|
+
function createWebsocketServer(server) {
|
|
9
|
+
return new WebsocketServer_1.default(server);
|
|
10
|
+
}
|
|
11
|
+
exports.createWebsocketServer = createWebsocketServer;
|
|
12
|
+
//# sourceMappingURL=ws.js.map
|
package/dist/ws.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.js","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":";;;;;;AAEA,qGAA6E;AAW7E,SAAgB,qBAAqB,CACpC,MAAuB;IAEvB,OAAO,IAAI,yBAAe,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC;AAJD,sDAIC"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/dev-server",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-20221025154751",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^18.6.3",
|
|
11
10
|
"tsm": "^2.2.2",
|
|
12
|
-
"
|
|
11
|
+
"@rspack/core": "0.0.0-20221025154751",
|
|
12
|
+
"typescript": "^4.7.4",
|
|
13
|
+
"@types/node": "16.11.7",
|
|
14
|
+
"@types/express": "4.17.14"
|
|
13
15
|
},
|
|
14
16
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
17
|
+
"express": "4.18.1",
|
|
18
|
+
"chokidar": "3.5.3",
|
|
19
|
+
"ws": "8.8.1",
|
|
20
|
+
"@rspack/dev-client": "0.0.0-20221025154751",
|
|
21
|
+
"@rspack/dev-middleware": "0.0.0-20221025154751",
|
|
22
|
+
"webpack-dev-server": "4.11.1"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@rspack/core": "0.0.0-20221025154751"
|
|
18
26
|
},
|
|
19
27
|
"scripts": {
|
|
20
|
-
"build": "rm -rf
|
|
21
|
-
"dev": "tsc -
|
|
22
|
-
"test": "echo
|
|
28
|
+
"build": "rm -rf lib/ && tsc",
|
|
29
|
+
"dev": "tsc -w",
|
|
30
|
+
"test": "echo success"
|
|
23
31
|
}
|
|
24
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { RspackDevServer } from "./server";
|
package/src/logger.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Logger {
|
|
2
|
+
error(...args: any[]): void;
|
|
3
|
+
warn(...args: any[]): void;
|
|
4
|
+
info(...args: any[]): void;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const COLOR = {
|
|
8
|
+
RESET: "\x1b[0m",
|
|
9
|
+
//
|
|
10
|
+
RED: "\x1b[31m",
|
|
11
|
+
GREEN: "\x1b[32m",
|
|
12
|
+
YELLOW: "\x1b[33m"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export function createLogger(name: string): Logger {
|
|
16
|
+
if (!name.length) {
|
|
17
|
+
throw Error();
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
error(...msgs: any[]) {
|
|
21
|
+
console.log("[", name, "]:", COLOR.RED, msgs, COLOR.RESET);
|
|
22
|
+
},
|
|
23
|
+
warn(...msgs: any[]) {
|
|
24
|
+
console.log("[", name, "]:", COLOR.YELLOW, msgs, COLOR.RESET);
|
|
25
|
+
},
|
|
26
|
+
info(...msgs: any[]) {
|
|
27
|
+
console.log("[", name, "]:", COLOR.GREEN, msgs, COLOR.RESET);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
package/src/reload.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RspackOptionsNormalized } from "@rspack/core";
|
|
2
|
+
|
|
3
|
+
interface Status {
|
|
4
|
+
isUnloading: boolean;
|
|
5
|
+
currentHash: string;
|
|
6
|
+
previousHash: string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function reloadApp(
|
|
10
|
+
{ liveReload, hmr }: RspackOptionsNormalized["devServer"],
|
|
11
|
+
status: Status
|
|
12
|
+
) {
|
|
13
|
+
if (status.isUnloading) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function applyReload(rootWindow: Window, intervalId: number) {
|
|
18
|
+
clearInterval(intervalId);
|
|
19
|
+
console.log("App update, Reloading...");
|
|
20
|
+
rootWindow.location.reload();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (liveReload) {
|
|
24
|
+
let rootWindow = self;
|
|
25
|
+
const intervalId = self.setInterval(() => {
|
|
26
|
+
if (rootWindow.location.protocol !== "about:") {
|
|
27
|
+
applyReload(rootWindow, intervalId);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/server.ts
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import type { Compiler, RspackOptionsNormalized } from "@rspack/core";
|
|
2
|
+
import type { Logger } from "./logger";
|
|
3
|
+
import type { Socket } from "net";
|
|
4
|
+
import type { FSWatcher, WatchOptions } from "chokidar";
|
|
5
|
+
import type { WebSocketServer, ClientConnection } from "./ws";
|
|
6
|
+
import type { RspackDevMiddleware } from "@rspack/dev-middleware";
|
|
7
|
+
import type {
|
|
8
|
+
Application,
|
|
9
|
+
RequestHandler as ExpressRequestHandler,
|
|
10
|
+
ErrorRequestHandler as ExpressErrorRequestHandler
|
|
11
|
+
} from "express";
|
|
12
|
+
import type { Server } from "http";
|
|
13
|
+
|
|
14
|
+
import chokidar from "chokidar";
|
|
15
|
+
import http from "http";
|
|
16
|
+
import { createLogger } from "./logger";
|
|
17
|
+
import WebpackDevServer from "webpack-dev-server";
|
|
18
|
+
import express from "express";
|
|
19
|
+
import { rdm } from "@rspack/dev-middleware";
|
|
20
|
+
import { createWebsocketServer } from "./ws";
|
|
21
|
+
|
|
22
|
+
interface Middleware {
|
|
23
|
+
name?: string;
|
|
24
|
+
path?: string;
|
|
25
|
+
middleware: ExpressErrorRequestHandler | ExpressRequestHandler;
|
|
26
|
+
}
|
|
27
|
+
interface Listener {
|
|
28
|
+
name: string | Symbol;
|
|
29
|
+
listener: (...args: any) => void;
|
|
30
|
+
}
|
|
31
|
+
type Host = "local-ip" | "local-ipv4" | "local-ipv6" | string;
|
|
32
|
+
type Port = number | string | "auto";
|
|
33
|
+
|
|
34
|
+
// copy from webpack-dev-server
|
|
35
|
+
export class RspackDevServer {
|
|
36
|
+
options: RspackOptionsNormalized["devServer"];
|
|
37
|
+
logger: Logger;
|
|
38
|
+
staticWatchers: FSWatcher[];
|
|
39
|
+
sockets: Socket[];
|
|
40
|
+
app: Application;
|
|
41
|
+
server: Server;
|
|
42
|
+
private listeners: Listener[];
|
|
43
|
+
private currentHash: string;
|
|
44
|
+
private middleware: RspackDevMiddleware | undefined;
|
|
45
|
+
// TODO: now only support 'ws'
|
|
46
|
+
webSocketServer: WebSocketServer | undefined;
|
|
47
|
+
|
|
48
|
+
constructor(public compiler: Compiler) {
|
|
49
|
+
this.logger = createLogger("rspack-dev-server");
|
|
50
|
+
this.staticWatchers = [];
|
|
51
|
+
this.listeners = [];
|
|
52
|
+
this.sockets = [];
|
|
53
|
+
this.currentHash = "";
|
|
54
|
+
this.options = compiler.options["devServer"];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static isAbsoluteURL(URL: string): boolean {
|
|
58
|
+
return WebpackDevServer.isAbsoluteURL(URL);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static findIp(gateway: string): string | undefined {
|
|
62
|
+
return WebpackDevServer.findIp(gateway);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static async internalIP(family: "v6" | "v4"): Promise<string | undefined> {
|
|
66
|
+
return WebpackDevServer.internalIP(family);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static async internalIPSync(
|
|
70
|
+
family: "v6" | "v4"
|
|
71
|
+
): Promise<string | undefined> {
|
|
72
|
+
return WebpackDevServer.internalIPSync(family);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static async getHostname(hostname: Host): Promise<string> {
|
|
76
|
+
return WebpackDevServer.getHostname(hostname);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static async getFreePort(port: Port, host: string): Promise<string | number> {
|
|
80
|
+
return WebpackDevServer.getFreePort(port, host);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static findCacheDir(): string {
|
|
84
|
+
// TODO: we need remove the `webpack-dev-server` tag in WebpackDevServer;
|
|
85
|
+
return "";
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private getCompilerOptions(): RspackOptionsNormalized {
|
|
89
|
+
return this.compiler.options;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
sendMessage(
|
|
93
|
+
clients: ClientConnection[],
|
|
94
|
+
type: string,
|
|
95
|
+
data?: any,
|
|
96
|
+
params?: any
|
|
97
|
+
) {
|
|
98
|
+
for (const client of clients) {
|
|
99
|
+
if (client.readyState === 1) {
|
|
100
|
+
client.send(JSON.stringify({ type, data, params }));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
watchFiles(watchPath: string | string[], watchOptions?: WatchOptions): void {
|
|
106
|
+
const watcher = chokidar.watch(watchPath, watchOptions);
|
|
107
|
+
|
|
108
|
+
// disabling refreshing on changing the content
|
|
109
|
+
if (this.options.liveReload) {
|
|
110
|
+
watcher.on("change", item => {
|
|
111
|
+
if (this.webSocketServer) {
|
|
112
|
+
this.sendMessage(
|
|
113
|
+
this.webSocketServer.clients,
|
|
114
|
+
"static-changed",
|
|
115
|
+
item
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
this.staticWatchers.push(watcher);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
invalidate(callback = () => {}): void {
|
|
125
|
+
if (this.middleware) {
|
|
126
|
+
this.middleware.invalidate(callback);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
async start(): Promise<void> {
|
|
131
|
+
this.initialize();
|
|
132
|
+
this.createWebsocketServer();
|
|
133
|
+
await new Promise(resolve =>
|
|
134
|
+
this.server.listen(
|
|
135
|
+
{
|
|
136
|
+
port: this.options.port,
|
|
137
|
+
host: "localhost"
|
|
138
|
+
},
|
|
139
|
+
() => {
|
|
140
|
+
console.log(`begin server at http://localhost:${this.options.port}`);
|
|
141
|
+
resolve({});
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
startCallback(callback?: (err?: Error) => void): void {
|
|
148
|
+
throw new Error("Method not implemented.");
|
|
149
|
+
}
|
|
150
|
+
stopCallback(callback?: (err?: Error) => void): void {
|
|
151
|
+
throw new Error("Method not implemented.");
|
|
152
|
+
}
|
|
153
|
+
listen(port: Port, hostname: string, fn: (err?: Error) => void): void {
|
|
154
|
+
throw new Error("Method not implemented.");
|
|
155
|
+
}
|
|
156
|
+
close(callback?: (err?: Error) => void): void {
|
|
157
|
+
throw new Error("Method not implemented.");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
async stop(): Promise<void> {
|
|
161
|
+
await Promise.all(this.staticWatchers.map(watcher => watcher.close()));
|
|
162
|
+
this.middleware = null;
|
|
163
|
+
this.staticWatchers = [];
|
|
164
|
+
if (this.server) {
|
|
165
|
+
this.server.close();
|
|
166
|
+
}
|
|
167
|
+
if (this.webSocketServer) {
|
|
168
|
+
await new Promise(resolve => {
|
|
169
|
+
this.webSocketServer;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
private initialize() {
|
|
175
|
+
this.setupApp();
|
|
176
|
+
this.setupDevMiddleware();
|
|
177
|
+
this.setupWatchStaticFiles();
|
|
178
|
+
this.setupMiddlewares();
|
|
179
|
+
this.createServer();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
private setupApp() {
|
|
183
|
+
this.app = express();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
private setupWatchStaticFiles() {
|
|
187
|
+
if (this.options.static.watch === false) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
this.watchFiles(this.options.static.directory, this.options.static.watch);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
private setupDevMiddleware() {
|
|
194
|
+
this.middleware = rdm(this.compiler, this.options.devMiddleware);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
private createWebsocketServer() {
|
|
198
|
+
if (this.options.webSocketServer !== false) {
|
|
199
|
+
this.webSocketServer = createWebsocketServer(this);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
private setupMiddlewares() {
|
|
204
|
+
const middlewares: Middleware[] = [];
|
|
205
|
+
middlewares.push({
|
|
206
|
+
name: "rdm",
|
|
207
|
+
middleware: this.middleware
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
middlewares.push({
|
|
211
|
+
name: "express-static",
|
|
212
|
+
middleware: express.static(this.options.static.directory)
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
middlewares.forEach(m => {
|
|
216
|
+
if (m.path) {
|
|
217
|
+
this.app.use(m.path, m.middleware);
|
|
218
|
+
} else {
|
|
219
|
+
this.app.use(m.middleware);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
private createServer() {
|
|
225
|
+
this.server = http.createServer(this.app);
|
|
226
|
+
}
|
|
227
|
+
}
|
package/src/ws.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RspackDevServer } from "./server";
|
|
2
|
+
import WebSocket from "ws";
|
|
3
|
+
import WebpackWsServer from "webpack-dev-server/lib/servers/WebsocketServer";
|
|
4
|
+
|
|
5
|
+
export type ClientConnection = WebSocket & { isAlive?: boolean };
|
|
6
|
+
|
|
7
|
+
export interface WebSocketServer {
|
|
8
|
+
heartbeatInterval: number;
|
|
9
|
+
implementation: WebSocket.Server<WebSocket.WebSocket>;
|
|
10
|
+
server: RspackDevServer;
|
|
11
|
+
clients: ClientConnection[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function createWebsocketServer(
|
|
15
|
+
server: RspackDevServer
|
|
16
|
+
): WebSocketServer {
|
|
17
|
+
return new WebpackWsServer(server);
|
|
18
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"include": [
|
|
4
|
+
"src"
|
|
5
|
+
],
|
|
2
6
|
"compilerOptions": {
|
|
3
|
-
"module": "CommonJS",
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
7
|
"outDir": "dist",
|
|
8
|
-
"
|
|
8
|
+
"rootDir": "src"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
10
|
+
"references": [
|
|
11
|
+
{
|
|
12
|
+
"path": "../rspack-dev-middleware"
|
|
13
|
+
}
|
|
12
14
|
]
|
|
13
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.webworker.importscripts.d.ts","./node_modules/typescript/lib/lib.scripthost.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.es2018.full.d.ts","../rspack/dist/logging/logger.d.ts","../rspack/dist/config/watch.d.ts","../../node_modules/tapable/tapable.d.ts","../rspack/dist/config/context.d.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/assert/strict.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/diagnostics_channel.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/dns/promises.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/stream/promises.d.ts","./node_modules/@types/node/stream/consumers.d.ts","./node_modules/@types/node/stream/web.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/timers/promises.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/globals.global.d.ts","./node_modules/@types/node/index.d.ts","../../node_modules/anymatch/index.d.ts","../../node_modules/chokidar/types/index.d.ts","../rspack/dist/config/devserver.d.ts","../rspack/dist/config/entry.d.ts","../rspack/dist/config/external.d.ts","../rspack/dist/config/mode.d.ts","../../crates/node_binding/binding.d.ts","../rspack/dist/config/devtool.d.ts","../rspack/dist/config/module.d.ts","../rspack/dist/config/plugin.d.ts","../rspack/dist/config/target.d.ts","../rspack/dist/config/output.d.ts","../rspack/dist/config/resolve.d.ts","../rspack/dist/config/builtins.d.ts","../rspack/dist/config/rspackoptions.d.ts","../rspack/dist/config/index.d.ts","../../node_modules/@types/webpack-sources/node_modules/source-map/source-map.d.ts","../../node_modules/@types/webpack-sources/lib/source.d.ts","../../node_modules/@types/webpack-sources/lib/compatsource.d.ts","../../node_modules/@types/source-list-map/index.d.ts","../../node_modules/@types/webpack-sources/lib/concatsource.d.ts","../../node_modules/@types/webpack-sources/lib/originalsource.d.ts","../../node_modules/@types/webpack-sources/lib/prefixsource.d.ts","../../node_modules/@types/webpack-sources/lib/rawsource.d.ts","../../node_modules/@types/webpack-sources/lib/replacesource.d.ts","../../node_modules/@types/webpack-sources/lib/sizeonlysource.d.ts","../../node_modules/@types/webpack-sources/lib/sourcemapsource.d.ts","../../node_modules/@types/webpack-sources/lib/index.d.ts","../../node_modules/@types/webpack-sources/lib/cachedsource.d.ts","../../node_modules/@types/webpack-sources/index.d.ts","../rspack/dist/compilation.d.ts","../rspack/dist/stats.d.ts","../rspack/dist/compiler.d.ts","../rspack/dist/rspack.d.ts","../rspack/dist/index.d.ts","./src/logger.ts","../../node_modules/@types/ws/index.d.ts","./src/ws.ts","../../node_modules/@types/range-parser/index.d.ts","../../node_modules/@types/qs/index.d.ts","../../node_modules/@types/express-serve-static-core/index.d.ts","../../node_modules/@types/mime/mime.d.ts","../../node_modules/@types/mime/index.d.ts","../../node_modules/@types/serve-static/index.d.ts","../../node_modules/@types/connect/index.d.ts","../../node_modules/@types/body-parser/index.d.ts","../../node_modules/@types/express/index.d.ts","../rspack-dev-middleware/dist/index.d.ts","../../node_modules/webpack-dev-server/types/bin/process-arguments.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/schema-utils/declarations/validationerror.d.ts","../../node_modules/schema-utils/node_modules/ajv/lib/ajv.d.ts","../../node_modules/schema-utils/declarations/validate.d.ts","../../node_modules/schema-utils/declarations/index.d.ts","../../node_modules/webpack/types.d.ts","../../node_modules/webpack-dev-middleware/node_modules/schema-utils/declarations/validationerror.d.ts","../../node_modules/uri-js/dist/es5/uri.all.d.ts","../../node_modules/ajv/dist/compile/codegen/code.d.ts","../../node_modules/ajv/dist/compile/codegen/scope.d.ts","../../node_modules/ajv/dist/compile/codegen/index.d.ts","../../node_modules/ajv/dist/compile/rules.d.ts","../../node_modules/ajv/dist/compile/util.d.ts","../../node_modules/ajv/dist/compile/validate/subschema.d.ts","../../node_modules/ajv/dist/compile/errors.d.ts","../../node_modules/ajv/dist/compile/validate/index.d.ts","../../node_modules/ajv/dist/compile/validate/datatype.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalitems.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/propertynames.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalproperties.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/anyof.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/oneof.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../node_modules/ajv/dist/vocabularies/validation/limitnumber.d.ts","../../node_modules/ajv/dist/vocabularies/validation/multipleof.d.ts","../../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../node_modules/ajv/dist/vocabularies/validation/uniqueitems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../node_modules/ajv/dist/vocabularies/format/format.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedproperties.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluateditems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/dependentrequired.d.ts","../../node_modules/ajv/dist/vocabularies/discriminator/types.d.ts","../../node_modules/ajv/dist/vocabularies/discriminator/index.d.ts","../../node_modules/ajv/dist/vocabularies/errors.d.ts","../../node_modules/ajv/dist/types/json-schema.d.ts","../../node_modules/ajv/dist/types/jtd-schema.d.ts","../../node_modules/ajv/dist/runtime/validation_error.d.ts","../../node_modules/ajv/dist/compile/ref_error.d.ts","../../node_modules/ajv/dist/core.d.ts","../../node_modules/ajv/dist/compile/resolve.d.ts","../../node_modules/ajv/dist/compile/index.d.ts","../../node_modules/ajv/dist/types/index.d.ts","../../node_modules/ajv/dist/ajv.d.ts","../../node_modules/webpack-dev-middleware/node_modules/schema-utils/declarations/validate.d.ts","../../node_modules/webpack-dev-middleware/types/index.d.ts","../../node_modules/@types/connect-history-api-fallback/index.d.ts","../../node_modules/bonjour-service/dist/lib/keyvalue.d.ts","../../node_modules/bonjour-service/dist/lib/service.d.ts","../../node_modules/bonjour-service/dist/lib/browser.d.ts","../../node_modules/bonjour-service/dist/index.d.ts","../../node_modules/@types/sockjs/index.d.ts","../../node_modules/webpack-dev-server/node_modules/schema-utils/declarations/validate.d.ts","../../node_modules/@types/http-proxy/index.d.ts","../../node_modules/http-proxy-middleware/dist/types.d.ts","../../node_modules/http-proxy-middleware/dist/handlers/response-interceptor.d.ts","../../node_modules/http-proxy-middleware/dist/handlers/fix-request-body.d.ts","../../node_modules/http-proxy-middleware/dist/handlers/public.d.ts","../../node_modules/http-proxy-middleware/dist/handlers/index.d.ts","../../node_modules/http-proxy-middleware/dist/index.d.ts","../../node_modules/@types/serve-index/index.d.ts","../../node_modules/webpack-dev-server/node_modules/ipaddr.js/lib/ipaddr.js.d.ts","../../node_modules/open/index.d.ts","../../node_modules/webpack-dev-server/types/lib/server.d.ts","./src/server.ts","./src/index.ts","./src/reload.ts","../../node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/bonjour/index.d.ts","../../node_modules/@types/configstore/index.d.ts","../../node_modules/@types/d3-timer/index.d.ts","../../node_modules/@types/debug/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/geojson/index.d.ts","../../node_modules/@types/get-port/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/hoist-non-react-statics/index.d.ts","../../node_modules/ci-info/index.d.ts","../../node_modules/@types/is-ci/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/@jest/schemas/build/index.d.ts","../../node_modules/pretty-format/build/index.d.ts","../../node_modules/jest-diff/build/index.d.ts","../../node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/less/index.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/mkdirp/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/redux/index.d.ts","../../node_modules/@types/react-redux/index.d.ts","../../node_modules/@types/retry/index.d.ts","../../node_modules/@types/rimraf/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../node_modules/@types/sinon/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/tmp/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts","../../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3f149f903dd20dfeb7c80e228b659f0e436532de772469980dbd00702cc05cc1","affectsGlobalScope":true},{"version":"1272277fe7daa738e555eb6cc45ded42cc2d0f76c07294142283145d49e96186","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","aa85a7a89429b971305b0c77d3a2224564f86b82d1912b020ccb0d0d28d85aae","53f49f01e18acb429cffdfe96e6477e5091cd42bb92a74c25181dde62caa2447","cd74c8275483d3fe0d07a9b4bba28845a8a611f0aa399e961dbd40e5d46dd9ad","163cb20ecab593f7a10da91d1ff8f031e1ec1d9a2c8997cf5d53521304c99a71","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"6dfd135b38ab97c536d9c966fc5a5a879a19c6ed75c2c9633902be1ef0945ff7","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","a361a26932d73497a174a6d48c53cfedb55f735f20e8638fdf7b25cdeaac9ca4","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e6ef68f677c1b63967d87568043b8af9d2dfd71d5873acd1de3abeb1db606741","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","a7e430e32eaefba6b1ebf23a94a4562bfe7051cc83558d33ddc8ff342f3c18e9","c6162716947b6e62ca8c36ff991c14d0b49424106cca419f1e8e5849bcf808f2","ea93bf36d6ab2858dec076f40187f164c6fad1d94f4c6abded6c32aaef4d4ec3","050e666c96dd61a73b635d13e08fe09ebf537622cb607a6afb96ec1f3d89c60d","8212ac0cca7c15c9d3b54c2b49e68e2e22eef9ddb5d6aa43b0a808a78bf3d2e5","3fde48cd7aa33655b36dbf617500063e0f112cd719f68ecd004fe46479a2c52f","0431720f61d5d6bedcbc40ce823fcb8a46b8cf4c653b42a374d751ac14486b29","987d66586fdc463a40470e2d1a888c3e02c5642e1ace52058b1f5fb998a9c793","eaf599bf6dd86cdf567a5f6d66d120e56c9e0f5017edf0eb4c32d0a079e12547","eae92b11e3f007b6969694985c806d598817d039f9ea3daee4f40ba9dfaef330","6a10384532ffe72c178396a6ab80ce6078091f0b0373869d56a7b211e0068199","54de7fc4647567d648ef7d97f2a3c7d3f4d8af47f27025b14c5c9dcdea74d5d5","dee8f29477a021b3b0903c4e5a1c0acf4c7fa3a08c21dac5dcd5daff7f0a7785","38d86bed469d9a2a46f9b06a88620c83c50c0992f188241918f3b85fd9f9f814","5d07a400b7ec724df0fa6e704222faee758c3cda0efb18caaec7874851a91e6f","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","bf263a191fd5401c48aa544243f8a248d85e0ba12ccc35d41c061030285807b6","b76635b244a880e002ca27071743eb86463b7c3010e64268391ec0ac2f46e3dd","8e594abab376f9a33f75f3ef739315336703cd4ded4948bee9b316c079c84af6","59f9acb989cdd1b1000f5ce021401a617b69e14e7fc117d14fb1c1ad7276108b","1808d4a759253973c4b42b99cc27b1645e16e661c500bced8dcbc6b1a0c95416",{"version":"0849bbd7da30274246bea4072325cee47d71cab4d2f7bc51bbbeff34c3c0a66f","signature":"bcf09de7161dff4445849e3ba58a69458906fd4b86e46e69858fc0825f01adfd"},"b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6",{"version":"273ddf9a1b131d217453005236a061faeb128f91bfc200667b2b3f41f090f9a4","signature":"21b6790efb2b9632c49398973c5888c3670231b0509498862d6a9ab08a6d1c8d"},"16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","dc48c915ada9e16f0666d337041270cd373a5e4989d74bdc0f35c62a4abca8cd","e8b4abd837dd9867957c26acf78ebb4d3d34ca6c349282c9be0964c45a877cbd","a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","dee5d387e2e6f3015cbf91fc0c13ed6f016f9c5c1f2ad9c62602f4fd398fa83a","67f129ed8b372622ff36b8b10e39d03e09e363a5ff7821105f92f085b8d1ccba","721124f5db1f4a42da2308dfa1414d2e99055d2dfc59de7bf2e0b6ac64356c0e","0d7569149194d622212c21d5d162b0715d5a6ca764cebae7145fdbaff1e07311","e09496173b22a2c0b21983b94b6ae6e30251370f1c5b8a3d30128884e533f25c","dee5d387e2e6f3015cbf91fc0c13ed6f016f9c5c1f2ad9c62602f4fd398fa83a","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","44a8d350600656882fd7462774e32e8d13788313ba2e36d2e8d5437ac91b98df","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b8870b5155d11a273c75718a4f19026da49f91c548703858cd3400d06c3bd3b8","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","8d26ae32e5c9c080e44aee4a67e5ef02b5fda0604e6fecbb7b753c537e5282d9","05c4e792dae38912ba333725cdf8c42d242337d006c0d887f4ce5a7787871a95","cd44995ee13d5d23df17a10213fed7b483fabfd5ea08f267ab52c07ce0b6b4da","58ce1486f851942bd2d3056b399079bc9cb978ec933fe9833ea417e33eab676e","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","d3d0d11d30c9878ada3356b9c36a2754b8c7b6204a41c86bfb1488c08ce263b0","a6493f1f479637ed89a3ebec03f6dc117e3b1851d7e938ac4c8501396b8639a8","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9d00e3a59eff68fa8c40e89953083eeaad1c5b2580ed7da2304424b249ecb237","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","4430dea494b0ee77bf823d9a7c4850a539e1060d5d865316bb23fb393e4f01d7","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","66e655f7c43558bae6703242cbd6c0551a94d0a97204bd4c4bbf7e77f24d1f85","72f7b32e023814078046c036ed4b7ad92414be0aebb63e805c682e14103ae38a","a89d8e67966d085ff971c9900cfa1abdd9732bab66d9c1914ecc15befdf8623d","7dfd0308261bb91b058eb91802690fe3f09192b263e070a19df4d629df29e265","608eb9d411ac76e93a10e05f8aae92b3a5cefc87594219b737df7c8737ba2bd7","cde493e09daad4bb29922fe633f760be9f0e8e2f39cdca999cce3b8690b5e13a","3d7f9eb12aface876f7b535cc89dcd416daf77f0b3573333f16ec0a70bcf902a","93ba4ac36f570c70a12d588e21c10dda9f351fad3e77d416952acddb27bff01d","8750f9dc1e277ffff7446c95571bae61aca0984e8f99e40fc1e8cb7161ae0642","66408d81ba8962282b1a55da34c6bd767105141f54d0ba14dca330efe0c8f552","7481b9d93ca44eb1f689e0b939545ff00dead7bdb9daba401dfb74292d83f831","821e64ddbdfa10fac5f0aed1c1d4e1f275840400caa96357ddfd15d02e5afba1","1154651a6fbc1d60e448b903ec80f256f6771ced212ee1c3e5121168723621db","d82515baae7eb3ced1f56d61a40784585f450e1ff645dd46118e3eb8c40fd7fe","56cbe80e6c42d7e6e66b6f048add8b01c663797b843a074d9f19c4a3d63a269a","b9a9fd65a90941b07738158fe0ce563746887d4df44843a61bc69e388bb19ad6","59e23716db918fb164de91e495923a94f68ff0e3bf1601ae7a97c73046517068","638ce67b8ef1c3fe13ea078b3b0c56c1895c7815e4aa02c1c2f9c250edd170ea","130c7104c742f7ef7b85f9e741b5c451a1379b58822de5e88384cdca350dca42","82b1f9a6eefef7386aebe22ac49f23b806421e82dbf35c6e5b7132d79e4165da","1154651a6fbc1d60e448b903ec80f256f6771ced212ee1c3e5121168723621db","c1d5cc0286eef54f6246a972ec1720efbba6b7b0a53a303e1f2067ca229ecd16","43a4860173cec933ed8380e55f7a4473dd0df38b43e706b492f443cd8612bd87","f90d85d4cb38445499bdb7e7b013e4f64d99d157a6fa0843e998495ceb27b520","2e178a87e7bf03a067cfb1cf5573e7c4899fcbc9f462a0b0c67d238e39b794a4","901becb8779e1089442378fda5623e607ee4588762a32e7692436f1ea81cf848","8286d84d2567b713fd6a1fdfbb1a0abc8cfa668ee1e0e83d7dd4ade5761f2750","f28dffc6bf9bbd8b9dc156aadb74d11de7faabf547eb9f0aebb8cd03e8750a6c","acebfe99678cf7cddcddc3435222cf132052b1226e902daac9fbb495c321a9b5","9093a651687f1a876d696bc76b85ed9f0d920332b908f400f9ac03e1ed6edd34","ac0e45806dfb87684696b8a268697c8e789c50e29fd285fec047830e773f9832","8056361295dc5e312e45431662bf179bb11c3c02817be68c221823869df0371e",{"version":"61efaaba4d7cb24f806a4528b9ba483cc557fc864b2b65ae7211ba63d70a8b06","signature":"8832263b976b29baf6c31c71d82fff30cebbd36b67b36c46a006ef4194211979"},"d1ebe8a8d3f21e894f6006de3ea93c6443f846372876244e4135d24c7580b29f",{"version":"bfc1f21e554d97c11bf3ea53da3c5916f8e37883c30b9bf3805b50b07ea79d12","signature":"f435c9735a35f2550624e255d1fea0d5bcd5ff47ffefebe70db8c3796aaf2023"},"c561efdf5ba0b62619745d4761fe2d9756f23db972e039367d15922fed67fd2f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","7ec238b220ea991b6643e24191b1f552a65956d5f6de4c6144e700b9985265d8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","d78e5898c8de5e0f934eee83f680262de005caa268d137101b833fd932f95e07","e3cb1b4d91d7fd308d69b4af172c80c9455e2ce52970d7f6f817d2132e7a72da","ee96ecd663350ea2fc2129f0aa4a430e29a8f6f3b3016b15b18bbe309aca46a8","37a4038e69fb61043e363140b58d7d517d6f99f274adad0774f226ea2ee8c903",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"c84d0f714fe122193c21c0f0917e873beb3a03fa3422ceb2fbd1ebc0558790a0","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","8c2e6e491e1a08855b8bf70820184ff66ae0d43f7cf0311fc680e6d860af211c","00c886d849a8a4b7ceb0a8a6c7a36b168a7a44b2f93fe30c6c30dae71c05709f","963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","5df18146efb27157c4592eade8b8b55a937ed70d6f4081f78ac613cf8d6912dc","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"ba7617784f6b9aeac5e20c5eea869bbc3ef31b905f59c796b0fd401dae17c111","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"515ee54ff10b6503aeabf3419cad1ed1f6e5e3c444f3d4f24279f17cb61be012","affectsGlobalScope":true},"bfe1b52cf71aea9bf8815810cc5d9490fa9617313e3d3c2ee3809a28b80d0bb4","e211731b72e875fa3eee84d1976ff2c0fcb4e2923af8ecd3516567299308b2c0","a3e5b8b86e7bd38d9afdc294875c4445c535319e288d3a13c1e2e41f9af934f2","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","124dfbdd53106f7f8803b9f33d2c040aed3ff906554a55d03983d4628db23358","427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","3ad5991645bbea846d4efe615cd847e785ca30fff0205fdffb0f9a3ade3d13df",{"version":"c77e814973cb19583d7148a17e1784fb29641f1e958d33eaac4b24ea7dce0506","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538",{"version":"63e4ad7de3875a4817db8260a5b56314774e84f3b08d784317afbfe928b9a807","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","6702a1cd8818cb22ee95c85dcf2c31c117bde892e1afd2bc254bd720f4c6263c","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","7a79ca84e4370ed2e1afaa99ff7d25194901916b7672e977d16f77af3b71342f","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6396a7a06f3ef0fc31a7c89330e015146b78a2256b030c698b6d404594c37b8f","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","93c4fc5b5237c09bc9ed65cb8f0dc1d89034406ab40500b89701341994897142",{"version":"fd624f7d7b264922476685870f08c5e1c6d6a0f05dee2429a9747b41f6b699d4","affectsGlobalScope":true},"1781e7a2a01c07c7295d3ce885d5d2905bec6449725937e3b8776c9b5ab4bf5b","199f9ead0daf25ae4c5632e3d1f42570af59685294a38123eef457407e13f365","3034db2891e04de367126370bebec88ac3b4e3b1eb8b7dc30671ccddb717eed2","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","87352bb579421f6938177a53bb66e8514067b4872ccaa5fe08ddbca56364570c","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","354abbae08f72ea982b1a767a8908f1b3efe8bbe53955c64f9c0c249c8832d5d","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f26c7e4aa5603123034d9ee4459f43d49daa3d96fdd12999d45d7fa16e584cfe","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","28288f5e5f8b7b895ed2abe6359c1da3e0d14a64b5aef985071285671f347c01"],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"outDir":"./dist","rootDir":"./src","sourceMap":true,"target":5},"fileIdsList":[[93],[93,226],[93,257],[93,226,227,228,229,230],[93,226,228],[68,93,100,145],[60,93,100],[92,93,100,141],[68,93,100],[93,150,237],[93,150,151,236],[65,68,93,100,139,140],[93,140,141,144,146],[65,66,93,100,241],[66,93,100],[93,248],[65,68,70,73,82,92,93,100],[93,250],[93,252],[93,253],[93,259,262],[93,266,268,269,270,271,272,273,274,275,276,277,278],[93,266,267,269,270,271,272,273,274,275,276,277,278],[93,267,268,269,270,271,272,273,274,275,276,277,278],[93,266,267,268,270,271,272,273,274,275,276,277,278],[93,266,267,268,269,271,272,273,274,275,276,277,278],[93,266,267,268,269,270,272,273,274,275,276,277,278],[93,266,267,268,269,270,271,273,274,275,276,277,278],[93,266,267,268,269,270,271,272,274,275,276,277,278],[93,266,267,268,269,270,271,272,273,275,276,277,278],[93,266,267,268,269,270,271,272,273,274,276,277,278],[93,266,267,268,269,270,271,272,273,274,275,277,278],[93,266,267,268,269,270,271,272,273,274,275,276,278],[93,266,267,268,269,270,271,272,273,274,275,276,277],[93,142],[93,143],[93,248,249,284],[93,244,245,246,247],[66,93,100,242],[66,93,147],[68,93,100,143],[93,290],[93,100,118,119,121,122,123,124,125,126,127,128,129],[93,117,118,128],[93,118,128],[93,117,118,120,128],[93,117,118,119,121,122,123,124,125,126,127,129],[93,118],[59,93,117,128],[65,68,70,82,89,92,93,98,100],[93,294],[93,161,162,166,193,194,198,200,201],[93,159,160],[93,159],[93,161,201],[93,161,162,198,199,201],[93,201],[93,158,201,202],[93,161,162,200,201],[93,161,162,164,165,200,201],[93,161,162,163,200,201],[93,161,162,166,193,194,195,196,197,200,201],[93,158,161,162,166,198,200],[93,166,201],[93,168,169,170,171,172,173,174,175,176,177,201],[93,191,201],[93,167,178,186,187,188,189,190,192],[93,171,201],[93,179,180,181,182,183,184,185,201],[93,207,208],[65,93,100,207],[65,93,100,206],[65,66,93,100,101],[93,255,261],[93,216],[93,214,215],[93,213,217],[68,73,92,93,100,147,212],[93,259],[93,256,260],[55,93],[93,258],[93,154],[93,151,152,153],[93,151,154],[93,151,157,202],[93,151,203],[66,68,93,100,156,203],[68,70,73,74,75,93,100,102,137,141,144,147,149,156,203,204,205,209,210,218,219,220,221],[48,54,68,73,89,93,150,152,154,155],[93,135,147],[50,93],[53,93],[54,59,93],[55,65,66,73,82,92,93],[55,56,65,73,93],[57,93],[58,59,66,74,93],[59,82,89,93],[60,62,65,73,93],[61,93],[62,63,93],[64,65,93],[65,93],[65,66,67,82,92,93],[65,66,67,82,93],[68,73,82,92,93],[65,66,68,69,73,82,89,92,93],[68,70,82,89,92,93],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],[65,71,93],[72,92,93],[62,65,73,82,93],[74,93],[75,93],[53,76,93],[77,91,93,97],[78,93],[79,93],[65,80,93],[80,81,93,95],[65,82,83,84,93],[82,84,93],[82,83,93],[85,93],[86,93],[65,87,88,93],[87,88,93],[59,73,89,93],[90,93],[73,91,93],[54,68,79,92,93],[59,93],[82,93,94],[93,95],[93,96],[54,59,65,67,76,82,92,93,95,97],[82,93,98],[93,223],[93,135],[68,73,93,102,135,136,138,147,148,222],[93,137,223],[48,93,116,130],[46,47,48,93,116,131,132],[93,107],[93,102],[93,103],[49,93,103,104,105,106,108,109,110,111,112,113,114,115],[49,93,107,108,296],[93,296],[93,116,133,134],[93,116,132,133],[93,107,131],[135],[68,73,102,135,136,138,147],[137,223]],"referencedMap":[[107,1],[228,2],[226,1],[255,1],[258,3],[257,1],[231,4],[227,2],[229,5],[230,2],[146,6],[232,7],[233,1],[205,8],[145,9],[234,1],[235,1],[238,10],[236,1],[237,11],[150,1],[141,12],[147,13],[239,1],[240,1],[242,14],[243,15],[249,16],[212,17],[251,18],[252,1],[253,19],[254,20],[263,21],[151,1],[264,1],[265,1],[267,22],[268,23],[266,24],[269,25],[270,26],[271,27],[272,28],[273,29],[274,30],[275,31],[276,32],[277,33],[278,34],[143,35],[142,36],[241,1],[279,1],[280,15],[281,1],[282,1],[283,1],[246,1],[140,1],[139,1],[285,37],[244,1],[248,38],[286,1],[287,39],[288,1],[247,1],[289,1],[219,40],[144,41],[291,42],[290,1],[210,9],[120,1],[292,1],[293,1],[130,43],[129,44],[119,45],[121,46],[128,47],[122,46],[123,45],[124,45],[125,45],[126,48],[118,49],[127,44],[117,1],[137,50],[294,1],[295,51],[202,52],[159,1],[161,53],[160,54],[165,55],[200,56],[197,57],[199,58],[162,57],[163,59],[167,59],[166,60],[164,61],[198,62],[196,57],[201,63],[194,1],[195,1],[168,64],[173,57],[175,57],[170,57],[171,64],[177,57],[178,65],[169,57],[174,57],[176,57],[172,57],[192,66],[191,57],[193,67],[187,57],[189,57],[188,57],[184,57],[190,68],[185,57],[186,69],[179,57],[180,57],[181,57],[182,57],[183,57],[101,1],[209,70],[208,71],[206,1],[207,72],[256,1],[102,73],[250,1],[245,1],[262,74],[215,9],[217,75],[216,76],[214,9],[218,77],[213,78],[260,79],[261,80],[221,81],[259,82],[284,1],[155,83],[154,84],[152,85],[153,1],[48,1],[158,1],[203,86],[157,87],[204,88],[220,1],[211,86],[149,1],[222,89],[156,90],[148,91],[50,92],[51,92],[53,93],[54,94],[55,95],[56,96],[57,97],[58,98],[59,99],[60,100],[61,101],[62,102],[63,102],[64,103],[65,104],[66,105],[67,106],[52,1],[99,1],[68,107],[69,108],[70,109],[100,110],[71,111],[72,112],[73,113],[74,114],[75,115],[76,116],[77,117],[78,118],[79,119],[80,120],[81,121],[82,122],[84,123],[83,124],[85,125],[86,126],[87,127],[88,128],[89,129],[90,130],[91,131],[92,132],[93,133],[94,134],[95,135],[96,136],[97,137],[98,138],[8,1],[9,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[45,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[1,1],[44,1],[11,1],[10,1],[224,139],[136,1],[225,140],[223,141],[138,142],[131,143],[133,144],[114,145],[49,1],[103,146],[108,1],[104,147],[105,1],[116,148],[106,1],[109,149],[112,1],[110,140],[113,1],[115,150],[111,1],[47,1],[135,151],[46,1],[134,152],[132,153]],"exportedModulesMap":[[107,1],[228,2],[226,1],[255,1],[258,3],[257,1],[231,4],[227,2],[229,5],[230,2],[146,6],[232,7],[233,1],[205,8],[145,9],[234,1],[235,1],[238,10],[236,1],[237,11],[150,1],[141,12],[147,13],[239,1],[240,1],[242,14],[243,15],[249,16],[212,17],[251,18],[252,1],[253,19],[254,20],[263,21],[151,1],[264,1],[265,1],[267,22],[268,23],[266,24],[269,25],[270,26],[271,27],[272,28],[273,29],[274,30],[275,31],[276,32],[277,33],[278,34],[143,35],[142,36],[241,1],[279,1],[280,15],[281,1],[282,1],[283,1],[246,1],[140,1],[139,1],[285,37],[244,1],[248,38],[286,1],[287,39],[288,1],[247,1],[289,1],[219,40],[144,41],[291,42],[290,1],[210,9],[120,1],[292,1],[293,1],[130,43],[129,44],[119,45],[121,46],[128,47],[122,46],[123,45],[124,45],[125,45],[126,48],[118,49],[127,44],[117,1],[137,50],[294,1],[295,51],[202,52],[159,1],[161,53],[160,54],[165,55],[200,56],[197,57],[199,58],[162,57],[163,59],[167,59],[166,60],[164,61],[198,62],[196,57],[201,63],[194,1],[195,1],[168,64],[173,57],[175,57],[170,57],[171,64],[177,57],[178,65],[169,57],[174,57],[176,57],[172,57],[192,66],[191,57],[193,67],[187,57],[189,57],[188,57],[184,57],[190,68],[185,57],[186,69],[179,57],[180,57],[181,57],[182,57],[183,57],[101,1],[209,70],[208,71],[206,1],[207,72],[256,1],[102,73],[250,1],[245,1],[262,74],[215,9],[217,75],[216,76],[214,9],[218,77],[213,78],[260,79],[261,80],[221,81],[259,82],[284,1],[155,83],[154,84],[152,85],[153,1],[48,1],[158,1],[203,86],[157,87],[204,88],[220,1],[211,86],[149,1],[222,89],[156,90],[148,91],[50,92],[51,92],[53,93],[54,94],[55,95],[56,96],[57,97],[58,98],[59,99],[60,100],[61,101],[62,102],[63,102],[64,103],[65,104],[66,105],[67,106],[52,1],[99,1],[68,107],[69,108],[70,109],[100,110],[71,111],[72,112],[73,113],[74,114],[75,115],[76,116],[77,117],[78,118],[79,119],[80,120],[81,121],[82,122],[84,123],[83,124],[85,125],[86,126],[87,127],[88,128],[89,129],[90,130],[91,131],[92,132],[93,133],[94,134],[95,135],[96,136],[97,137],[98,138],[8,1],[9,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[45,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[1,1],[44,1],[11,1],[10,1],[224,139],[225,154],[223,155],[138,156],[131,143],[133,144],[114,145],[49,1],[103,146],[108,1],[104,147],[105,1],[116,148],[106,1],[109,149],[112,1],[110,140],[113,1],[115,150],[111,1],[47,1],[135,151],[46,1],[134,152],[132,153]],"semanticDiagnosticsPerFile":[107,228,226,255,258,257,231,227,229,230,146,232,233,205,145,234,235,238,236,237,150,141,147,239,240,242,243,249,212,251,252,253,254,263,151,264,265,267,268,266,269,270,271,272,273,274,275,276,277,278,143,142,241,279,280,281,282,283,246,140,139,285,244,248,286,287,288,247,289,219,144,291,290,210,120,292,293,130,129,119,121,128,122,123,124,125,126,118,127,117,137,294,295,202,159,161,160,165,200,197,199,162,163,167,166,164,198,196,201,194,195,168,173,175,170,171,177,178,169,174,176,172,192,191,193,187,189,188,184,190,185,186,179,180,181,182,183,101,209,208,206,207,256,102,250,245,262,215,217,216,214,218,213,260,261,221,259,284,155,154,152,153,48,158,203,157,204,220,211,149,222,156,148,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,52,99,68,69,70,100,71,72,73,74,75,76,77,78,79,80,81,82,84,83,85,86,87,88,89,90,91,92,93,94,95,96,97,98,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,45,29,30,31,32,6,33,34,35,36,7,37,42,43,38,39,40,41,1,44,11,10,224,136,225,223,138,131,133,114,49,103,108,104,105,116,106,109,112,110,113,115,111,47,135,46,134,132]},"version":"4.7.4"}
|
package/dist/server/index.d.ts
DELETED
package/dist/server/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createServer = void 0;
|
|
7
|
-
const express_1 = __importDefault(require("express"));
|
|
8
|
-
async function createServer(options) {
|
|
9
|
-
const { dev: { static: { directory = "dist" } = {} } = {} } = options || {};
|
|
10
|
-
const app = (0, express_1.default)();
|
|
11
|
-
app.use(express_1.default.static(directory));
|
|
12
|
-
return app;
|
|
13
|
-
}
|
|
14
|
-
exports.createServer = createServer;
|
package/src/server/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import express from "express";
|
|
2
|
-
|
|
3
|
-
export async function createServer(options): Promise<express.Express> {
|
|
4
|
-
const { dev: { static: { directory = "dist" } = {} } = {} } = options || {};
|
|
5
|
-
|
|
6
|
-
const app = express();
|
|
7
|
-
|
|
8
|
-
app.use(express.static(directory));
|
|
9
|
-
|
|
10
|
-
return app;
|
|
11
|
-
}
|