| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Npm.Wire
Description
npm wire types shared by tree decoding and typed extraction during packing.
Synopsis
- data Person = Person {
- personName :: Text
- personEmail :: Maybe Text
- personUrl :: Maybe Text
- personFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f (Maybe Text) -> f Person
- data License
- licenseFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f License
- data Dist = Dist {}
- distFields :: [Text]
- distFromFields :: Applicative f => f Text -> f (Maybe Text) -> f (Maybe Text) -> f (Maybe Int) -> f Dist
- data VersionManifest = VersionManifest {}
- availability :: Maybe Value -> Availability
Shared scalars
A publisher or contributor. Packed person strings stay verbatim in personName.
Constructors
| Person | |
Fields
| |
personFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f (Maybe Text) -> f Person Source #
Apply the person defaults to fields validated by the tree or packed read.
A declared license, in npm's modern string form or its legacy object form.
Constructors
| LicenseSpdx Text | An SPDX expression or identifier ( |
| LicenseObject Text (Maybe Text) | The legacy |
licenseFromFields :: Applicative f => f (Maybe Text) -> f (Maybe Text) -> f License Source #
Apply the legacy licence default to validated fields without requiring an object.
The dist object
Artifact coordinates and digests that serving and mirroring preserve.
Constructors
| Dist | |
Fields
| |
distFields :: [Text] Source #
The dist members the Dist parser reads.
distFromFields :: Applicative f => f Text -> f (Maybe Text) -> f (Maybe Text) -> f (Maybe Int) -> f Dist Source #
Join the required tarball, validated digests and lenient size in either read representation.
Per-version manifest
data VersionManifest Source #
A release's policy inputs. Maintainers stay outside the typed facts, and dependency maps keep one external dependency.
Constructors
| VersionManifest | |
Fields
| |
Instances
| FromJSON VersionManifest Source # | |
Defined in Ecluse.Core.Registry.Npm.Wire Methods parseJSON :: Value -> Parser VersionManifest # parseJSONList :: Value -> Parser [VersionManifest] # | |
| Show VersionManifest Source # | |
Defined in Ecluse.Core.Registry.Npm.Wire Methods showsPrec :: Int -> VersionManifest -> ShowS # show :: VersionManifest -> String # showList :: [VersionManifest] -> ShowS # | |
| Eq VersionManifest Source # | |
Defined in Ecluse.Core.Registry.Npm.Wire Methods (==) :: VersionManifest -> VersionManifest -> Bool # (/=) :: VersionManifest -> VersionManifest -> Bool # | |
availability :: Maybe Value -> Availability Source #
Only a nonempty string or true declares deprecation. Other values remain available.