File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ export const optimize: CliSubcommand = {
464464 state
465465 )
466466 }
467- const pkgJsonChanged = state . updated . size > 0 || state . updated . size > 0
467+ const pkgJsonChanged = state . added . size > 0 || state . updated . size > 0
468468 if ( state . updated . size > 0 ) {
469469 console . log (
470470 `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'
1010import chalk from 'chalk'
1111import isInteractive from 'is-interactive'
1212import ora , { spinners } from 'ora'
13- import npmPackageArg from 'npm-package-arg'
13+ import npa from 'npm-package-arg'
1414import semver from 'semver'
1515
1616import { API_V0_URL , ENV } from '../constants'
@@ -1050,7 +1050,7 @@ class SafeOverrideSet extends OverrideSet {
10501050 //
10511051 // We need to use the rawSpec here, because the spec has the overrides
10521052 // applied to it already.
1053- let spec = npmPackageArg ( `${ edge . name } @${ edge . rawSpec } ` )
1053+ let spec = npa ( `${ edge . name } @${ edge . rawSpec } ` )
10541054 if ( spec . type === 'alias' ) {
10551055 spec = ( < AliasResult > spec ) . subSpec
10561056 }
You can’t perform that action at this time.
0 commit comments