File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1- import { SafeArborist } from './lib/arborist'
2- import { SafeEdge } from './lib/edge'
3- import { SafeNode } from './lib/node'
4- import { SafeOverrideSet } from './lib/override-set'
51import {
62 getArboristClassPath ,
73 getArboristEdgeClassPath ,
84 getArboristNodeClassPath ,
95 getArboristOverrideSetClassPath
106} from '../paths'
7+ import { SafeArborist } from './lib/arborist'
8+ import { SafeEdge } from './lib/edge'
9+ import { SafeNode } from './lib/node'
10+ import { SafeOverrideSet } from './lib/override-set'
1111
1212export function installSafeArborist ( ) {
1313 // Override '@npmcli/arborist' module exports with patched variants based on
Original file line number Diff line number Diff line change 11import process from 'node:process'
22
3- import { HttpProxyAgent , HttpsProxyAgent } from 'hpagent'
3+ import { HttpsProxyAgent } from 'hpagent'
44
55import isInteractive from '@socketregistry/is-interactive/index.cjs'
66import { SOCKET_PUBLIC_API_TOKEN } from '@socketsecurity/registry/lib/constants'
@@ -67,9 +67,7 @@ export async function setupSdk(
6767 throw new AuthError ( 'You need to provide an API key' )
6868 }
6969 return new SocketSdk ( apiToken , {
70- agent : proxy
71- ? new HttpsProxyAgent ( { proxy } )
72- : undefined ,
70+ agent : proxy ? new HttpsProxyAgent ( { proxy } ) : undefined ,
7371 baseUrl : apiBaseUrl ,
7472 userAgent : createUserAgentFromPkgJson ( {
7573 // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
You can’t perform that action at this time.
0 commit comments