@socketsecurity/cli-with-sentry 0.15.45 → 0.15.46

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.
package/dist/cli.js CHANGED
@@ -4392,6 +4392,11 @@ async function npmFix(pkgEnvDetails, {
4392
4392
  activeBranches.push(parsedBranch);
4393
4393
  }
4394
4394
  }
4395
+ if (activeBranches.length) {
4396
+ debug.debugFn(`found: ${activeBranches.length} active branches\n`, activeBranches);
4397
+ } else if (openPrs.length) {
4398
+ debug.debugFn('miss: 0 active branches found');
4399
+ }
4395
4400
  infos = infos.filter(info => !activeBranches.find(b => b.newVersion === info.firstPatchedVersionIdentifier));
4396
4401
  }
4397
4402
  if (!infos.length) {
@@ -4877,13 +4882,16 @@ async function pnpmFix(pkgEnvDetails, {
4877
4882
  const activeBranches = [];
4878
4883
  for (const pr of openPrs) {
4879
4884
  const parsedBranch = branchParser(pr.headRefName);
4885
+ debug.debugFn(`parse: ${pr.headRefName}\n`, parsedBranch);
4886
+ debug.debugFn(`check: branchPurlType ${branchPurlType} === ${parsedBranch?.type}`);
4887
+ debug.debugFn(`check: branchFullName ${branchFullName} === ${parsedBranch?.fullName}`);
4880
4888
  if (branchPurlType === parsedBranch?.type && branchFullName === parsedBranch?.fullName) {
4881
4889
  activeBranches.push(parsedBranch);
4882
4890
  }
4883
4891
  }
4884
4892
  if (activeBranches.length) {
4885
4893
  debug.debugFn(`found: ${activeBranches.length} active branches\n`, activeBranches);
4886
- } else {
4894
+ } else if (openPrs.length) {
4887
4895
  debug.debugFn('miss: 0 active branches found');
4888
4896
  }
4889
4897
  infos = infos.filter(info => !activeBranches.find(b => b.newVersion === info.firstPatchedVersionIdentifier));
@@ -14260,5 +14268,5 @@ void (async () => {
14260
14268
  await utils.captureException(e);
14261
14269
  }
14262
14270
  })();
14263
- //# debugId=a7078a69-7665-417e-a14a-4c06fdddafa4
14271
+ //# debugId=ad52decd-77a1-456a-85fe-05c2c8c57de5
14264
14272
  //# sourceMappingURL=cli.js.map