@socketsecurity/cli-with-sentry 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:a4cce220:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
915
+ const cliVersion = '0.14.85:f285d45:d2e4291f: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
  ]),
@@ -4228,7 +4232,7 @@ function runAgentInstall(pkgEnvDetails, options) {
4228
4232
  }
4229
4233
 
4230
4234
  const { CI, NPM: NPM$c, OVERRIDES: OVERRIDES$2, PNPM: PNPM$9 } = constants
4231
- async function install(pkgEnvDetails, options) {
4235
+ async function install(pkgEnvDetails, arb, options) {
4232
4236
  const { spinner } = {
4233
4237
  __proto__: null,
4234
4238
  ...options
@@ -4238,6 +4242,8 @@ async function install(pkgEnvDetails, options) {
4238
4242
  spinner,
4239
4243
  stdio: debug.isDebug() ? 'inherit' : 'ignore'
4240
4244
  })
4245
+ arb.actualTree = null
4246
+ await arb.loadActual()
4241
4247
  }
4242
4248
  async function pnpmFix(
4243
4249
  pkgEnvDetails,
@@ -4380,7 +4386,7 @@ async function pnpmFix(
4380
4386
  saved = true
4381
4387
 
4382
4388
  // eslint-disable-next-line no-await-in-loop
4383
- await install(pkgEnvDetails, {
4389
+ await install(pkgEnvDetails, arb, {
4384
4390
  spinner
4385
4391
  })
4386
4392
  installed = true
@@ -4417,12 +4423,9 @@ async function pnpmFix(
4417
4423
  }
4418
4424
  if (installed) {
4419
4425
  // eslint-disable-next-line no-await-in-loop
4420
- await install(pkgEnvDetails, {
4426
+ await install(pkgEnvDetails, arb, {
4421
4427
  spinner
4422
4428
  })
4423
- arb.actualTree = null
4424
- // eslint-disable-next-line no-await-in-loop
4425
- await arb.loadActual()
4426
4429
  }
4427
4430
  spinner?.failAndStop(`Failed to fix ${oldSpec}`)
4428
4431
  }
@@ -11304,7 +11307,7 @@ void (async () => {
11304
11307
  await vendor.updater({
11305
11308
  name: SOCKET_CLI_BIN_NAME,
11306
11309
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
11307
- version: '0.14.83',
11310
+ version: '0.14.85',
11308
11311
  ttl: 86_400_000 /* 24 hours in milliseconds */
11309
11312
  })
11310
11313
  try {
@@ -11372,5 +11375,5 @@ void (async () => {
11372
11375
  await shadowNpmInject.captureException(e)
11373
11376
  }
11374
11377
  })()
11375
- //# debugId=ef404234-2980-4e9b-bd43-eb0f35d0d941
11378
+ //# debugId=4588b62f-01ad-45c5-b794-41f01c684e1f
11376
11379
  //# sourceMappingURL=cli.js.map