@rsdoctor/sdk 0.3.10 → 0.3.11
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/dist/cjs/sdk/sdk/webpack.js +4 -1
- package/dist/cjs/sdk/server/index.js +10 -6
- package/dist/cjs/sdk/utils/openBrowser.js +11 -9
- package/dist/esm/sdk/sdk/webpack.js +4 -1
- package/dist/esm/sdk/server/index.js +10 -6
- package/dist/esm/sdk/utils/openBrowser.js +11 -9
- package/dist/type/sdk/sdk/types.d.ts +0 -2
- package/dist/type/sdk/sdk/types.d.ts.map +1 -1
- package/dist/type/sdk/sdk/webpack.d.ts +1 -2
- package/dist/type/sdk/sdk/webpack.d.ts.map +1 -1
- package/dist/type/sdk/server/index.d.ts +5 -1
- package/dist/type/sdk/server/index.d.ts.map +1 -1
- package/dist/type/sdk/utils/openBrowser.d.ts +1 -1
- package/dist/type/sdk/utils/openBrowser.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -44,7 +44,10 @@ class RsdoctorWebpackSDK extends import_core.SDKCore {
|
|
|
44
44
|
this._chunkGraph = new import_graph.ChunkGraph();
|
|
45
45
|
this._rawSourceMapCache = /* @__PURE__ */ new Map();
|
|
46
46
|
this._sourceMap = /* @__PURE__ */ new Map();
|
|
47
|
-
this.server = options.noServer ? new import_fakeServer.RsdoctorFakeServer(this, void 0) : new import_server.RsdoctorServer(this, options.port,
|
|
47
|
+
this.server = options.config?.noServer ? new import_fakeServer.RsdoctorFakeServer(this, void 0) : new import_server.RsdoctorServer(this, options.port, {
|
|
48
|
+
innerClientPath: options.config?.innerClientPath || "",
|
|
49
|
+
printServerUrl: options.config?.printLog?.serverUrls
|
|
50
|
+
});
|
|
48
51
|
this.type = options.type || import_types.SDK.ToDataType.Normal;
|
|
49
52
|
this.extraConfig = options.config;
|
|
50
53
|
}
|
|
@@ -47,9 +47,10 @@ var import_logger = require("@rsdoctor/utils/logger");
|
|
|
47
47
|
var import_openBrowser = require("../utils/openBrowser");
|
|
48
48
|
var import_path = __toESM(require("path"));
|
|
49
49
|
var import_utils = require("./utils");
|
|
50
|
+
var import_lodash = require("lodash");
|
|
50
51
|
__reExport(server_exports, require("./utils"), module.exports);
|
|
51
52
|
class RsdoctorServer {
|
|
52
|
-
constructor(sdk, port = import_build.Server.defaultPort,
|
|
53
|
+
constructor(sdk, port = import_build.Server.defaultPort, config) {
|
|
53
54
|
this.sdk = sdk;
|
|
54
55
|
this.disposed = true;
|
|
55
56
|
this.get = (route, cb) => {
|
|
@@ -76,7 +77,8 @@ class RsdoctorServer {
|
|
|
76
77
|
(0, import_assert.default)(typeof port === "number");
|
|
77
78
|
this.port = port;
|
|
78
79
|
this._router = new import_router.Router({ sdk, server: this, apis: Object.values(APIs) });
|
|
79
|
-
this._innerClientPath = innerClientPath;
|
|
80
|
+
this._innerClientPath = config?.innerClientPath || "";
|
|
81
|
+
this._printServerUrl = (0, import_lodash.isUndefined)(config?.printServerUrl) ? true : config?.printServerUrl;
|
|
80
82
|
}
|
|
81
83
|
get app() {
|
|
82
84
|
return this._server.app;
|
|
@@ -183,10 +185,12 @@ class RsdoctorServer {
|
|
|
183
185
|
const url = `http://${this.host}:${this.port}${relativeUrl}`;
|
|
184
186
|
const localhostUrl = `http://localhost:${this.port}${relativeUrl}`;
|
|
185
187
|
await (0, import_openBrowser.openBrowser)(localhostUrl);
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
if (this._printServerUrl) {
|
|
189
|
+
import_logger.logger.info(`Rsdoctor analyze server running on: ${import_logger.chalk.cyan(url)}`);
|
|
190
|
+
import_logger.logger.info(
|
|
191
|
+
`Rsdoctor analyze server running on: ${import_logger.chalk.cyan(localhostUrl)}`
|
|
192
|
+
);
|
|
193
|
+
}
|
|
190
194
|
}
|
|
191
195
|
sendAPIDataToClient(api, msg) {
|
|
192
196
|
this._socket?.sendAPIData(api, msg);
|
|
@@ -56,7 +56,7 @@ const getTargetBrowser = async () => {
|
|
|
56
56
|
return targetBrowser;
|
|
57
57
|
};
|
|
58
58
|
async function openBrowser(url) {
|
|
59
|
-
const shouldTryOpenChromeWithAppleScript = process.platform === "darwin";
|
|
59
|
+
const shouldTryOpenChromeWithAppleScript = process.platform === "darwin" || process.platform === "win32";
|
|
60
60
|
if (shouldTryOpenChromeWithAppleScript) {
|
|
61
61
|
try {
|
|
62
62
|
const targetBrowser = await getTargetBrowser();
|
|
@@ -75,15 +75,17 @@ async function openBrowser(url) {
|
|
|
75
75
|
} catch (err) {
|
|
76
76
|
import_logger.logger.debug("Failed to open Rsdoctor URL with apple script.");
|
|
77
77
|
import_logger.logger.debug(err);
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
try {
|
|
82
|
+
await (0, import_open.default)(url);
|
|
83
|
+
return true;
|
|
84
|
+
} catch (err) {
|
|
85
|
+
import_logger.logger.error("Failed to open Rsdoctor URL.");
|
|
86
|
+
import_logger.logger.error(err);
|
|
87
|
+
return false;
|
|
78
88
|
}
|
|
79
|
-
}
|
|
80
|
-
try {
|
|
81
|
-
await (0, import_open.default)(url);
|
|
82
|
-
return true;
|
|
83
|
-
} catch (err) {
|
|
84
|
-
import_logger.logger.error("Failed to open Rsdoctor URL.");
|
|
85
|
-
import_logger.logger.error(err);
|
|
86
|
-
return false;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -21,7 +21,10 @@ class RsdoctorWebpackSDK extends SDKCore {
|
|
|
21
21
|
this._chunkGraph = new ChunkGraph();
|
|
22
22
|
this._rawSourceMapCache = /* @__PURE__ */ new Map();
|
|
23
23
|
this._sourceMap = /* @__PURE__ */ new Map();
|
|
24
|
-
this.server = options.noServer ? new RsdoctorFakeServer(this, void 0) : new RsdoctorServer(this, options.port,
|
|
24
|
+
this.server = options.config?.noServer ? new RsdoctorFakeServer(this, void 0) : new RsdoctorServer(this, options.port, {
|
|
25
|
+
innerClientPath: options.config?.innerClientPath || "",
|
|
26
|
+
printServerUrl: options.config?.printLog?.serverUrls
|
|
27
|
+
});
|
|
25
28
|
this.type = options.type || SDK.ToDataType.Normal;
|
|
26
29
|
this.extraConfig = options.config;
|
|
27
30
|
}
|
|
@@ -13,9 +13,10 @@ import { chalk, logger } from "@rsdoctor/utils/logger";
|
|
|
13
13
|
import { openBrowser } from "../utils/openBrowser";
|
|
14
14
|
import path from "path";
|
|
15
15
|
import { getLocalIpAddress } from "./utils";
|
|
16
|
+
import { isUndefined } from "lodash";
|
|
16
17
|
export * from "./utils";
|
|
17
18
|
class RsdoctorServer {
|
|
18
|
-
constructor(sdk, port = Server.defaultPort,
|
|
19
|
+
constructor(sdk, port = Server.defaultPort, config) {
|
|
19
20
|
this.sdk = sdk;
|
|
20
21
|
this.disposed = true;
|
|
21
22
|
this.get = (route, cb) => {
|
|
@@ -42,7 +43,8 @@ class RsdoctorServer {
|
|
|
42
43
|
assert(typeof port === "number");
|
|
43
44
|
this.port = port;
|
|
44
45
|
this._router = new Router({ sdk, server: this, apis: Object.values(APIs) });
|
|
45
|
-
this._innerClientPath = innerClientPath;
|
|
46
|
+
this._innerClientPath = config?.innerClientPath || "";
|
|
47
|
+
this._printServerUrl = isUndefined(config?.printServerUrl) ? true : config?.printServerUrl;
|
|
46
48
|
}
|
|
47
49
|
get app() {
|
|
48
50
|
return this._server.app;
|
|
@@ -149,10 +151,12 @@ class RsdoctorServer {
|
|
|
149
151
|
const url = `http://${this.host}:${this.port}${relativeUrl}`;
|
|
150
152
|
const localhostUrl = `http://localhost:${this.port}${relativeUrl}`;
|
|
151
153
|
await openBrowser(localhostUrl);
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
if (this._printServerUrl) {
|
|
155
|
+
logger.info(`Rsdoctor analyze server running on: ${chalk.cyan(url)}`);
|
|
156
|
+
logger.info(
|
|
157
|
+
`Rsdoctor analyze server running on: ${chalk.cyan(localhostUrl)}`
|
|
158
|
+
);
|
|
159
|
+
}
|
|
156
160
|
}
|
|
157
161
|
sendAPIDataToClient(api, msg) {
|
|
158
162
|
this._socket?.sendAPIData(api, msg);
|
|
@@ -23,7 +23,7 @@ const getTargetBrowser = async () => {
|
|
|
23
23
|
return targetBrowser;
|
|
24
24
|
};
|
|
25
25
|
async function openBrowser(url) {
|
|
26
|
-
const shouldTryOpenChromeWithAppleScript = process.platform === "darwin";
|
|
26
|
+
const shouldTryOpenChromeWithAppleScript = process.platform === "darwin" || process.platform === "win32";
|
|
27
27
|
if (shouldTryOpenChromeWithAppleScript) {
|
|
28
28
|
try {
|
|
29
29
|
const targetBrowser = await getTargetBrowser();
|
|
@@ -42,15 +42,17 @@ async function openBrowser(url) {
|
|
|
42
42
|
} catch (err) {
|
|
43
43
|
logger.debug("Failed to open Rsdoctor URL with apple script.");
|
|
44
44
|
logger.debug(err);
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
try {
|
|
49
|
+
await open(url);
|
|
50
|
+
return true;
|
|
51
|
+
} catch (err) {
|
|
52
|
+
logger.error("Failed to open Rsdoctor URL.");
|
|
53
|
+
logger.error(err);
|
|
54
|
+
return false;
|
|
45
55
|
}
|
|
46
|
-
}
|
|
47
|
-
try {
|
|
48
|
-
await open(url);
|
|
49
|
-
return true;
|
|
50
|
-
} catch (err) {
|
|
51
|
-
logger.error("Failed to open Rsdoctor URL.");
|
|
52
|
-
logger.error(err);
|
|
53
|
-
return false;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
export {
|
|
@@ -21,9 +21,7 @@ export interface RsdoctorBuilderSDK extends RsdoctorSDKOptions {
|
|
|
21
21
|
* port for client server
|
|
22
22
|
*/
|
|
23
23
|
port?: number;
|
|
24
|
-
noServer?: boolean;
|
|
25
24
|
config?: SDK.SDKOptionsType;
|
|
26
|
-
innerClientPath?: string;
|
|
27
25
|
}
|
|
28
26
|
export interface RsdoctorWebpackSDKOptions extends RsdoctorBuilderSDK {
|
|
29
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/sdk/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EACD;QACE,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,GACH,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,IAAI,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/sdk/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EACD;QACE,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,GACH,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,IAAI,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;CAAG;AAExE,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG"}
|
|
@@ -4,7 +4,6 @@ import { ModuleGraph, ChunkGraph, PackageGraph } from '@rsdoctor/graph';
|
|
|
4
4
|
import { RsdoctorServer } from '../server';
|
|
5
5
|
import { RsdoctorWebpackSDKOptions } from './types';
|
|
6
6
|
import { SDKCore } from './core';
|
|
7
|
-
import { ResourceLoaderData } from '@rsdoctor/types/dist/sdk';
|
|
8
7
|
export declare class RsdoctorWebpackSDK<T extends RsdoctorWebpackSDKOptions = RsdoctorWebpackSDKOptions> extends SDKCore<T> implements SDK.RsdoctorBuilderSDKInstance {
|
|
9
8
|
server: RsdoctorServer;
|
|
10
9
|
extraConfig: SDK.SDKOptionsType | undefined;
|
|
@@ -33,7 +32,7 @@ export declare class RsdoctorWebpackSDK<T extends RsdoctorWebpackSDKOptions = Rs
|
|
|
33
32
|
reportConfiguration(config: SDK.ConfigData[0]): void;
|
|
34
33
|
reportError(errors: Error[]): void;
|
|
35
34
|
reportLoader(data: SDK.LoaderData): void;
|
|
36
|
-
reportLoaderStartOrEnd(data: ResourceLoaderData): void;
|
|
35
|
+
reportLoaderStartOrEnd(data: SDK.ResourceLoaderData): void;
|
|
37
36
|
reportResolver(data: SDK.ResolverData): void;
|
|
38
37
|
reportPlugin(data: SDK.PluginData): void;
|
|
39
38
|
reportModuleGraph(data: ModuleGraph): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/sdk/sdk/webpack.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAA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-9,7 +9,11 @@ export declare class RsdoctorServer implements SDK.RsdoctorServerInstance {
|
|
|
9
9
|
private disposed;
|
|
10
10
|
private _router;
|
|
11
11
|
private _innerClientPath;
|
|
12
|
-
|
|
12
|
+
private _printServerUrl;
|
|
13
|
+
constructor(sdk: SDK.RsdoctorBuilderSDKInstance, port?: number, config?: {
|
|
14
|
+
innerClientPath?: string;
|
|
15
|
+
printServerUrl?: boolean;
|
|
16
|
+
});
|
|
13
17
|
get app(): SDK.RsdoctorServerInstance['app'];
|
|
14
18
|
get host(): string;
|
|
15
19
|
get origin(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/server/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/server/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAgBlE,cAAc,SAAS,CAAC;AAExB,qBAAa,cAAe,YAAW,GAAG,CAAC,sBAAsB;IAgB7D,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,0BAA0B;IAf/C,OAAO,CAAC,OAAO,CAAwD;IAEhE,IAAI,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,gBAAgB,CAAS;IAEjC,OAAO,CAAC,eAAe,CAAU;gBAGrB,GAAG,EAAE,GAAG,CAAC,0BAA0B,EAC7C,IAAI,SAAqB,EACzB,MAAM,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CA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AAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,EACtD,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAIrC,SAAS;IAItB,OAAO,sBAYL;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Reads the BROWSER environment variable and decides what to do with it.
|
|
3
3
|
*/
|
|
4
|
-
export declare function openBrowser(url: string): Promise<boolean>;
|
|
4
|
+
export declare function openBrowser(url: string): Promise<boolean | undefined>;
|
|
5
5
|
//# sourceMappingURL=openBrowser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openBrowser.d.ts","sourceRoot":"","sources":["../../../../src/sdk/utils/openBrowser.ts"],"names":[],"mappings":"AAuCA;;GAEG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"openBrowser.d.ts","sourceRoot":"","sources":["../../../../src/sdk/utils/openBrowser.ts"],"names":[],"mappings":"AAuCA;;GAEG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAwC3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"socket.io": "4.7.2",
|
|
25
25
|
"source-map": "^0.7.4",
|
|
26
26
|
"tapable": "2.2.1",
|
|
27
|
-
"@rsdoctor/client": "0.3.
|
|
28
|
-
"@rsdoctor/graph": "0.3.
|
|
29
|
-
"@rsdoctor/types": "0.3.
|
|
30
|
-
"@rsdoctor/utils": "0.3.
|
|
27
|
+
"@rsdoctor/client": "0.3.11",
|
|
28
|
+
"@rsdoctor/graph": "0.3.11",
|
|
29
|
+
"@rsdoctor/types": "0.3.11",
|
|
30
|
+
"@rsdoctor/utils": "0.3.11"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/body-parser": "1.19.5",
|