File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import {
1010} from '../npm-paths'
1111
1212export function installSafeArborist ( ) {
13+ // Override '@npmcli/arborist' module exports with patched variants based on
14+ // https://github.com/npm/cli/pull/7025.
1315 const cache : { [ key : string ] : any } = require . cache
1416 cache [ arboristClassPath ] = { exports : SafeArborist }
1517 cache [ arboristEdgeClassPath ] = { exports : SafeEdge }
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export class SafeEdge extends Edge {
289289 this . #safeError = null
290290 }
291291 // Patch adding "else if" condition based on
292- // https://github.com/npm/cli/pull/7025
292+ // https://github.com/npm/cli/pull/7025.
293293 else if ( oldOverrideSet ) {
294294 // Propagate the new override set to the target node.
295295 this . #safeTo. updateOverridesEdgeInRemoved ( oldOverrideSet )
You can’t perform that action at this time.
0 commit comments