@socketsecurity/cli-with-sentry 0.14.122 → 0.14.123

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.
@@ -917,7 +917,7 @@ function emitBanner(name) {
917
917
  logger.logger.error(getAsciiHeader(name))
918
918
  }
919
919
  function getAsciiHeader(command) {
920
- const cliVersion = '0.14.122:30c1354:1911ca49:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
920
+ const cliVersion = '0.14.123:ac83b62:6bf8f885:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
921
921
  const nodeVersion = process$1.version
922
922
  const apiToken = shadowNpmInject.getDefaultToken()
923
923
  const defaultOrg = shadowNpmInject.getConfigValue('defaultOrg')
@@ -4496,7 +4496,14 @@ async function pnpmFix(
4496
4496
  continue
4497
4497
  }
4498
4498
  // eslint-disable-next-line no-await-in-loop
4499
- actualTree = await getActualTree(cwd)
4499
+ await Promise.all([
4500
+ shadowNpmInject.removeNodeModules(cwd),
4501
+ ...(isRepo ? [gitHardReset(cwd)] : [])
4502
+ ])
4503
+ // eslint-disable-next-line no-await-in-loop
4504
+ actualTree = await install(pkgEnvDetails, {
4505
+ spinner
4506
+ })
4500
4507
  const oldVersions = arrays.arrayUnique(
4501
4508
  shadowNpmInject
4502
4509
  .findPackageNodes(actualTree, name)
@@ -4527,7 +4534,14 @@ async function pnpmFix(
4527
4534
  vulnerableVersionRange
4528
4535
  } of infos) {
4529
4536
  // eslint-disable-next-line no-await-in-loop
4530
- actualTree = await getActualTree()
4537
+ await Promise.all([
4538
+ shadowNpmInject.removeNodeModules(cwd),
4539
+ ...(isRepo ? [gitHardReset(cwd)] : [])
4540
+ ])
4541
+ // eslint-disable-next-line no-await-in-loop
4542
+ actualTree = await install(pkgEnvDetails, {
4543
+ spinner
4544
+ })
4531
4545
  const node = shadowNpmInject.findPackageNode(
4532
4546
  actualTree,
4533
4547
  name,
@@ -12331,7 +12345,7 @@ void (async () => {
12331
12345
  await vendor.updater({
12332
12346
  name: SOCKET_CLI_BIN_NAME,
12333
12347
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
12334
- version: '0.14.122',
12348
+ version: '0.14.123',
12335
12349
  ttl: 86_400_000 /* 24 hours in milliseconds */
12336
12350
  })
12337
12351
  try {
@@ -12399,5 +12413,5 @@ void (async () => {
12399
12413
  await shadowNpmInject.captureException(e)
12400
12414
  }
12401
12415
  })()
12402
- //# debugId=89d93dc5-77bf-4052-b196-09f5e5169b84
12416
+ //# debugId=645892ec-7104-4af0-915a-c1219b90c91c
12403
12417
  //# sourceMappingURL=cli.js.map