Documentation
¶
Overview ¶
Package javascript provides a concrete Cataloger implementation for JavaScript ecosystem files (yarn and npm).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cataloger ¶
type Cataloger struct {
// contains filtered or unexported fields
}
Cataloger catalogs pkg.YarnPkg and pkg.NpmPkg Package Types defined in package-lock.json and yarn.lock files.
func (*Cataloger) Catalog ¶
Catalog returns the Packages indexed from all Javascript ecosystem files discovered.
func (*Cataloger) SelectFiles ¶
func (a *Cataloger) SelectFiles(resolver scope.FileResolver) []file.Reference
SelectFiles returns a set of discovered Javascript ecosystem files from the user content source.
type Dependency ¶
type Dependency struct {
Version string `json:"version"`
Resolved string `json:"resolved"`
Integrity string `json:"integrity"`
Requires map[string]string
}
Dependency represents a single package dependency listed in the package.lock json file
type PackageLock ¶
type PackageLock struct {
Requires bool `json:"requires"`
LockfileVersion int `json:"lockfileVersion"`
Dependencies map[string]Dependency
}
PackageLock represents a JavaScript package.lock json file
Click to show internal directories.
Click to hide internal directories.