File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ export const optimize: CliSubcommand = {
464
464
state
465
465
)
466
466
}
467
- const pkgJsonChanged = state . updated . size > 0 || state . updated . size > 0
467
+ const pkgJsonChanged = state . added . size > 0 || state . updated . size > 0
468
468
if ( state . updated . size > 0 ) {
469
469
console . log (
470
470
`Updated ${ state . updated . size } Socket.dev optimized overrides ${ state . added . size ? '.' : '🚀' } `
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import config from '@socketsecurity/config'
10
10
import chalk from 'chalk'
11
11
import isInteractive from 'is-interactive'
12
12
import ora , { spinners } from 'ora'
13
- import npmPackageArg from 'npm-package-arg'
13
+ import npa from 'npm-package-arg'
14
14
import semver from 'semver'
15
15
16
16
import { API_V0_URL , ENV } from '../constants'
@@ -1050,7 +1050,7 @@ class SafeOverrideSet extends OverrideSet {
1050
1050
//
1051
1051
// We need to use the rawSpec here, because the spec has the overrides
1052
1052
// applied to it already.
1053
- let spec = npmPackageArg ( `${ edge . name } @${ edge . rawSpec } ` )
1053
+ let spec = npa ( `${ edge . name } @${ edge . rawSpec } ` )
1054
1054
if ( spec . type === 'alias' ) {
1055
1055
spec = ( < AliasResult > spec ) . subSpec
1056
1056
}
You can’t perform that action at this time.
0 commit comments