MCPcopy
hub / github.com/formatjs/formatjs / dependencyMap

Function dependencyMap

tools/release-please/npm-workspace-graph.ts:43–52  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

41}
42
43function dependencyMap(value: unknown): DependencyMap {
44 if (!value || typeof value !== 'object' || Array.isArray(value)) {
45 return {}
46 }
47 return Object.fromEntries(
48 Object.entries(value).filter(
49 (entry): entry is [string, string] => typeof entry[1] === 'string'
50 )
51 )
52}
53
54function stringArray(value: unknown): string[] {
55 if (!Array.isArray(value)) {

Callers 2

normalizePackageFunction · 0.85
dependencyNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected