camstreamerlib 1.7.0 → 1.7.3
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/CamOverlayAPI.d.ts +7 -7
- package/CamOverlayAPI.js +1 -1
- package/CamStreamerAPI.d.ts +4 -4
- package/package.json +4 -4
package/CamOverlayAPI.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import * as EventEmitter from 'events';
|
|
4
4
|
export declare type CamOverlayOptions = {
|
|
5
|
-
protocol
|
|
6
|
-
ip
|
|
7
|
-
port
|
|
8
|
-
auth
|
|
9
|
-
serviceName
|
|
10
|
-
serviceID
|
|
11
|
-
camera
|
|
5
|
+
protocol?: string;
|
|
6
|
+
ip?: string;
|
|
7
|
+
port?: number;
|
|
8
|
+
auth?: string;
|
|
9
|
+
serviceName?: string;
|
|
10
|
+
serviceID?: number;
|
|
11
|
+
camera?: number;
|
|
12
12
|
};
|
|
13
13
|
export declare type Field = {
|
|
14
14
|
field_name: string;
|
package/CamOverlayAPI.js
CHANGED
|
@@ -267,7 +267,7 @@ class CamOverlayAPI extends EventEmitter {
|
|
|
267
267
|
setEnabled(enabled) {
|
|
268
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
269
269
|
const value = enabled ? 1 : 0;
|
|
270
|
-
const path = encodeURI(`/local/camoverlay/api/enabled.cgi?
|
|
270
|
+
const path = encodeURI(`/local/camoverlay/api/enabled.cgi?id_${this.serviceID}=${value}`);
|
|
271
271
|
const options = {
|
|
272
272
|
method: 'POST',
|
|
273
273
|
host: this.ip,
|
package/CamStreamerAPI.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
5
|
"prettier": "@camstreamer/prettier-config",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"crypto": "^1.0.1",
|
|
8
8
|
"eventemitter2": "^5.0.1",
|
|
9
9
|
"prettify-xml": "^1.2.0",
|
|
10
|
-
"adm-zip": "^0.5.9",
|
|
11
|
-
"typescript": "^4.7.4",
|
|
12
10
|
"ws": "^7.4.2",
|
|
13
|
-
"xml2js": "^0.4.19"
|
|
11
|
+
"xml2js": "^0.4.19",
|
|
12
|
+
"adm-zip": "^0.5.9"
|
|
14
13
|
},
|
|
15
14
|
"devDependencies": {
|
|
16
15
|
"@camstreamer/prettier-config": "^2.0.4",
|
|
17
16
|
"@types/jest": "^28.0.0",
|
|
18
17
|
"@types/node": "^18.0.6",
|
|
18
|
+
"typescript": "^4.7.4",
|
|
19
19
|
"ts-jest": "^28.0.0",
|
|
20
20
|
"ts-node": "^10.7.0",
|
|
21
21
|
"jest": "^28.1.3",
|