ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

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

Documentation

data PackedPackument Source #

The top-level members other than versions, the table, and each release by version key.

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.