@astrojs/mdx 1.0.1 → 1.0.2

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 +2 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -113,7 +113,9 @@ function mdx(partialMdxOptions = {}) {
113
113
  };
114
114
  } catch (e) {
115
115
  const err = e;
116
+ err.name = "MDXError";
116
117
  err.loc = { file: fileId, line: e.line, column: e.column };
118
+ Error.captureStackTrace(err);
117
119
  throw err;
118
120
  }
119
121
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/mdx",
3
3
  "description": "Add support for MDX pages in your Astro site",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -47,7 +47,7 @@
47
47
  "@astrojs/prism": "3.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "astro": "^3.0.9"
50
+ "astro": "^3.0.10"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/chai": "^4.3.5",
@@ -69,7 +69,7 @@
69
69
  "remark-shiki-twoslash": "^3.1.3",
70
70
  "remark-toc": "^8.0.1",
71
71
  "vite": "^4.4.9",
72
- "astro": "3.0.9",
72
+ "astro": "3.0.10",
73
73
  "astro-scripts": "0.0.14"
74
74
  },
75
75
  "engines": {