@vxrn/mdx 1.2.56 → 1.2.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/mdx",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "type": "commonjs",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
package/src/getMDX.ts CHANGED
@@ -20,10 +20,9 @@ export async function getMDX(
20
20
  extraPluginsOrOptions?: UnifiedPlugin | GetMDXOptions
21
21
  ) {
22
22
  // Handle both old signature (extraPlugins) and new options object
23
- const opts: GetMDXOptions =
24
- Array.isArray(extraPluginsOrOptions)
25
- ? { extraPlugins: extraPluginsOrOptions }
26
- : extraPluginsOrOptions ?? {}
23
+ const opts: GetMDXOptions = Array.isArray(extraPluginsOrOptions)
24
+ ? { extraPlugins: extraPluginsOrOptions }
25
+ : (extraPluginsOrOptions ?? {})
27
26
 
28
27
  const { frontmatter, code } = await bundleMDX({
29
28
  source,
@@ -1 +1 @@
1
- {"version":3,"file":"getMDX.d.ts","sourceRoot":"","sources":["../src/getMDX.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAa,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpE,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,CAAC,EAAE,aAAa,CAAA;IAC5B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAsB,MAAM,CAC1B,MAAM,EAAE,MAAM,EACd,qBAAqB,CAAC,EAAE,aAAa,GAAG,aAAa;iBAwC9C,WAAW;;GAGnB"}
1
+ {"version":3,"file":"getMDX.d.ts","sourceRoot":"","sources":["../src/getMDX.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAa,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpE,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,CAAC,EAAE,aAAa,CAAA;IAC5B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAsB,MAAM,CAC1B,MAAM,EAAE,MAAM,EACd,qBAAqB,CAAC,EAAE,aAAa,GAAG,aAAa;iBAuC9C,WAAW;;GAGnB"}