@adobe/fetch
Advanced tools
Comparing version 4.0.6 to 4.0.7
{ | ||
"name": "@adobe/fetch", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "Light-weight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2", | ||
@@ -55,6 +55,6 @@ "main": "./src/index.js", | ||
"http-cache-semantics": "4.1.1", | ||
"lru-cache": "8.0.4" | ||
"lru-cache": "9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@semantic-release/changelog": "6.0.2", | ||
"@semantic-release/changelog": "6.0.3", | ||
"@semantic-release/git": "10.0.1", | ||
@@ -66,3 +66,3 @@ "c8": "7.13.0", | ||
"chai-iterator": "3.0.2", | ||
"eslint": "8.36.0", | ||
"eslint": "8.38.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
@@ -73,3 +73,3 @@ "eslint-plugin-header": "3.1.1", | ||
"husky": "8.0.3", | ||
"lint-staged": "13.2.0", | ||
"lint-staged": "13.2.1", | ||
"mocha": "10.2.0", | ||
@@ -79,4 +79,4 @@ "mocha-multi-reporters": "1.5.1", | ||
"parse-cache-control": "1.0.1", | ||
"semantic-release": "20.1.3", | ||
"sinon": "15.0.2", | ||
"semantic-release": "21.0.1", | ||
"sinon": "15.0.3", | ||
"stream-buffers": "3.0.2" | ||
@@ -83,0 +83,0 @@ }, |
@@ -18,3 +18,3 @@ /* | ||
import LRU from 'lru-cache'; | ||
import { LRUCache } from 'lru-cache'; | ||
import debugFactory from 'debug'; | ||
@@ -328,3 +328,3 @@ | ||
ctx.alpnProtocols = alpnProtocols; | ||
ctx.alpnCache = new LRU({ max: alpnCacheSize, ttl: alpnCacheTTL }); | ||
ctx.alpnCache = new LRUCache({ max: alpnCacheSize, ttl: alpnCacheTTL }); | ||
@@ -331,0 +331,0 @@ ctx.userAgent = userAgent; |
@@ -17,3 +17,3 @@ /* | ||
import debugFactory from 'debug'; | ||
import LRU from 'lru-cache'; | ||
import { LRUCache } from 'lru-cache'; | ||
@@ -323,3 +323,3 @@ import { Body } from './body.js'; | ||
if (maxSize === 0) { | ||
// we need to set a dummy value as LRU would translate a 0 to Infinity | ||
// we need to set a dummy value as LRUCache would translate a 0 to Infinity | ||
maxSize = 1; | ||
@@ -330,3 +330,3 @@ // no need to allocate memory if cache is disabled | ||
const sizeCalculation = ({ response }, _) => sizeof(response); | ||
this.cache = new LRU({ max, maxSize, sizeCalculation }); | ||
this.cache = new LRUCache({ max, maxSize, sizeCalculation }); | ||
// event emitter | ||
@@ -333,0 +333,0 @@ this.eventEmitter = new EventEmitter(); |
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
141740
+ Addedlru-cache@9.0.1(transitive)
- Removedlru-cache@8.0.4(transitive)
Updatedlru-cache@9.0.1