@pnpm/fetch
Advanced tools
Comparing version 4.2.6 to 4.2.7
import { FetchFromRegistry } from '@pnpm/fetching-types'; | ||
import { AgentOptions } from '@pnpm/npm-registry-agent'; | ||
import { AgentOptions } from '@pnpm/network.agent'; | ||
import { Response, RequestInfo, RequestInit } from './fetch'; | ||
@@ -4,0 +4,0 @@ export declare type FetchWithAgentOptions = RequestInit & { |
@@ -25,9 +25,6 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchWithAgent = void 0; | ||
const url_1 = require("url"); | ||
const npm_registry_agent_1 = __importDefault(require("@pnpm/npm-registry-agent")); | ||
const network_agent_1 = require("@pnpm/network.agent"); | ||
const fetch_1 = __importStar(require("./fetch")); | ||
@@ -40,3 +37,3 @@ const USER_AGENT = 'pnpm'; // or maybe make it `${pkg.name}/${pkg.version} (+https://npm.im/${pkg.name})` | ||
var _a, _b; | ||
const agent = (0, npm_registry_agent_1.default)(url.toString(), { | ||
const agent = (0, network_agent_1.getAgent)(url.toString(), { | ||
...opts.agentOptions, | ||
@@ -43,0 +40,0 @@ strictSsl: (_a = opts.agentOptions.strictSsl) !== null && _a !== void 0 ? _a : true, |
{ | ||
"name": "@pnpm/fetch", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "node-fetch with retries", | ||
@@ -31,3 +31,3 @@ "main": "lib/index.js", | ||
"@pnpm/fetching-types": "2.2.1", | ||
"@pnpm/npm-registry-agent": "5.1.0", | ||
"@pnpm/network.agent": "0.0.3", | ||
"@zkochan/retry": "^0.2.0", | ||
@@ -37,3 +37,3 @@ "node-fetch": "3.0.0-beta.9" | ||
"devDependencies": { | ||
"@pnpm/fetch": "4.2.6", | ||
"@pnpm/fetch": "4.2.7", | ||
"@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
19161
273
+ Added@pnpm/network.agent@0.0.3
+ Added@pnpm/network.agent@0.0.3(transitive)
+ Added@pnpm/network.proxy-agent@0.0.3(transitive)
+ Addedagentkeepalive@4.2.1(transitive)
+ Addeddepd@1.1.2(transitive)
+ Addedlru-cache@7.10.1(transitive)
- Removed@pnpm/npm-registry-agent@5.1.0
- Removed@pnpm/npm-registry-agent@5.1.0(transitive)
- Removedagentkeepalive@4.5.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedyallist@4.0.0(transitive)