@tinacms/mdx 0.61.3 → 0.61.6

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 (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -244459,9 +244459,9 @@ var remarkToSlate = (root3, field, imageCallback) => {
244459
244459
  case "thematicBreak":
244460
244460
  case "table":
244461
244461
  case "html":
244462
- throw new Error(`${content4.type} inside list item is not supported`);
244462
+ throw new RichTextParseError(`${child.type} inside list item is not supported`, child.position);
244463
244463
  default:
244464
- throw new Error(`Unknown list item of type ${content4.type}`);
244464
+ throw new RichTextParseError(`Unknown list item of type ${child.type}`, child.position);
244465
244465
  }
244466
244466
  })
244467
244467
  };
@@ -244704,7 +244704,7 @@ var parseMDX = (value, field, imageCallback) => {
244704
244704
  if (e instanceof RichTextParseError) {
244705
244705
  return invalidMarkdown(e, value);
244706
244706
  }
244707
- throw e;
244707
+ return invalidMarkdown(new RichTextParseError(e.message), value);
244708
244708
  }
244709
244709
  };
244710
244710
  var invalidMarkdown = (e, value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/mdx",
3
- "version": "0.61.3",
3
+ "version": "0.61.6",
4
4
  "typings": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@tinacms/schema-tools": "0.1.0",
21
+ "@tinacms/schema-tools": "0.1.2",
22
22
  "acorn": "^8.7.1",
23
23
  "lodash-es": "^4.17.21",
24
24
  "mdast-util-mdx-jsx": "^2.0.1",