suggestUtils
Index
Enumerations
Type Aliases
Functions
Enumerations
Modifier
CARET
EXACT
TILDE
Strategy
CACHE
KEEP
If set, the suggest engine will offer to keep the current version if the local workspace already depends on it.
LATEST
If set, the suggest engine will offer to fulfill the request by using
whatever <request-name>@latest
would return.
PROJECT
If set, the suggest engine will offer to fulfill the request by using any workspace whose name would match the request.
REUSE
If set, the suggest engine will offer to fulfill the request by looking at the ranges currently used by the other workspaces in the project.
Target
DEVELOPMENT
PEER
REGULAR
WorkspaceModifier
CARET
EXACT
TILDE
Type Aliases
FetchDescriptorFromOptions
NullableSuggestion
Type declaration
descriptor: Descriptor | null
name: string
reason: string
Results
Type declaration
rejections: Error[]
suggestions: NullableSuggestion[]
Suggestion
Type declaration
descriptor: Descriptor
name: string
reason: string
Functions
applyModifier
Parameters
descriptor: Descriptor
modifier: Modifier
Returns Descriptor
extractDescriptorFromPath
Parameters
path: PortablePath
__namedParameters: { cwd: PortablePath; workspace: Workspace }
Returns Promise<Descriptor>
extractRangeModifier
Parameters
range: string
__namedParameters: { project: Project }
Returns string
fetchDescriptorFrom
Parameters
ident: Ident
range: string
__namedParameters: FetchDescriptorFromOptions
Returns Promise<null | Descriptor>
findProjectDescriptors
Parameters
Returns Promise<Map<DescriptorHash, { descriptor: Descriptor; locators: Locator[] }>>
getModifier
getSuggestedDescriptors
makeWorkspaceDescriptor
Parameters
Returns Descriptor
toWorkspaceModifier
Parameters
modifier: Modifier
Returns WorkspaceModifier
If set, the suggest engine will offer to fulfill the request based on the versions of the package that are already within our cache.