@rsdoctor/sdk 1.5.16 → 1.5.17

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/index.cjs CHANGED
@@ -6320,7 +6320,7 @@ var __webpack_modules__ = {
6320
6320
  get socketUrl() {
6321
6321
  return {
6322
6322
  port: this.port,
6323
- socketUrl: `ws://localhost:${this.port}?token=${this._socketToken}`,
6323
+ socketUrl: `ws://${this.host}:${this.port}?token=${this._socketToken}`,
6324
6324
  token: this._socketToken
6325
6325
  };
6326
6326
  }
@@ -6362,7 +6362,7 @@ var __webpack_modules__ = {
6362
6362
  socketOptions: !1 === corsOptions ? void 0 : {
6363
6363
  cors: corsOptions
6364
6364
  }
6365
- }), await this._socket.bootstrap(), common_namespaceObject.GlobalConfig.writeMcpPort(this.port, this.sdk.name), logger_namespaceObject.logger.debug(`Successfully wrote mcp.json for ${logger_namespaceObject.chalk.cyan(this.sdk.name)} builder`), this.disposed = !1, this.app.use((req, res, next)=>{
6365
+ }), await this._socket.bootstrap(), common_namespaceObject.GlobalConfig.writeMcpPort(this.port, this.sdk.name, this._socketToken), logger_namespaceObject.logger.debug(`Successfully wrote mcp.json for ${logger_namespaceObject.chalk.cyan(this.sdk.name)} builder`), this.disposed = !1, this.app.use((req, res, next)=>{
6366
6366
  if (!isAllowedRequestHost(req.headers.host || req.headers[':authority'])) {
6367
6367
  res.statusCode = 403, res.end();
6368
6368
  return;
package/dist/index.js CHANGED
@@ -6342,7 +6342,7 @@ class RsdoctorServer {
6342
6342
  get socketUrl() {
6343
6343
  return {
6344
6344
  port: this.port,
6345
- socketUrl: `ws://localhost:${this.port}?token=${this._socketToken}`,
6345
+ socketUrl: `ws://${this.host}:${this.port}?token=${this._socketToken}`,
6346
6346
  token: this._socketToken
6347
6347
  };
6348
6348
  }
@@ -6384,7 +6384,7 @@ class RsdoctorServer {
6384
6384
  socketOptions: !1 === corsOptions ? void 0 : {
6385
6385
  cors: corsOptions
6386
6386
  }
6387
- }), await this._socket.bootstrap(), GlobalConfig.writeMcpPort(this.port, this.sdk.name), logger.debug(`Successfully wrote mcp.json for ${chalk.cyan(this.sdk.name)} builder`), this.disposed = !1, this.app.use((req, res, next)=>{
6387
+ }), await this._socket.bootstrap(), GlobalConfig.writeMcpPort(this.port, this.sdk.name, this._socketToken), logger.debug(`Successfully wrote mcp.json for ${chalk.cyan(this.sdk.name)} builder`), this.disposed = !1, this.app.use((req, res, next)=>{
6388
6388
  if (!isAllowedRequestHost(req.headers.host || req.headers[':authority'])) {
6389
6389
  res.statusCode = 403, res.end();
6390
6390
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/sdk",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -32,10 +32,10 @@
32
32
  "safer-buffer": "2.1.2",
33
33
  "socket.io": "4.8.1",
34
34
  "tapable": "2.3.3",
35
- "@rsdoctor/graph": "1.5.16",
36
- "@rsdoctor/types": "1.5.16",
37
- "@rsdoctor/client": "1.5.16",
38
- "@rsdoctor/utils": "1.5.16"
35
+ "@rsdoctor/client": "1.5.17",
36
+ "@rsdoctor/graph": "1.5.17",
37
+ "@rsdoctor/types": "1.5.17",
38
+ "@rsdoctor/utils": "1.5.17"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/body-parser": "1.19.6",