MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / fetchVulnerabilities

Function fetchVulnerabilities

test/e2e/vulnerabilities.spec.ts:8–15  ·  view source on GitHub ↗
(
  page: { request: { get: (url: string) => Promise<any> } },
  url: string,
)

Source from the content-addressed store, hash-verified

6}
7
8async function fetchVulnerabilities(
9 page: { request: { get: (url: string) => Promise<any> } },
10 url: string,
11) {
12 const response = await page.request.get(url)
13 const body = await response.json()
14 return { response, body }
15}
16
17test.describe('vulnerabilities API', () => {
18 test('unscoped package vulnerabilities analysis', async ({ page, baseURL }) => {

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected