@pnpm/fetch
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -34,3 +34,3 @@ "use strict"; | ||
return async (url, opts) => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const headers = { | ||
@@ -59,7 +59,7 @@ 'user-agent': USER_AGENT, | ||
// if verifying integrity, node-fetch must not decompress | ||
compress: false, | ||
compress: (_b = opts === null || opts === void 0 ? void 0 : opts.compress) !== null && _b !== void 0 ? _b : false, | ||
headers, | ||
redirect: 'manual', | ||
retry: opts === null || opts === void 0 ? void 0 : opts.retry, | ||
timeout: (_b = opts === null || opts === void 0 ? void 0 : opts.timeout) !== null && _b !== void 0 ? _b : 60000, | ||
timeout: (_c = opts === null || opts === void 0 ? void 0 : opts.timeout) !== null && _c !== void 0 ? _c : 60000, | ||
}); | ||
@@ -66,0 +66,0 @@ if (!fetch_1.isRedirect(response.status) || redirects >= MAX_FOLLOWED_REDIRECTS) { |
{ | ||
"name": "@pnpm/fetch", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "node-fetch with retries", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"@pnpm/core-loggers": "6.0.4", | ||
"@pnpm/fetching-types": "2.1.0", | ||
"@pnpm/fetching-types": "2.2.0", | ||
"@pnpm/npm-registry-agent": "5.0.0", | ||
@@ -32,0 +32,0 @@ "@zkochan/retry": "^0.2.0", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16335
1
+ Added@pnpm/fetching-types@2.2.0(transitive)
- Removed@pnpm/fetching-types@2.1.0(transitive)
Updated@pnpm/fetching-types@2.2.0