@socketsecurity/cli-with-sentry 0.14.86 → 0.14.88

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.
@@ -406,7 +406,7 @@ async function setupSdk(
406
406
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
407
407
  name: '@socketsecurity/cli',
408
408
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
409
- version: '0.14.86',
409
+ version: '0.14.88',
410
410
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
411
411
  homepage: 'https://github.com/SocketDev/socket-cli'
412
412
  })
@@ -2103,9 +2103,15 @@ function updateNode(
2103
2103
  }
2104
2104
  return true
2105
2105
  }
2106
- function updatePackageJsonFromNode(editablePkgJson, tree, node, rangeStyle) {
2106
+ function updatePackageJsonFromNode(
2107
+ editablePkgJson,
2108
+ tree,
2109
+ node,
2110
+ targetVersion,
2111
+ rangeStyle
2112
+ ) {
2107
2113
  if (isTopLevel(tree, node)) {
2108
- const { name, version } = node
2114
+ const { name } = node
2109
2115
  for (const depField of [
2110
2116
  'dependencies',
2111
2117
  'optionalDependencies',
@@ -2113,12 +2119,12 @@ function updatePackageJsonFromNode(editablePkgJson, tree, node, rangeStyle) {
2113
2119
  ]) {
2114
2120
  const oldValue = editablePkgJson.content[depField]
2115
2121
  if (oldValue) {
2116
- const oldVersion = oldValue[name]
2117
- if (oldVersion) {
2122
+ const refRange = oldValue[name]
2123
+ if (refRange) {
2118
2124
  editablePkgJson.update({
2119
2125
  [depField]: {
2120
2126
  ...oldValue,
2121
- [name]: applyRange(oldVersion, version, rangeStyle)
2127
+ [name]: applyRange(refRange, targetVersion, rangeStyle)
2122
2128
  }
2123
2129
  })
2124
2130
  }
@@ -2287,6 +2293,7 @@ exports.SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES =
2287
2293
  SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES
2288
2294
  exports.SafeArborist = SafeArborist
2289
2295
  exports.addArtifactToAlertsMap = addArtifactToAlertsMap
2296
+ exports.applyRange = applyRange
2290
2297
  exports.assignDefaultFixOptions = assignDefaultFixOptions
2291
2298
  exports.captureException = captureException
2292
2299
  exports.findBestPatchVersion = findBestPatchVersion
@@ -2314,5 +2321,5 @@ exports.supportedConfigKeys = supportedConfigKeys
2314
2321
  exports.updateConfigValue = updateConfigValue
2315
2322
  exports.updateNode = updateNode
2316
2323
  exports.updatePackageJsonFromNode = updatePackageJsonFromNode
2317
- //# debugId=18566b0a-a2c3-4ae6-b998-baf75b6142a8
2324
+ //# debugId=329e3834-df25-48a4-91cf-acddf2e58c3d
2318
2325
  //# sourceMappingURL=shadow-npm-inject.js.map