@socketsecurity/cli 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:36b03246:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
915
+ const cliVersion = '0.14.84:15b8c69:1f9b94e1: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'
@@ -4188,7 +4188,7 @@ function safeNpmInstall(options) {
4188
4188
  return spawnPromise
4189
4189
  }
4190
4190
 
4191
- const { NPM: NPM$d } = constants
4191
+ const { NPM: NPM$d, PNPM: PNPM$a } = constants
4192
4192
  function runAgentInstall(pkgEnvDetails, options) {
4193
4193
  const { agent, agentExecPath } = pkgEnvDetails
4194
4194
  // All package managers support the "install" command.
@@ -4206,6 +4206,8 @@ function runAgentInstall(pkgEnvDetails, options) {
4206
4206
  __proto__: null,
4207
4207
  ...options
4208
4208
  }
4209
+ const skipNodeHardenFlags =
4210
+ pkgEnvDetails.agent === PNPM$a && pkgEnvDetails.agentVersion.major < 11
4209
4211
  return spawn.spawn(agentExecPath, ['install', ...args], {
4210
4212
  spinner,
4211
4213
  stdio: 'inherit',
@@ -4213,8 +4215,10 @@ function runAgentInstall(pkgEnvDetails, options) {
4213
4215
  env: {
4214
4216
  ...process.env,
4215
4217
  NODE_OPTIONS: cmdFlagsToString([
4216
- // Lazily access constants.nodeHardenFlags.
4217
- ...constants.nodeHardenFlags,
4218
+ ...(skipNodeHardenFlags
4219
+ ? []
4220
+ : // Lazily access constants.nodeHardenFlags.
4221
+ constants.nodeHardenFlags),
4218
4222
  // Lazily access constants.nodeNoWarningsFlags.
4219
4223
  ...constants.nodeNoWarningsFlags
4220
4224
  ]),
@@ -11300,7 +11304,7 @@ void (async () => {
11300
11304
  await vendor.updater({
11301
11305
  name: SOCKET_CLI_BIN_NAME,
11302
11306
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
11303
- version: '0.14.82',
11307
+ version: '0.14.84',
11304
11308
  ttl: 86_400_000 /* 24 hours in milliseconds */
11305
11309
  })
11306
11310
  try {
@@ -11368,5 +11372,5 @@ void (async () => {
11368
11372
  await shadowNpmInject.captureException(e)
11369
11373
  }
11370
11374
  })()
11371
- //# debugId=8aa376c6-777a-47e0-a9d1-3ddf983b745d
11375
+ //# debugId=42e1277a-9cf1-4b82-8e9e-c6c083a2dab
11372
11376
  //# sourceMappingURL=cli.js.map