camstreamerlib 5.0.0-20ab5c4 → 5.0.0-4d910ae
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/node/TimeZoneDaemon.js +1 -2
- package/cjs/types/ws/CamStreamerEvents.d.ts +3 -0
- package/cjs/types/ws/CamStreamerEvents.js +1 -0
- package/esm/node/TimeZoneDaemon.js +1 -2
- package/esm/types/ws/CamStreamerEvents.js +1 -0
- package/package.json +1 -1
- package/types/types/ws/CamStreamerEvents.d.ts +3 -0
|
@@ -16,8 +16,7 @@ class TimeZoneDaemon {
|
|
|
16
16
|
try {
|
|
17
17
|
const { stdout } = await execPromise('timedatectl show -p Timezone --value');
|
|
18
18
|
const systemTimezone = stdout.toString().trim();
|
|
19
|
-
|
|
20
|
-
if (systemTimezone !== nodeTimezone) {
|
|
19
|
+
if (systemTimezone !== '' && systemTimezone !== process.env.TZ) {
|
|
21
20
|
process.env.TZ = systemTimezone;
|
|
22
21
|
}
|
|
23
22
|
}
|
|
@@ -19,6 +19,7 @@ declare const csEventsDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
19
19
|
message: z.ZodString;
|
|
20
20
|
streamId: z.ZodString;
|
|
21
21
|
code: z.ZodString;
|
|
22
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
22
23
|
}, z.core.$strip>, z.ZodObject<{
|
|
23
24
|
type: z.ZodLiteral<"PortChanged">;
|
|
24
25
|
port: z.ZodNumber;
|
|
@@ -46,6 +47,7 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
46
47
|
message: z.ZodString;
|
|
47
48
|
streamId: z.ZodString;
|
|
48
49
|
code: z.ZodString;
|
|
50
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
49
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
50
52
|
type: z.ZodLiteral<"PortChanged">;
|
|
51
53
|
port: z.ZodNumber;
|
|
@@ -71,6 +73,7 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
73
|
message: z.ZodString;
|
|
72
74
|
streamId: z.ZodString;
|
|
73
75
|
code: z.ZodString;
|
|
76
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
74
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
78
|
type: z.ZodLiteral<"PortChanged">;
|
|
76
79
|
port: z.ZodNumber;
|
|
@@ -13,8 +13,7 @@ export class TimeZoneDaemon {
|
|
|
13
13
|
try {
|
|
14
14
|
const { stdout } = await execPromise('timedatectl show -p Timezone --value');
|
|
15
15
|
const systemTimezone = stdout.toString().trim();
|
|
16
|
-
|
|
17
|
-
if (systemTimezone !== nodeTimezone) {
|
|
16
|
+
if (systemTimezone !== '' && systemTimezone !== process.env.TZ) {
|
|
18
17
|
process.env.TZ = systemTimezone;
|
|
19
18
|
}
|
|
20
19
|
}
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ declare const csEventsDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
19
19
|
message: z.ZodString;
|
|
20
20
|
streamId: z.ZodString;
|
|
21
21
|
code: z.ZodString;
|
|
22
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
22
23
|
}, z.core.$strip>, z.ZodObject<{
|
|
23
24
|
type: z.ZodLiteral<"PortChanged">;
|
|
24
25
|
port: z.ZodNumber;
|
|
@@ -46,6 +47,7 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
46
47
|
message: z.ZodString;
|
|
47
48
|
streamId: z.ZodString;
|
|
48
49
|
code: z.ZodString;
|
|
50
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
49
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
50
52
|
type: z.ZodLiteral<"PortChanged">;
|
|
51
53
|
port: z.ZodNumber;
|
|
@@ -71,6 +73,7 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
73
|
message: z.ZodString;
|
|
72
74
|
streamId: z.ZodString;
|
|
73
75
|
code: z.ZodString;
|
|
76
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
74
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
78
|
type: z.ZodLiteral<"PortChanged">;
|
|
76
79
|
port: z.ZodNumber;
|