mulmocast-preprocessor 0.4.0 → 0.4.1
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.
|
@@ -3,7 +3,7 @@ const stripBeatExtendedFields = (beat) => {
|
|
|
3
3
|
return baseBeat;
|
|
4
4
|
};
|
|
5
5
|
const filterBeatsToMulmoScript = (script, predicate) => {
|
|
6
|
-
const { outputProfiles: __outputProfiles, ...baseScript } = script;
|
|
6
|
+
const { outputProfiles: __outputProfiles, scriptMeta: __scriptMeta, ...baseScript } = script;
|
|
7
7
|
return {
|
|
8
8
|
...baseScript,
|
|
9
9
|
beats: script.beats.filter(predicate).map(stripBeatExtendedFields),
|
|
@@ -18,7 +18,7 @@ const applyVariantToBeat = (beat, profileName) => {
|
|
|
18
18
|
* Apply profile to script and return standard MulmoScript
|
|
19
19
|
*/
|
|
20
20
|
export const applyProfile = (script, profileName) => {
|
|
21
|
-
const { outputProfiles: __outputProfiles, ...baseScript } = script;
|
|
21
|
+
const { outputProfiles: __outputProfiles, scriptMeta: __scriptMeta, ...baseScript } = script;
|
|
22
22
|
return {
|
|
23
23
|
...baseScript,
|
|
24
24
|
beats: script.beats.map((beat) => applyVariantToBeat(beat, profileName)).filter((beat) => beat !== null),
|