Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Importer ¶ added in v0.52.0
type Importer struct {
Root RootImporter `yaml:".,omitempty"`
}
type ImporterDepVersion ¶ added in v0.52.0
type ImporterDepVersion struct {
Version string `yaml:"version,omitempty"`
}
type LockFile ¶
type LockFile struct { LockfileVersion any `yaml:"lockfileVersion"` Dependencies map[string]any `yaml:"dependencies,omitempty"` DevDependencies map[string]any `yaml:"devDependencies,omitempty"` Packages map[string]PackageInfo `yaml:"packages,omitempty"` // V9 Importers Importer `yaml:"importers,omitempty"` Snapshots map[string]Snapshot `yaml:"snapshots,omitempty"` }
type PackageInfo ¶
type PackageInfo struct { Resolution PackageResolution `yaml:"resolution"` Dependencies map[string]string `yaml:"dependencies,omitempty"` DevDependencies map[string]string `yaml:"devDependencies,omitempty"` IsDev bool `yaml:"dev,omitempty"` Name string `yaml:"name,omitempty"` Version string `yaml:"version,omitempty"` }
type PackageResolution ¶
type PackageResolution struct {
Tarball string `yaml:"tarball,omitempty"`
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Parse ¶
func (p *Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependency, error)
type RootImporter ¶ added in v0.52.0
type RootImporter struct { Dependencies map[string]ImporterDepVersion `yaml:"dependencies,omitempty"` DevDependencies map[string]ImporterDepVersion `yaml:"devDependencies,omitempty"` }
Click to show internal directories.
Click to hide internal directories.