From 54d031a9eddbaa06a2165c41a3da5a20fea610e9 Mon Sep 17 00:00:00 2001 From: Mint de Wit Date: Tue, 2 Jan 2024 12:27:09 +0100 Subject: [PATCH] fix: update failing ccg-connection --- packages/timeline-state-resolver/package.json | 2 +- .../src/integrations/casparCG/index.ts | 14 ++++++++--- yarn.lock | 24 ++++++++++++++++++- 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/packages/timeline-state-resolver/package.json b/packages/timeline-state-resolver/package.json index a4de2e21e..0535196d6 100644 --- a/packages/timeline-state-resolver/package.json +++ b/packages/timeline-state-resolver/package.json @@ -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", diff --git a/packages/timeline-state-resolver/src/integrations/casparCG/index.ts b/packages/timeline-state-resolver/src/integrations/casparCG/index.ts index f33da0399..373ad4343 100644 --- a/packages/timeline-state-resolver/src/integrations/casparCG/index.ts +++ b/packages/timeline-state-resolver/src/integrations/casparCG/index.ts @@ -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, @@ -117,7 +125,7 @@ export class CasparCGDevice extends DeviceWithState[] = [] + const channelPromises: Promise>[] = [] const channelLength: number = response?.data?.['length'] ?? 0 // Issue commands @@ -125,7 +133,7 @@ export class CasparCGDevice extends DeviceWithState=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"