kodingo-cli 1.0.28 → 1.0.30

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.
@@ -219,7 +219,7 @@ async function scanRepoCommand(options = {}) {
219
219
  if (seen.has(key))
220
220
  continue;
221
221
  seen.add(key);
222
- const symRepoKey = `${sym.name}::${path_1.default.basename(sym.file)}`;
222
+ const symRepoKey = `${sym.name}::${repoName}`;
223
223
  const hasMemory = existingSymbols.has(symRepoKey) || existingSymbols.has(sym.name);
224
224
  if (!hasMemory)
225
225
  toCapture.push(sym);
@@ -64,9 +64,11 @@ function computeFingerprint(body) {
64
64
  return (0, crypto_1.createHash)("sha256").update(normalised).digest("hex").slice(0, 16);
65
65
  }
66
66
  // ── TypeScript / JavaScript parser ───────────────────────────────────────────
67
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
68
+ const { parse: tsParse } = require("@typescript-eslint/typescript-estree");
67
69
  async function parseTypeScript(filePath, source) {
68
70
  try {
69
- const { parse } = await Promise.resolve().then(() => __importStar(require("@typescript-eslint/typescript-estree")));
71
+ const parse = tsParse;
70
72
  const isTs = /\.(ts|tsx)$/.test(filePath);
71
73
  const ast = parse(source, {
72
74
  jsx: true,
@@ -288,6 +290,8 @@ async function parseFile(filePath, source) {
288
290
  case ".tsx":
289
291
  case ".js":
290
292
  case ".jsx":
293
+ case ".mjs":
294
+ case ".cjs":
291
295
  return parseTypeScript(filePath, source);
292
296
  case ".py":
293
297
  return parsePython(filePath, source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodingo-cli",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Kodingo CLI",
5
5
  "license": "MIT",
6
6
  "private": false,