mdx-bundler
Advanced tools
+2
-1
@@ -12,6 +12,7 @@ "use strict"; | ||
| function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
| function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
| function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
| /** | ||
| * @typedef {import('./types').MDXContentProps} MDXContentProps | ||
| */ | ||
| /** | ||
@@ -18,0 +19,0 @@ * |
+1
-1
@@ -18,3 +18,3 @@ "use strict"; | ||
| function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
| function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
| function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
| const { | ||
@@ -21,0 +21,0 @@ readFile, |
+3
-3
@@ -9,3 +9,3 @@ // This file is for defining types that are annoying to define with jsdoc syntax | ||
| import type {ModuleInfo} from '@fal-works/esbuild-plugin-global-externals' | ||
| import type {ProcessorOptions} from '@mdx-js/esbuild/lib' | ||
| import type {Options} from '@mdx-js/esbuild/lib' | ||
| import type {GrayMatterOption, Input, GrayMatterFile} from 'gray-matter' | ||
@@ -92,5 +92,5 @@ import type {MDXComponents} from 'mdx/types' | ||
| mdxOptions?: ( | ||
| options: ProcessorOptions, | ||
| options: Options, | ||
| frontmatter: Frontmatter, | ||
| ) => ProcessorOptions | ||
| ) => Options | ||
| /** | ||
@@ -97,0 +97,0 @@ * This allows you to modify the built-in esbuild configuration. This can be |
+2
-2
| { | ||
| "name": "mdx-bundler", | ||
| "version": "10.0.1", | ||
| "version": "10.0.2", | ||
| "description": "Compile and bundle your MDX files and their dependencies. FAST.", | ||
@@ -72,3 +72,3 @@ "main": "dist/index.js", | ||
| "react-dom": "^18.2.0", | ||
| "remark-mdx-images": "^2.0.0", | ||
| "remark-mdx-images": "^3.0.0", | ||
| "typescript": "^5.2.2", | ||
@@ -75,0 +75,0 @@ "uvu": "^0.5.6" |
+1
-1
@@ -28,3 +28,3 @@ <div align="center"> | ||
| This is an async function that will compile and bundle your MDX files and their | ||
| dependencies. It uses [MDX v2](https://mdxjs.com/blog/v2/) and | ||
| dependencies. It uses [MDX v3](https://mdxjs.com/blog/v3/) and | ||
| [esbuild](https://esbuild.github.io/), so it's VERY fast and supports TypeScript | ||
@@ -31,0 +31,0 @@ files (for the dependencies of your MDX files). |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
56424
-0.1%