make-fetch-happen
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -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", |
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
53953
+ Addedcacache@9.3.0(transitive)
+ Addedy18n@3.2.2(transitive)
- Removedcacache@8.0.0(transitive)
Updatedcacache@^9.0.0