skyeye-sdk-js 1.2.8 → 1.2.9
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.js +3 -3
- package/package.json +1 -1
- package/src/SkyEyeClient.ts +3 -3
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -125,7 +125,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
125
125
|
});
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
127
|
try {
|
|
128
|
-
this.printRequestLog(request)
|
|
128
|
+
// this.printRequestLog(request)
|
|
129
129
|
const response = yield new Promise((resolve, reject) => {
|
|
130
130
|
_super.callSkyEye.call(this, request, (error, response) => {
|
|
131
131
|
if (error) {
|
|
@@ -139,7 +139,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
139
139
|
// const res = JSON.parse(response.toString());
|
|
140
140
|
// console.log("res:",res)
|
|
141
141
|
const ackObj = JSON.parse(response.toString()).ack;
|
|
142
|
-
this.printResponseLog(ackObj)
|
|
142
|
+
// this.printResponseLog(ackObj)
|
|
143
143
|
return ackObj;
|
|
144
144
|
}
|
|
145
145
|
catch (error) {
|
|
@@ -163,7 +163,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
163
163
|
if (name === "SE_get_running_status" || name === "SE_get_all_class_info") {
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
console.log(
|
|
166
|
+
console.log(`client response-- `, ackObj);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
runScriptRequest(filename) {
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -88,7 +88,7 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
88
88
|
|
|
89
89
|
public async call(request: JSONRequest) {
|
|
90
90
|
try {
|
|
91
|
-
this.printRequestLog(request)
|
|
91
|
+
// this.printRequestLog(request)
|
|
92
92
|
const response = await new Promise<JSONResponse>((resolve, reject) => {
|
|
93
93
|
super.callSkyEye(request, (error: grpc.ServiceError | null, response: JSONResponse) => {
|
|
94
94
|
if (error) {
|
|
@@ -101,7 +101,7 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
101
101
|
// const res = JSON.parse(response.toString());
|
|
102
102
|
// console.log("res:",res)
|
|
103
103
|
const ackObj = JSON.parse(response.toString()).ack;
|
|
104
|
-
this.printResponseLog(ackObj)
|
|
104
|
+
// this.printResponseLog(ackObj)
|
|
105
105
|
return ackObj;
|
|
106
106
|
} catch (error) {
|
|
107
107
|
console.error("Error during gRPC call:", error);
|
|
@@ -125,7 +125,7 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
125
125
|
if (name === "SE_get_running_status" || name === "SE_get_all_class_info") {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
console.log(
|
|
128
|
+
console.log(`client response-- `, ackObj);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|