@pnpm/fetch
Advanced tools
Comparing version 4.2.5 to 4.2.6
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19345
276
+ Added@pnpm/npm-registry-agent@5.1.0(transitive)
+ Addedsocks-proxy-agent@6.1.1(transitive)
- Removed@pnpm/npm-registry-agent@5.0.2(transitive)
- Removedsocks-proxy-agent@6.2.1(transitive)