Skip to content

Commit d3ce1e9

Browse files
committed
Comment nit
1 parent f25e857 commit d3ce1e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/shadow/arborist/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
} from '../npm-paths'
1111

1212
export 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 }

src/shadow/arborist/lib/edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)