Documentation ¶
Overview ¶
allowlist package contains utilities for dealing with allowlists in the config file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllowlistWithDeps ¶
func GetAllowlistWithDeps(allowlist []config.PackagesAllowList, httpClient *http.Client) ([]*config.PackagesAllowList, error)
GetAllowlistWithDeps returns a slice of packages that contains all packages explicitly specified in the config file and all of their dependencies. Note: This can only find dependencies of packages that use exact versions, else we will not know which version to use when querying the global NPM registry for dependencies. In other words, packages that use "~,^,-,*" in their versions will not have their dependencies added.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.