@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
@@ -3727,8 +3727,8 @@ function requireBraceExpansion() {
3727
3727
  const pre = m.pre
3728
3728
  const post = m.post.length ? expand(m.post, false) : ['']
3729
3729
  if (m.pre.endsWith('\u0024' /*'$'*/)) {
3730
- for (let k = 0; k < post.length; k++) {
3731
- const expansion = pre + '{' + m.body + '}' + post[k]
3730
+ for (var k = 0; k < post.length; k++) {
3731
+ var expansion = pre + '{' + m.body + '}' + post[k]
3732
3732
  expansions.push(expansion)
3733
3733
  }
3734
3734
  } else {
@@ -3803,13 +3803,13 @@ function requireBraceExpansion() {
3803
3803
  }
3804
3804
  } else {
3805
3805
  N = []
3806
- for (let j = 0; j < n.length; j++) {
3806
+ for (var j = 0; j < n.length; j++) {
3807
3807
  N.push.apply(N, expand(n[j], false))
3808
3808
  }
3809
3809
  }
3810
- for (let j = 0; j < N.length; j++) {
3811
- for (let k = 0; k < post.length; k++) {
3812
- const expansion = pre + N[j] + post[k]
3810
+ for (var j = 0; j < N.length; j++) {
3811
+ for (var k = 0; k < post.length; k++) {
3812
+ var expansion = pre + N[j] + post[k]
3813
3813
  if (!isTop || isSequence || expansion) {
3814
3814
  expansions.push(expansion)
3815
3815
  }
@@ -11648,7 +11648,7 @@ function requireRetry$1() {
11648
11648
  throw new Error('minTimeout is greater than maxTimeout')
11649
11649
  }
11650
11650
  const timeouts = []
11651
- for (let i = 0; i < opts.retries; i++) {
11651
+ for (var i = 0; i < opts.retries; i++) {
11652
11652
  timeouts.push(this.createTimeout(i, opts))
11653
11653
  }
11654
11654
  if (options && options.forever && !timeouts.length) {
@@ -28454,7 +28454,7 @@ function requireYallist() {
28454
28454
  }
28455
28455
  }
28456
28456
  Yallist.prototype.get = function (n) {
28457
- for (let i = 0, walker = this.head; walker !== null && i < n; i++) {
28457
+ for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
28458
28458
  // abort out of the list early if we hit a cycle
28459
28459
  walker = walker.next
28460
28460
  }
@@ -28463,7 +28463,7 @@ function requireYallist() {
28463
28463
  }
28464
28464
  }
28465
28465
  Yallist.prototype.getReverse = function (n) {
28466
- for (let i = 0, walker = this.tail; walker !== null && i < n; i++) {
28466
+ for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
28467
28467
  // abort out of the list early if we hit a cycle
28468
28468
  walker = walker.prev
28469
28469
  }
@@ -28558,7 +28558,7 @@ function requireYallist() {
28558
28558
  if (to > this.length) {
28559
28559
  to = this.length
28560
28560
  }
28561
- for (let i = 0, walker = this.head; walker !== null && i < from; i++) {
28561
+ for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
28562
28562
  walker = walker.next
28563
28563
  }
28564
28564
  for (; walker !== null && i < to; i++, walker = walker.next) {
@@ -28586,7 +28586,7 @@ function requireYallist() {
28586
28586
  to = this.length
28587
28587
  }
28588
28588
  for (
28589
- let i = this.length, walker = this.tail;
28589
+ var i = this.length, walker = this.tail;
28590
28590
  walker !== null && i > to;
28591
28591
  i--
28592
28592
  ) {
@@ -28604,11 +28604,11 @@ function requireYallist() {
28604
28604
  if (start < 0) {
28605
28605
  start = this.length + start
28606
28606
  }
28607
- for (let i = 0, walker = this.head; walker !== null && i < start; i++) {
28607
+ for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
28608
28608
  walker = walker.next
28609
28609
  }
28610
28610
  const ret = []
28611
- for (let i = 0; walker && i < deleteCount; i++) {
28611
+ for (var i = 0; walker && i < deleteCount; i++) {
28612
28612
  ret.push(walker.value)
28613
28613
  walker = this.removeNode(walker)
28614
28614
  }
@@ -28618,7 +28618,7 @@ function requireYallist() {
28618
28618
  if (walker !== this.head && walker !== this.tail) {
28619
28619
  walker = walker.prev
28620
28620
  }
28621
- for (let i = 0; i < nodes.length; i++) {
28621
+ for (var i = 0; i < nodes.length; i++) {
28622
28622
  walker = insert(this, walker, nodes[i])
28623
28623
  }
28624
28624
  return ret
@@ -37022,7 +37022,7 @@ function requireUtf32() {
37022
37022
  dst[offset++] = high >> 8
37023
37023
 
37024
37024
  // Low surrogate is written below.
37025
- let codepoint = 0xdc00 | (codepoint & 0x3ff)
37025
+ var codepoint = 0xdc00 | (codepoint & 0x3ff)
37026
37026
  }
37027
37027
 
37028
37028
  // Write BMP char or low surrogate.
@@ -37469,7 +37469,7 @@ function requireUtf7() {
37469
37469
  // "+-" -> "+"
37470
37470
  res += '+'
37471
37471
  } else {
37472
- let b64str =
37472
+ var b64str =
37473
37473
  base64Accum + this.iconv.decode(buf.slice(lastI, i), 'ascii')
37474
37474
  res += this.iconv.decode(Buffer.from(b64str, 'base64'), 'utf16-be')
37475
37475
  }
@@ -37486,7 +37486,7 @@ function requireUtf7() {
37486
37486
  if (!inBase64) {
37487
37487
  res += this.iconv.decode(buf.slice(lastI), 'ascii') // Write direct chars.
37488
37488
  } else {
37489
- let b64str = base64Accum + this.iconv.decode(buf.slice(lastI), 'ascii')
37489
+ var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), 'ascii')
37490
37490
  const canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
37491
37491
  base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future.
37492
37492
  b64str = b64str.slice(0, canBeDecoded)
@@ -37648,7 +37648,7 @@ function requireUtf7() {
37648
37648
  // "&-" -> "&"
37649
37649
  res += '&'
37650
37650
  } else {
37651
- let b64str =
37651
+ var b64str =
37652
37652
  base64Accum +
37653
37653
  this.iconv.decode(buf.slice(lastI, i), 'ascii').replace(/,/g, '/')
37654
37654
  res += this.iconv.decode(Buffer.from(b64str, 'base64'), 'utf16-be')
@@ -37666,7 +37666,7 @@ function requireUtf7() {
37666
37666
  if (!inBase64) {
37667
37667
  res += this.iconv.decode(buf.slice(lastI), 'ascii') // Write direct chars.
37668
37668
  } else {
37669
- let b64str =
37669
+ var b64str =
37670
37670
  base64Accum +
37671
37671
  this.iconv.decode(buf.slice(lastI), 'ascii').replace(/,/g, '/')
37672
37672
  const canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
@@ -37725,7 +37725,7 @@ function requireSbcsCodec() {
37725
37725
  }
37726
37726
  if (codecOptions.chars.length === 128) {
37727
37727
  let asciiString = ''
37728
- for (let i = 0; i < 128; i++) {
37728
+ for (var i = 0; i < 128; i++) {
37729
37729
  asciiString += String.fromCharCode(i)
37730
37730
  }
37731
37731
  codecOptions.chars = asciiString + codecOptions.chars
@@ -37737,7 +37737,7 @@ function requireSbcsCodec() {
37737
37737
  65536,
37738
37738
  iconv.defaultCharSingleByte.charCodeAt(0)
37739
37739
  )
37740
- for (let i = 0; i < codecOptions.chars.length; i++) {
37740
+ for (var i = 0; i < codecOptions.chars.length; i++) {
37741
37741
  encodeBuf[codecOptions.chars.charCodeAt(i)] = i
37742
37742
  }
37743
37743
  this.encodeBuf = encodeBuf
@@ -38530,7 +38530,7 @@ function requireDbcsCodec() {
38530
38530
  this.decodeTableSeq = []
38531
38531
 
38532
38532
  // Actual mapping tables consist of chunks. Use them to fill up decode tables.
38533
- for (let i = 0; i < mappingTable.length; i++) {
38533
+ for (var i = 0; i < mappingTable.length; i++) {
38534
38534
  this._addDecodeChunk(mappingTable[i])
38535
38535
  }
38536
38536
 
@@ -38546,9 +38546,9 @@ function requireDbcsCodec() {
38546
38546
 
38547
38547
  // Fill out the tree
38548
38548
  const firstByteNode = this.decodeTables[0]
38549
- for (let i = 0x81; i <= 0xfe; i++) {
38549
+ for (var i = 0x81; i <= 0xfe; i++) {
38550
38550
  const secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]]
38551
- for (let j = 0x30; j <= 0x39; j++) {
38551
+ for (var j = 0x30; j <= 0x39; j++) {
38552
38552
  if (secondByteNode[j] === UNASSIGNED) {
38553
38553
  secondByteNode[j] = NODE_START - commonThirdByteNodeIdx
38554
38554
  } else if (secondByteNode[j] > NODE_START) {
@@ -38674,7 +38674,7 @@ function requireDbcsCodec() {
38674
38674
  const part = chunk[k]
38675
38675
  if (typeof part === 'string') {
38676
38676
  // String, write as-is.
38677
- for (let l = 0; l < part.length; ) {
38677
+ for (var l = 0; l < part.length; ) {
38678
38678
  const code = part.charCodeAt(l++)
38679
38679
  if (0xd800 <= code && code < 0xdc00) {
38680
38680
  // Decode surrogate
@@ -38707,7 +38707,7 @@ function requireDbcsCodec() {
38707
38707
  } else if (typeof part === 'number') {
38708
38708
  // Integer, meaning increasing sequence starting with prev character.
38709
38709
  let charCode = writeTable[curAddr - 1] + 1
38710
- for (let l = 0; l < part; l++) {
38710
+ for (var l = 0; l < part; l++) {
38711
38711
  writeTable[curAddr++] = charCode++
38712
38712
  }
38713
38713
  } else {
@@ -38849,9 +38849,9 @@ function requireDbcsCodec() {
38849
38849
  if (i == str.length) {
38850
38850
  break
38851
38851
  }
38852
- let uCode = str.charCodeAt(i++)
38852
+ var uCode = str.charCodeAt(i++)
38853
38853
  } else {
38854
- let uCode = nextChar
38854
+ var uCode = nextChar
38855
38855
  nextChar = -1
38856
38856
  }
38857
38857
 
@@ -38924,7 +38924,7 @@ function requireDbcsCodec() {
38924
38924
  // Use GB18030 algorithm to find character(s) to write.
38925
38925
  const idx = findIdx(this.gb18030.uChars, uCode)
38926
38926
  if (idx != -1) {
38927
- let dbcsCode =
38927
+ dbcsCode =
38928
38928
  this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx])
38929
38929
  newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600)
38930
38930
  dbcsCode = dbcsCode % 12600
@@ -38969,9 +38969,10 @@ function requireDbcsCodec() {
38969
38969
 
38970
38970
  let newBuf = Buffer.alloc(10),
38971
38971
  j = 0
38972
+ let dbcsCode
38972
38973
  if (this.seqObj) {
38973
38974
  // We're in the sequence.
38974
- const dbcsCode = this.seqObj[DEF_CHAR]
38975
+ dbcsCode = this.seqObj[DEF_CHAR]
38975
38976
  if (dbcsCode !== undefined) {
38976
38977
  // Write beginning of the sequence.
38977
38978
  if (dbcsCode < 0x100) {
@@ -39015,7 +39016,7 @@ function requireDbcsCodec() {
39015
39016
  seqStart = -this.prevBytes.length,
39016
39017
  // idx of the start of current parsed sequence.
39017
39018
  uCode
39018
- for (let i = 0, j = 0; i < buf.length; i++) {
39019
+ for (var i = 0, j = 0; i < buf.length; i++) {
39019
39020
  const curByte = i >= 0 ? buf[i] : prevBytes[i + prevOffset]
39020
39021
 
39021
39022
  // Lookup in current trie node.
@@ -39028,13 +39029,13 @@ function requireDbcsCodec() {
39028
39029
  i = seqStart // Skip one byte ('i' will be incremented by the for loop) and try to parse again.
39029
39030
  } else if (uCode === GB18030_CODE) {
39030
39031
  if (i >= 3) {
39031
- const ptr =
39032
+ var ptr =
39032
39033
  (buf[i - 3] - 0x81) * 12600 +
39033
39034
  (buf[i - 2] - 0x30) * 1260 +
39034
39035
  (buf[i - 1] - 0x81) * 10 +
39035
39036
  (curByte - 0x30)
39036
39037
  } else {
39037
- const ptr =
39038
+ var ptr =
39038
39039
  (prevBytes[i - 3 + prevOffset] - 0x81) * 12600 +
39039
39040
  ((i - 2 >= 0 ? buf[i - 2] : prevBytes[i - 2 + prevOffset]) - 0x30) *
39040
39041
  1260 +
@@ -46849,7 +46850,7 @@ function requireLib$6() {
46849
46850
  // ignoring coverage so tests don't have to fake support (or lack of) for brotli
46850
46851
  // istanbul ignore next
46851
46852
  try {
46852
- const decoder = new zlib.BrotliDecompress()
46853
+ var decoder = new zlib.BrotliDecompress()
46853
46854
  } catch (err) {
46854
46855
  reject(err)
46855
46856
  finalize()
@@ -48338,7 +48339,7 @@ function requireCharset() {
48338
48339
 
48339
48340
  function parseAcceptCharset(accept) {
48340
48341
  const accepts = accept.split(',')
48341
- for (let i = 0, j = 0; i < accepts.length; i++) {
48342
+ for (var i = 0, j = 0; i < accepts.length; i++) {
48342
48343
  const charset = parseCharset(accepts[i].trim(), i)
48343
48344
  if (charset) {
48344
48345
  accepts[j++] = charset
@@ -48518,7 +48519,7 @@ function requireEncoding$1() {
48518
48519
  const accepts = accept.split(',')
48519
48520
  let hasIdentity = false
48520
48521
  let minQuality = 1
48521
- for (let i = 0, j = 0; i < accepts.length; i++) {
48522
+ for (var i = 0, j = 0; i < accepts.length; i++) {
48522
48523
  const encoding = parseEncoding(accepts[i].trim(), i)
48523
48524
  if (encoding) {
48524
48525
  accepts[j++] = encoding
@@ -48725,7 +48726,7 @@ function requireLanguage() {
48725
48726
 
48726
48727
  function parseAcceptLanguage(accept) {
48727
48728
  const accepts = accept.split(',')
48728
- for (let i = 0, j = 0; i < accepts.length; i++) {
48729
+ for (var i = 0, j = 0; i < accepts.length; i++) {
48729
48730
  const language = parseLanguage(accepts[i].trim(), i)
48730
48731
  if (language) {
48731
48732
  accepts[j++] = language
@@ -48917,7 +48918,7 @@ function requireMediaType() {
48917
48918
 
48918
48919
  function parseAccept(accept) {
48919
48920
  const accepts = splitMediaTypes(accept)
48920
- for (let i = 0, j = 0; i < accepts.length; i++) {
48921
+ for (var i = 0, j = 0; i < accepts.length; i++) {
48921
48922
  const mediaType = parseMediaType(accepts[i].trim(), i)
48922
48923
  if (mediaType) {
48923
48924
  accepts[j++] = mediaType
@@ -49133,7 +49134,7 @@ function requireMediaType() {
49133
49134
 
49134
49135
  function splitMediaTypes(accept) {
49135
49136
  const accepts = accept.split(',')
49136
- for (let i = 1, j = 0; i < accepts.length; i++) {
49137
+ for (var i = 1, j = 0; i < accepts.length; i++) {
49137
49138
  if (quoteCount(accepts[j]) % 2 == 0) {
49138
49139
  accepts[++j] = accepts[i]
49139
49140
  } else {
@@ -49153,7 +49154,7 @@ function requireMediaType() {
49153
49154
 
49154
49155
  function splitParameters(str) {
49155
49156
  const parameters = str.split(';')
49156
- for (let i = 1, j = 0; i < parameters.length; i++) {
49157
+ for (var i = 1, j = 0; i < parameters.length; i++) {
49157
49158
  if (quoteCount(parameters[j]) % 2 == 0) {
49158
49159
  parameters[++j] = parameters[i]
49159
49160
  } else {
@@ -49163,7 +49164,7 @@ function requireMediaType() {
49163
49164
 
49164
49165
  // trim parameters
49165
49166
  parameters.length = j + 1
49166
- for (let i = 0; i < parameters.length; i++) {
49167
+ for (var i = 0; i < parameters.length; i++) {
49167
49168
  parameters[i] = parameters[i].trim()
49168
49169
  }
49169
49170
  return parameters
@@ -60037,7 +60038,7 @@ function requireEntry$1() {
60037
60038
  static async find(request, options) {
60038
60039
  try {
60039
60040
  // compacts the index and returns an array of unique entries
60040
- const matches = await cacache.index.compact(
60041
+ var matches = await cacache.index.compact(
60041
60042
  options.cachePath,
60042
60043
  cacheKey(request),
60043
60044
  (A, B) => {
@@ -60329,7 +60330,7 @@ function requireEntry$1() {
60329
60330
  // user supplied options, since we have already defined
60330
60331
  // them on the new request object. if they're still in the
60331
60332
  // options then those will overwrite the ones from the policy
60332
- const response = await remote(revalidateRequest, {
60333
+ var response = await remote(revalidateRequest, {
60333
60334
  ...options,
60334
60335
  headers: undefined
60335
60336
  })
@@ -60853,7 +60854,7 @@ function requireJsonparse() {
60853
60854
  // check for carry over of a multi byte char split between data chunks
60854
60855
  // & fill temp buffer it with start of this data chunk up to the boundary limit set in the last iteration
60855
60856
  if (this.bytes_remaining > 0) {
60856
- for (let j = 0; j < this.bytes_remaining; j++) {
60857
+ for (var j = 0; j < this.bytes_remaining; j++) {
60857
60858
  this.temp_buffs[this.bytes_in_sequence][
60858
60859
  this.bytes_in_sequence - this.bytes_remaining + j
60859
60860
  ] = buffer[j]
@@ -38,7 +38,16 @@ function spawn(cmd, args, options, extra) {
38
38
  stdio[0] === 'ignore' &&
39
39
  stdio[1] === 'ignore' &&
40
40
  stdio[2] === 'ignore')
41
- if (!isStdioIgnored) {
41
+ const isStdioPiped =
42
+ stdio === undefined ||
43
+ stdio === 'pipe' ||
44
+ (Array.isArray(stdio) &&
45
+ stdio.length > 2 &&
46
+ stdio[0] === 'pipe' &&
47
+ stdio[1] === 'pipe' &&
48
+ stdio[2] === 'pipe')
49
+ const shouldPauseSpinner = !isStdioIgnored && !isStdioPiped
50
+ if (shouldPauseSpinner) {
42
51
  spinner?.stop()
43
52
  }
44
53
  let spawnPromise = spawn(
@@ -60,7 +69,7 @@ function spawn(cmd, args, options, extra) {
60
69
  },
61
70
  extra
62
71
  )
63
- if (!isStdioIgnored && isSpinning) {
72
+ if (shouldPauseSpinner && isSpinning) {
64
73
  const oldSpawnPromise = spawnPromise
65
74
  spawnPromise = spawnPromise.finally(() => {
66
75
  spinner?.start()
@@ -1254,7 +1254,7 @@
1254
1254
  }
1255
1255
  ],
1256
1256
  [
1257
- "pkg:npm/%40socketregistry/packageurl-js@1.0.7",
1257
+ "pkg:npm/%40socketregistry/packageurl-js@1.0.8",
1258
1258
  {
1259
1259
  "categories": ["levelup"],
1260
1260
  "engines": {
@@ -1264,7 +1264,7 @@
1264
1264
  "license": "MIT",
1265
1265
  "name": "@socketregistry/packageurl-js",
1266
1266
  "package": "packageurl-js",
1267
- "version": "1.0.7"
1267
+ "version": "1.0.8"
1268
1268
  }
1269
1269
  ],
1270
1270
  [
@@ -6,10 +6,13 @@ var require$$0$1 = require('../../../../blessed/lib/widgets/box');
6
6
  function getAugmentedNamespace(n) {
7
7
  if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8
8
  var f = n.default;
9
- var a;
10
9
  if (typeof f == "function") {
11
- a = function a () {
12
- if (this instanceof a) {
10
+ var a = function a () {
11
+ var isInstance = false;
12
+ try {
13
+ isInstance = this instanceof a;
14
+ } catch {}
15
+ if (isInstance) {
13
16
  return Reflect.construct(f, arguments, this.constructor);
14
17
  }
15
18
  return f.apply(this, arguments);
@@ -6,10 +6,13 @@ var require$$2$1 = require('../../../../blessed/lib/widgets/node');
6
6
  function getAugmentedNamespace(n) {
7
7
  if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8
8
  var f = n.default;
9
- var a;
10
9
  if (typeof f == "function") {
11
- a = function a () {
12
- if (this instanceof a) {
10
+ var a = function a () {
11
+ var isInstance = false;
12
+ try {
13
+ isInstance = this instanceof a;
14
+ } catch {}
15
+ if (isInstance) {
13
16
  return Reflect.construct(f, arguments, this.constructor);
14
17
  }
15
18
  return f.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
5
5
  "homepage": "https://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",
@@ -84,60 +84,60 @@
84
84
  "@babel/plugin-transform-runtime": "7.27.4",
85
85
  "@babel/preset-typescript": "7.27.1",
86
86
  "@babel/runtime": "7.27.6",
87
- "@biomejs/biome": "1.9.4",
88
- "@coana-tech/cli": "14.9.24",
89
- "@cyclonedx/cdxgen": "11.3.2",
90
- "@dotenvx/dotenvx": "1.44.2",
91
- "@eslint/compat": "1.3.0",
92
- "@eslint/js": "9.28.0",
87
+ "@biomejs/biome": "2.0.5",
88
+ "@coana-tech/cli": "14.9.32",
89
+ "@cyclonedx/cdxgen": "11.4.1",
90
+ "@dotenvx/dotenvx": "1.45.1",
91
+ "@eslint/compat": "1.3.1",
92
+ "@eslint/js": "9.29.0",
93
93
  "@npmcli/arborist": "9.1.2",
94
94
  "@octokit/graphql": "9.0.1",
95
95
  "@octokit/openapi-types": "25.1.0",
96
96
  "@octokit/request-error": "7.0.0",
97
97
  "@octokit/rest": "22.0.0",
98
98
  "@octokit/types": "14.1.0",
99
- "@pnpm/dependency-path": "1000.0.9",
100
- "@pnpm/lockfile.detect-dep-types": "1001.0.9",
101
- "@pnpm/lockfile.fs": "1001.1.13",
99
+ "@pnpm/dependency-path": "1001.0.0",
100
+ "@pnpm/lockfile.detect-dep-types": "1001.0.10",
101
+ "@pnpm/lockfile.fs": "1001.1.14",
102
102
  "@pnpm/logger": "1001.0.0",
103
103
  "@rollup/plugin-babel": "6.0.4",
104
- "@rollup/plugin-commonjs": "28.0.3",
104
+ "@rollup/plugin-commonjs": "28.0.6",
105
105
  "@rollup/plugin-json": "6.1.0",
106
106
  "@rollup/plugin-node-resolve": "16.0.1",
107
107
  "@rollup/plugin-replace": "6.0.2",
108
- "@rollup/pluginutils": "5.1.4",
108
+ "@rollup/pluginutils": "5.2.0",
109
109
  "@socketregistry/hyrious__bun.lockb": "1.0.18",
110
110
  "@socketregistry/indent-string": "1.0.13",
111
111
  "@socketregistry/is-interactive": "1.0.6",
112
- "@socketregistry/packageurl-js": "1.0.7",
112
+ "@socketregistry/packageurl-js": "1.0.8",
113
113
  "@socketsecurity/config": "3.0.1",
114
- "@socketsecurity/registry": "1.0.208",
115
- "@socketsecurity/sdk": "1.4.46",
114
+ "@socketsecurity/registry": "1.0.212",
115
+ "@socketsecurity/sdk": "1.4.48",
116
116
  "@types/blessed": "0.1.25",
117
117
  "@types/cmd-shim": "5.0.2",
118
118
  "@types/js-yaml": "4.0.9",
119
119
  "@types/micromatch": "4.0.9",
120
120
  "@types/mock-fs": "4.13.4",
121
- "@types/node": "24.0.1",
122
- "@types/npmcli__arborist": "6.3.0",
121
+ "@types/node": "24.0.4",
122
+ "@types/npmcli__arborist": "6.3.1",
123
123
  "@types/proc-log": "3.0.4",
124
124
  "@types/semver": "7.7.0",
125
125
  "@types/which": "3.0.4",
126
126
  "@types/yargs-parser": "21.0.3",
127
- "@typescript-eslint/parser": "8.34.0",
128
- "@typescript/native-preview": "7.0.0-dev.20250613.1",
129
- "@vitest/coverage-v8": "3.2.3",
127
+ "@typescript-eslint/parser": "8.35.0",
128
+ "@typescript/native-preview": "7.0.0-dev.20250625.1",
129
+ "@vitest/coverage-v8": "3.2.4",
130
130
  "blessed": "0.1.81",
131
131
  "blessed-contrib": "4.11.0",
132
- "browserslist": "4.25.0",
132
+ "browserslist": "4.25.1",
133
133
  "chalk-table": "1.0.2",
134
134
  "cmd-shim": "7.0.0",
135
135
  "custompatch": "1.1.7",
136
136
  "del-cli": "6.0.0",
137
137
  "dev-null-cli": "2.0.0",
138
- "eslint": "9.28.0",
138
+ "eslint": "9.29.0",
139
139
  "eslint-import-resolver-typescript": "4.4.3",
140
- "eslint-plugin-import-x": "4.15.2",
140
+ "eslint-plugin-import-x": "4.16.0",
141
141
  "eslint-plugin-n": "17.20.0",
142
142
  "eslint-plugin-sort-destructure-keys": "2.0.0",
143
143
  "eslint-plugin-unicorn": "56.0.1",
@@ -146,8 +146,8 @@
146
146
  "husky": "9.1.7",
147
147
  "ignore": "7.0.5",
148
148
  "js-yaml": "npm:@zkochan/js-yaml@0.0.7",
149
- "knip": "5.61.0",
150
- "lint-staged": "16.1.0",
149
+ "knip": "5.61.2",
150
+ "lint-staged": "16.1.2",
151
151
  "magic-string": "0.30.17",
152
152
  "meow": "13.2.0",
153
153
  "micromatch": "4.0.8",
@@ -156,9 +156,9 @@
156
156
  "npm-package-arg": "12.0.2",
157
157
  "npm-run-all2": "8.0.4",
158
158
  "open": "10.1.2",
159
- "oxlint": "1.1.0",
159
+ "oxlint": "1.3.0",
160
160
  "pony-cause": "2.1.11",
161
- "rollup": "4.43.0",
161
+ "rollup": "4.44.0",
162
162
  "semver": "7.7.2",
163
163
  "synp": "1.9.14",
164
164
  "terminal-link": "2.1.1",
@@ -166,9 +166,9 @@
166
166
  "tinyglobby": "0.2.14",
167
167
  "trash": "9.0.0",
168
168
  "type-coverage": "2.29.7",
169
- "typescript-eslint": "8.34.0",
169
+ "typescript-eslint": "8.35.0",
170
170
  "unplugin-purge-polyfills": "0.1.0",
171
- "vitest": "3.2.3",
171
+ "vitest": "3.2.4",
172
172
  "which": "5.0.0",
173
173
  "yaml": "2.8.0",
174
174
  "yargs-parser": "22.0.0",
@@ -191,7 +191,7 @@
191
191
  "is-core-module": "npm:@socketregistry/is-core-module@^1",
192
192
  "isarray": "npm:@socketregistry/isarray@^1",
193
193
  "npm-package-arg": "$npm-package-arg",
194
- "packageurl-js": "npm:@socketregistry/packageurl-js@^1",
194
+ "packageurl-js": "$@socketregistry/packageurl-js",
195
195
  "path-parse": "npm:@socketregistry/path-parse@^1",
196
196
  "safe-buffer": "npm:@socketregistry/safe-buffer@^1",
197
197
  "safer-buffer": "npm:@socketregistry/safer-buffer@^1",
@@ -234,6 +234,6 @@
234
234
  "strict": true
235
235
  },
236
236
  "dependencies": {
237
- "@sentry/node": "9.29.0"
237
+ "@sentry/node": "9.32.0"
238
238
  }
239
239
  }
@@ -1,12 +0,0 @@
1
- import type { CResult } from '../../types.mts';
2
- import type { RangeStyle } from '../../utils/semver.mts';
3
- export declare function runFix({ autoMerge, cwd, limit, purls, rangeStyle, test, testScript }: {
4
- autoMerge: boolean;
5
- cwd: string;
6
- limit: number;
7
- purls: string[];
8
- rangeStyle: RangeStyle;
9
- test: boolean;
10
- testScript: string;
11
- }): Promise<CResult<unknown>>;
12
- //# sourceMappingURL=run-fix.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/run-fix.mts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD,wBAAsB,MAAM,CAAC,EAC3B,SAAS,EACT,GAAG,EACH,KAAK,EACL,KAAK,EACL,UAAU,EACV,IAAI,EACJ,UAAU,EACX,EAAE;IACD,SAAS,EAAE,OAAO,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAiD5B"}