Skip to main content

dedupeUtils

Index

Enumerations

Strategy

Strategy:

HIGHEST

HIGHEST: highest

This strategy dedupes a locator to the best candidate already installed in the project.

Because of this, it's guaranteed that:

  • it never takes more than a single pass to dedupe all dependencies
  • dependencies are never downgraded

Type Aliases

Algorithm

Algorithm: (project: Project, patterns: string[], opts: { fetchOptions: FetchOptions; fetcher: Fetcher; resolveOptions: ResolveOptions; resolver: Resolver }) => Promise<Promise<PackageUpdate>[]>

Type declaration

DedupeOptions

DedupeOptions: { cache: Cache; patterns: string[]; report: Report; strategy: Strategy }

Type declaration

PackageUpdate

PackageUpdate: { currentPackage: Package; descriptor: Descriptor; resolvedPackage: Package; updatedPackage: Package }

Type declaration

Variables

constacceptedStrategies

acceptedStrategies: Set<HIGHEST> = ...

Functions

dedupe