@socketsecurity/cli-with-sentry 1.0.107 → 1.0.109

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
@@ -17,6 +17,7 @@
17
17
  constants.execPath,
18
18
  [
19
19
  ...constants.nodeNoWarningsFlags,
20
+ ...constants.nodeDebugFlags,
20
21
  ...constants.nodeHardenFlags,
21
22
  ...constants.nodeMemoryFlags,
22
23
  ...(constants.ENV.INLINED_SOCKET_CLI_SENTRY_BUILD
package/dist/cli.js CHANGED
@@ -5903,6 +5903,14 @@ async function runCdxgen(argvObj) {
5903
5903
  __proto__: null,
5904
5904
  ...argvObj
5905
5905
  };
5906
+ const shadowOpts = {
5907
+ ipc: {
5908
+ [constants.SOCKET_CLI_SHADOW_ACCEPT_RISKS]: true,
5909
+ [constants.SOCKET_CLI_SHADOW_API_TOKEN]: constants.SOCKET_PUBLIC_API_TOKEN,
5910
+ [constants.SOCKET_CLI_SHADOW_SILENT]: true
5911
+ },
5912
+ stdio: 'inherit'
5913
+ };
5906
5914
  if (argvMutable['type'] !== YARN && nodejsPlatformTypes.has(argvMutable['type']) && fs$1.existsSync(`./${YARN_LOCK}`)) {
5907
5915
  if (fs$1.existsSync(`./${PACKAGE_LOCK_JSON}`)) {
5908
5916
  argvMutable['type'] = 'npm';
@@ -5912,23 +5920,14 @@ async function runCdxgen(argvObj) {
5912
5920
  try {
5913
5921
  const {
5914
5922
  spawnPromise: synpPromise
5915
- } = await shadowNpmBin('npx', ['--yes', `synp@${constants.ENV.INLINED_SOCKET_CLI_SYNP_VERSION}`, '--source-file', `./${YARN_LOCK}`], {
5916
- apiToken: constants.SOCKET_PUBLIC_API_TOKEN,
5917
- stdio: 'inherit'
5918
- });
5923
+ } = await shadowNpmBin('npx', ['--yes', `synp@${constants.ENV.INLINED_SOCKET_CLI_SYNP_VERSION}`, '--source-file', `./${YARN_LOCK}`], shadowOpts);
5919
5924
  await synpPromise;
5920
5925
  argvMutable['type'] = 'npm';
5921
5926
  cleanupPackageLock = true;
5922
5927
  } catch {}
5923
5928
  }
5924
5929
  }
5925
- const shadowResult = await shadowNpmBin('npx', ['--yes', `@cyclonedx/cdxgen@${constants.ENV.INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION}`, ...argvToArray(argvMutable)], {
5926
- apiToken: constants.SOCKET_PUBLIC_API_TOKEN,
5927
- env: {
5928
- [constants.SOCKET_CLI_ACCEPT_RISKS]: '1'
5929
- },
5930
- stdio: 'inherit'
5931
- });
5930
+ const shadowResult = await shadowNpmBin('npx', ['--yes', `@cyclonedx/cdxgen@${constants.ENV.INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION}`, ...argvToArray(argvMutable)], shadowOpts);
5932
5931
  shadowResult.spawnPromise.process.on('exit', () => {
5933
5932
  if (cleanupPackageLock) {
5934
5933
  try {
@@ -15349,5 +15348,5 @@ void (async () => {
15349
15348
  await utils.captureException(e);
15350
15349
  }
15351
15350
  })();
15352
- //# debugId=9f27a86d-6c29-45fa-92dc-635a8889448f
15351
+ //# debugId=1c929b2a-d338-4d0d-ba36-1722cd88980
15353
15352
  //# sourceMappingURL=cli.js.map