camstreamerlib 5.0.1-5fad3e0 → 5.0.1

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.
@@ -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'),
@@ -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,113 +1,113 @@
1
1
  {
2
- "name": "camstreamerlib",
3
- "version": "5.0.1-5fad3e0",
4
- "description": "Helper library for CamStreamer ACAP applications.",
5
- "prettier": "@camstreamer/prettier-config",
6
- "engines": {
7
- "node": ">=18"
8
- },
9
- "dependencies": {
10
- "adm-zip": "^0.6.0",
11
- "eventemitter2": "^6.4.9",
12
- "fast-xml-parser": "^5.3.6",
13
- "type-fest": "^5.10.0",
14
- "undici": "^6.28.1",
15
- "ws": "^8.18.0",
16
- "zod": "^4.6.7"
17
- },
18
- "devDependencies": {
19
- "@camstreamer/eslint-config": "^1.0.10",
20
- "@camstreamer/prettier-config": "^2.0.4",
21
- "@eslint/js": "^10.0.1",
22
- "@types/jest": "^30.0.0",
23
- "@types/node": "^18.19.127",
24
- "@types/ws": "^8.5.10",
25
- "esbuild": "^0.28.2",
26
- "eslint": "^10.12.0",
27
- "eslint-plugin-unused-imports": "^4.4.1",
28
- "globals": "^17.13.0",
29
- "jest": "^30.5.2",
30
- "npm-run-all": "^4.1.5",
31
- "prettier": "^2.7.1",
32
- "ts-jest": "^29.4.14",
33
- "ts-node": "^10.7.0",
34
- "typescript": "^5.9.3",
35
- "typescript-eslint": "^8.71.2"
36
- },
37
- "overrides": {
38
- "js-yaml": "^4.3.2",
39
- "browserslist": "^4.28.7"
40
- },
41
- "scripts": {
42
- "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
43
- "build": "npm-run-all clean build:cjs build:esm copyPackage",
44
- "build:cjs": "tsc --project tsconfig.cjs.json",
45
- "build:esm": "tsc --project tsconfig.esm.json",
46
- "build:browser": "esbuild src/browser.index.ts --bundle --format=esm --platform=browser --target=es2022 --outfile=examples/camstreamerlib.js",
47
- "copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/ && cp -r -f examples dist/",
48
- "publishPackage": "./publish.sh",
49
- "lint": "eslint \"src/**/*.ts\"",
50
- "lint:fix": "eslint \"src/**/*.ts\" --fix",
51
- "pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
52
- "pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
53
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
54
- "audit": "npm audit --audit-level=high"
55
- },
56
- "files": [
57
- "/**/*.js",
58
- "/**/*.ts",
59
- "/examples/**/*"
60
- ],
61
- "main": "./cjs/index.js",
62
- "module": "./esm/index.js",
63
- "types": "types/index.d.ts",
64
- "exports": {
65
- ".": {
66
- "import": "./esm/index.js",
67
- "require": "./cjs/index.js",
68
- "types": "./types/index.d.ts"
2
+ "name": "camstreamerlib",
3
+ "version": "5.0.1",
4
+ "description": "Helper library for CamStreamer ACAP applications.",
5
+ "prettier": "@camstreamer/prettier-config",
6
+ "engines": {
7
+ "node": ">=18"
69
8
  },
70
- "./web": {
71
- "import": "./esm/web/index.js",
72
- "require": "./cjs/web/index.js",
73
- "types": "./types/web/index.d.ts"
9
+ "dependencies": {
10
+ "adm-zip": "^0.6.0",
11
+ "eventemitter2": "^6.4.9",
12
+ "fast-xml-parser": "^5.3.6",
13
+ "type-fest": "^5.10.0",
14
+ "undici": "^6.28.1",
15
+ "ws": "^8.18.0",
16
+ "zod": "^4.6.7"
74
17
  },
75
- "./node": {
76
- "import": "./esm/node/index.js",
77
- "require": "./cjs/node/index.js",
78
- "types": "./types/node/index.d.ts"
18
+ "devDependencies": {
19
+ "@camstreamer/eslint-config": "^1.0.10",
20
+ "@camstreamer/prettier-config": "^2.0.4",
21
+ "@eslint/js": "^10.0.1",
22
+ "@types/jest": "^30.0.0",
23
+ "@types/node": "^18.19.127",
24
+ "@types/ws": "^8.5.10",
25
+ "esbuild": "^0.28.2",
26
+ "eslint": "^10.12.0",
27
+ "eslint-plugin-unused-imports": "^4.4.1",
28
+ "globals": "^17.13.0",
29
+ "jest": "^30.5.2",
30
+ "npm-run-all": "^4.1.5",
31
+ "prettier": "^2.7.1",
32
+ "ts-jest": "^29.4.14",
33
+ "ts-node": "^10.7.0",
34
+ "typescript": "^5.9.3",
35
+ "typescript-eslint": "^8.71.2"
79
36
  },
80
- "./cjs/index": {
81
- "import": "./esm/index.js",
82
- "require": "./cjs/index.js",
83
- "types": "./types/index.d.ts"
37
+ "overrides": {
38
+ "js-yaml": "^4.3.2",
39
+ "browserslist": "^4.28.7"
84
40
  },
85
- "./cjs/node": {
86
- "import": "./esm/node/index.js",
87
- "require": "./cjs/node/index.js",
88
- "types": "./types/node/index.js"
41
+ "scripts": {
42
+ "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
43
+ "build": "npm-run-all clean build:cjs build:esm copyPackage",
44
+ "build:cjs": "tsc --project tsconfig.cjs.json",
45
+ "build:esm": "tsc --project tsconfig.esm.json",
46
+ "build:browser": "esbuild src/browser.index.ts --bundle --format=esm --platform=browser --target=es2022 --outfile=examples/camstreamerlib.js",
47
+ "copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/ && cp -r -f examples dist/",
48
+ "publishPackage": "./publish.sh",
49
+ "lint": "eslint \"src/**/*.ts\"",
50
+ "lint:fix": "eslint \"src/**/*.ts\" --fix",
51
+ "pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
52
+ "pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
53
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
54
+ "audit": "npm audit --audit-level=high"
89
55
  },
90
- "./cjs/node/index": {
91
- "import": "./esm/node/index.js",
92
- "require": "./cjs/node/index.js",
93
- "types": "./types/node/index.js"
94
- }
95
- },
96
- "repository": {
97
- "type": "git",
98
- "url": "git+https://github.com/CamStreamer/CamStreamerLib.git"
99
- },
100
- "keywords": [
101
- "CamStreamer",
102
- "CamOverlay",
103
- "CamScripter",
104
- "Camera",
105
- "Axis"
106
- ],
107
- "author": "CamStreamer s.r.o",
108
- "license": "ISC",
109
- "bugs": {
110
- "url": "https://github.com/CamStreamer/CamStreamerLib/issues"
111
- },
112
- "homepage": "https://github.com/CamStreamer/CamStreamerLib#readme"
56
+ "files": [
57
+ "/**/*.js",
58
+ "/**/*.ts",
59
+ "/examples/**/*"
60
+ ],
61
+ "main": "./cjs/index.js",
62
+ "module": "./esm/index.js",
63
+ "types": "types/index.d.ts",
64
+ "exports": {
65
+ ".": {
66
+ "import": "./esm/index.js",
67
+ "require": "./cjs/index.js",
68
+ "types": "./types/index.d.ts"
69
+ },
70
+ "./web": {
71
+ "import": "./esm/web/index.js",
72
+ "require": "./cjs/web/index.js",
73
+ "types": "./types/web/index.d.ts"
74
+ },
75
+ "./node": {
76
+ "import": "./esm/node/index.js",
77
+ "require": "./cjs/node/index.js",
78
+ "types": "./types/node/index.d.ts"
79
+ },
80
+ "./cjs/index": {
81
+ "import": "./esm/index.js",
82
+ "require": "./cjs/index.js",
83
+ "types": "./types/index.d.ts"
84
+ },
85
+ "./cjs/node": {
86
+ "import": "./esm/node/index.js",
87
+ "require": "./cjs/node/index.js",
88
+ "types": "./types/node/index.js"
89
+ },
90
+ "./cjs/node/index": {
91
+ "import": "./esm/node/index.js",
92
+ "require": "./cjs/node/index.js",
93
+ "types": "./types/node/index.js"
94
+ }
95
+ },
96
+ "repository": {
97
+ "type": "git",
98
+ "url": "git+https://github.com/CamStreamer/CamStreamerLib.git"
99
+ },
100
+ "keywords": [
101
+ "CamStreamer",
102
+ "CamOverlay",
103
+ "CamScripter",
104
+ "Camera",
105
+ "Axis"
106
+ ],
107
+ "author": "CamStreamer s.r.o",
108
+ "license": "ISC",
109
+ "bugs": {
110
+ "url": "https://github.com/CamStreamer/CamStreamerLib/issues"
111
+ },
112
+ "homepage": "https://github.com/CamStreamer/CamStreamerLib#readme"
113
113
  }
@@ -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;