lockfile

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YarnWhyAll

func YarnWhyAll(locate string, packages []PackageDetails) map[string]bool

YarnWhyAll Returns list of packages that caused the specified package to be pulled in NOTE: this is a full flattened list, without the hierarchy included (for speed)

Types

type Dependency

type Dependency struct {
	Name    string
	Version string
}

type Ecosystem

type Ecosystem string

type PackageDetails

type PackageDetails struct {
	Name         string       `json:"name"`
	Version      string       `json:"version"`
	Commit       string       `json:"commit,omitempty"`
	Ecosystem    Ecosystem    `json:"ecosystem,omitempty"`
	CompareAs    Ecosystem    `json:"compareAs,omitempty"`
	Dependencies []Dependency `json:"dependencies,omitempty"`
}

func ParseYarnLock

func ParseYarnLock(pathToLockfile string) ([]PackageDetails, error)

type PackageDetailsParser

type PackageDetailsParser = func(pathToLockfile string) ([]PackageDetails, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL