Expand description
Unified dependency domain taxonomy and package classification.
Provides a single DependencyDomain enum that classifies dependencies
by their functional role, plus classify_domain — the single source of
truth for mapping package names to domains. Both the scanner (manifest
analysis) and the detectors (usage analysis) call this function.
Structs§
- Path
Alias - A single TypeScript
compilerOptions.pathsmapping, with each target already joined tobaseUrland normalised to forward slashes.
Enums§
- Dependency
Domain - Functional domain a dependency belongs to.
Functions§
- classify_
domain - Classify a package name into its functional domain for the given language.
- is_
python_ stdlib_ module - Check whether
moduleis a Python standard-library top-level package. - matches_
keyword_ at_ boundary - True when any of
keywordsappears innameat a word boundary. - resolve_
path_ alias - Resolve an import
moduleagainst a set of path aliases, returning the substituted candidate target paths of the most specific matching alias (longest literal prefix wins, matchingtsc‘s resolution order). The result is independent of the aliases’ declaration order. - top_
level_ module - Extract the top-level package/module name from an import path or callee, regardless of the source language’s separator.