socket 1.0.46 → 1.0.48

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
@@ -3405,14 +3405,14 @@ async function cleanupPrs(owner, repo, options) {
3405
3405
  pull_number: prNum,
3406
3406
  state: 'closed'
3407
3407
  });
3408
- debug.debugFn('notice', `close: ${prRef} for ${prToVersion}`);
3408
+ debug.debugFn('notice', `pr: closing ${prRef} for ${prToVersion}`);
3409
3409
  // Remove entry from parent object.
3410
3410
  context.parent.splice(context.index, 1);
3411
3411
  // Mark cache to be saved.
3412
3412
  cachesToSave.set(context.cacheKey, context.data);
3413
3413
  return null;
3414
3414
  } catch (e) {
3415
- debug.debugFn('error', `fail: close ${prRef} for ${prToVersion}\n`, e?.message || 'unknown error');
3415
+ debug.debugFn('error', `pr: failed to close ${prRef} for ${prToVersion}\n`, e?.message || 'unknown error');
3416
3416
  }
3417
3417
  }
3418
3418
  // Update stale PRs.
@@ -3425,7 +3425,7 @@ async function cleanupPrs(owner, repo, options) {
3425
3425
  base: match.headRefName,
3426
3426
  head: match.baseRefName
3427
3427
  });
3428
- debug.debugFn('notice', 'update: stale', prRef);
3428
+ debug.debugFn('notice', `pr: updating stale ${prRef}`);
3429
3429
  // Update entry entry.
3430
3430
  if (context.apiType === 'graphql') {
3431
3431
  context.entry.mergeStateStatus = 'CLEAN';
@@ -3436,7 +3436,7 @@ async function cleanupPrs(owner, repo, options) {
3436
3436
  cachesToSave.set(context.cacheKey, context.data);
3437
3437
  } catch (e) {
3438
3438
  const message = e?.message || 'Unknown error';
3439
- debug.debugFn('error', `fail: update ${prRef} - ${message}`);
3439
+ debug.debugFn('error', `pr: failed to update ${prRef} - ${message}`);
3440
3440
  }
3441
3441
  }
3442
3442
  return match;
@@ -4106,6 +4106,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4106
4106
 
4107
4107
  // Check repoInfo to make TypeScript happy.
4108
4108
  if (!errored && fixEnv.isCi && fixEnv.repoInfo) {
4109
+ debug.debugFn('notice', 'pr: creating');
4109
4110
  try {
4110
4111
  if (
4111
4112
  // eslint-disable-next-line no-await-in-loop
@@ -4177,6 +4178,8 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4177
4178
  error = e;
4178
4179
  errored = true;
4179
4180
  }
4181
+ } else if (fixEnv.isCi) {
4182
+ debug.debugFn('notice', 'skip: PR creation');
4180
4183
  }
4181
4184
  if (fixEnv.isCi) {
4182
4185
  spinner?.start();
@@ -4283,7 +4286,7 @@ async function install$1(pkgEnvDetails, options) {
4283
4286
  };
4284
4287
  try {
4285
4288
  await utils.runAgentInstall(pkgEnvDetails, {
4286
- args,
4289
+ args: ['--ignore-scripts', '--no-audit', '--no-fund', '--no-progress', '--no-save', '--silent', ...(args ?? [])],
4287
4290
  spinner,
4288
4291
  stdio: debug.isDebug('stdio') ? 'inherit' : 'ignore'
4289
4292
  });
@@ -4402,13 +4405,13 @@ async function install(pkgEnvDetails, options) {
4402
4405
  };
4403
4406
  try {
4404
4407
  await utils.runAgentInstall(pkgEnvDetails, {
4405
- args: [...(args ?? []),
4408
+ args: [
4406
4409
  // Enable pnpm updates to pnpm-lock.yaml in CI environments.
4407
4410
  // https://pnpm.io/cli/install#--frozen-lockfile
4408
4411
  '--no-frozen-lockfile',
4409
4412
  // Enable a non-interactive pnpm install
4410
4413
  // https://github.com/pnpm/pnpm/issues/6778
4411
- '--config.confirmModulesPurge=false'],
4414
+ '--config.confirmModulesPurge=false', ...(args ?? [])],
4412
4415
  spinner,
4413
4416
  stdio: debug.isDebug('stdio') ? 'inherit' : 'ignore'
4414
4417
  });
@@ -14311,5 +14314,5 @@ void (async () => {
14311
14314
  await utils.captureException(e);
14312
14315
  }
14313
14316
  })();
14314
- //# debugId=747f1a38-2ccf-4fd0-9e7b-8350bfce7bc3
14317
+ //# debugId=ca4172ba-aeb9-477f-acd0-333975cf37de
14315
14318
  //# sourceMappingURL=cli.js.map