skyeye-sdk-js 1.0.3 → 1.0.5

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.
@@ -334,7 +334,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
334
334
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getCpuMips(cpuName));
335
335
  }
336
336
  catch (error) {
337
- console.error("Error during getCurrentRunningState:", error);
337
+ console.error("Error during getCpuMips:", error);
338
338
  throw error;
339
339
  }
340
340
  });
@@ -348,7 +348,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
348
348
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getCpuMips(cpuList[0].getName()));
349
349
  }
350
350
  catch (error) {
351
- console.error("Error during getCurrentRunningState:", error);
351
+ console.error("Error during getCurrentCpuMips:", error);
352
352
  throw error;
353
353
  }
354
354
  }
@@ -364,7 +364,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
364
364
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getGlobalVarValue(cpuName, varName, bytesNum, valueType));
365
365
  }
366
366
  catch (error) {
367
- console.error("Error during getCurrentRunningState:", error);
367
+ console.error("Error during getGlobalVarValue:", error);
368
368
  throw error;
369
369
  }
370
370
  });
@@ -377,7 +377,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
377
377
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getGlobalVarValue(cpuList[0].getName(), varName, 4, valueType));
378
378
  }
379
379
  catch (error) {
380
- console.error("Error during getCurrentRunningState:", error);
380
+ console.error("Error during getGlobalVarValueDefault:", error);
381
381
  throw error;
382
382
  }
383
383
  }
@@ -393,7 +393,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
393
393
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().setGlobalVarValue(cpuName, varName, bytesNum, valueType, value));
394
394
  }
395
395
  catch (error) {
396
- console.error("Error during getCurrentRunningState:", error);
396
+ console.error("Error during setGlobalVarValue:", error);
397
397
  throw error;
398
398
  }
399
399
  });
@@ -406,7 +406,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
406
406
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().setGlobalVarValue(cpuList[0].getName(), varName, 4, valueType, value));
407
407
  }
408
408
  catch (error) {
409
- console.error("Error during getCurrentRunningState:", error);
409
+ console.error("Error during setGlobalVarValueDefault:", error);
410
410
  throw error;
411
411
  }
412
412
  }
@@ -560,7 +560,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
560
560
  }
561
561
  getDeviceTree() {
562
562
  return __awaiter(this, void 0, void 0, function* () {
563
- const state = (yield this.getCurrentRunningState()).getState();
563
+ const state = (yield this.getDeviceTree()).getState();
564
564
  if (GetRunningStateResponse_1.StateState.UNLOADED === state || GetRunningStateResponse_1.StateState.QUITED === state) {
565
565
  throw new SkyEyeSDKException_1.SkyEyeSDKException("当前SkyEye未加载配置,需要加载配置可以获取设备树信息,请检查当前配置");
566
566
  }
@@ -630,7 +630,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
630
630
  }
631
631
  }
632
632
  catch (error) {
633
- console.error("Error during getCurrentRunningState:", error);
633
+ console.error("Error during getAllDeviceInfo:", error);
634
634
  throw error;
635
635
  }
636
636
  return response;
@@ -651,7 +651,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
651
651
  }
652
652
  }
653
653
  catch (error) {
654
- console.error("Error during getCurrentRunningState:", error);
654
+ console.error("Error during getRamAddrInfo:", error);
655
655
  throw error;
656
656
  }
657
657
  return response;
@@ -334,7 +334,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
334
334
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getCpuMips(cpuName));
335
335
  }
336
336
  catch (error) {
337
- console.error("Error during getCurrentRunningState:", error);
337
+ console.error("Error during getCpuMips:", error);
338
338
  throw error;
339
339
  }
340
340
  });
@@ -348,7 +348,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
348
348
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getCpuMips(cpuList[0].getName()));
349
349
  }
350
350
  catch (error) {
351
- console.error("Error during getCurrentRunningState:", error);
351
+ console.error("Error during getCurrentCpuMips:", error);
352
352
  throw error;
353
353
  }
354
354
  }
@@ -364,7 +364,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
364
364
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getGlobalVarValue(cpuName, varName, bytesNum, valueType));
365
365
  }
366
366
  catch (error) {
367
- console.error("Error during getCurrentRunningState:", error);
367
+ console.error("Error during getGlobalVarValue:", error);
368
368
  throw error;
369
369
  }
370
370
  });
@@ -377,7 +377,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
377
377
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().getGlobalVarValue(cpuList[0].getName(), varName, 4, valueType));
378
378
  }
379
379
  catch (error) {
380
- console.error("Error during getCurrentRunningState:", error);
380
+ console.error("Error during getGlobalVarValueDefault:", error);
381
381
  throw error;
382
382
  }
383
383
  }
@@ -393,7 +393,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
393
393
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().setGlobalVarValue(cpuName, varName, bytesNum, valueType, value));
394
394
  }
395
395
  catch (error) {
396
- console.error("Error during getCurrentRunningState:", error);
396
+ console.error("Error during setGlobalVarValue:", error);
397
397
  throw error;
398
398
  }
399
399
  });
@@ -406,7 +406,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
406
406
  return yield this.call(RequestFactory_1.RequestFactory.getInstance().setGlobalVarValue(cpuList[0].getName(), varName, 4, valueType, value));
407
407
  }
408
408
  catch (error) {
409
- console.error("Error during getCurrentRunningState:", error);
409
+ console.error("Error during setGlobalVarValueDefault:", error);
410
410
  throw error;
411
411
  }
412
412
  }
@@ -630,7 +630,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
630
630
  }
631
631
  }
632
632
  catch (error) {
633
- console.error("Error during getCurrentRunningState:", error);
633
+ console.error("Error during getAllDeviceInfo:", error);
634
634
  throw error;
635
635
  }
636
636
  return response;
@@ -651,7 +651,7 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
651
651
  }
652
652
  }
653
653
  catch (error) {
654
- console.error("Error during getCurrentRunningState:", error);
654
+ console.error("Error during getRamAddrInfo:", error);
655
655
  throw error;
656
656
  }
657
657
  return response;
package/package.json CHANGED
@@ -1,35 +1,32 @@
1
- {
2
- "name": "skyeye-sdk-js",
3
- "version": "1.0.3",
4
- "description": "gRPC to SkyEye",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "tsc",
10
- "dev": "tsc & node src/test.js",
11
- "release": "tsc && npm publish"
12
- },
13
- "keywords": [],
14
- "author": "",
15
- "license": "ISC",
16
- "devDependencies": {
17
- "@types/node": "^20.11.14",
18
- "chokidar": "^3.5.3",
19
- "gulp-mocha": "^10.0.0",
20
- "typescript": "^5.3.3"
21
- },
22
- "dependencies": {
23
- "@grpc/grpc-js": "^1.8.0",
24
- "@grpc/grpc-js-xds": "^1.8.0",
25
- "@grpc/proto-loader": "^0.6.0",
26
- "@grpc/reflection": "^1.0.0",
27
- "async": "^1.5.2",
28
- "google-protobuf": "^3.0.0",
29
- "lodash": "^4.6.1",
30
- "minimist": "^1.2.0"
31
- },
32
- "optionalDependencies": {
33
- "grpc": "^1.24.2"
34
- }
1
+ {
2
+ "name": "skyeye-sdk-js",
3
+ "version": "1.0.5",
4
+ "description": "gRPC to SkyEye",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "tsc",
10
+ "dev": "tsc & node src/test.js",
11
+ "release": "tsc && npm publish"
12
+ },
13
+ "keywords": [],
14
+ "author": "",
15
+ "license": "ISC",
16
+ "devDependencies": {
17
+ "@types/node": "^20.11.14",
18
+ "chokidar": "^3.5.3",
19
+ "gulp-mocha": "^10.0.0",
20
+ "typescript": "^5.3.3"
21
+ },
22
+ "dependencies": {
23
+ "@grpc/grpc-js": "^1.8.0",
24
+ "@grpc/grpc-js-xds": "^1.8.0",
25
+ "@grpc/proto-loader": "^0.6.0",
26
+ "@grpc/reflection": "^1.0.0",
27
+ "async": "^1.5.2",
28
+ "google-protobuf": "^3.0.0",
29
+ "lodash": "^4.6.1",
30
+ "minimist": "^1.2.0"
31
+ }
35
32
  }