@novely/core 0.46.0-next.3 → 0.46.0

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.
@@ -1054,10 +1054,10 @@ var Novely = (() => {
1054
1054
  });
1055
1055
  };
1056
1056
  var flatStory = (story) => {
1057
- const entries = Object.entries(story).map(([name, items]) => {
1058
- return [name, flatActions(items)];
1059
- });
1060
- return Object.fromEntries(entries);
1057
+ for (const key in story) {
1058
+ story[key] = flatActions(story[key]);
1059
+ }
1060
+ return story;
1061
1061
  };
1062
1062
 
1063
1063
  // src/browser.ts
@@ -1443,14 +1443,14 @@ var Novely = (() => {
1443
1443
  } else {
1444
1444
  for (let i = 1; i < props.length; i++) {
1445
1445
  const choice = props[i];
1446
- if (Array.isArray(choice) && choice.length === 2) {
1446
+ if (Array.isArray(choice)) {
1447
1447
  choice[1] = flatActions(choice[1]);
1448
1448
  }
1449
1449
  }
1450
1450
  }
1451
1451
  } else if (action2 === "condition") {
1452
1452
  const actions = props[1];
1453
- for (let key in actions) {
1453
+ for (const key in actions) {
1454
1454
  actions[key] = flatActions(actions[key]);
1455
1455
  }
1456
1456
  }