MCPcopy
hub / github.com/badges/shields / fetch

Method fetch

services/piwheels/piwheels-version.service.js:60–66  ·  view source on GitHub ↗
({ wheel })

Source from the content-addressed store, hash-verified

58 }
59
60 async fetch({ wheel }) {
61 return this._requestJson({
62 schema,
63 url: `https://www.piwheels.org/project/${wheel}/json/`,
64 httpErrors: { 404: 'package not found' },
65 })
66 }
67
68 static transform(releases, includePrereleases) {
69 const allReleases = Object.keys(releases)

Callers 1

handleMethod · 0.95

Calls 1

_requestJsonMethod · 0.45

Tested by

no test coverage detected