| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Npm.Document
Description
A full read's packed packument: its small top-level members as aeson's tree, and every retained release packed against the document's table. Each release already holds the source author pointer.
Synopsis
- data PackedPackument = PackedPackument {}
- packumentValue :: PackedPackument -> Maybe Value
- packumentResident :: PackedPackument -> Int
- tarballHole :: [Text]
- tarballUrl :: Value -> Maybe Text
- withTarball :: Text -> Value -> Value
Documentation
data PackedPackument Source #
The top-level members other than versions, the table, and each release by version key.
Constructors
| PackedPackument | |
Fields | |
Instances
| Show PackedPackument Source # | |
Defined in Ecluse.Core.Registry.Npm.Document Methods showsPrec :: Int -> PackedPackument -> ShowS # show :: PackedPackument -> String # showList :: [PackedPackument] -> ShowS # | |
| Eq PackedPackument Source # | |
Defined in Ecluse.Core.Registry.Npm.Document Methods (==) :: PackedPackument -> PackedPackument -> Bool # (/=) :: PackedPackument -> PackedPackument -> Bool # | |
packumentValue :: PackedPackument -> Maybe Value Source #
The packument as aeson's tree, as the read would have built it, or nothing when a release names a string its table lacks.
packumentResident :: PackedPackument -> Int Source #
The heap bytes the table and the releases hold: each release with its map node, its version key's text and array, and its packed value.
tarballHole :: [Text] Source #
The member path of the string a served release rebases.
tarballUrl :: Value -> Maybe Text Source #
The string at tarballHole in a release, when it holds one there.
withTarball :: Text -> Value -> Value Source #
The release with the string at tarballHole replaced, when it holds one there.