Skip to content

Commit

Permalink
fix: update failing ccg-connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Jan 2, 2024
1 parent bcedb7b commit 54d031a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/timeline-state-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@tv2media/v-connection": "^7.3.0",
"atem-connection": "2.5.0",
"atem-state": "0.13.0",
"casparcg-connection": "^6.0.6",
"casparcg-connection": "6.2.0-nightly-master-20240102-111829-2fe75295.0",
"casparcg-state": "^3.0.2",
"debug": "^4.3.1",
"deepmerge": "^4.2.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import * as _ from 'underscore'
import * as deepMerge from 'deepmerge'
import { DeviceWithState, CommandWithContext, DeviceStatus, StatusCode, literal } from '../../devices/device'
import { AMCPCommand, BasicCasparCGAPI, ClearCommand, Commands, Response } from 'casparcg-connection'
import {
AMCPCommand,
BasicCasparCGAPI,
ClearCommand,
Commands,
InfoChannelCommand,
InfoChannelEntry,
Response,
} from 'casparcg-connection'
import {
DeviceType,
TimelineContentTypeCasparCg,
Expand Down Expand Up @@ -117,15 +125,15 @@ export class CasparCGDevice extends DeviceWithState<State, DeviceOptionsCasparCG

const response = await request

const channelPromises: Promise<Response>[] = []
const channelPromises: Promise<Response<InfoChannelEntry | undefined>>[] = []
const channelLength: number = response?.data?.['length'] ?? 0

// Issue commands
for (let i = 1; i <= channelLength; i++) {
// 1-based index for channels

const { error, request } = await this._ccg.executeCommand({
command: Commands.Info,
command: Commands.InfoChannel,
params: { channel: i },
})
if (error) {
Expand Down
24 changes: 23 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,16 @@ caseless@~0.12.0:
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==

casparcg-connection@^6.0.0, casparcg-connection@^6.0.6:
casparcg-connection@6.2.0-nightly-master-20240102-111829-2fe75295.0:
version "6.2.0-nightly-master-20240102-111829-2fe75295.0"
resolved "https://registry.yarnpkg.com/casparcg-connection/-/casparcg-connection-6.2.0-nightly-master-20240102-111829-2fe75295.0.tgz#3262f89cd7b50b57aad13616b2e2a119f0f6289a"
integrity sha512-+RLEEaxXA0qVj5XT3iv89X1WIJs8UgyDH/RCL/YB9OhvHv1LPxn9mMLH+6atuAmU77HWZwyZ4Q27sQCuu9U9LA==
dependencies:
eventemitter3 "^5.0.1"
tslib "^2.5.0"
xml2js "^0.6.2"

casparcg-connection@^6.0.0:
version "6.0.6"
resolved "https://registry.yarnpkg.com/casparcg-connection/-/casparcg-connection-6.0.6.tgz#88975bb9b1f1ee6db89ab420ca058fde79b01d2f"
integrity sha512-VFGKg1KslF0mMteZoCz2gQBN+KYUbM3YiNsVWTUNyPuDV6o57iP8V++LY8geAKRYSjQ/RTB4I1QI81L7QZeJaA==
Expand Down Expand Up @@ -3943,6 +3952,11 @@ eventemitter3@^4.0.4, eventemitter3@^4.0.7:
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==

eventemitter3@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4"
integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==

events@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
Expand Down Expand Up @@ -9219,6 +9233,14 @@ xml2js@^0.4.23:
sax ">=0.6.0"
xmlbuilder "~11.0.0"

xml2js@^0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.6.2.tgz#dd0b630083aa09c161e25a4d0901e2b2a929b499"
integrity sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==
dependencies:
sax ">=0.6.0"
xmlbuilder "~11.0.0"

xmlbuilder@~11.0.0:
version "11.0.1"
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3"
Expand Down

0 comments on commit 54d031a

Please sign in to comment.