socket 1.0.48 → 1.0.50

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
  }
@@ -3821,6 +3821,9 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
3821
3821
  pkgPath: rootPath
3822
3822
  } = pkgEnvDetails;
3823
3823
  const fixEnv = await getFixEnv();
3824
+ debug.debugDir('inspect', {
3825
+ fixEnv
3826
+ });
3824
3827
  const {
3825
3828
  autoMerge,
3826
3829
  cwd,
@@ -3964,7 +3967,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
3964
3967
  }
3965
3968
  const oldVersions = arrays.arrayUnique(shadowNpmInject.findPackageNodes(actualTree, name).map(n => n.version).filter(Boolean));
3966
3969
  if (!oldVersions.length) {
3967
- debug.debugFn('notice', `skip: ${name} not found\n`);
3970
+ debug.debugFn('notice', `skip: ${name} not found`);
3968
3971
  cleanupInfoEntriesLoop();
3969
3972
  // Skip to next package.
3970
3973
  continue infoEntriesLoop;
@@ -4055,7 +4058,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4055
4058
 
4056
4059
  // eslint-disable-next-line no-await-in-loop
4057
4060
  if (!(await hasModifiedFiles(cwd))) {
4058
- debug.debugFn('notice', `skip: nothing to commit for ${name}@${newVersion} PR`);
4061
+ debug.debugFn('notice', `skip: no changes for ${name}@${newVersion}`);
4059
4062
  seenVersions.add(newVersion);
4060
4063
  // Reset things just in case.
4061
4064
  if (fixEnv.isCi) {
@@ -4311,7 +4314,8 @@ async function npmFix(pkgEnvDetails, fixConfig) {
4311
4314
  } else {
4312
4315
  const arb = new shadowNpmInject.Arborist({
4313
4316
  path: pkgEnvDetails.pkgPath,
4314
- ...flatConfig
4317
+ ...flatConfig,
4318
+ ...shadowNpmInject.SAFE_WITH_SAVE_ARBORIST_REIFY_OPTIONS_OVERRIDES
4315
4319
  });
4316
4320
  actualTree = await arb.reify();
4317
4321
  // Calling arb.reify() creates the arb.diff object, nulls-out arb.idealTree,
@@ -4356,7 +4360,8 @@ async function npmFix(pkgEnvDetails, fixConfig) {
4356
4360
  if (isWorkspaceRoot) {
4357
4361
  const arb = new shadowNpmInject.Arborist({
4358
4362
  path: pkgEnvDetails.pkgPath,
4359
- ...flatConfig
4363
+ ...flatConfig,
4364
+ ...shadowNpmInject.SAFE_WITH_SAVE_ARBORIST_REIFY_OPTIONS_OVERRIDES
4360
4365
  });
4361
4366
  const idealTree = await arb.buildIdealTree();
4362
4367
  const node = shadowNpmInject.findPackageNode(idealTree, packument.name, oldVersion);
@@ -14314,5 +14319,5 @@ void (async () => {
14314
14319
  await utils.captureException(e);
14315
14320
  }
14316
14321
  })();
14317
- //# debugId=ca4172ba-aeb9-477f-acd0-333975cf37de
14322
+ //# debugId=a6f657d8-6263-4651-bc8b-01702cb07501
14318
14323
  //# sourceMappingURL=cli.js.map