File tree 2 files changed +5
-8
lines changed
src/shadow/arborist/lib/arborist
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import constants from '../../../../constants'
3
3
import type { Diff } from './types'
4
4
import type { SafeNode } from '../node'
5
5
6
- const { LOOP_SENTINEL , NPM_REGISTRY_URL , SOCKET_CLI_FIX_PACKAGE_LOCK_FILE } =
7
- constants
6
+ const { LOOP_SENTINEL , NPM_REGISTRY_URL } = constants
8
7
9
8
function getUrlOrigin ( input : string ) : string {
10
9
try {
@@ -28,11 +27,9 @@ export function getPackagesToQueryFromDiff(
28
27
diff_ : Diff | null ,
29
28
options ?: GetPackagesToQueryFromDiffOptions
30
29
) : PackageDetail [ ] {
31
- const {
32
- // Lazily access constants.IPC.
33
- includeUnchanged = constants . IPC [ SOCKET_CLI_FIX_PACKAGE_LOCK_FILE ] ,
34
- includeUnknownOrigin = false
35
- } = < GetPackagesToQueryFromDiffOptions > {
30
+ const { includeUnchanged = false , includeUnknownOrigin = false } = <
31
+ GetPackagesToQueryFromDiffOptions
32
+ > {
36
33
__proto__ : null ,
37
34
...options
38
35
}
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ export async function reify(
368
368
// We are assuming `this[_diffTrees]()` has been called by `super.reify(...)`:
369
369
// https://github.com/npm/cli/blob/v11.0.0/workspaces/arborist/lib/arborist/reify.js#L141
370
370
let needInfoOn = getPackagesToQueryFromDiff ( this . diff , {
371
- includeUnchanged : IPC [ SOCKET_CLI_FIX_PACKAGE_LOCK_FILE ]
371
+ includeUnchanged : ! ! IPC [ SOCKET_CLI_FIX_PACKAGE_LOCK_FILE ]
372
372
} )
373
373
if ( ! needInfoOn . length ) {
374
374
// Nothing to check, hmmm already installed or all private?
You can’t perform that action at this time.
0 commit comments