Socket
Socket
Sign inDemoInstall

make-fetch-happen

Package Overview
Dependencies
Maintainers
1
Versions
105
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 2.3.0 to 2.4.0

6

cache.js

@@ -69,3 +69,3 @@ 'use strict'

disturbed = true
if (info.size > MAX_MEM_SIZE) {
if (opts.memoize !== false && info.size > MAX_MEM_SIZE) {
pipe(

@@ -79,3 +79,3 @@ cacache.get.stream.byDigest(cachePath, info.integrity),

cacache.get.byDigest(cachePath, info.integrity, {
memoize: true
memoize: opts.memoize !== false
}).then(data => {

@@ -111,3 +111,3 @@ body.write(data, () => {

const size = response.headers.get('content-length')
const fitInMemory = !!size && size < MAX_MEM_SIZE
const fitInMemory = !!size && opts.memoize !== false && size < MAX_MEM_SIZE
const ckey = cacheKey(req)

@@ -114,0 +114,0 @@ const cacheOpts = {

@@ -5,2 +5,17 @@ # Change Log

<a name="2.4.0"></a>
# [2.4.0](https://github.com/zkat/make-fetch-happen/compare/v2.3.0...v2.4.0) (2017-04-28)
### Bug Fixes
* **memoize:** cacache had a broken memoizer ([8a9ed4c](https://github.com/zkat/make-fetch-happen/commit/8a9ed4c))
### Features
* **memoization:** only slurp stuff into memory if opts.memoize is not false ([0744adc](https://github.com/zkat/make-fetch-happen/commit/0744adc))
<a name="2.3.0"></a>

@@ -7,0 +22,0 @@ # [2.3.0](https://github.com/zkat/make-fetch-happen/compare/v2.2.6...v2.3.0) (2017-04-27)

{
"name": "make-fetch-happen",
"version": "2.3.0",
"version": "2.4.0",
"description": "Opinionated, caching, retrying fetch client",

@@ -37,3 +37,3 @@ "main": "index.js",

"agentkeepalive": "^3.1.0",
"cacache": "^8.0.0",
"cacache": "^9.0.0",
"http-cache-semantics": "^3.7.3",

@@ -40,0 +40,0 @@ "http-proxy-agent": "^1.0.0",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc