@socketsecurity/cli 0.14.83 → 0.14.85

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.83:e27c5f8:6fea7848:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
915
+ const cliVersion = '0.14.85:f285d45:b535f5e3: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
  ]),
@@ -4224,7 +4228,7 @@ function runAgentInstall(pkgEnvDetails, options) {
4224
4228
  }
4225
4229
 
4226
4230
  const { CI, NPM: NPM$c, OVERRIDES: OVERRIDES$2, PNPM: PNPM$9 } = constants
4227
- async function install(pkgEnvDetails, options) {
4231
+ async function install(pkgEnvDetails, arb, options) {
4228
4232
  const { spinner } = {
4229
4233
  __proto__: null,
4230
4234
  ...options
@@ -4234,6 +4238,8 @@ async function install(pkgEnvDetails, options) {
4234
4238
  spinner,
4235
4239
  stdio: debug.isDebug() ? 'inherit' : 'ignore'
4236
4240
  })
4241
+ arb.actualTree = null
4242
+ await arb.loadActual()
4237
4243
  }
4238
4244
  async function pnpmFix(
4239
4245
  pkgEnvDetails,
@@ -4376,7 +4382,7 @@ async function pnpmFix(
4376
4382
  saved = true
4377
4383
 
4378
4384
  // eslint-disable-next-line no-await-in-loop
4379
- await install(pkgEnvDetails, {
4385
+ await install(pkgEnvDetails, arb, {
4380
4386
  spinner
4381
4387
  })
4382
4388
  installed = true
@@ -4413,12 +4419,9 @@ async function pnpmFix(
4413
4419
  }
4414
4420
  if (installed) {
4415
4421
  // eslint-disable-next-line no-await-in-loop
4416
- await install(pkgEnvDetails, {
4422
+ await install(pkgEnvDetails, arb, {
4417
4423
  spinner
4418
4424
  })
4419
- arb.actualTree = null
4420
- // eslint-disable-next-line no-await-in-loop
4421
- await arb.loadActual()
4422
4425
  }
4423
4426
  spinner?.failAndStop(`Failed to fix ${oldSpec}`)
4424
4427
  }
@@ -11300,7 +11303,7 @@ void (async () => {
11300
11303
  await vendor.updater({
11301
11304
  name: SOCKET_CLI_BIN_NAME,
11302
11305
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
11303
- version: '0.14.83',
11306
+ version: '0.14.85',
11304
11307
  ttl: 86_400_000 /* 24 hours in milliseconds */
11305
11308
  })
11306
11309
  try {
@@ -11368,5 +11371,5 @@ void (async () => {
11368
11371
  await shadowNpmInject.captureException(e)
11369
11372
  }
11370
11373
  })()
11371
- //# debugId=dd5db422-0bdf-466d-805b-108c06b66029
11374
+ //# debugId=1e430ef2-95c3-4150-868c-284dc60ae3f4
11372
11375
  //# sourceMappingURL=cli.js.map