Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 v0.0.1 Apr 11, 2026 Changes in this version + type DependencyFields struct + Dependencies Expected[map[string]string] + DevDependencies Expected[map[string]string] + OptionalDependencies Expected[map[string]string] + PeerDependencies Expected[map[string]string] + func (df *DependencyFields) GetRuntimeDependencyNames() *collections.Set[string] + func (df *DependencyFields) HasDependency(name string) bool + func (df *DependencyFields) RangeDependencies(f func(name, version, dependencyField string) bool) + type Expected struct + Null bool + Valid bool + Value T + func ExpectedOf[T any](value T) Expected[T] + func (e *Expected[T]) ActualJSONType() string + func (e *Expected[T]) ExpectedJSONType() string + func (e *Expected[T]) GetValue() (value T, ok bool) + func (e *Expected[T]) IsPresent() bool + func (e *Expected[T]) IsValid() bool + func (e *Expected[T]) UnmarshalJSON(data []byte) error + type ExportsOrImports struct + func (e *ExportsOrImports) UnmarshalJSONFrom(dec *json.Decoder) error + func (e ExportsOrImports) AsArray() []ExportsOrImports + func (e ExportsOrImports) AsObject() *collections.OrderedMap[string, ExportsOrImports] + func (e ExportsOrImports) IsConditions() bool + func (e ExportsOrImports) IsImports() bool + func (e ExportsOrImports) IsSubpaths() bool + type Fields struct + func Parse(data []byte) (Fields, error) + type HeaderFields struct + Name Expected[string] + Type Expected[string] + Version Expected[string] + type InfoCache struct + func NewInfoCache(currentDirectory string, useCaseSensitiveFileNames bool) *InfoCache + func (p *InfoCache) Get(packageJsonPath string) *InfoCacheEntry + func (p *InfoCache) Set(packageJsonPath string, info *InfoCacheEntry) *InfoCacheEntry + type InfoCacheEntry struct + Contents *PackageJson + DirectoryExists bool + PackageDirectory string + func (p *InfoCacheEntry) Exists() bool + func (p *InfoCacheEntry) GetContents() *PackageJson + func (p *InfoCacheEntry) GetDirectory() string + type JSONValue struct + Type JSONValueType + Value any + func (v *JSONValue) IsFalsy() bool + func (v *JSONValue) IsPresent() bool + func (v *JSONValue) UnmarshalJSONFrom(dec *json.Decoder) error + func (v JSONValue) AsArray() []JSONValue + func (v JSONValue) AsObject() *collections.OrderedMap[string, JSONValue] + func (v JSONValue) AsString() string + type JSONValueType int8 + const JSONValueTypeArray + const JSONValueTypeBoolean + const JSONValueTypeNotPresent + const JSONValueTypeNull + const JSONValueTypeNumber + const JSONValueTypeObject + const JSONValueTypeString + func (t JSONValueType) String() string + type PackageJson struct + Parseable bool + func (p *PackageJson) GetVersionPaths(trace func(m *diagnostics.Message, args ...any)) VersionPaths + type PathFields struct + Exports ExportsOrImports + Imports ExportsOrImports + Main Expected[string] + TSConfig Expected[string] + Types Expected[string] + TypesVersions JSONValue + Typings Expected[string] + type TypeValidatedField interface + ActualJSONType func() string + ExpectedJSONType func() string + IsPresent func() bool + IsValid func() bool + type VersionPaths struct + Version string + func (v *VersionPaths) Exists() bool + func (v *VersionPaths) GetPaths() *collections.OrderedMap[string, []string]