@socketsecurity/cli-with-sentry 1.0.20 → 1.0.22

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.
Files changed (64) hide show
  1. package/dist/cli.js +349 -326
  2. package/dist/cli.js.map +1 -1
  3. package/dist/constants.js +4 -4
  4. package/dist/constants.js.map +1 -1
  5. package/dist/shadow-npm-inject.js +64 -7
  6. package/dist/shadow-npm-inject.js.map +1 -1
  7. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  8. package/dist/types/commands/fix/agent-fix.d.mts +3 -5
  9. package/dist/types/commands/fix/agent-fix.d.mts.map +1 -1
  10. package/dist/types/commands/fix/fix-branch-helpers.d.mts +3 -4
  11. package/dist/types/commands/fix/fix-branch-helpers.d.mts.map +1 -1
  12. package/dist/types/commands/fix/fix-env-helpers.d.mts +9 -9
  13. package/dist/types/commands/fix/fix-env-helpers.d.mts.map +1 -1
  14. package/dist/types/commands/fix/git.d.mts +1 -0
  15. package/dist/types/commands/fix/git.d.mts.map +1 -1
  16. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  17. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  18. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  19. package/dist/types/commands/fix/{open-pr.d.mts → pull-request.d.mts} +11 -6
  20. package/dist/types/commands/fix/pull-request.d.mts.map +1 -0
  21. package/dist/types/commands/fix/shared.d.mts +1 -2
  22. package/dist/types/commands/fix/shared.d.mts.map +1 -1
  23. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
  24. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +1 -1
  25. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +1 -1
  26. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +1 -1
  27. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +1 -1
  28. package/dist/types/commands/optimize/update-lockfile.d.mts.map +1 -1
  29. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +1 -1
  30. package/dist/types/commands/scan/fetch-report-data.d.mts.map +1 -1
  31. package/dist/types/commands/scan/fetch-scan.d.mts.map +1 -1
  32. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
  33. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
  34. package/dist/types/utils/alerts-map.d.mts +0 -1
  35. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  36. package/dist/types/utils/api.d.mts.map +1 -1
  37. package/dist/types/utils/npm-config.d.mts +14 -0
  38. package/dist/types/utils/npm-config.d.mts.map +1 -0
  39. package/dist/types/utils/npm-paths.d.mts +2 -2
  40. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  41. package/dist/types/utils/package-environment.d.mts.map +1 -1
  42. package/dist/types/utils/path-resolve.d.mts.map +1 -1
  43. package/dist/types/utils/socket-package-alert.d.mts +1 -2
  44. package/dist/types/utils/socket-package-alert.d.mts.map +1 -1
  45. package/dist/types/utils/socketjson.d.mts.map +1 -1
  46. package/dist/utils.js +148 -70
  47. package/dist/utils.js.map +1 -1
  48. package/dist/vendor.js +66962 -66962
  49. package/external/@coana-tech/cli/cli.mjs +60278 -55993
  50. package/external/@socketsecurity/registry/external/@inquirer/confirm.js +1 -1
  51. package/external/@socketsecurity/registry/external/@inquirer/input.js +10 -2
  52. package/external/@socketsecurity/registry/external/@inquirer/password.js +1 -1
  53. package/external/@socketsecurity/registry/external/@inquirer/search.js +1 -1
  54. package/external/@socketsecurity/registry/external/@inquirer/select.js +1 -1
  55. package/external/@socketsecurity/registry/external/browserslist.js +572 -570
  56. package/external/@socketsecurity/registry/external/debug.js +1163 -0
  57. package/external/@socketsecurity/registry/lib/constants/env.js +9 -4
  58. package/external/@socketsecurity/registry/lib/debug.js +139 -47
  59. package/external/@socketsecurity/registry/lib/logger.js +2 -2
  60. package/external/@socketsecurity/registry/lib/packages.js +1 -2
  61. package/package.json +18 -18
  62. package/dist/types/commands/fix/open-pr.d.mts.map +0 -1
  63. package/dist/types/shadow/npm/proc-log/index.d.mts +0 -3
  64. package/dist/types/shadow/npm/proc-log/index.d.mts.map +0 -1
@@ -3139,7 +3139,7 @@ function getCallSites() {
3139
3139
  result = callSitesWithoutCurrent
3140
3140
  return callSitesWithoutCurrent
3141
3141
  }
3142
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions, unicorn/error-message
3142
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
3143
3143
  new Error().stack
3144
3144
  } catch {
3145
3145
  // An error will occur if the Node flag --frozen-intrinsics is used.
@@ -3140,7 +3140,7 @@ function getCallSites() {
3140
3140
  result = callSitesWithoutCurrent
3141
3141
  return callSitesWithoutCurrent
3142
3142
  }
3143
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions, unicorn/error-message
3143
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
3144
3144
  new Error().stack
3145
3145
  } catch {
3146
3146
  // An error will occur if the Node flag --frozen-intrinsics is used.
@@ -3271,7 +3271,7 @@ const inputTheme = {
3271
3271
  validationFailureMode: 'keep'
3272
3272
  }
3273
3273
  const index = createPrompt((config, done) => {
3274
- const { required, validate = () => true } = config
3274
+ const { required, validate = () => true, prefill = 'tab' } = config
3275
3275
  const theme = makeTheme(inputTheme, config.theme)
3276
3276
  const [status, setStatus] = useState('idle')
3277
3277
  const [defaultValue = '', setDefaultValue] = useState(config.default)
@@ -3320,6 +3320,14 @@ const index = createPrompt((config, done) => {
3320
3320
  setError(undefined)
3321
3321
  }
3322
3322
  })
3323
+ // If prefill is set to 'editable' cut out the default value and paste into current state and the user's cli buffer
3324
+ // They can edit the value immediately instead of needing to press 'tab'
3325
+ useEffect(rl => {
3326
+ if (prefill === 'editable' && defaultValue) {
3327
+ rl.write(defaultValue)
3328
+ setValue(defaultValue)
3329
+ }
3330
+ }, [])
3323
3331
  const message = theme.style.message(config.message, status)
3324
3332
  let formattedValue = value
3325
3333
  if (typeof config.transformer === 'function') {
@@ -3139,7 +3139,7 @@ function getCallSites() {
3139
3139
  result = callSitesWithoutCurrent
3140
3140
  return callSitesWithoutCurrent
3141
3141
  }
3142
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions, unicorn/error-message
3142
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
3143
3143
  new Error().stack
3144
3144
  } catch {
3145
3145
  // An error will occur if the Node flag --frozen-intrinsics is used.
@@ -3321,7 +3321,7 @@ function getCallSites() {
3321
3321
  result = callSitesWithoutCurrent
3322
3322
  return callSitesWithoutCurrent
3323
3323
  }
3324
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions, unicorn/error-message
3324
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
3325
3325
  new Error().stack
3326
3326
  } catch {
3327
3327
  // An error will occur if the Node flag --frozen-intrinsics is used.
@@ -3337,7 +3337,7 @@ function getCallSites() {
3337
3337
  result = callSitesWithoutCurrent
3338
3338
  return callSitesWithoutCurrent
3339
3339
  }
3340
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions, unicorn/error-message
3340
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
3341
3341
  new Error().stack
3342
3342
  } catch {
3343
3343
  // An error will occur if the Node flag --frozen-intrinsics is used.