Skip to content

Commit 90df407

Browse files
committed
Change getIPC to getIpc
1 parent a8380be commit 90df407

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/constants.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const {
1616
SOCKET_SECURITY_SCOPE,
1717
kInternalsSymbol,
1818
[kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: {
19-
createConstantsObject
19+
createConstantsObject,
20+
getIpc
2021
}
2122
} = registryConstants
2223

@@ -27,9 +28,9 @@ type RegistryInternals = (typeof registryConstants)['Symbol(kInternalsSymbol)']
2728
type Sentry = any
2829

2930
type Internals = Remap<
30-
Omit<RegistryInternals, 'getIPC'> &
31+
Omit<RegistryInternals, 'getIpc'> &
3132
Readonly<{
32-
getIPC: {
33+
getIpc: {
3334
(): Promise<IPC>
3435
<K extends keyof IPC | undefined>(
3536
key?: K | undefined
@@ -402,6 +403,7 @@ const constants = createConstantsObject(
402403
zshRcPath: lazyZshRcPath
403404
},
404405
internals: {
406+
getIpc,
405407
getSentry() {
406408
return _Sentry
407409
},

src/shadow/npm/arborist/lib/arborist/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const {
1616
NPX,
1717
SOCKET_CLI_SAFE_WRAPPER,
1818
kInternalsSymbol,
19-
[kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { getIPC }
19+
[kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { getIpc }
2020
} = constants
2121

2222
export const SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES = {
@@ -86,7 +86,7 @@ export class SafeArborist extends Arborist {
8686
} as ArboristReifyOptions
8787
const safeWrapperName = options.dryRun
8888
? undefined
89-
: await getIPC(SOCKET_CLI_SAFE_WRAPPER)
89+
: await getIpc(SOCKET_CLI_SAFE_WRAPPER)
9090
const isSafeNpm = safeWrapperName === NPM
9191
const isSafeNpx = safeWrapperName === NPX
9292
if (!safeWrapperName || (isSafeNpx && options['yes'])) {

0 commit comments

Comments
 (0)