@koda-sl/baker-cli 0.282.0-dev.9fd0fee52 → 0.283.0-dev.1668a79df

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.
@@ -4126,7 +4126,7 @@ function checkAudioTimelineTotals(ctx, audioMixNode, expected) {
4126
4126
  if (audioMixNode) mustBeFullLength.add(audioMixNode);
4127
4127
  ctx.canvas.nodes.forEach((n) => {
4128
4128
  if (n.type !== "audio_voice_convert") return;
4129
- const track = refNodeOf(ctx, (n.inputs ?? {}).audio);
4129
+ const track = refNodeOf(ctx, n.inputs?.audio);
4130
4130
  if (track?.type === "audio_timeline") mustBeFullLength.add(track.id);
4131
4131
  });
4132
4132
  for (const id of mustBeFullLength) {
@@ -4147,11 +4147,11 @@ function checkAudioTimelineTotals(ctx, audioMixNode, expected) {
4147
4147
  function checkNativeSegOverlap(ctx) {
4148
4148
  for (const conv of ctx.canvas.nodes) {
4149
4149
  if (conv.type !== "audio_voice_convert") continue;
4150
- const track = refNodeOf(ctx, (conv.inputs ?? {}).audio);
4150
+ const track = refNodeOf(ctx, conv.inputs?.audio);
4151
4151
  if (track?.type !== "audio_timeline") continue;
4152
4152
  const params = track.params;
4153
4153
  const windows = (params.tracks ?? []).map((t) => {
4154
- const extract = refNodeOf(ctx, (track.inputs ?? {})[t.slot]);
4154
+ const extract = refNodeOf(ctx, track.inputs?.[t.slot]);
4155
4155
  const len = t.duration_s ?? (extract ? ffmpegTrimSeconds(extract) : null);
4156
4156
  return len === null ? null : { slot: t.slot, start: t.start_s, end: t.start_s + len };
4157
4157
  }).filter((w) => w !== null).sort((a, b) => a.start - b.start);
@@ -9379,4 +9379,4 @@ export {
9379
9379
  defaultRegistry,
9380
9380
  createEngineFromEnv
9381
9381
  };
9382
- //# sourceMappingURL=chunk-LOUE7GTU.js.map
9382
+ //# sourceMappingURL=chunk-L5XGJNUM.js.map