@socketsecurity/cli-with-sentry 0.14.110 → 0.14.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -391,7 +391,7 @@ async function setupSdk(
391
391
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
392
392
  name: '@socketsecurity/cli',
393
393
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
394
- version: '0.14.110',
394
+ version: '0.14.112',
395
395
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
396
396
  homepage: 'https://github.com/SocketDev/socket-cli'
397
397
  })
@@ -1416,27 +1416,31 @@ function updatePackageJsonFromNode(
1416
1416
  rangeStyle
1417
1417
  ) {
1418
1418
  let result = false
1419
- if (isTopLevel(tree, node)) {
1420
- const { name } = node
1421
- for (const depField of [
1422
- 'dependencies',
1423
- 'optionalDependencies',
1424
- 'peerDependencies'
1425
- ]) {
1426
- const depObject = editablePkgJson.content[depField]
1427
- if (depObject) {
1428
- const oldRange = depObject[name]
1429
- if (oldRange) {
1430
- const newRange = applyRange(oldRange, targetVersion, rangeStyle)
1431
- if (oldRange !== newRange) {
1432
- result = true
1433
- editablePkgJson.update({
1434
- [depField]: {
1435
- ...depObject,
1436
- [name]: newRange
1437
- }
1438
- })
1439
- }
1419
+ if (!isTopLevel(tree, node)) {
1420
+ debug.debugLog('not top level', node)
1421
+ return result
1422
+ }
1423
+ const { name } = node
1424
+ debug.debugLog('name', name)
1425
+ debug.debugLog('editablePkgJson.content', editablePkgJson.content)
1426
+ for (const depField of [
1427
+ 'dependencies',
1428
+ 'optionalDependencies',
1429
+ 'peerDependencies'
1430
+ ]) {
1431
+ const depObject = editablePkgJson.content[depField]
1432
+ if (depObject) {
1433
+ const oldRange = depObject[name]
1434
+ if (oldRange) {
1435
+ const newRange = applyRange(oldRange, targetVersion, rangeStyle)
1436
+ if (oldRange !== newRange) {
1437
+ result = true
1438
+ editablePkgJson.update({
1439
+ [depField]: {
1440
+ ...depObject,
1441
+ [name]: newRange
1442
+ }
1443
+ })
1440
1444
  }
1441
1445
  }
1442
1446
  }
@@ -2353,5 +2357,5 @@ exports.supportedConfigKeys = supportedConfigKeys
2353
2357
  exports.updateConfigValue = updateConfigValue
2354
2358
  exports.updateNode = updateNode
2355
2359
  exports.updatePackageJsonFromNode = updatePackageJsonFromNode
2356
- //# debugId=d58d0faf-4f73-44df-ace1-9d258d89fd77
2360
+ //# debugId=b19ce781-736b-4187-b8ea-59ac136b5cac
2357
2361
  //# sourceMappingURL=shadow-npm-inject.js.map