@nizza/core 0.8.3-beta.0 → 0.8.3-beta.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.
package/dist/index.mjs CHANGED
@@ -31102,9 +31102,16 @@ const MD = (t) => {
31102
31102
  t.data = t.data.replace("replace_gif", (n = t.urlGif) != null ? n : "");
31103
31103
  const e = t.data.indexOf("::question__") > -1;
31104
31104
  if (e) {
31105
- const [r, i] = t.data.split("::") || ["none", "none"], s = i.split("question__")[1], o = {
31105
+ const [r, i] = t.data.split("::question__") || ["none", "none"];
31106
+ let s = null;
31107
+ try {
31108
+ s = JSON.parse(i);
31109
+ } catch {
31110
+ console.error("addQuestionData failed to parse question JSON:", i);
31111
+ }
31112
+ const o = {
31106
31113
  response: r.replace("response__", ""),
31107
- question: JSON.parse(s)
31114
+ question: s
31108
31115
  };
31109
31116
  return {
31110
31117
  ...t,