@mxmweb/rtext 1.6.22 → 1.6.23

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.
Files changed (3) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
  3. package/stats.html +1 -1
package/index.js CHANGED
@@ -28323,7 +28323,10 @@ const B7 = Ne.div.attrs({
28323
28323
  }
28324
28324
  let Fe = [];
28325
28325
  try {
28326
- _ && (Fe = JSON.parse(_));
28326
+ if (_) {
28327
+ const X = JSON.parse(_);
28328
+ Fe = Array.isArray(X) ? X : X && Array.isArray(X.knowledgeRefs) ? X.knowledgeRefs : [];
28329
+ }
28327
28330
  } catch (X) {
28328
28331
  console.error("Failed to parse reference:", X);
28329
28332
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "lib_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.6.22",
8
+ "version": "1.6.23",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {