File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import {
10
10
} from '../npm-paths'
11
11
12
12
export function installSafeArborist ( ) {
13
+ // Override '@npmcli/arborist' module exports with patched variants based on
14
+ // https://github.com/npm/cli/pull/7025.
13
15
const cache : { [ key : string ] : any } = require . cache
14
16
cache [ arboristClassPath ] = { exports : SafeArborist }
15
17
cache [ arboristEdgeClassPath ] = { exports : SafeEdge }
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export class SafeEdge extends Edge {
289
289
this . #safeError = null
290
290
}
291
291
// Patch adding "else if" condition based on
292
- // https://github.com/npm/cli/pull/7025
292
+ // https://github.com/npm/cli/pull/7025.
293
293
else if ( oldOverrideSet ) {
294
294
// Propagate the new override set to the target node.
295
295
this . #safeTo. updateOverridesEdgeInRemoved ( oldOverrideSet )
You can’t perform that action at this time.
0 commit comments