camstreamerlib 4.0.0-beta.58 → 4.0.0-beta.59
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/cjs/PlaneTrackerAPI.js
CHANGED
|
@@ -158,14 +158,13 @@ class PlaneTrackerAPI {
|
|
|
158
158
|
timeout: options?.timeout,
|
|
159
159
|
});
|
|
160
160
|
if (!res.ok) {
|
|
161
|
-
|
|
162
|
-
if (res.status === 400 && statusText === 'Cannot set coordinates in automatic mode') {
|
|
161
|
+
if (res.status === 400 && res.statusText === 'Cannot set coordinates in automatic mode') {
|
|
163
162
|
throw new errors_1.CannotSetCoordsInAutoModeError();
|
|
164
163
|
}
|
|
165
|
-
if (res.status === 400 && statusText === 'Invalid lat/lon parameters') {
|
|
164
|
+
if (res.status === 400 && res.statusText === 'Invalid lat/lon parameters') {
|
|
166
165
|
throw new errors_1.InvalidLatLngError();
|
|
167
166
|
}
|
|
168
|
-
if (res.status === 400 && statusText === 'Invalid alt parameter') {
|
|
167
|
+
if (res.status === 400 && res.statusText === 'Invalid alt parameter') {
|
|
169
168
|
throw new errors_1.InvalidAltitudeError();
|
|
170
169
|
}
|
|
171
170
|
if (res.status === 400) {
|
|
@@ -175,7 +174,6 @@ class PlaneTrackerAPI {
|
|
|
175
174
|
throw new errors_1.ServerError();
|
|
176
175
|
}
|
|
177
176
|
}
|
|
178
|
-
return res;
|
|
179
177
|
}
|
|
180
178
|
async checkGenetecConnection(params, options) {
|
|
181
179
|
return await this._postUrlEncoded(`${BASE_PATH}/package/checkGenetecConnection.cgi`, params, options);
|
package/esm/PlaneTrackerAPI.js
CHANGED
|
@@ -155,14 +155,13 @@ export class PlaneTrackerAPI {
|
|
|
155
155
|
timeout: options?.timeout,
|
|
156
156
|
});
|
|
157
157
|
if (!res.ok) {
|
|
158
|
-
|
|
159
|
-
if (res.status === 400 && statusText === 'Cannot set coordinates in automatic mode') {
|
|
158
|
+
if (res.status === 400 && res.statusText === 'Cannot set coordinates in automatic mode') {
|
|
160
159
|
throw new CannotSetCoordsInAutoModeError();
|
|
161
160
|
}
|
|
162
|
-
if (res.status === 400 && statusText === 'Invalid lat/lon parameters') {
|
|
161
|
+
if (res.status === 400 && res.statusText === 'Invalid lat/lon parameters') {
|
|
163
162
|
throw new InvalidLatLngError();
|
|
164
163
|
}
|
|
165
|
-
if (res.status === 400 && statusText === 'Invalid alt parameter') {
|
|
164
|
+
if (res.status === 400 && res.statusText === 'Invalid alt parameter') {
|
|
166
165
|
throw new InvalidAltitudeError();
|
|
167
166
|
}
|
|
168
167
|
if (res.status === 400) {
|
|
@@ -172,7 +171,6 @@ export class PlaneTrackerAPI {
|
|
|
172
171
|
throw new ServerError();
|
|
173
172
|
}
|
|
174
173
|
}
|
|
175
|
-
return res;
|
|
176
174
|
}
|
|
177
175
|
async checkGenetecConnection(params, options) {
|
|
178
176
|
return await this._postUrlEncoded(`${BASE_PATH}/package/checkGenetecConnection.cgi`, params, options);
|
package/package.json
CHANGED
|
@@ -214,7 +214,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
214
214
|
}[];
|
|
215
215
|
}>;
|
|
216
216
|
setZones(zones: TZones, options?: THttpRequestOptions): Promise<void>;
|
|
217
|
-
goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<
|
|
217
|
+
goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<void>;
|
|
218
218
|
checkGenetecConnection(params: TParameters, options?: THttpRequestOptions): Promise<TResponse>;
|
|
219
219
|
getGenetecCameraList(params: TParameters, options?: THttpRequestOptions): Promise<{
|
|
220
220
|
value: string;
|