@rsdoctor/sdk 0.1.5 → 0.1.6

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.
@@ -97,6 +97,9 @@ class SDKCore {
97
97
  setHash(hash) {
98
98
  this.hash = hash;
99
99
  }
100
+ getHash() {
101
+ return this.hash;
102
+ }
100
103
  getClientRoutes() {
101
104
  return [...this._clientRoutes];
102
105
  }
@@ -173,7 +173,7 @@ class RsdoctorServer {
173
173
  );
174
174
  const url = `http://${this.host}:${this.port}${relativeUrl}`;
175
175
  const localhostUrl = `http://localhost:${this.port}${relativeUrl}`;
176
- await (0, import_openBrowser.openBrowser)(url);
176
+ await (0, import_openBrowser.openBrowser)(localhostUrl);
177
177
  import_logger.logger.info(`Rsdoctor analyze server running on: ${import_logger.chalk.cyan(url)}`);
178
178
  import_logger.logger.info(
179
179
  `Rsdoctor analyze server running on: ${import_logger.chalk.cyan(localhostUrl)}`
@@ -64,6 +64,9 @@ class SDKCore {
64
64
  setHash(hash) {
65
65
  this.hash = hash;
66
66
  }
67
+ getHash() {
68
+ return this.hash;
69
+ }
67
70
  getClientRoutes() {
68
71
  return [...this._clientRoutes];
69
72
  }
@@ -139,7 +139,7 @@ class RsdoctorServer {
139
139
  );
140
140
  const url = `http://${this.host}:${this.port}${relativeUrl}`;
141
141
  const localhostUrl = `http://localhost:${this.port}${relativeUrl}`;
142
- await openBrowser(url);
142
+ await openBrowser(localhostUrl);
143
143
  logger.info(`Rsdoctor analyze server running on: ${chalk.cyan(url)}`);
144
144
  logger.info(
145
145
  `Rsdoctor analyze server running on: ${chalk.cyan(localhostUrl)}`
@@ -20,6 +20,7 @@ export declare abstract class SDKCore<T extends RsdoctorSDKOptions> implements S
20
20
  setOutputDir(outputDir: string): void;
21
21
  setName(name: string): void;
22
22
  setHash(hash: string): void;
23
+ getHash(): string;
23
24
  getClientRoutes(): Manifest.RsdoctorManifestClientRoutes[];
24
25
  addClientRoutes(routes: Manifest.RsdoctorManifestClientRoutes[]): void;
25
26
  /** Upload analysis data pieces */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -18,17 +18,17 @@
18
18
  "body-parser": "1.20.1",
19
19
  "cors": "2.8.5",
20
20
  "dayjs": "1.11.6",
21
- "ip": "1.1.8",
21
+ "ip": "1.1.9",
22
22
  "lodash": "^4.17.21",
23
23
  "open": "^8.4.0",
24
24
  "serve-static": "1.15.0",
25
25
  "socket.io": "4.7.2",
26
26
  "source-map": "^0.7.4",
27
27
  "tapable": "2.2.1",
28
- "@rsdoctor/client": "0.1.5",
29
- "@rsdoctor/graph": "0.1.5",
30
- "@rsdoctor/utils": "0.1.5",
31
- "@rsdoctor/types": "0.1.5"
28
+ "@rsdoctor/graph": "0.1.6",
29
+ "@rsdoctor/utils": "0.1.6",
30
+ "@rsdoctor/client": "0.1.6",
31
+ "@rsdoctor/types": "0.1.6"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/body-parser": "1.19.2",