make-fetch-happen
Advanced tools
Comparing version 4.0.0 to 4.0.1
10
cache.js
@@ -237,11 +237,3 @@ 'use strict' | ||
if (cached.integrity) { | ||
const cachedSri = ssri.parse(cached.cacheIntegrity) | ||
const sri = ssri.parse(cached.integrity) | ||
const algo = sri.pickAlgorithm() | ||
if (cachedSri[algo] && !sri[algo].some(hash => { | ||
// cachedSri always has exactly one item per algorithm | ||
return cachedSri[algo][0].digest === hash.digest | ||
})) { | ||
return false | ||
} | ||
return ssri.parse(cached.integrity).match(cached.cacheIntegrity) | ||
} | ||
@@ -248,0 +240,0 @@ reqUrl.hash = null |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.0.1"></a> | ||
## [4.0.1](https://github.com/zkat/make-fetch-happen/compare/v4.0.0...v4.0.1) (2018-04-12) | ||
### Bug Fixes | ||
* **integrity:** use new sri.match() for verification ([4f371a0](https://github.com/zkat/make-fetch-happen/commit/4f371a0)) | ||
<a name="4.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [4.0.0](https://github.com/zkat/make-fetch-happen/compare/v3.0.0...v4.0.0) (2018-04-09) |
{ | ||
"name": "make-fetch-happen", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -37,3 +37,3 @@ "main": "index.js", | ||
"agentkeepalive": "^3.4.1", | ||
"cacache": "^11.0.0", | ||
"cacache": "^11.0.1", | ||
"http-cache-semantics": "^3.8.1", | ||
@@ -47,3 +47,3 @@ "http-proxy-agent": "^2.1.0", | ||
"socks-proxy-agent": "^4.0.0", | ||
"ssri": "^5.3.0" | ||
"ssri": "^6.0.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64488
808
- Removedssri@5.3.0(transitive)
Updatedcacache@^11.0.1
Updatedssri@^6.0.0