socket 1.0.59 → 1.0.60

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/bin/cli.js CHANGED
@@ -12,8 +12,6 @@ const { spawn } = require(
12
12
  path.join(rootPath, 'external/@socketsecurity/registry/lib/spawn.js'),
13
13
  )
14
14
 
15
- const { NODE_COMPILE_CACHE } = constants
16
-
17
15
  process.exitCode = 1
18
16
 
19
17
  spawn(
@@ -39,7 +37,8 @@ spawn(
39
37
  {
40
38
  env: {
41
39
  ...process.env,
42
- ...(NODE_COMPILE_CACHE ? { NODE_COMPILE_CACHE } : undefined),
40
+ // Lazily access constants.processEnv.
41
+ ...constants.processEnv,
43
42
  },
44
43
  stdio: 'inherit',
45
44
  },
package/dist/cli.js CHANGED
@@ -7600,6 +7600,7 @@ async function applyOptimization(pkgEnvDetails, {
7600
7600
  spinner
7601
7601
  });
7602
7602
  if (!result.ok) {
7603
+ spinner.stop();
7603
7604
  return result;
7604
7605
  }
7605
7606
  }
@@ -7678,11 +7679,12 @@ async function handleOptimize({
7678
7679
  agentVersion
7679
7680
  } = pkgEnvDetails;
7680
7681
  if (agent === VLT) {
7681
- return {
7682
+ await outputOptimizeResult({
7682
7683
  ok: false,
7683
7684
  message: 'Unsupported',
7684
7685
  cause: utils.cmdPrefixMessage(CMD_NAME, `${agent} v${agentVersion} does not support overrides. Soon, though ⚡`)
7685
- };
7686
+ }, outputKind);
7687
+ return;
7686
7688
  }
7687
7689
  logger.logger.info(`Optimizing packages for ${agent} v${agentVersion}.\n`);
7688
7690
  await outputOptimizeResult(await applyOptimization(pkgEnvDetails, {
@@ -14210,5 +14212,5 @@ void (async () => {
14210
14212
  await utils.captureException(e);
14211
14213
  }
14212
14214
  })();
14213
- //# debugId=b9685bcd-e040-4012-90f5-54b3bfba5ba0
14215
+ //# debugId=3e924cea-502a-45fa-add8-c7154304d157
14214
14216
  //# sourceMappingURL=cli.js.map