socket 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:72c12a48:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
920
+ const cliVersion = '0.14.123:ac83b62:9fc01fd8: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')
@@ -4492,7 +4492,14 @@ async function pnpmFix(
4492
4492
  continue
4493
4493
  }
4494
4494
  // eslint-disable-next-line no-await-in-loop
4495
- actualTree = await getActualTree(cwd)
4495
+ await Promise.all([
4496
+ shadowNpmInject.removeNodeModules(cwd),
4497
+ ...(isRepo ? [gitHardReset(cwd)] : [])
4498
+ ])
4499
+ // eslint-disable-next-line no-await-in-loop
4500
+ actualTree = await install(pkgEnvDetails, {
4501
+ spinner
4502
+ })
4496
4503
  const oldVersions = arrays.arrayUnique(
4497
4504
  shadowNpmInject
4498
4505
  .findPackageNodes(actualTree, name)
@@ -4523,7 +4530,14 @@ async function pnpmFix(
4523
4530
  vulnerableVersionRange
4524
4531
  } of infos) {
4525
4532
  // eslint-disable-next-line no-await-in-loop
4526
- actualTree = await getActualTree()
4533
+ await Promise.all([
4534
+ shadowNpmInject.removeNodeModules(cwd),
4535
+ ...(isRepo ? [gitHardReset(cwd)] : [])
4536
+ ])
4537
+ // eslint-disable-next-line no-await-in-loop
4538
+ actualTree = await install(pkgEnvDetails, {
4539
+ spinner
4540
+ })
4527
4541
  const node = shadowNpmInject.findPackageNode(
4528
4542
  actualTree,
4529
4543
  name,
@@ -12327,7 +12341,7 @@ void (async () => {
12327
12341
  await vendor.updater({
12328
12342
  name: SOCKET_CLI_BIN_NAME,
12329
12343
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
12330
- version: '0.14.122',
12344
+ version: '0.14.123',
12331
12345
  ttl: 86_400_000 /* 24 hours in milliseconds */
12332
12346
  })
12333
12347
  try {
@@ -12395,5 +12409,5 @@ void (async () => {
12395
12409
  await shadowNpmInject.captureException(e)
12396
12410
  }
12397
12411
  })()
12398
- //# debugId=e703dfb8-7322-4ac4-9e54-b02c664bb4a2
12412
+ //# debugId=5bad9b77-6e22-4b32-a047-7f16520f50a3
12399
12413
  //# sourceMappingURL=cli.js.map