hyperdeck-connection 0.5.0 → 1.0.0
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/CHANGELOG.md +9 -1
- package/README.md +15 -14
- package/dist/asyncHandlers/index.d.ts +1 -0
- package/dist/asyncHandlers/index.d.ts.map +1 -1
- package/dist/asyncHandlers/index.js +1 -0
- package/dist/asyncHandlers/index.js.map +1 -1
- package/dist/asyncHandlers/remoteInfo.d.ts +12 -0
- package/dist/asyncHandlers/remoteInfo.d.ts.map +1 -0
- package/dist/asyncHandlers/remoteInfo.js +19 -0
- package/dist/asyncHandlers/remoteInfo.js.map +1 -0
- package/dist/codes.d.ts +2 -0
- package/dist/codes.d.ts.map +1 -1
- package/dist/codes.js +2 -0
- package/dist/codes.js.map +1 -1
- package/dist/commands/remote.d.ts +12 -2
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +24 -1
- package/dist/commands/remote.js.map +1 -1
- package/package.json +5 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to this project will be documented in this file. See [
|
|
3
|
+
All notable changes to this project will be documented in this file. See [Convential Commits](https://www.conventionalcommits.org/en/v1.0.0/#specification) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## [1.0.0](https://github.com/nrkno/sofie-hyperdeck-connection/compare/0.5.0...v1.0.0) (Mon Nov 21 2022)
|
|
6
|
+
|
|
7
|
+
## Breaking changes
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **!** remove node 12 support [65fa9ee](https://github.com/nrkno/sofie-hyperdeck-connection/commit/65fa9ee766e5856be3bbcd366d0a1d7fd7ed4ffe)
|
|
4
12
|
|
|
5
13
|
## [0.5.0](https://github.com/nrkno/sofie-hyperdeck-connection/compare/0.4.4...0.5.0) (2022-04-29)
|
|
6
14
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Sofie: The Modern TV News Studio Automation System (Hyperdeck Connection Library)
|
|
3
2
|
|
|
4
3
|
[](https://circleci.com/gh/nrkno/sofie-hyperdeck-connection)
|
|
@@ -7,20 +6,22 @@
|
|
|
7
6
|
This library is used in the [**Sofie** TV News Studio Automation System](https://github.com/nrkno/Sofie-TV-automation/) for connecting to Blackmagic Design Hyperdeck devices.
|
|
8
7
|
|
|
9
8
|
## Technology highlights
|
|
9
|
+
|
|
10
10
|
- Typescript
|
|
11
11
|
- Yarn
|
|
12
|
-
-
|
|
13
|
-
- standard-version
|
|
12
|
+
- Jeststandard-version
|
|
14
13
|
- codecov
|
|
15
14
|
|
|
16
15
|
## Installation
|
|
17
16
|
|
|
18
17
|
For usage by library consumers installation is as easy as:
|
|
18
|
+
|
|
19
19
|
```sh
|
|
20
20
|
yarn add hyperdeck-connection
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
For library developers installation steps are as following:
|
|
24
|
+
|
|
24
25
|
```sh
|
|
25
26
|
git clone https://github.com/nrkno/tv-automation-hyperdeck-connection
|
|
26
27
|
yarn
|
|
@@ -53,29 +54,29 @@ myHyperdeck.on('connected', (info) => {
|
|
|
53
54
|
})
|
|
54
55
|
})
|
|
55
56
|
|
|
56
|
-
myHyperdeck.on('notify.slot', function(err, state) {
|
|
57
|
-
|
|
58
|
-
})
|
|
59
|
-
myHyperdeck.on('notify.transport', function(err, state) {
|
|
60
|
-
|
|
61
|
-
})
|
|
57
|
+
myHyperdeck.on('notify.slot', function (err, state) {
|
|
58
|
+
console.log(state) // catch the slot state change.
|
|
59
|
+
})
|
|
60
|
+
myHyperdeck.on('notify.transport', function (err, state) {
|
|
61
|
+
console.log(state) // catch the transport state change.
|
|
62
|
+
})
|
|
62
63
|
myHyperdeck.on('error', (err) => {
|
|
63
|
-
|
|
64
|
-
})
|
|
64
|
+
console.log('Hyperdeck error', err)
|
|
65
|
+
})
|
|
65
66
|
```
|
|
66
67
|
|
|
67
68
|
### Events
|
|
68
69
|
|
|
69
70
|
- `connected`
|
|
70
|
-
This event will be fired once we have connected with the hyperdeck.
|
|
71
|
+
This event will be fired once we have connected with the hyperdeck.
|
|
71
72
|
|
|
72
73
|
- `disconnected`
|
|
73
|
-
Whenever the connection is lost. connected may be fired against shortly after if the connection is restored
|
|
74
|
-
|
|
74
|
+
Whenever the connection is lost. connected may be fired against shortly after if the connection is restored
|
|
75
75
|
|
|
76
76
|
## Test
|
|
77
77
|
|
|
78
78
|
This module will run tests by jest.
|
|
79
|
+
|
|
79
80
|
```sh
|
|
80
81
|
$ yarn unit
|
|
81
82
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asyncHandlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/asyncHandlers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA"}
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
(0, tslib_1.__exportStar)(require("./configuration"), exports);
|
|
5
5
|
(0, tslib_1.__exportStar)(require("./displayTimecode"), exports);
|
|
6
6
|
(0, tslib_1.__exportStar)(require("./iHandler"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./remoteInfo"), exports);
|
|
7
8
|
(0, tslib_1.__exportStar)(require("./slotInfo"), exports);
|
|
8
9
|
(0, tslib_1.__exportStar)(require("./timelinePosition"), exports);
|
|
9
10
|
(0, tslib_1.__exportStar)(require("./transportInfo"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/asyncHandlers/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+B;AAC/B,iEAAiC;AACjC,0DAA0B;AAC1B,0DAA0B;AAC1B,kEAAkC;AAClC,+DAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/asyncHandlers/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+B;AAC/B,iEAAiC;AACjC,0DAA0B;AAC1B,4DAA4B;AAC5B,0DAA0B;AAC1B,kEAAkC;AAClC,+DAA+B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResponseMessage } from '../message';
|
|
2
|
+
import { IHandler } from './iHandler';
|
|
3
|
+
import { AsynchronousCode } from '../codes';
|
|
4
|
+
export interface RemoteInfoChangeResponse {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class RemoteInfoChange implements IHandler {
|
|
8
|
+
responseCode: AsynchronousCode;
|
|
9
|
+
eventName: string;
|
|
10
|
+
deserialize(msg: ResponseMessage): RemoteInfoChangeResponse;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=remoteInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteInfo.d.ts","sourceRoot":"","sources":["../../src/asyncHandlers/remoteInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,WAAW,wBAAwB;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,qBAAa,gBAAiB,YAAW,QAAQ;IAChD,YAAY,mBAA8B;IAC1C,SAAS,SAAkB;IAE3B,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,wBAAwB;CAM3D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoteInfoChange = void 0;
|
|
4
|
+
const util_1 = require("../util");
|
|
5
|
+
const codes_1 = require("../codes");
|
|
6
|
+
class RemoteInfoChange {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.responseCode = codes_1.AsynchronousCode.RemoteInfo;
|
|
9
|
+
this.eventName = 'notify.remote';
|
|
10
|
+
}
|
|
11
|
+
deserialize(msg) {
|
|
12
|
+
const res = {
|
|
13
|
+
enabled: (0, util_1.parseBool)(msg.params['enabled']),
|
|
14
|
+
};
|
|
15
|
+
return res;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RemoteInfoChange = RemoteInfoChange;
|
|
19
|
+
//# sourceMappingURL=remoteInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteInfo.js","sourceRoot":"","sources":["../../src/asyncHandlers/remoteInfo.ts"],"names":[],"mappings":";;;AACA,kCAAmC;AAEnC,oCAA2C;AAM3C,MAAa,gBAAgB;IAA7B;QACC,iBAAY,GAAG,wBAAgB,CAAC,UAAU,CAAA;QAC1C,cAAS,GAAG,eAAe,CAAA;IAQ5B,CAAC;IANA,WAAW,CAAC,GAAoB;QAC/B,MAAM,GAAG,GAA6B;YACrC,OAAO,EAAE,IAAA,gBAAS,EAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;SACzC,CAAA;QACD,OAAO,GAAG,CAAA;IACX,CAAC;CACD;AAVD,4CAUC"}
|
package/dist/codes.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare enum SynchronousCode {
|
|
|
27
27
|
DiskList = 206,
|
|
28
28
|
TransportInfo = 208,
|
|
29
29
|
Notify = 209,
|
|
30
|
+
RemoteInfo = 210,
|
|
30
31
|
Configuration = 211,
|
|
31
32
|
ClipsCount = 214,
|
|
32
33
|
FormatReady = 216,
|
|
@@ -40,6 +41,7 @@ export declare enum AsynchronousCode {
|
|
|
40
41
|
ConnectionInfo = 500,
|
|
41
42
|
SlotInfo = 502,
|
|
42
43
|
TransportInfo = 508,
|
|
44
|
+
RemoteInfo = 510,
|
|
43
45
|
Configuration = 511,
|
|
44
46
|
DisplayTimecode = 513,
|
|
45
47
|
TimelinePosition = 514
|
package/dist/codes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../src/codes.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG,SAAS,GAAG,eAAe,GAAG,gBAAgB,CAAA;AAEzE,oBAAY,SAAS;IACpB,WAAW,MAAM;IACjB,oBAAoB,MAAM;IAC1B,YAAY,MAAM;IAClB,WAAW,MAAM;IACjB,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,SAAS,MAAM;IACf,aAAa,MAAM;IACnB,aAAa,MAAM;IACnB,UAAU,MAAM;IAChB,OAAO,MAAM;IACb,qBAAqB,MAAM;IAC3B,kBAAkB,MAAM;IACxB,YAAY,MAAM;IAClB,YAAY,MAAM;IAClB,aAAa,MAAM;IACnB,YAAY,MAAM;IAClB,iBAAiB,MAAM;CACvB;AAED,oBAAY,eAAe;IAC1B,EAAE,MAAM;IACR,QAAQ,MAAM;IACd,UAAU,MAAM;IAChB,QAAQ,MAAM;IACd,QAAQ,MAAM;IACd,aAAa,MAAM;IACnB,MAAM,MAAM;IACZ,aAAa,MAAM;IACnB,UAAU,MAAM;IAChB,WAAW,MAAM;IACjB,aAAa,MAAM;IACnB,SAAS,MAAM;IACf,UAAU,MAAM;IAChB,SAAS,MAAM;IACf,YAAY,MAAM;CAClB;AAED,oBAAY,gBAAgB;IAC3B,cAAc,MAAM;IACpB,QAAQ,MAA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B;IAC3B,OAAO,IAAA;IACP,KAAK,IAAA;IACL,WAAW,IAAA;IACX,YAAY,IAAA;CACZ;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG,gBAAgB,CAMvE"}
|
package/dist/codes.js
CHANGED
|
@@ -31,6 +31,7 @@ var SynchronousCode;
|
|
|
31
31
|
SynchronousCode[SynchronousCode["DiskList"] = 206] = "DiskList";
|
|
32
32
|
SynchronousCode[SynchronousCode["TransportInfo"] = 208] = "TransportInfo";
|
|
33
33
|
SynchronousCode[SynchronousCode["Notify"] = 209] = "Notify";
|
|
34
|
+
SynchronousCode[SynchronousCode["RemoteInfo"] = 210] = "RemoteInfo";
|
|
34
35
|
SynchronousCode[SynchronousCode["Configuration"] = 211] = "Configuration";
|
|
35
36
|
SynchronousCode[SynchronousCode["ClipsCount"] = 214] = "ClipsCount";
|
|
36
37
|
SynchronousCode[SynchronousCode["FormatReady"] = 216] = "FormatReady";
|
|
@@ -45,6 +46,7 @@ var AsynchronousCode;
|
|
|
45
46
|
AsynchronousCode[AsynchronousCode["ConnectionInfo"] = 500] = "ConnectionInfo";
|
|
46
47
|
AsynchronousCode[AsynchronousCode["SlotInfo"] = 502] = "SlotInfo";
|
|
47
48
|
AsynchronousCode[AsynchronousCode["TransportInfo"] = 508] = "TransportInfo";
|
|
49
|
+
AsynchronousCode[AsynchronousCode["RemoteInfo"] = 510] = "RemoteInfo";
|
|
48
50
|
AsynchronousCode[AsynchronousCode["Configuration"] = 511] = "Configuration";
|
|
49
51
|
AsynchronousCode[AsynchronousCode["DisplayTimecode"] = 513] = "DisplayTimecode";
|
|
50
52
|
AsynchronousCode[AsynchronousCode["TimelinePosition"] = 514] = "TimelinePosition";
|
package/dist/codes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../src/codes.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAmBX;AAnBD,WAAY,SAAS;IACpB,yDAAiB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nB,iEAAe,CAAA;IACf,mEAAgB,CAAA;IAChB,iEAAe,CAAA;IACf,uEAAkB,CAAA;AACnB,CAAC,EAjBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAiB1B;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC3B,6EAAoB,CAAA;IACpB,iEAAc,CAAA;IACd,2EAAmB,CAAA;IACnB,qEAAgB,CAAA;IAChB,2EAAmB,CAAA;IACnB,+EAAqB,CAAA;IACrB,iFAAsB,CAAA;AACvB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC3B,6DAAO,CAAA;IACP,yDAAK,CAAA;IACL,qEAAW,CAAA;IACX,uEAAY,CAAA;AACb,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AAED,SAAgB,mBAAmB,CAAC,GAAiB;IACpD,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG;QAAE,OAAO,gBAAgB,CAAC,KAAK,CAAA;IAC3D,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG;QAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IACjE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG;QAAE,OAAO,gBAAgB,CAAC,YAAY,CAAA;IAElE,OAAO,gBAAgB,CAAC,OAAO,CAAA;AAChC,CAAC;AAND,kDAMC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SynchronousCode } from '../codes';
|
|
2
|
+
import { ResponseMessage, NamedMessage } from '../message';
|
|
3
|
+
import { AbstractCommand, AbstractCommandNoResponse } from './abstractCommand';
|
|
4
|
+
export interface RemoteInfoCommandResponse {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
override?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class RemoteGetCommand extends AbstractCommand {
|
|
9
|
+
expectedResponseCode: SynchronousCode;
|
|
10
|
+
deserialize(msg: ResponseMessage): RemoteInfoCommandResponse;
|
|
11
|
+
serialize(): NamedMessage;
|
|
12
|
+
}
|
|
3
13
|
export declare class RemoteCommand extends AbstractCommandNoResponse {
|
|
4
14
|
enable?: boolean;
|
|
5
15
|
constructor(enable?: boolean);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/commands/remote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/commands/remote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE1D,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAE9E,MAAM,WAAW,yBAAyB;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,qBAAa,gBAAiB,SAAQ,eAAe;IACpD,oBAAoB,kBAA6B;IAEjD,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,yBAAyB;IAO5D,SAAS,IAAI,YAAY;CAQzB;AAED,qBAAa,aAAc,SAAQ,yBAAyB;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAA;gBAEJ,MAAM,CAAC,EAAE,OAAO;IAM5B,SAAS,IAAI,YAAY;CAUzB"}
|
package/dist/commands/remote.js
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RemoteCommand = void 0;
|
|
3
|
+
exports.RemoteCommand = exports.RemoteGetCommand = void 0;
|
|
4
|
+
const codes_1 = require("../codes");
|
|
5
|
+
const util_1 = require("../util");
|
|
4
6
|
const abstractCommand_1 = require("./abstractCommand");
|
|
7
|
+
class RemoteGetCommand extends abstractCommand_1.AbstractCommand {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.expectedResponseCode = codes_1.SynchronousCode.RemoteInfo;
|
|
11
|
+
}
|
|
12
|
+
deserialize(msg) {
|
|
13
|
+
const res = {
|
|
14
|
+
enabled: (0, util_1.parseBool)(msg.params['enabled']),
|
|
15
|
+
override: (0, util_1.parseBool)(msg.params['override']),
|
|
16
|
+
};
|
|
17
|
+
return res;
|
|
18
|
+
}
|
|
19
|
+
serialize() {
|
|
20
|
+
const res = {
|
|
21
|
+
name: 'remote',
|
|
22
|
+
params: {},
|
|
23
|
+
};
|
|
24
|
+
return res;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.RemoteGetCommand = RemoteGetCommand;
|
|
5
28
|
class RemoteCommand extends abstractCommand_1.AbstractCommandNoResponse {
|
|
6
29
|
constructor(enable) {
|
|
7
30
|
super();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote.js","sourceRoot":"","sources":["../../src/commands/remote.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"remote.js","sourceRoot":"","sources":["../../src/commands/remote.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAE1C,kCAAmC;AACnC,uDAA8E;AAO9E,MAAa,gBAAiB,SAAQ,iCAAe;IAArD;;QACC,yBAAoB,GAAG,uBAAe,CAAC,UAAU,CAAA;IAiBlD,CAAC;IAfA,WAAW,CAAC,GAAoB;QAC/B,MAAM,GAAG,GAA8B;YACtC,OAAO,EAAE,IAAA,gBAAS,EAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACzC,QAAQ,EAAE,IAAA,gBAAS,EAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;SAC3C,CAAA;QACD,OAAO,GAAG,CAAA;IACX,CAAC;IACD,SAAS;QACR,MAAM,GAAG,GAAiB;YACzB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,EAAE;SACV,CAAA;QAED,OAAO,GAAG,CAAA;IACX,CAAC;CACD;AAlBD,4CAkBC;AAED,MAAa,aAAc,SAAQ,2CAAyB;IAG3D,YAAY,MAAgB;QAC3B,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACrB,CAAC;IAED,SAAS;QACR,MAAM,GAAG,GAAiB;YACzB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,EAAE;SACV,CAAA;QAED,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;YAAE,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QAEjF,OAAO,GAAG,CAAA;IACX,CAAC;CACD;AAnBD,sCAmBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperdeck-connection",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Typescript Node.js library for connecting with a BlackmagicDesign's HyperDeck devices.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"docs:test": "yarn docs:html",
|
|
45
45
|
"docs:html": "typedoc --entryPoints src/index.ts --excludePrivate --theme default --out docs",
|
|
46
46
|
"docs:json": "typedoc --json docs/typedoc.json --entryPoints src/index.ts",
|
|
47
|
-
"changelog": "
|
|
47
|
+
"changelog": "sofie-version",
|
|
48
48
|
"release": "yarn reset && yarn test && yarn changelog",
|
|
49
49
|
"reset": "git clean -dfx && git reset --hard && yarn",
|
|
50
50
|
"validate:dependencies": "yarn audit --groups dependencies && yarn license-validate",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"license-validate": "yarn sofie-licensecheck --allowPackages caniuse-lite@1.0.30001312"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
55
|
+
"node": ">=14.18"
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
58
|
"/dist",
|
|
@@ -61,13 +61,12 @@
|
|
|
61
61
|
"/LICENSE"
|
|
62
62
|
],
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@sofie-automation/code-standard-preset": "~
|
|
64
|
+
"@sofie-automation/code-standard-preset": "~2.2.0",
|
|
65
65
|
"@types/jest": "^27.4.0",
|
|
66
66
|
"@types/node": "^12.20.46",
|
|
67
67
|
"jest": "^27.5.1",
|
|
68
|
-
"open-cli": "^
|
|
68
|
+
"open-cli": "^7.1.0",
|
|
69
69
|
"rimraf": "^3.0.2",
|
|
70
|
-
"standard-version": "^9.3.2",
|
|
71
70
|
"ts-jest": "^27.1.3",
|
|
72
71
|
"typedoc": "^0.22.11",
|
|
73
72
|
"typescript": "~4.5"
|
|
@@ -85,10 +84,6 @@
|
|
|
85
84
|
"dependencies": {
|
|
86
85
|
"tslib": "^2.3.1"
|
|
87
86
|
},
|
|
88
|
-
"standard-version": {
|
|
89
|
-
"message": "chore(release): %s [skip ci]",
|
|
90
|
-
"tagPrefix": ""
|
|
91
|
-
},
|
|
92
87
|
"prettier": "@sofie-automation/code-standard-preset/.prettierrc.json",
|
|
93
88
|
"lint-staged": {
|
|
94
89
|
"*.{css,json,md,scss}": [
|