camstreamerlib 4.0.0-beta.34 → 4.0.0-beta.35
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/CamOverlayAPI.js
CHANGED
|
@@ -29,7 +29,7 @@ class CamOverlayAPI {
|
|
|
29
29
|
}
|
|
30
30
|
async wsAuthorization(options) {
|
|
31
31
|
const response = await this._get({ path: `${BASE_PATH}/ws_authorization.cgi` }, options);
|
|
32
|
-
return CamOverlayAPI_1.WSResponseSchema.parse(response).
|
|
32
|
+
return CamOverlayAPI_1.WSResponseSchema.parse(response).message;
|
|
33
33
|
}
|
|
34
34
|
async getMjpegStreamImage(mjpegUrl, options) {
|
|
35
35
|
return await this._getBlob({
|
|
@@ -15,7 +15,6 @@ const scoreBoardSchema_1 = require("./scoreBoardSchema");
|
|
|
15
15
|
exports.WSResponseSchema = zod_1.z.object({
|
|
16
16
|
status: zod_1.z.number(),
|
|
17
17
|
message: zod_1.z.string(),
|
|
18
|
-
data: zod_1.z.string(),
|
|
19
18
|
});
|
|
20
19
|
exports.widgetsSchema = zod_1.z.discriminatedUnion('name', [
|
|
21
20
|
infotickerSchema_1.infoTickerSchema,
|
package/esm/CamOverlayAPI.js
CHANGED
|
@@ -26,7 +26,7 @@ export class CamOverlayAPI {
|
|
|
26
26
|
}
|
|
27
27
|
async wsAuthorization(options) {
|
|
28
28
|
const response = await this._get({ path: `${BASE_PATH}/ws_authorization.cgi` }, options);
|
|
29
|
-
return WSResponseSchema.parse(response).
|
|
29
|
+
return WSResponseSchema.parse(response).message;
|
|
30
30
|
}
|
|
31
31
|
async getMjpegStreamImage(mjpegUrl, options) {
|
|
32
32
|
return await this._getBlob({
|
|
@@ -12,7 +12,6 @@ import { baseballScoreBoardAutomaticSchema, baseballScoreBoardSchema, scoreBoard
|
|
|
12
12
|
export const WSResponseSchema = z.object({
|
|
13
13
|
status: z.number(),
|
|
14
14
|
message: z.string(),
|
|
15
|
-
data: z.string(),
|
|
16
15
|
});
|
|
17
16
|
export const widgetsSchema = z.discriminatedUnion('name', [
|
|
18
17
|
infoTickerSchema,
|
package/package.json
CHANGED
|
@@ -13,15 +13,12 @@ import { baseballScoreBoardAutomaticSchema, baseballScoreBoardSchema, scoreBoard
|
|
|
13
13
|
export declare const WSResponseSchema: z.ZodObject<{
|
|
14
14
|
status: z.ZodNumber;
|
|
15
15
|
message: z.ZodString;
|
|
16
|
-
data: z.ZodString;
|
|
17
16
|
}, "strip", z.ZodTypeAny, {
|
|
18
17
|
status: number;
|
|
19
18
|
message: string;
|
|
20
|
-
data: string;
|
|
21
19
|
}, {
|
|
22
20
|
status: number;
|
|
23
21
|
message: string;
|
|
24
|
-
data: string;
|
|
25
22
|
}>;
|
|
26
23
|
export type TWSResponse = z.infer<typeof WSResponseSchema>;
|
|
27
24
|
export declare const widgetsSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|