@rsdoctor/sdk 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ var import_server = require("../server");
|
|
|
44
44
|
var import_fakeServer = require("../server/fakeServer");
|
|
45
45
|
var import_core = require("./core");
|
|
46
46
|
var import_common = require("@rsdoctor/utils/common");
|
|
47
|
-
var
|
|
47
|
+
var import_common2 = require("@rsdoctor/utils/common");
|
|
48
48
|
__reExport(sdk_exports, require("../utils/openBrowser"), module.exports);
|
|
49
49
|
const jc = require("json-cycle");
|
|
50
50
|
class RsdoctorSDK extends import_core.SDKCore {
|
|
@@ -65,7 +65,7 @@ class RsdoctorSDK extends import_core.SDKCore {
|
|
|
65
65
|
innerClientPath: options.config?.innerClientPath || "",
|
|
66
66
|
printServerUrl: options.config?.printLog?.serverUrls
|
|
67
67
|
});
|
|
68
|
-
this.type =
|
|
68
|
+
this.type = import_common2.Lodash.isNumber(options.type) ? options.type : import_types.SDK.ToDataType.Normal;
|
|
69
69
|
this.extraConfig = options.config;
|
|
70
70
|
}
|
|
71
71
|
async bootstrap() {
|
|
@@ -47,7 +47,7 @@ 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
|
|
50
|
+
var import_common2 = require("@rsdoctor/utils/common");
|
|
51
51
|
__reExport(server_exports, require("./utils"), module.exports);
|
|
52
52
|
class RsdoctorServer {
|
|
53
53
|
constructor(sdk, port = import_build.Server.defaultPort, config) {
|
|
@@ -78,7 +78,7 @@ class RsdoctorServer {
|
|
|
78
78
|
this.port = port;
|
|
79
79
|
this._router = new import_router.Router({ sdk, server: this, apis: Object.values(APIs) });
|
|
80
80
|
this._innerClientPath = config?.innerClientPath || "";
|
|
81
|
-
this._printServerUrl =
|
|
81
|
+
this._printServerUrl = import_common2.Lodash.isUndefined(config?.printServerUrl) ? true : config?.printServerUrl;
|
|
82
82
|
}
|
|
83
83
|
get app() {
|
|
84
84
|
return this._server.app;
|
|
@@ -10,7 +10,7 @@ import { RsdoctorServer } from "../server";
|
|
|
10
10
|
import { RsdoctorFakeServer } from "../server/fakeServer";
|
|
11
11
|
import { SDKCore } from "./core";
|
|
12
12
|
import { Algorithm } from "@rsdoctor/utils/common";
|
|
13
|
-
import {
|
|
13
|
+
import { Lodash } from "@rsdoctor/utils/common";
|
|
14
14
|
const jc = require("json-cycle");
|
|
15
15
|
export * from "../utils/openBrowser";
|
|
16
16
|
class RsdoctorSDK extends SDKCore {
|
|
@@ -31,7 +31,7 @@ class RsdoctorSDK extends SDKCore {
|
|
|
31
31
|
innerClientPath: options.config?.innerClientPath || "",
|
|
32
32
|
printServerUrl: options.config?.printLog?.serverUrls
|
|
33
33
|
});
|
|
34
|
-
this.type = isNumber(options.type) ? options.type : SDK.ToDataType.Normal;
|
|
34
|
+
this.type = Lodash.isNumber(options.type) ? options.type : SDK.ToDataType.Normal;
|
|
35
35
|
this.extraConfig = options.config;
|
|
36
36
|
}
|
|
37
37
|
async bootstrap() {
|
|
@@ -13,7 +13,7 @@ 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 {
|
|
16
|
+
import { Lodash } from "@rsdoctor/utils/common";
|
|
17
17
|
export * from "./utils";
|
|
18
18
|
class RsdoctorServer {
|
|
19
19
|
constructor(sdk, port = Server.defaultPort, config) {
|
|
@@ -44,7 +44,7 @@ class RsdoctorServer {
|
|
|
44
44
|
this.port = port;
|
|
45
45
|
this._router = new Router({ sdk, server: this, apis: Object.values(APIs) });
|
|
46
46
|
this._innerClientPath = config?.innerClientPath || "";
|
|
47
|
-
this._printServerUrl = isUndefined(config?.printServerUrl) ? true : config?.printServerUrl;
|
|
47
|
+
this._printServerUrl = Lodash.isUndefined(config?.printServerUrl) ? true : config?.printServerUrl;
|
|
48
48
|
}
|
|
49
49
|
get app() {
|
|
50
50
|
return this._server.app;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/sdk/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAKjC,cAAc,sBAAsB,CAAC;AAErC,qBAAa,WAAW,CACpB,CAAC,SAAS,yBAAyB,GAAG,yBAAyB,CAEjE,SAAQ,OAAO,CAAC,CAAC,CACjB,YAAW,GAAG,CAAC,0BAA0B;IAElC,MAAM,EAAE,cAAc,CAAC;IAEvB,WAAW,EAAE,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC;IAE5C,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC;IAE5B,OAAO,CAAC,QAAQ,CAAkC;IAElD,OAAO,CAAC,QAAQ,CAAsB;IAEtC,OAAO,CAAC,OAAO,CAAsB;IAErC,OAAO,CAAC,OAAO,CAAsB;IAErC,OAAO,CAAC,YAAY,CAAsB;IAE1C,OAAO,CAAC,SAAS,CAAwB;IAEzC,OAAO,CAAC,OAAO,CAAsB;IAErC,OAAO,CAAC,YAAY,CAA8C;IAElE,OAAO,CAAC,WAAW,CAA4C;IAE/D,OAAO,CAAC,kBAAkB,CAAmC;IAE7D,OAAO,CAAC,UAAU,CAAwC;IAE1D,OAAO,CAAC,aAAa,CAA4B;IAEjD,OAAO,CAAC,eAAe,CAAqB;gBAEhC,OAAO,EAA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|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"socket.io": "4.8.1",
|
|
28
28
|
"source-map": "^0.7.4",
|
|
29
29
|
"tapable": "2.2.1",
|
|
30
|
-
"@rsdoctor/
|
|
31
|
-
"@rsdoctor/
|
|
32
|
-
"@rsdoctor/
|
|
33
|
-
"@rsdoctor/utils": "1.0
|
|
30
|
+
"@rsdoctor/client": "1.1.0",
|
|
31
|
+
"@rsdoctor/graph": "1.1.0",
|
|
32
|
+
"@rsdoctor/types": "1.1.0",
|
|
33
|
+
"@rsdoctor/utils": "1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/body-parser": "1.19.5",
|
|
37
37
|
"@types/cors": "2.8.17",
|
|
38
38
|
"@types/lodash": "^4.17.16",
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^22.8.1",
|
|
40
40
|
"tslib": "2.8.1",
|
|
41
41
|
"typescript": "^5.2.2"
|
|
42
42
|
},
|