@socketsecurity/cli-with-sentry 1.0.40 → 1.0.41

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
@@ -3826,7 +3826,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
3826
3826
  cwd,
3827
3827
  limit,
3828
3828
  minSatisfying,
3829
- noPrCheck,
3829
+ prCheck,
3830
3830
  rangeStyle,
3831
3831
  spinner,
3832
3832
  test,
@@ -4007,7 +4007,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4007
4007
  if (seenBranches.has(branch)) {
4008
4008
  continue infosLoop;
4009
4009
  }
4010
- const pr = noPrCheck ? undefined : prs.find(p => p.headRefName === branch);
4010
+ const pr = prCheck ? prs.find(p => p.headRefName === branch) : undefined;
4011
4011
  if (pr) {
4012
4012
  debug.debugFn('notice', `skip: PR #${pr.number} for ${name} exists`);
4013
4013
  seenBranches.add(branch);
@@ -4553,8 +4553,8 @@ async function handleFix({
4553
4553
  ghsas,
4554
4554
  limit,
4555
4555
  minSatisfying,
4556
- noPrCheck,
4557
4556
  outputKind,
4557
+ prCheck,
4558
4558
  purls,
4559
4559
  rangeStyle,
4560
4560
  spinner,
@@ -4649,7 +4649,7 @@ async function handleFix({
4649
4649
  cwd,
4650
4650
  limit,
4651
4651
  minSatisfying,
4652
- noPrCheck,
4652
+ prCheck,
4653
4653
  purls,
4654
4654
  rangeStyle,
4655
4655
  spinner,
@@ -4699,10 +4699,10 @@ const config$H = {
4699
4699
  default: false,
4700
4700
  description: 'Constrain dependency updates to the minimum satisfying version'
4701
4701
  },
4702
- noPrCheck: {
4702
+ prCheck: {
4703
4703
  type: 'boolean',
4704
- default: false,
4705
- description: 'Skip PR existence check',
4704
+ default: true,
4705
+ description: 'Check for an existing PR before attempting a fix',
4706
4706
  hidden: true
4707
4707
  },
4708
4708
  purl: {
@@ -4810,7 +4810,7 @@ async function run$H(argv, importMeta, {
4810
4810
  const limit = (cli.flags['limit'] ? parseInt(String(cli.flags['limit'] || ''), 10) : Infinity) || Infinity;
4811
4811
  const maxSatisfying = Boolean(cli.flags['maxSatisfying']);
4812
4812
  const minSatisfying = Boolean(cli.flags['minSatisfying']) || !maxSatisfying;
4813
- const noPrCheck = Boolean(cli.flags['noPrCheck']);
4813
+ const prCheck = Boolean(cli.flags['prCheck']);
4814
4814
  const purls = utils.cmdFlagValueToArray(cli.flags['purl']);
4815
4815
  const testScript = String(cli.flags['testScript'] || 'test');
4816
4816
  await handleFix({
@@ -4819,7 +4819,7 @@ async function run$H(argv, importMeta, {
4819
4819
  ghsas,
4820
4820
  limit,
4821
4821
  minSatisfying,
4822
- noPrCheck,
4822
+ prCheck,
4823
4823
  outputKind,
4824
4824
  purls,
4825
4825
  rangeStyle,
@@ -14305,5 +14305,5 @@ void (async () => {
14305
14305
  await utils.captureException(e);
14306
14306
  }
14307
14307
  })();
14308
- //# debugId=3ce082f3-7ea0-4639-948c-06f3fe9c1b80
14308
+ //# debugId=61ea85e2-e40e-4ae7-ba74-ed9c4d21ffab
14309
14309
  //# sourceMappingURL=cli.js.map