socket 0.14.101 → 0.14.102

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.
@@ -900,7 +900,7 @@ function emitBanner(name) {
900
900
  logger.logger.error(getAsciiHeader(name))
901
901
  }
902
902
  function getAsciiHeader(command) {
903
- const cliVersion = '0.14.101:26533ef:8b0b91f5:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
903
+ const cliVersion = '0.14.102:51e000d:e352a2ef:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
904
904
  const nodeVersion = process$1.version
905
905
  const apiToken = shadowNpmInject.getDefaultToken()
906
906
  const shownToken = apiToken ? getLastFiveOfApiToken(apiToken) : 'no'
@@ -3724,6 +3724,9 @@ async function branchExists(branch, cwd = process.cwd()) {
3724
3724
  }
3725
3725
  async function checkoutBaseBranchIfAvailable(baseBranch, cwd = process.cwd()) {
3726
3726
  try {
3727
+ await spawn.spawn('git', ['fetch', '--depth=1', 'origin', baseBranch], {
3728
+ cwd
3729
+ })
3727
3730
  await spawn.spawn('git', ['checkout', baseBranch], {
3728
3731
  cwd
3729
3732
  })
@@ -3731,10 +3734,11 @@ async function checkoutBaseBranchIfAvailable(baseBranch, cwd = process.cwd()) {
3731
3734
  cwd
3732
3735
  })
3733
3736
  logger.logger.info(`Checked out and reset to ${baseBranch}`)
3734
- } catch {
3737
+ } catch (e) {
3735
3738
  logger.logger.warn(
3736
3739
  `Could not switch to ${baseBranch}. Proceeding with HEAD.`
3737
3740
  )
3741
+ debug.debugLog(e)
3738
3742
  }
3739
3743
  }
3740
3744
  async function createAndPushBranchIfNeeded(
@@ -11498,7 +11502,7 @@ void (async () => {
11498
11502
  await vendor.updater({
11499
11503
  name: SOCKET_CLI_BIN_NAME,
11500
11504
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
11501
- version: '0.14.101',
11505
+ version: '0.14.102',
11502
11506
  ttl: 86_400_000 /* 24 hours in milliseconds */
11503
11507
  })
11504
11508
  try {
@@ -11566,5 +11570,5 @@ void (async () => {
11566
11570
  await shadowNpmInject.captureException(e)
11567
11571
  }
11568
11572
  })()
11569
- //# debugId=994a338d-d21c-4fec-b92e-a2121b0f443a
11573
+ //# debugId=53c889d4-b512-4df3-9241-7d2b2c18c461
11570
11574
  //# sourceMappingURL=cli.js.map