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.
@@ -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;
@@ -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
- response = yield this.runScript(fileName, port);
1190
- ackObj = JSON.parse(response.toString()).ack;
1191
- if (ackObj.result === "false") {
1192
- ackObj.result = false;
1193
- throw new Error(ackObj.error);
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
  }