code: async function fetch(
    serviceInstance,
    { baseUrl, packageName, includePrereleases = false }
  ) {
    const json = await serviceInstance._requestJson({
      schema,
      url: await searchQueryServiceUrl(baseUrl),
      options: {
        qs: {
          q: `packageid:${encodeURIComponent(packageName.toLowerCase())}`,
          // Include prerelease versions.
          prerelease: 'true',
          // Include packages with SemVer 2 version numbers.
          semVerLevel: '2',
        },
      },
    })
  
    if (json.data.length === 1) {
      return json.data[0]
    } else {
      throw new NotFound({ prettyMessage: 'package not found' })
    }
  }
docs: /*
  Get information about a single package.