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'
5
1
import {
6
2
getArboristClassPath ,
7
3
getArboristEdgeClassPath ,
8
4
getArboristNodeClassPath ,
9
5
getArboristOverrideSetClassPath
10
6
} 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'
11
11
12
12
export function installSafeArborist ( ) {
13
13
// Override '@npmcli/arborist' module exports with patched variants based on
Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
2
3
- import { HttpProxyAgent , HttpsProxyAgent } from 'hpagent'
3
+ import { HttpsProxyAgent } from 'hpagent'
4
4
5
5
import isInteractive from '@socketregistry/is-interactive/index.cjs'
6
6
import { SOCKET_PUBLIC_API_TOKEN } from '@socketsecurity/registry/lib/constants'
@@ -67,9 +67,7 @@ export async function setupSdk(
67
67
throw new AuthError ( 'You need to provide an API key' )
68
68
}
69
69
return new SocketSdk ( apiToken , {
70
- agent : proxy
71
- ? new HttpsProxyAgent ( { proxy } )
72
- : undefined ,
70
+ agent : proxy ? new HttpsProxyAgent ( { proxy } ) : undefined ,
73
71
baseUrl : apiBaseUrl ,
74
72
userAgent : createUserAgentFromPkgJson ( {
75
73
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
You can’t perform that action at this time.
0 commit comments