inspect-mcp 0.2.0 → 0.2.1

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/index.js CHANGED
@@ -1249,19 +1249,10 @@ function getGrammarForFile(filePath) {
1249
1249
  const ext = getExtension(filePath);
1250
1250
  return EXTENSION_TO_GRAMMAR[ext] ?? null;
1251
1251
  }
1252
- var parserCache = /* @__PURE__ */ new Map();
1253
- function getOrCreateParser(grammarName) {
1254
- let p = parserCache.get(grammarName);
1255
- if (!p) {
1256
- p = createParser(grammarName);
1257
- parserCache.set(grammarName, p);
1258
- }
1259
- return p;
1260
- }
1261
1252
  async function parseSource(filePath, source) {
1262
1253
  const grammarName = getGrammarForFile(filePath);
1263
1254
  if (!grammarName) return null;
1264
- const parser = await getOrCreateParser(grammarName);
1255
+ const parser = await createParser(grammarName);
1265
1256
  return parser.parse(source);
1266
1257
  }
1267
1258
  function getExtension(filePath) {