atem-state
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -5,2 +5,10 @@ # Changelog | ||
### [0.8.1](https://github.com/nrkno/tv-automation-atem-state/compare/0.8.0...0.8.1) (2019-11-21) | ||
### Bug Fixes | ||
* do not mutate input state objects ([43f6954](https://github.com/nrkno/tv-automation-atem-state/commit/43f6954dc21723520e3e172f2a6b4d621245a534)) | ||
* prevent falsy checks for input = 0 ([78ef630](https://github.com/nrkno/tv-automation-atem-state/commit/78ef630a27d3a05f239093c3569569fb4f95f2d1)) | ||
## [0.8.0](https://github.com/nrkno/tv-automation-atem-state/compare/0.7.1...0.8.0) (2019-10-24) | ||
@@ -7,0 +15,0 @@ |
@@ -20,7 +20,7 @@ "use strict"; | ||
continue; | ||
let oldMEInput = oldMixEffect.input; | ||
if (typeof oldMEInput === 'undefined') | ||
oldMEInput = oldMixEffect.programInput; | ||
if (typeof newMixEffect.input !== 'undefined' && typeof newMixEffect.transition !== 'undefined') { | ||
if (typeof oldMixEffect.input === 'undefined') { | ||
oldMixEffect.input = oldMixEffect.programInput; | ||
} | ||
if (newMixEffect.input !== oldMixEffect.input || newMixEffect.transition === __1.Enums.TransitionStyle.DUMMY) { | ||
if (newMixEffect.input !== oldMEInput || newMixEffect.transition === __1.Enums.TransitionStyle.DUMMY) { | ||
const command = new atem_connection_1.Commands.PreviewInputCommand(); | ||
@@ -59,3 +59,3 @@ command.mixEffect = Number(mixEffectId); | ||
} | ||
if ((oldMixEffect.input || oldMixEffect.programInput) !== newMixEffect.programInput) { | ||
if (oldMEInput !== newMixEffect.programInput) { | ||
// @todo: check if we need to use the cut command? | ||
@@ -62,0 +62,0 @@ // use cut command if: |
{ | ||
"name": "atem-state", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Typescript Node.js library for comparing ATEM states", | ||
@@ -80,2 +80,8 @@ "main": "dist/index.js", | ||
}, | ||
"files": [ | ||
"/dist", | ||
"/CHANGELOG.md", | ||
"/README.md", | ||
"/LICENSE" | ||
], | ||
"devDependencies": { | ||
@@ -82,0 +88,0 @@ "@types/jest": "^24.0.11", |
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
108825