socket 1.0.66 → 1.0.68

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
@@ -4139,7 +4139,8 @@ async function install$1(pkgEnvDetails, options) {
4139
4139
  __proto__: null,
4140
4140
  ...options
4141
4141
  };
4142
- const args = ['--ignore-scripts', '--no-audit', '--no-fund', '--no-progress', '--no-save', '--silent', ...(extraArgs ?? [])];
4142
+ const useDebug = debug.isDebug('stdio');
4143
+ const args = ['--ignore-scripts', '--no-audit', '--no-fund', '--no-progress', ...(useDebug ? [] : ['--silent']), ...(extraArgs ?? [])];
4143
4144
  const quotedCmd = `\`${pkgEnvDetails.agent} install ${args.join(' ')}\``;
4144
4145
  debug.debugFn('stdio', `spawn: ${quotedCmd}`);
4145
4146
  const isSpinning = spinner?.isSpinning;
@@ -4149,7 +4150,7 @@ async function install$1(pkgEnvDetails, options) {
4149
4150
  await utils.runAgentInstall(pkgEnvDetails, {
4150
4151
  args,
4151
4152
  spinner,
4152
- stdio: debug.isDebug('stdio') ? 'inherit' : 'ignore'
4153
+ stdio: useDebug ? 'inherit' : 'ignore'
4153
4154
  });
4154
4155
  } catch (e) {
4155
4156
  debug.debugFn('error', `caught: ${quotedCmd} failed`);
@@ -4746,8 +4747,7 @@ async function run$H(argv, importMeta, {
4746
4747
  const orgSlugCResult = await utils.getDefaultOrgSlug();
4747
4748
  if (!orgSlugCResult.ok) {
4748
4749
  process.exitCode = orgSlugCResult.code ?? 1;
4749
- // Always assume json mode.
4750
- // logger.log(serializeResultJson(orgSlugCResult))
4750
+ logger.logger.fail('Unable to resolve a Socket account organization.\nEnsure a Socket API token is specified for the organization using the SOCKET_CLI_API_TOKEN environment variable.');
4751
4751
  return;
4752
4752
  }
4753
4753
  const orgSlug = orgSlugCResult.data;
@@ -14522,5 +14522,5 @@ void (async () => {
14522
14522
  await utils.captureException(e);
14523
14523
  }
14524
14524
  })();
14525
- //# debugId=5e02c3b4-98c2-48aa-856d-526ed5a48fa7
14525
+ //# debugId=7d509d3a-cd9a-4499-b6b6-88b32a2ff18
14526
14526
  //# sourceMappingURL=cli.js.map