skyeye-sdk-js 1.4.18 → 1.4.19
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.
|
@@ -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
|
|
94
|
+
initSkyEyeAndRun2(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string): 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) {
|
|
1175
1175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1176
1176
|
try {
|
|
1177
1177
|
console.log('runExample');
|
|
@@ -1186,14 +1186,6 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
1186
1186
|
ackObj.result = false;
|
|
1187
1187
|
throw new Error(ackObj.error);
|
|
1188
1188
|
}
|
|
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
|
-
}
|
|
1196
|
-
}
|
|
1197
1189
|
return true;
|
|
1198
1190
|
}
|
|
1199
1191
|
catch (error) {
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -1080,7 +1080,7 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
1080
1080
|
|
|
1081
1081
|
private childProcess: cp.ChildProcess | null = null;
|
|
1082
1082
|
|
|
1083
|
-
public async initSkyEyeAndRun2(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string
|
|
1083
|
+
public async initSkyEyeAndRun2(pathSkyEye: string, fileName: string, port: string, skyeyeDir: string) {
|
|
1084
1084
|
try {
|
|
1085
1085
|
console.log('runExample');
|
|
1086
1086
|
|
|
@@ -1095,14 +1095,6 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
1095
1095
|
ackObj.result = false
|
|
1096
1096
|
throw new Error(ackObj.error)
|
|
1097
1097
|
}
|
|
1098
|
-
if (!disableRun) {
|
|
1099
|
-
response = await this.runScript(fileName, port);
|
|
1100
|
-
ackObj = JSON.parse(response.toString()).ack;
|
|
1101
|
-
if (ackObj.result === "false") {
|
|
1102
|
-
ackObj.result = false
|
|
1103
|
-
throw new Error(ackObj.error)
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
1098
|
return true;
|
|
1107
1099
|
} catch (error) {
|
|
1108
1100
|
console.error("initSkyEyeAndRun error:", error);
|