Skip to content

Commit fc406cb

Browse files
committed
Lint nit
1 parent af393a5 commit fc406cb

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/shadow/npm/arborist/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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'
51
import {
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

1212
export function installSafeArborist() {
1313
// Override '@npmcli/arborist' module exports with patched variants based on

src/utils/sdk.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import process from 'node:process'
22

3-
import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent'
3+
import { HttpsProxyAgent } from 'hpagent'
44

55
import isInteractive from '@socketregistry/is-interactive/index.cjs'
66
import { 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']".

0 commit comments

Comments
 (0)