socket 0.14.108 → 0.14.110

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.108:342eeb0:75e98336:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
920
+ const cliVersion = '0.14.110:bce799e:225683fa: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')
@@ -3828,6 +3828,11 @@ async function gitCreateAndPushBranchIfNeeded(
3828
3828
  basename === 'pnpm-lock.yaml'
3829
3829
  )
3830
3830
  })
3831
+ debug.debugLog('branch', branch)
3832
+ debug.debugLog(
3833
+ 'gitCreateAndPushBranchIfNeeded > moddedFilepaths',
3834
+ moddedFilepaths
3835
+ )
3831
3836
  if (moddedFilepaths.length) {
3832
3837
  await spawn.spawn('git', ['add', ...moddedFilepaths], {
3833
3838
  cwd
@@ -4622,19 +4627,24 @@ async function pnpmFix(
4622
4627
  if (updateData) {
4623
4628
  editablePkgJson.update(updateData)
4624
4629
  }
4625
- shadowNpmInject.updatePackageJsonFromNode(
4630
+ const modded = shadowNpmInject.updatePackageJsonFromNode(
4626
4631
  editablePkgJson,
4627
4632
  actualTree,
4628
4633
  node,
4629
4634
  newVersion,
4630
4635
  rangeStyle
4631
4636
  )
4637
+ debug.debugLog('updatePackageJsonFromNode', modded)
4638
+ debug.debugLog(branch, editablePkgJson.filename)
4632
4639
  let error
4633
4640
  let errored = false
4634
4641
  let installed = false
4635
4642
 
4636
4643
  // eslint-disable-next-line no-await-in-loop
4637
4644
  if (!(await editablePkgJson.save())) {
4645
+ debug.debugLog(
4646
+ `Skipping nothing changed in ${editablePkgJson.filename}`
4647
+ )
4638
4648
  continue
4639
4649
  }
4640
4650
  if (!installedSpecs.has(newSpecKey)) {
@@ -4667,13 +4677,17 @@ async function pnpmFix(
4667
4677
  error = e
4668
4678
  errored = true
4669
4679
  }
4680
+ debug.debugLog('check "shouldOpenPr":', shouldOpenPr)
4681
+ debug.debugLog('check "errored":', errored)
4670
4682
  if (!errored && shouldOpenPr) {
4683
+ debug.debugLog('1: gitCreateAndPushBranchIfNeeded')
4671
4684
  // eslint-disable-next-line no-await-in-loop
4672
4685
  await gitCreateAndPushBranchIfNeeded(
4673
4686
  branch,
4674
4687
  getSocketCommitMessage(oldPurl, newVersion, workspaceName),
4675
4688
  cwd
4676
4689
  )
4690
+ debug.debugLog('2: openGitHubPullRequest')
4677
4691
  // eslint-disable-next-line no-await-in-loop
4678
4692
  const prResponse = await openGitHubPullRequest(
4679
4693
  owner,
@@ -12291,7 +12305,7 @@ void (async () => {
12291
12305
  await vendor.updater({
12292
12306
  name: SOCKET_CLI_BIN_NAME,
12293
12307
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
12294
- version: '0.14.108',
12308
+ version: '0.14.110',
12295
12309
  ttl: 86_400_000 /* 24 hours in milliseconds */
12296
12310
  })
12297
12311
  try {
@@ -12359,5 +12373,5 @@ void (async () => {
12359
12373
  await shadowNpmInject.captureException(e)
12360
12374
  }
12361
12375
  })()
12362
- //# debugId=d0709b7a-bb78-4292-adb6-17ec75cd13e9
12376
+ //# debugId=32797e31-23f9-493d-96c8-d575d3123a7a
12363
12377
  //# sourceMappingURL=cli.js.map