skyeye-sdk-js 1.1.4 → 1.1.7
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 +2 -2
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -83,17 +83,17 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
83
83
|
}
|
|
84
84
|
Monitor(json) {
|
|
85
85
|
const _super = Object.create(null, {
|
|
86
|
-
|
|
86
|
+
monitor: { get: () => super.monitor }
|
|
87
87
|
});
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
try {
|
|
90
90
|
const request = new skyeye_rpc_pb_1.JSONRequest();
|
|
91
91
|
request.setRequest(json);
|
|
92
|
-
const stream = _super.
|
|
92
|
+
const stream = _super.monitor.call(this, request);
|
|
93
93
|
return stream;
|
|
94
94
|
}
|
|
95
95
|
catch (error) {
|
|
96
|
-
console.error("Error during
|
|
96
|
+
console.error("Error during Monitor:", error);
|
|
97
97
|
throw error;
|
|
98
98
|
}
|
|
99
99
|
});
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -60,10 +60,10 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
60
60
|
try {
|
|
61
61
|
const request = new JSONRequest();
|
|
62
62
|
request.setRequest(json);
|
|
63
|
-
const stream = super.
|
|
63
|
+
const stream = super.monitor(request);
|
|
64
64
|
return stream;
|
|
65
65
|
} catch (error) {
|
|
66
|
-
console.error("Error during
|
|
66
|
+
console.error("Error during Monitor:", error);
|
|
67
67
|
throw error;
|
|
68
68
|
}
|
|
69
69
|
}
|