jamdesk 1.1.223 → 1.1.224

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": "jamdesk",
3
- "version": "1.1.223",
3
+ "version": "1.1.224",
4
4
  "description": "CLI for Jamdesk — build, preview, and deploy documentation sites from MDX. Dev server with hot reload, 50+ components, OpenAPI support, AI search, and Mintlify migration",
5
5
  "keywords": [
6
6
  "jamdesk",
@@ -222,7 +222,11 @@ export function mdxEvalGuardPlugin({ types: t }: { types: any }) {
222
222
  // getBinding() — not hasBinding() — because hasBinding also reports
223
223
  // true for names merely *collected* as program globals, which is
224
224
  // exactly the case we need to reject.
225
- if (path.scope.getBinding(name)) return;
225
+ //
226
+ // An import binding does not count: the snippet compiler strips import
227
+ // lines after transpile, so at runtime the name is the host global.
228
+ const binding = path.scope.getBinding(name);
229
+ if (binding && binding.kind !== 'module') return;
226
230
  reject(`"${name}"`);
227
231
  },
228
232