Versions in this module Expand all Collapse all v0 v0.0.1 Mar 15, 2025 Changes in this version + type DependencyFields struct + Dependencies Expected[map[string]string] + OptionalDependencies Expected[map[string]string] + PeerDependencies Expected[map[string]string] + type Expected struct + Null bool + Valid bool + Value 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) UnmarshalJSON(data []byte) error + func (e *ExportsOrImports) UnmarshalJSONFrom(dec *jsontext.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 + IsReadonly bool + func NewInfoCache(currentDirectory string, useCaseSensitiveFileNames bool) *InfoCache + func (p *InfoCache) Get(packageJsonPath string) *InfoCacheEntry + func (p *InfoCache) Set(packageJsonPath string, info *InfoCacheEntry) + type InfoCacheEntry struct + Contents *PackageJson + DirectoryExists bool + PackageDirectory string + func (p *InfoCacheEntry) Exists() bool + type JSONValue struct + Type JSONValueType + Value any + func (v *JSONValue) IsFalsy() bool + func (v *JSONValue) UnmarshalJSON(data []byte) error + func (v *JSONValue) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (v JSONValue) AsArray() []JSONValue + func (v JSONValue) AsObject() *collections.OrderedMap[string, JSONValue] + 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 + func (p *PackageJson) GetVersionPaths(trace func(string)) 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]