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.
@@ -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
- const nodeTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
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;
@@ -23,6 +23,7 @@ const csEventsDataSchema = zod_1.z.discriminatedUnion('type', [
23
23
  message: zod_1.z.string(),
24
24
  streamId: zod_1.z.string(),
25
25
  code: zod_1.z.string(),
26
+ reason: zod_1.z.string().optional(),
26
27
  }),
27
28
  zod_1.z.object({
28
29
  type: zod_1.z.literal('PortChanged'),
@@ -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
- const nodeTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
17
- if (systemTimezone !== nodeTimezone) {
16
+ if (systemTimezone !== '' && systemTimezone !== process.env.TZ) {
18
17
  process.env.TZ = systemTimezone;
19
18
  }
20
19
  }
@@ -20,6 +20,7 @@ const csEventsDataSchema = z.discriminatedUnion('type', [
20
20
  message: z.string(),
21
21
  streamId: z.string(),
22
22
  code: z.string(),
23
+ reason: z.string().optional(),
23
24
  }),
24
25
  z.object({
25
26
  type: z.literal('PortChanged'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "5.0.0-20ab5c4",
3
+ "version": "5.0.0-4d910ae",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engines": {
@@ -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;