deep-slop 1.5.0 → 1.6.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.
@@ -1,4 +1,4 @@
1
- import { _ as parseFile, d as initParser, n as extractImportFromNode, o as findNodesOfTypes, y as walkAST } from "./tree-sitter-CM-cP0nl.js";
1
+ import { b as walkAST, f as initParser, r as extractImportFromNode, s as findNodesOfTypes, v as parseFile } from "./tree-sitter-CBpekmYc.js";
2
2
  import { t as collectFiles } from "./discover-B_S_Fy2S.js";
3
3
  import { i as toLines, n as extractImports, r as readFileContent } from "./file-utils-B_HFXhCs.js";
4
4
  import { basename, dirname, join, relative, resolve } from "node:path";
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { t as clearParseCache } from "./tree-sitter-CBpekmYc.js";
1
2
  import { n as detectFrameworks, r as detectLanguages, t as collectFiles } from "./discover-B_S_Fy2S.js";
2
3
  import { performance } from "node:perf_hooks";
3
4
  import { appendFileSync, existsSync, mkdirSync, readFileSync } from "node:fs";
@@ -863,9 +864,9 @@ const EXT_TO_LANG = {
863
864
  };
864
865
  /** Registry of all 18 engines (loaded lazily) */
865
866
  const ENGINE_REGISTRY = {
866
- "ast-slop": () => import("./ast-slop-BGdr58wZ.js").then((m) => m.astSlopEngine),
867
- "import-intelligence": () => import("./import-intelligence-SK4F7XpL.js").then((m) => m.importIntelligenceEngine),
868
- "dead-flow": () => import("./dead-flow-DHRkyxZT.js").then((m) => m.deadFlowEngine),
867
+ "ast-slop": () => import("./ast-slop-B6Y39w1U.js").then((m) => m.astSlopEngine),
868
+ "import-intelligence": () => import("./import-intelligence-B7R90PWJ.js").then((m) => m.importIntelligenceEngine),
869
+ "dead-flow": () => import("./dead-flow-BgowgQ-_.js").then((m) => m.deadFlowEngine),
869
870
  "type-safety": () => import("./type-safety-Dboj2C1t.js").then((m) => m.typeSafetyEngine),
870
871
  "syntax-deep": () => import("./syntax-deep-ZQYMutky.js").then((m) => m.syntaxDeepEngine),
871
872
  "security-deep": () => import("./security-deep-DJRINs10.js").then((m) => m.securityDeepEngine),
@@ -886,6 +887,7 @@ const ENGINE_REGISTRY = {
886
887
  async function runScan(context, callbacks) {
887
888
  const startTotal = performance.now();
888
889
  clearFileCache();
890
+ clearParseCache();
889
891
  if (context.files?.length) await preloadFiles(context.files);
890
892
  const pluginEngines = await discoverAndLoadPlugins(context.rootDirectory);
891
893
  const enabledEngines = Object.entries(ENGINE_REGISTRY).filter(([name]) => context.config.engines[name] !== false);