Socket
Socket
Sign inDemoInstall

make-fetch-happen

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-fetch-happen - npm Package Compare versions

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

10

CHANGELOG.md

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc