@socketsecurity/cli-with-sentry 0.14.82 → 0.14.84

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.
@@ -912,7 +912,7 @@ function emitBanner(name) {
912
912
  logger.logger.error(getAsciiHeader(name))
913
913
  }
914
914
  function getAsciiHeader(command) {
915
- const cliVersion = '0.14.82:84c0429:963e2f6e:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
915
+ const cliVersion = '0.14.84:15b8c69:37077c67:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
916
916
  const nodeVersion = process$1.version
917
917
  const apiToken = shadowNpmInject.getDefaultToken()
918
918
  const shownToken = apiToken ? getLastFiveOfApiToken(apiToken) : 'no'
@@ -1334,7 +1334,7 @@ const {
1334
1334
  NPM: NPM$g,
1335
1335
  NPX: NPX$3,
1336
1336
  PACKAGE_LOCK_JSON,
1337
- PNPM: PNPM$a,
1337
+ PNPM: PNPM$b,
1338
1338
  YARN: YARN$1,
1339
1339
  YARN_LOCK
1340
1340
  } = constants
@@ -1343,7 +1343,7 @@ const nodejsPlatformTypes = new Set([
1343
1343
  'js',
1344
1344
  'nodejs',
1345
1345
  NPM$g,
1346
- PNPM$a,
1346
+ PNPM$b,
1347
1347
  'ts',
1348
1348
  'tsx',
1349
1349
  'typescript'
@@ -4192,7 +4192,7 @@ function safeNpmInstall(options) {
4192
4192
  return spawnPromise
4193
4193
  }
4194
4194
 
4195
- const { NPM: NPM$d } = constants
4195
+ const { NPM: NPM$d, PNPM: PNPM$a } = constants
4196
4196
  function runAgentInstall(pkgEnvDetails, options) {
4197
4197
  const { agent, agentExecPath } = pkgEnvDetails
4198
4198
  // All package managers support the "install" command.
@@ -4210,6 +4210,8 @@ function runAgentInstall(pkgEnvDetails, options) {
4210
4210
  __proto__: null,
4211
4211
  ...options
4212
4212
  }
4213
+ const skipNodeHardenFlags =
4214
+ pkgEnvDetails.agent === PNPM$a && pkgEnvDetails.agentVersion.major < 11
4213
4215
  return spawn.spawn(agentExecPath, ['install', ...args], {
4214
4216
  spinner,
4215
4217
  stdio: 'inherit',
@@ -4217,8 +4219,10 @@ function runAgentInstall(pkgEnvDetails, options) {
4217
4219
  env: {
4218
4220
  ...process.env,
4219
4221
  NODE_OPTIONS: cmdFlagsToString([
4220
- // Lazily access constants.nodeHardenFlags.
4221
- ...constants.nodeHardenFlags,
4222
+ ...(skipNodeHardenFlags
4223
+ ? []
4224
+ : // Lazily access constants.nodeHardenFlags.
4225
+ constants.nodeHardenFlags),
4222
4226
  // Lazily access constants.nodeNoWarningsFlags.
4223
4227
  ...constants.nodeNoWarningsFlags
4224
4228
  ]),
@@ -11304,7 +11308,7 @@ void (async () => {
11304
11308
  await vendor.updater({
11305
11309
  name: SOCKET_CLI_BIN_NAME,
11306
11310
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
11307
- version: '0.14.82',
11311
+ version: '0.14.84',
11308
11312
  ttl: 86_400_000 /* 24 hours in milliseconds */
11309
11313
  })
11310
11314
  try {
@@ -11372,5 +11376,5 @@ void (async () => {
11372
11376
  await shadowNpmInject.captureException(e)
11373
11377
  }
11374
11378
  })()
11375
- //# debugId=13c56b6a-eba8-4e13-a8e9-5e9fda6254ca
11379
+ //# debugId=831b688d-1508-4066-a22d-2e166b1f82d1
11376
11380
  //# sourceMappingURL=cli.js.map