socket 1.0.47 → 1.0.49

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
@@ -3723,7 +3723,7 @@ async function getActualTree(cwd = process.cwd()) {
3723
3723
  // of the node_modules folder.
3724
3724
  const arb = new shadowNpmInject.Arborist({
3725
3725
  path: cwd,
3726
- ...shadowNpmInject.SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES
3726
+ ...shadowNpmInject.SAFE_NO_SAVE_ARBORIST_REIFY_OPTIONS_OVERRIDES
3727
3727
  });
3728
3728
  return await arb.loadActual();
3729
3729
  }
@@ -3964,7 +3964,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
3964
3964
  }
3965
3965
  const oldVersions = arrays.arrayUnique(shadowNpmInject.findPackageNodes(actualTree, name).map(n => n.version).filter(Boolean));
3966
3966
  if (!oldVersions.length) {
3967
- debug.debugFn('notice', `skip: ${name} not found\n`);
3967
+ debug.debugFn('notice', `skip: ${name} not found`);
3968
3968
  cleanupInfoEntriesLoop();
3969
3969
  // Skip to next package.
3970
3970
  continue infoEntriesLoop;
@@ -4055,7 +4055,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4055
4055
 
4056
4056
  // eslint-disable-next-line no-await-in-loop
4057
4057
  if (!(await hasModifiedFiles(cwd))) {
4058
- debug.debugFn('notice', `skip: nothing to commit for ${name}@${newVersion} PR`);
4058
+ debug.debugFn('notice', `skip: no changes for ${name}@${newVersion}`);
4059
4059
  seenVersions.add(newVersion);
4060
4060
  // Reset things just in case.
4061
4061
  if (fixEnv.isCi) {
@@ -4286,7 +4286,7 @@ async function install$1(pkgEnvDetails, options) {
4286
4286
  };
4287
4287
  try {
4288
4288
  await utils.runAgentInstall(pkgEnvDetails, {
4289
- args,
4289
+ args: ['--ignore-scripts', '--no-audit', '--no-fund', '--no-progress', '--no-save', '--silent', ...(args ?? [])],
4290
4290
  spinner,
4291
4291
  stdio: debug.isDebug('stdio') ? 'inherit' : 'ignore'
4292
4292
  });
@@ -4311,7 +4311,8 @@ async function npmFix(pkgEnvDetails, fixConfig) {
4311
4311
  } else {
4312
4312
  const arb = new shadowNpmInject.Arborist({
4313
4313
  path: pkgEnvDetails.pkgPath,
4314
- ...flatConfig
4314
+ ...flatConfig,
4315
+ ...shadowNpmInject.SAFE_WITH_SAVE_ARBORIST_REIFY_OPTIONS_OVERRIDES
4315
4316
  });
4316
4317
  actualTree = await arb.reify();
4317
4318
  // Calling arb.reify() creates the arb.diff object, nulls-out arb.idealTree,
@@ -4356,7 +4357,8 @@ async function npmFix(pkgEnvDetails, fixConfig) {
4356
4357
  if (isWorkspaceRoot) {
4357
4358
  const arb = new shadowNpmInject.Arborist({
4358
4359
  path: pkgEnvDetails.pkgPath,
4359
- ...flatConfig
4360
+ ...flatConfig,
4361
+ ...shadowNpmInject.SAFE_WITH_SAVE_ARBORIST_REIFY_OPTIONS_OVERRIDES
4360
4362
  });
4361
4363
  const idealTree = await arb.buildIdealTree();
4362
4364
  const node = shadowNpmInject.findPackageNode(idealTree, packument.name, oldVersion);
@@ -4405,13 +4407,13 @@ async function install(pkgEnvDetails, options) {
4405
4407
  };
4406
4408
  try {
4407
4409
  await utils.runAgentInstall(pkgEnvDetails, {
4408
- args: [...(args ?? []),
4410
+ args: [
4409
4411
  // Enable pnpm updates to pnpm-lock.yaml in CI environments.
4410
4412
  // https://pnpm.io/cli/install#--frozen-lockfile
4411
4413
  '--no-frozen-lockfile',
4412
4414
  // Enable a non-interactive pnpm install
4413
4415
  // https://github.com/pnpm/pnpm/issues/6778
4414
- '--config.confirmModulesPurge=false'],
4416
+ '--config.confirmModulesPurge=false', ...(args ?? [])],
4415
4417
  spinner,
4416
4418
  stdio: debug.isDebug('stdio') ? 'inherit' : 'ignore'
4417
4419
  });
@@ -14314,5 +14316,5 @@ void (async () => {
14314
14316
  await utils.captureException(e);
14315
14317
  }
14316
14318
  })();
14317
- //# debugId=2722f924-d472-409c-b963-52b32c1b6daa
14319
+ //# debugId=58e3aaaf-7fac-4e39-b6b9-5bb2c754bc3d
14318
14320
  //# sourceMappingURL=cli.js.map