MCPcopy Create free account
hub / github.com/decaporg/decap-cms / packageExists

Function packageExists

scripts/publish-packages.mjs:149–151  ·  view source on GitHub ↗
(registry, name)

Source from the content-addressed store, hash-verified

147}
148
149async function packageExists(registry, name) {
150 return (await fetchJson(`${registry}/${encodeName(name)}`)) !== null;
151}
152
153/**
154 * Semver precedence for the versions this repo publishes (`1.2.3` and

Callers 1

publishOneFunction · 0.85

Calls 2

encodeNameFunction · 0.85
fetchJsonFunction · 0.70

Tested by

no test coverage detected