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
74
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.2.5 to 4.2.6

4

lib/fetch.d.ts
import { RetryTimeoutOptions } from '@zkochan/retry';
import fetch, { Request, RequestInit as NodeRequestInit, Response } from 'node-fetch';
import { Request, RequestInit as NodeRequestInit, Response } from 'node-fetch';
export { isRedirect } from 'node-fetch';
export { Response, RetryTimeoutOptions };

@@ -12,3 +13,2 @@ interface URLLike {

}
export declare const isRedirect: typeof fetch.isRedirect;
export default function fetchRetry(url: RequestInfo, opts?: RequestInit): Promise<Response>;

@@ -15,0 +15,0 @@ export declare class ResponseError extends Error {

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponseError = exports.isRedirect = exports.Response = void 0;
exports.ResponseError = exports.Response = exports.isRedirect = void 0;
const core_loggers_1 = require("@pnpm/core-loggers");

@@ -32,3 +32,4 @@ const retry_1 = require("@zkochan/retry");

Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return node_fetch_1.Response; } });
exports.isRedirect = node_fetch_1.default.isRedirect;
var node_fetch_2 = require("node-fetch");
Object.defineProperty(exports, "isRedirect", { enumerable: true, get: function () { return node_fetch_2.isRedirect; } });
async function fetchRetry(url, opts = {}) {

@@ -35,0 +36,0 @@ var _a, _b, _c, _d, _e;

{
"name": "@pnpm/fetch",
"version": "4.2.5",
"version": "4.2.6",
"description": "node-fetch with retries",

@@ -31,3 +31,3 @@ "main": "lib/index.js",

"@pnpm/fetching-types": "2.2.1",
"@pnpm/npm-registry-agent": "5.0.2",
"@pnpm/npm-registry-agent": "5.1.0",
"@zkochan/retry": "^0.2.0",

@@ -37,3 +37,3 @@ "node-fetch": "3.0.0-beta.9"

"devDependencies": {
"@pnpm/fetch": "4.2.5",
"@pnpm/fetch": "4.2.6",
"@pnpm/logger": "^4.0.0",

@@ -40,0 +40,0 @@ "cpy-cli": "^3.1.1",

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