ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Npm.Adapter

Description

npm's entry in the ecosystem adapter registry: the RegistryAdapter assembled from the existing npm modules.

Pure assembly, no protocol logic of its own: every field is a function an npm module already exports -- the path grammar (Ecluse.Core.Registry.Npm.Route), the denial renderer (Ecluse.Core.Registry.Npm.Serve), the metadata client and served packument assembly (Ecluse.Core.Registry.Npm.Metadata, Ecluse.Core.Registry.Npm.Filter), the artifact request builders (Ecluse.Core.Registry.Npm.Request), the publish relay (Ecluse.Core.Registry.Npm), and the mirror-write codec with the body-name extractor the anti-shadowing guard reads through (Ecluse.Core.Registry.Npm.Publish), with the name canonicaliser from Ecluse.Core.Registry.Npm.Project.

Synopsis

Documentation

npmAdapter :: RegistryAdapter Source #

npm's capability record. The artifact builders ignore the response-bound and manager parameters (npm request formation needs neither), and the publish slice contributes protocol only: the mirror-write codec's transport (manager, credential mint, response bound) is supplied at the composition root's marriage.