MCPcopy Index your code
hub / github.com/callstack/agent-device / collectRelativeImportSpecifiers

Function collectRelativeImportSpecifiers

src/daemon/code-signature.ts:56–61  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

54}
55
56function collectRelativeImportSpecifiers(content: string): string[] {
57 const specifiers = new Set<string>();
58 collectImportMatches(content, STATIC_IMPORT_RE, specifiers);
59 collectImportMatches(content, DYNAMIC_IMPORT_RE, specifiers);
60 return [...specifiers];
61}
62
63function collectImportMatches(content: string, pattern: RegExp, specifiers: Set<string>): void {
64 pattern.lastIndex = 0;

Callers 1

Calls 1

collectImportMatchesFunction · 0.85

Tested by

no test coverage detected