@tv2media/v-connection
Advanced tools
Comparing version 6.0.3 to 6.1.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [6.1.0](https://github.com/tv2/v-connection/compare/v6.0.3...v6.1.0) (2022-10-27) | ||
### Features | ||
- SOF-1140 allow creating elements that have more fields than mastertemplate supports ([466c722](https://github.com/tv2/v-connection/commit/466c7228efdda63e8229931dc4e507f4c85c5c51)) | ||
### [6.0.3](https://github.com/tv2/v-connection/compare/v6.0.1...v6.0.3) (2022-10-14) | ||
@@ -7,0 +13,0 @@ |
export * from './v-connection'; | ||
export { createMSE } from './mse'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { VRundown, VTemplate, InternalElement, ExternalElement, VElement, ExternalElementId, ElementId, InternalElementId, InternalElementIdWithCreator } from './v-connection'; |
@@ -26,3 +26,3 @@ "use strict"; | ||
this.msehttp = (0, msehttp_1.createHTTPContext)(this.profile, this.mse.resthost ? this.mse.resthost : this.mse.hostname, this.mse.restPort); | ||
this.initialChannelMapPromise = this.buildChannelMap().catch((err) => console.error(`Warning: Failed to build channel map: ${err.message}`)); | ||
this.initialChannelMapPromise = this.buildChannelMap().catch((err) => this.mse.emit('warning', `Failed to build channel map: ${err.message}`)); | ||
} | ||
@@ -113,3 +113,3 @@ get pep() { | ||
else { | ||
throw new Error(`Could not retrieve field definitions for tempalte '${templateName}'. Not creating element '${elementId.instanceName}'.`); | ||
throw new Error(`Could not retrieve field definitions for template '${templateName}'. Not creating element '${elementId.instanceName}'.`); | ||
} | ||
@@ -120,8 +120,8 @@ let fieldNames = fielddef ? fielddef.map((x) => x.$.name) : []; | ||
if (textFields.length > fieldNames.length) { | ||
throw new Error(`For template '${templateName}' with ${fieldNames.length} field(s), ${textFields.length} fields have been provided.`); | ||
this.mse.emit('warning', `For template '${templateName}' with ${fieldNames.length} field(s), ${textFields.length} fields have been provided.`); | ||
} | ||
fieldNames = fieldNames.sort(); | ||
for (let x = 0; x < fieldNames.length; x++) { | ||
entries += ` <entry name="${fieldNames[x]}">${textFields[x] ? textFields[x] : ''}</entry>\n`; | ||
data[fieldNames[x]] = textFields[x] ? textFields[x] : ''; | ||
entries += ` <entry name="${fieldNames[x]}">${textFields[x] ?? ''}</entry>\n`; | ||
data[fieldNames[x]] = textFields[x] ?? ''; | ||
} | ||
@@ -164,3 +164,3 @@ const vizProgram = channel ? ` viz_program="${channel}"` : ''; | ||
catch (err) { | ||
console.error(`Warning: createElement: Channel map not built: ${(0, peptalk_1.getPepErrorMessage)(err)}`); | ||
this.mse.emit('warning', `createElement: Channel map not built: ${(0, peptalk_1.getPepErrorMessage)(err)}`); | ||
} | ||
@@ -167,0 +167,0 @@ } |
export declare function wrapInBracesIfNeeded(value: string): string; | ||
export declare function has(object: Record<string | number, any>, property: string | number): boolean; | ||
//# sourceMappingURL=util.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -476,2 +476,3 @@ /** | ||
on(event: 'connected', listener: () => void): this; | ||
on(event: 'warning', listener: (message: string) => void): this; | ||
/** Add a listener for all error messages from the server. */ | ||
@@ -478,0 +479,0 @@ on(event: 'disconnected', listener: (err?: Error) => void): this; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@tv2media/v-connection", | ||
"version": "6.0.3", | ||
"version": "6.1.0", | ||
"description": "Sofie TV Automation Vizrt Media Sequencer Engine connection library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2562
0
200109