File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
shadow/npm/arborist/lib/arborist Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { debugDir } from '@socketsecurity/registry/lib/debug'
55import { logger } from '@socketsecurity/registry/lib/logger'
66
77import constants from '../../../../../constants.mts'
8+ import { findUp } from '../../../../../utils/fs.mts'
89import { logAlertsMap } from '../../../../../utils/socket-package-alert.mts'
910import {
1011 getAlertsMapFromArborist ,
@@ -16,7 +17,6 @@ import type {
1617 ArboristReifyOptions ,
1718 NodeClass ,
1819} from '../../types.mts'
19- import { findUp } from '../../../../../utils/fs.mts'
2020
2121const {
2222 kInternalsSymbol,
@@ -128,7 +128,7 @@ export class SafeArborist extends Arborist {
128128 const isShadowNpx = binName === 'npx'
129129 const hasExisting = await findUp ( 'node_modules' , {
130130 cwd : process . cwd ( ) ,
131- onlyDirectories : true
131+ onlyDirectories : true ,
132132 } )
133133 const shouldCheckExisting = reportOnlyBlocking ? true : isShadowNpx
134134
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export async function getAlertsMapFromPurls(
108108 : { } ) ,
109109 } ,
110110 } ,
111- ) ) {
111+ ) ) {
112112 if ( batchResult . success ) {
113113 const artifact = batchResult . data as CompactSocketArtifact
114114 await addArtifactToAlertsMap ( artifact , alertsByPurl , alertsMapOptions )
You can’t perform that action at this time.
0 commit comments