New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

exp-fetch

Package Overview
Dependencies
Maintainers
16
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exp-fetch - npm Package Compare versions

Comparing version

to
5.4.0

8

index.js

@@ -18,3 +18,6 @@ "use strict";

const currentAppConfig = require("./lib/currentAppConfig");
const path = require("path");
const expFetchConfig = require(path.join(__dirname, "package.json"));
module.exports = buildFetch;

@@ -275,2 +278,7 @@ module.exports.initLRUCache = initCache;

if (!headers["User-Agent"]) {
const { name, version } = currentAppConfig || expFetchConfig;
headers["User-Agent"] = `${name}/${version}`;
}
if (resultCallback) {

@@ -277,0 +285,0 @@ performRequest(url, headers, explicitTimeout, method, optionalBody, 0, resultCallback, onRequestInit);

2

package.json
{
"name": "exp-fetch",
"version": "5.3.3",
"version": "5.4.0",
"description": "A small pluggable fetch lib",

@@ -5,0 +5,0 @@ "main": "index.js",