socket 0.14.109 → 0.14.111

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.109:c6dcd25:241925b4:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
920
+ const cliVersion = '0.14.111:ed1497e:51590463: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')
@@ -3728,7 +3728,10 @@ const cmdDiffScan = {
3728
3728
 
3729
3729
  const { GITHUB_REF_NAME } = constants
3730
3730
  function formatBranchName(str) {
3731
- return str.replace(/[-_.]+/g, '-').replace(/[^-a-zA-Z0-9]+/g, '') ?? ''
3731
+ return str
3732
+ .replace(/[\\/-_.]+/g, '-')
3733
+ .replace(/[^-a-zA-Z0-9]+/g, '')
3734
+ .replace(/^-+|-+$/g, '')
3732
3735
  }
3733
3736
  function getPkgNameFromPurlObj(purlObj) {
3734
3737
  return `${purlObj.namespace ? `${purlObj.namespace}/` : ''}${purlObj.name}`
@@ -4627,19 +4630,24 @@ async function pnpmFix(
4627
4630
  if (updateData) {
4628
4631
  editablePkgJson.update(updateData)
4629
4632
  }
4630
- shadowNpmInject.updatePackageJsonFromNode(
4633
+ const modded = shadowNpmInject.updatePackageJsonFromNode(
4631
4634
  editablePkgJson,
4632
4635
  actualTree,
4633
4636
  node,
4634
4637
  newVersion,
4635
4638
  rangeStyle
4636
4639
  )
4640
+ debug.debugLog('updatePackageJsonFromNode', modded)
4641
+ debug.debugLog(branch, editablePkgJson.filename)
4637
4642
  let error
4638
4643
  let errored = false
4639
4644
  let installed = false
4640
4645
 
4641
4646
  // eslint-disable-next-line no-await-in-loop
4642
4647
  if (!(await editablePkgJson.save())) {
4648
+ debug.debugLog(
4649
+ `Skipping nothing changed in ${editablePkgJson.filename}`
4650
+ )
4643
4651
  continue
4644
4652
  }
4645
4653
  if (!installedSpecs.has(newSpecKey)) {
@@ -4672,6 +4680,7 @@ async function pnpmFix(
4672
4680
  error = e
4673
4681
  errored = true
4674
4682
  }
4683
+ debug.debugLog('check "shouldOpenPr":', shouldOpenPr)
4675
4684
  debug.debugLog('check "errored":', errored)
4676
4685
  if (!errored && shouldOpenPr) {
4677
4686
  debug.debugLog('1: gitCreateAndPushBranchIfNeeded')
@@ -12299,7 +12308,7 @@ void (async () => {
12299
12308
  await vendor.updater({
12300
12309
  name: SOCKET_CLI_BIN_NAME,
12301
12310
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
12302
- version: '0.14.109',
12311
+ version: '0.14.111',
12303
12312
  ttl: 86_400_000 /* 24 hours in milliseconds */
12304
12313
  })
12305
12314
  try {
@@ -12367,5 +12376,5 @@ void (async () => {
12367
12376
  await shadowNpmInject.captureException(e)
12368
12377
  }
12369
12378
  })()
12370
- //# debugId=5749d845-bfec-49fb-b09e-8adb970927b1
12379
+ //# debugId=d3d3d563-0e77-4bef-aa59-13c56f702e16
12371
12380
  //# sourceMappingURL=cli.js.map