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

@pnpm/fetch

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/fetch - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

6

lib/fetchFromRegistry.js

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

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