skyeye-sdk-js 1.4.15 → 1.4.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/src/SkyEyeClient.d.ts +1 -1
- package/dist/src/SkyEyeClient.js +8 -6
- package/dist/src/proto/line_chart_pb.js +681 -681
- package/dist/src/proto/protoc.bat +4 -4
- package/dist/src/proto/skyeye_rpc_grpc_pb.js +99 -99
- package/dist/src/proto/skyeye_rpc_pb.js +328 -328
- package/dist/test.js +15 -397
- package/package.json +1 -1
- package/src/SkyEyeClient.ts +8 -6
- package/src/proto/line_chart_pb.js +681 -681
- package/src/proto/protoc.bat +4 -4
- package/src/proto/skyeye_rpc_grpc_pb.js +99 -99
- package/src/proto/skyeye_rpc_pb.js +328 -328
- package/test.ts +21 -476
- package/dist/test.dat +0 -0
- package/test.dat +0 -0
- package/test_111.dat +0 -0
|
@@ -91,7 +91,7 @@ export declare class SkyEyeClient extends JSONTransmissionClient {
|
|
|
91
91
|
getPort(): string;
|
|
92
92
|
initSkyEyeAndRun(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string): void;
|
|
93
93
|
private childProcess;
|
|
94
|
-
initSkyEyeAndRun2(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string): Promise<boolean>;
|
|
94
|
+
initSkyEyeAndRun2(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string, disableRun?: boolean): Promise<boolean>;
|
|
95
95
|
private checkModule;
|
|
96
96
|
private checkState;
|
|
97
97
|
private startSkyEye;
|
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -1171,7 +1171,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
}, 2000);
|
|
1173
1173
|
}
|
|
1174
|
-
initSkyEyeAndRun2(pathSkyEye, fileName, port, skyeyeDir) {
|
|
1174
|
+
initSkyEyeAndRun2(pathSkyEye, fileName, port, skyeyeDir, disableRun) {
|
|
1175
1175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1176
1176
|
try {
|
|
1177
1177
|
console.log('runExample');
|
|
@@ -1186,11 +1186,13 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
1186
1186
|
ackObj.result = false;
|
|
1187
1187
|
throw new Error(ackObj.error);
|
|
1188
1188
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
ackObj.result
|
|
1193
|
-
|
|
1189
|
+
if (!disableRun) {
|
|
1190
|
+
response = yield this.runScript(fileName, port);
|
|
1191
|
+
ackObj = JSON.parse(response.toString()).ack;
|
|
1192
|
+
if (ackObj.result === "false") {
|
|
1193
|
+
ackObj.result = false;
|
|
1194
|
+
throw new Error(ackObj.error);
|
|
1195
|
+
}
|
|
1194
1196
|
}
|
|
1195
1197
|
return true;
|
|
1196
1198
|
}
|