@readme/markdown 6.75.0-beta.51 → 6.75.0-beta.52

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/main.js CHANGED
@@ -94263,7 +94263,7 @@ const makeUseMDXComponents = (more = {}) => {
94263
94263
  const run_run = async (string, _opts = {}) => {
94264
94264
  const { Fragment } = jsx_runtime_namespaceObject;
94265
94265
  const { components = {}, terms, variables, baseUrl } = _opts, opts = run_rest(_opts, ["components", "terms", "variables", "baseUrl"]);
94266
- const defaults = Object.fromEntries(Object.entries(components).map(([tag, module]) => [tag, module.default]));
94266
+ const defaults = Object.fromEntries(Object.entries(components).map(([tag, module]) => [tag, 'default' in module ? module.default : module]));
94267
94267
  const exec = (text, { useMDXComponents = makeUseMDXComponents(defaults) } = {}) => {
94268
94268
  return run(text, Object.assign(Object.assign(Object.assign({}, jsx_runtime_namespaceObject), { Fragment, baseUrl: "file:///home/runner/work/markdown/markdown/lib/run.tsx", imports: { React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) }, useMDXComponents }), opts));
94269
94269
  };
package/dist/main.node.js CHANGED
@@ -95716,7 +95716,7 @@ const makeUseMDXComponents = (more = {}) => {
95716
95716
  const run_run = async (string, _opts = {}) => {
95717
95717
  const { Fragment } = jsx_runtime_namespaceObject;
95718
95718
  const { components = {}, terms, variables, baseUrl } = _opts, opts = run_rest(_opts, ["components", "terms", "variables", "baseUrl"]);
95719
- const defaults = Object.fromEntries(Object.entries(components).map(([tag, module]) => [tag, module.default]));
95719
+ const defaults = Object.fromEntries(Object.entries(components).map(([tag, module]) => [tag, 'default' in module ? module.default : module]));
95720
95720
  const exec = (text, { useMDXComponents = makeUseMDXComponents(defaults) } = {}) => {
95721
95721
  return run(text, Object.assign(Object.assign(Object.assign({}, jsx_runtime_namespaceObject), { Fragment, baseUrl: "file:///home/runner/work/markdown/markdown/lib/run.tsx", imports: { React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) }, useMDXComponents }), opts));
95722
95722
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.75.0-beta.51",
5
+ "version": "6.75.0-beta.52",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",