Skip to main content

Module query

Module query 

Source
Expand description

Read-only registry queries for editors and scripts (#2472): bynk search and bynk deps, and the JSON documents bynk add, bynk fetch and bynk publish print under --format json.

The registry protocol is a static, per-package index (packaging §6.2): it has no listing or free-text search, so search is an exact org/package lookup through the same verifying Client a build uses. Everything here goes through the driver so that routing, trust, tokens and caching stay in one place (#2472, decision A).

Structs§

Dependency
One [dependencies] or [dev-dependencies] entry with what bynk.lock resolved it to.
Found
What bynk search <package> found.
Version
One version of a package, as search reports it.

Functions§

added_json
The bynk add --format json document: the manifest line written.
dependencies
The dependencies of the project at project, offline: the manifest’s entries joined to bynk.lock.
dependencies_json
The bynk deps --format json document.
fetched_json
The bynk fetch --format json document.
published_json
The bynk publish --format json document (also for --dry-run).
search
Look package (org/package) up on the registry its organisation routes to, from the project at project.