@socketsecurity/cli-with-sentry 1.0.0 → 1.0.2

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 (66) hide show
  1. package/dist/cli.js +618 -887
  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 +1 -61
  6. package/dist/shadow-npm-inject.js.map +1 -1
  7. package/dist/types/cli.d.mts +1 -0
  8. package/dist/types/commands/fix/agent-fix.d.mts +36 -0
  9. package/dist/types/commands/fix/agent-fix.d.mts.map +1 -0
  10. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  11. package/dist/types/commands/fix/get-actual-tree.d.mts +3 -0
  12. package/dist/types/commands/fix/get-actual-tree.d.mts.map +1 -0
  13. package/dist/types/commands/fix/handle-fix.d.mts +2 -1
  14. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  15. package/dist/types/commands/fix/npm-fix.d.mts +2 -10
  16. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  17. package/dist/types/commands/fix/pnpm-fix.d.mts +2 -10
  18. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  19. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +1 -1
  20. package/dist/types/commands/optimize/add-overrides.d.mts.map +1 -1
  21. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +36 -3
  22. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +1 -1
  23. package/dist/types/commands/repository/output-list-repos.d.mts.map +1 -1
  24. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
  25. package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
  26. package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +1 -1
  27. package/dist/types/commands/scan/output-scan-github.d.mts +3 -0
  28. package/dist/types/commands/scan/output-scan-github.d.mts.map +1 -0
  29. package/dist/types/commands/scan/scan-reachability.d.mts.map +1 -1
  30. package/dist/types/commands/scan/suggest-org-slug.d.mts.map +1 -1
  31. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts +2 -0
  32. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts.map +1 -0
  33. package/dist/types/utils/cmd.d.mts +1 -0
  34. package/dist/types/utils/cmd.d.mts.map +1 -1
  35. package/dist/types/utils/coana.d.mts +4 -0
  36. package/dist/types/utils/coana.d.mts.map +1 -0
  37. package/dist/types/utils/config.d.mts +2 -1
  38. package/dist/types/utils/config.d.mts.map +1 -1
  39. package/dist/types/utils/determine-org-slug.d.mts.map +1 -1
  40. package/dist/types/utils/lockfile.d.mts +2 -0
  41. package/dist/types/utils/lockfile.d.mts.map +1 -0
  42. package/dist/types/utils/meow-with-subcommands.d.mts +1 -1
  43. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  44. package/dist/types/utils/package-environment.d.mts +11 -11
  45. package/dist/types/utils/package-environment.d.mts.map +1 -1
  46. package/dist/types/utils/pnpm.d.mts +1 -1
  47. package/dist/types/utils/pnpm.d.mts.map +1 -1
  48. package/dist/types/utils/semver.d.mts.map +1 -1
  49. package/dist/utils.js +160 -30
  50. package/dist/utils.js.map +1 -1
  51. package/dist/vendor.js +8021 -7993
  52. package/external/@coana-tech/cli/cli.mjs +14035 -3820
  53. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +7 -7
  54. package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +12 -8
  55. package/external/@socketsecurity/registry/external/browserslist.js +374 -347
  56. package/external/@socketsecurity/registry/external/cacache.js +6 -6
  57. package/external/@socketsecurity/registry/external/libnpmpack.js +47 -45
  58. package/external/@socketsecurity/registry/external/make-fetch-happen.js +37 -36
  59. package/external/@socketsecurity/registry/external/pacote.js +45 -44
  60. package/external/@socketsecurity/registry/lib/spawn.js +11 -2
  61. package/external/@socketsecurity/registry/manifest.json +2 -2
  62. package/external/blessed-contrib/lib/widget/charts/bar.js +6 -3
  63. package/external/blessed-contrib/lib/widget/charts/line.js +6 -3
  64. package/package.json +31 -31
  65. package/dist/types/commands/fix/run-fix.d.mts +0 -12
  66. package/dist/types/commands/fix/run-fix.d.mts.map +0 -1
@@ -3708,8 +3708,8 @@ function requireBraceExpansion() {
3708
3708
  const pre = m.pre
3709
3709
  const post = m.post.length ? expand(m.post, false) : ['']
3710
3710
  if (m.pre.endsWith('\u0024' /*'$'*/)) {
3711
- for (let k = 0; k < post.length; k++) {
3712
- const expansion = pre + '{' + m.body + '}' + post[k]
3711
+ for (var k = 0; k < post.length; k++) {
3712
+ var expansion = pre + '{' + m.body + '}' + post[k]
3713
3713
  expansions.push(expansion)
3714
3714
  }
3715
3715
  } else {
@@ -3784,13 +3784,13 @@ function requireBraceExpansion() {
3784
3784
  }
3785
3785
  } else {
3786
3786
  N = []
3787
- for (let j = 0; j < n.length; j++) {
3787
+ for (var j = 0; j < n.length; j++) {
3788
3788
  N.push.apply(N, expand(n[j], false))
3789
3789
  }
3790
3790
  }
3791
- for (let j = 0; j < N.length; j++) {
3792
- for (let k = 0; k < post.length; k++) {
3793
- const expansion = pre + N[j] + post[k]
3791
+ for (var j = 0; j < N.length; j++) {
3792
+ for (var k = 0; k < post.length; k++) {
3793
+ var expansion = pre + N[j] + post[k]
3794
3794
  if (!isTop || isSequence || expansion) {
3795
3795
  expansions.push(expansion)
3796
3796
  }
@@ -11629,7 +11629,7 @@ function requireRetry$1() {
11629
11629
  throw new Error('minTimeout is greater than maxTimeout')
11630
11630
  }
11631
11631
  const timeouts = []
11632
- for (let i = 0; i < opts.retries; i++) {
11632
+ for (var i = 0; i < opts.retries; i++) {
11633
11633
  timeouts.push(this.createTimeout(i, opts))
11634
11634
  }
11635
11635
  if (options && options.forever && !timeouts.length) {
@@ -176,7 +176,7 @@ function requireStrings() {
176
176
  function isBlank(str) {
177
177
  for (let i = 0, { length } = str; i < length; i += 1) {
178
178
  const code = str.charCodeAt(i)
179
- // biome-ignore format:
179
+ // biome-ignore format: newlines
180
180
  if (!(
181
181
  // Whitespace characters according to ECMAScript spec:
182
182
  // https://tc39.es/ecma262/#sec-white-space
@@ -229,7 +229,8 @@ function requireStrings() {
229
229
  // Medium Mathematical Space
230
230
  code === 0x3000 ||
231
231
  // Ideographic Space
232
- code === 0xfeff // Byte Order Mark
232
+ code === 0xfeff
233
+ // Byte Order Mark
233
234
  )) {
234
235
  return false;
235
236
  }
@@ -623,7 +624,7 @@ function requireValidate() {
623
624
  // '.', '-' and '_' (period, dash and underscore).
624
625
  for (let i = 0, { length } = key; i < length; i += 1) {
625
626
  const code = key.charCodeAt(i)
626
- // biome-ignore format:
627
+ // biome-ignore format: newlines
627
628
  if (!(code >= 48 && code <= 57 ||
628
629
  // 0-9
629
630
  code >= 65 && code <= 90 ||
@@ -634,7 +635,8 @@ function requireValidate() {
634
635
  // .
635
636
  code === 45 ||
636
637
  // -
637
- code === 95 // _
638
+ code === 95
639
+ // _
638
640
  )) {
639
641
  if (throws) {
640
642
  throw new PurlError(`qualifier "${key}" contains an illegal character`);
@@ -699,7 +701,7 @@ function requireValidate() {
699
701
  // '.', '+' and '-' (period, plus, and dash)
700
702
  for (let i = 0, { length } = type; i < length; i += 1) {
701
703
  const code = type.charCodeAt(i)
702
- // biome-ignore format:
704
+ // biome-ignore format: newlines
703
705
  if (!(code >= 48 && code <= 57 ||
704
706
  // 0-9
705
707
  code >= 65 && code <= 90 ||
@@ -710,7 +712,8 @@ function requireValidate() {
710
712
  // .
711
713
  code === 43 ||
712
714
  // +
713
- code === 45 // -
715
+ code === 45
716
+ // -
714
717
  )) {
715
718
  if (throws) {
716
719
  throw new PurlError(`type "${type}" contains an illegal character`);
@@ -4157,12 +4160,13 @@ function requirePurlType() {
4157
4160
  const { name } = purl
4158
4161
  for (let i = 0, { length } = name; i < length; i += 1) {
4159
4162
  const code = name.charCodeAt(i)
4160
- // biome-ignore format:
4163
+ // biome-ignore format: newlines
4161
4164
  if (!(code >= 48 && code <= 57 ||
4162
4165
  // 0-9
4163
4166
  code >= 97 && code <= 122 ||
4164
4167
  // a-z
4165
- code === 95 // _
4168
+ code === 95
4169
+ // _
4166
4170
  )) {
4167
4171
  if (throws) {
4168
4172
  throw new PurlError('pub "name" component may only contain [a-z0-9_] characters');