Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adobe/fetch

Package Overview
Dependencies
Maintainers
21
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/fetch - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

14

package.json
{
"name": "@adobe/fetch",
"version": "3.6.1",
"version": "3.6.2",
"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": "7.17.0"
"lru-cache": "9.0.1"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",

@@ -65,3 +65,3 @@ "chai": "4.3.7",

"chai-iterator": "3.0.2",
"eslint": "8.34.0",
"eslint": "8.38.0",
"eslint-config-airbnb-base": "15.0.0",

@@ -72,3 +72,3 @@ "eslint-plugin-header": "3.1.1",

"husky": "8.0.3",
"lint-staged": "13.1.2",
"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.0",
"sinon": "15.0.1",
"semantic-release": "21.0.1",
"sinon": "15.0.3",
"stream-buffers": "3.0.2"

@@ -83,0 +83,0 @@ },

@@ -19,3 +19,3 @@ /*

const LRU = require('lru-cache');
const { LRUCache } = require('lru-cache');
const debug = require('debug')('adobe/fetch:core');

@@ -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;

@@ -19,3 +19,3 @@ /*

const debug = require('debug')('adobe/fetch');
const LRU = require('lru-cache');
const { LRUCache } = require('lru-cache');

@@ -325,3 +325,3 @@ const { Body } = require('./body');

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;

@@ -332,3 +332,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

@@ -335,0 +335,0 @@ this.eventEmitter = new EventEmitter();

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