skyeye-sdk-js 1.2.5 → 1.2.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.
- package/dist/src/SkyEyeClient.d.ts +1 -1
- package/dist/src/SkyEyeClient.js +4 -2
- package/package.json +1 -1
- package/src/SkyEyeClient.ts +4 -2
- package/test.ts +1 -0
|
@@ -18,7 +18,7 @@ export declare class SkyEyeClient extends JSONTransmissionClient {
|
|
|
18
18
|
private host;
|
|
19
19
|
private port;
|
|
20
20
|
constructor(host: string, port: string);
|
|
21
|
-
stopGrpcService(): Promise<any>;
|
|
21
|
+
stopGrpcService(json: string): Promise<any>;
|
|
22
22
|
RunTestcase(json: string): Promise<any>;
|
|
23
23
|
Monitor(json: string): Promise<any>;
|
|
24
24
|
call(request: JSONRequest): Promise<any>;
|
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -66,13 +66,15 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
66
66
|
this.port = port;
|
|
67
67
|
}
|
|
68
68
|
//终止所有grpc通信
|
|
69
|
-
stopGrpcService() {
|
|
69
|
+
stopGrpcService(json) {
|
|
70
70
|
const _super = Object.create(null, {
|
|
71
71
|
stopRunTest: { get: () => super.stopRunTest }
|
|
72
72
|
});
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
75
|
+
const request = new skyeye_rpc_pb_1.JSONRequest();
|
|
76
|
+
request.setRequest(json);
|
|
77
|
+
const stream = _super.stopRunTest.call(this, request);
|
|
76
78
|
return stream;
|
|
77
79
|
}
|
|
78
80
|
catch (error) {
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -44,9 +44,11 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
//终止所有grpc通信
|
|
47
|
-
public async stopGrpcService(){
|
|
47
|
+
public async stopGrpcService(json: string){
|
|
48
48
|
try {
|
|
49
|
-
const
|
|
49
|
+
const request = new JSONRequest();
|
|
50
|
+
request.setRequest(json);
|
|
51
|
+
const stream = super.stopRunTest(request);
|
|
50
52
|
return stream;
|
|
51
53
|
} catch (error) {
|
|
52
54
|
console.error("Error during stopGrpcService:", error);
|