@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.
- package/dist/index.global.js +6 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -715,10 +715,10 @@ var flatActions = (item) => {
|
|
|
715
715
|
});
|
|
716
716
|
};
|
|
717
717
|
var flatStory = (story) => {
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
return
|
|
718
|
+
for (const key in story) {
|
|
719
|
+
story[key] = flatActions(story[key]);
|
|
720
|
+
}
|
|
721
|
+
return story;
|
|
722
722
|
};
|
|
723
723
|
|
|
724
724
|
// src/browser.ts
|
|
@@ -1104,14 +1104,14 @@ var novely = ({
|
|
|
1104
1104
|
} else {
|
|
1105
1105
|
for (let i = 1; i < props.length; i++) {
|
|
1106
1106
|
const choice = props[i];
|
|
1107
|
-
if (Array.isArray(choice)
|
|
1107
|
+
if (Array.isArray(choice)) {
|
|
1108
1108
|
choice[1] = flatActions(choice[1]);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
} else if (action2 === "condition") {
|
|
1113
1113
|
const actions = props[1];
|
|
1114
|
-
for (
|
|
1114
|
+
for (const key in actions) {
|
|
1115
1115
|
actions[key] = flatActions(actions[key]);
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|