@pnpm/network.agent
Advanced tools
Comparing version 0.0.5 to 0.1.0
@@ -58,4 +58,4 @@ import { getAgent } from './agent' | ||
} | ||
expect(getAgent('https://foo.com/bar', opts)).toEqual({ | ||
__type: 'https-proxy', | ||
expect((getAgent('https://foo.com/bar', opts) as any).proxy).toEqual({ | ||
ALPNProtocols: ['http 1.1'], | ||
auth: 'user:pass', | ||
@@ -68,4 +68,3 @@ ca: 'ca', | ||
maxSockets: 5, | ||
path: '/foo', | ||
port: '1234', | ||
port: 1234, | ||
protocol: 'https:', | ||
@@ -72,0 +71,0 @@ rejectUnauthorized: true, |
@@ -47,4 +47,4 @@ "use strict"; | ||
const opts = Object.assign({ httpsProxy: 'https://user:pass@my.proxy:1234/foo', noProxy: 'qar.com, bar.com' }, OPTS); | ||
expect((0, agent_1.getAgent)('https://foo.com/bar', opts)).toEqual({ | ||
__type: 'https-proxy', | ||
expect((0, agent_1.getAgent)('https://foo.com/bar', opts).proxy).toEqual({ | ||
ALPNProtocols: ['http 1.1'], | ||
auth: 'user:pass', | ||
@@ -57,4 +57,3 @@ ca: 'ca', | ||
maxSockets: 5, | ||
path: '/foo', | ||
port: '1234', | ||
port: 1234, | ||
protocol: 'https:', | ||
@@ -61,0 +60,0 @@ rejectUnauthorized: true, |
{ | ||
"name": "@pnpm/network.agent", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"homepage": "https://bit.dev/pnpm/network/agent", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "agent", | ||
"version": "0.0.5" | ||
"version": "0.1.0" | ||
}, | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
"lru-cache": "7.10.1", | ||
"@pnpm/network.proxy-agent": "0.0.5" | ||
"@pnpm/network.proxy-agent": "0.1.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
33615
0
471
+ Added@pnpm/network.proxy-agent@0.1.0(transitive)
- Removed@pnpm/network.proxy-agent@0.0.5(transitive)