async fetch()

in github-release-binary.js [82:98]


      async fetch(locator, opts) {
        const expectedChecksum = opts.checksums.get(locator.locatorHash) || null;

        const [packageFs, releaseFs, checksum] = await opts.cache.fetchPackageFromCache(locator, expectedChecksum, {
          onHit: () => opts.report.reportCacheHit(locator),
          onMiss: () => opts.report.reportCacheMiss(locator, `${structUtils.prettyLocator(opts.project.configuration, locator)} can't be found in the cache and will be fetched from the remote server`),
          loader: () => this.fetchFromNetwork(locator, opts),
          skipIntegrityCheck: opts.skipIntegrityCheck,
        });

        return {
          packageFs,
          releaseFs,
          prefixPath: structUtils.getIdentVendorPath(locator),
          checksum,
        };
      }