@socketsecurity/cli-with-sentry 1.0.9 → 1.0.11

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 (28) hide show
  1. package/dist/cli.js +25 -28
  2. package/dist/cli.js.map +1 -1
  3. package/dist/constants.js +3 -3
  4. package/dist/constants.js.map +1 -1
  5. package/dist/shadow-npm-bin.js +3 -3
  6. package/dist/shadow-npm-bin.js.map +1 -1
  7. package/dist/types/commands/fix/git.d.mts.map +1 -1
  8. package/dist/types/commands/optimize/ls-by-agent.d.mts.map +1 -1
  9. package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +1 -1
  10. package/dist/types/utils/coana.d.mts.map +1 -1
  11. package/dist/types/utils/package-environment.d.mts.map +1 -1
  12. package/dist/utils.js +7 -5
  13. package/dist/utils.js.map +1 -1
  14. package/dist/vendor.js +334 -333
  15. package/external/@socketsecurity/registry/external/@inquirer/confirm.js +60 -21
  16. package/external/@socketsecurity/registry/external/@inquirer/input.js +60 -21
  17. package/external/@socketsecurity/registry/external/@inquirer/password.js +60 -21
  18. package/external/@socketsecurity/registry/external/@inquirer/search.js +61 -22
  19. package/external/@socketsecurity/registry/external/@inquirer/select.js +61 -22
  20. package/external/@socketsecurity/registry/external/ansi-regex.js +13 -0
  21. package/external/@socketsecurity/registry/external/libnpmpack.js +137 -146
  22. package/external/@socketsecurity/registry/external/make-fetch-happen.js +85 -94
  23. package/external/@socketsecurity/registry/external/normalize-package-data.js +17 -404
  24. package/external/@socketsecurity/registry/external/pacote.js +124 -133
  25. package/external/@socketsecurity/registry/lib/spawn.js +44 -23
  26. package/external/@socketsecurity/registry/lib/strings.js +16 -0
  27. package/external/blessed-contrib/lib/widget/table.js +47 -12
  28. package/package.json +5 -4
@@ -2,10 +2,10 @@
2
2
 
3
3
  const readline$1 = require('readline')
4
4
  const async_hooks = require('async_hooks')
5
- const require$$0$2 = require('stream')
5
+ const require$$0$3 = require('stream')
6
6
  const util = require('util')
7
+ const require$$0$2 = require('tty')
7
8
  const require$$0$1 = require('tty')
8
- const require$$0 = require('tty')
9
9
  const process$2 = require('process')
10
10
 
11
11
  function _interopNamespaceDefault(e) {
@@ -207,6 +207,45 @@ function useEffect(cb, depArray) {
207
207
  })
208
208
  }
209
209
 
210
+ function getAugmentedNamespace(n) {
211
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) {
212
+ return n
213
+ }
214
+ const f = n.default
215
+ if (typeof f == 'function') {
216
+ var a = function a() {
217
+ let isInstance = false
218
+ try {
219
+ isInstance = this instanceof a
220
+ } catch {}
221
+ if (isInstance) {
222
+ return Reflect.construct(f, arguments, this.constructor)
223
+ }
224
+ return f.apply(this, arguments)
225
+ }
226
+ a.prototype = f.prototype
227
+ } else {
228
+ a = {}
229
+ }
230
+ Object.defineProperty(a, '__esModule', { value: true })
231
+ Object.keys(n).forEach(function (k) {
232
+ const d = Object.getOwnPropertyDescriptor(n, k)
233
+ Object.defineProperty(
234
+ a,
235
+ k,
236
+ d.get
237
+ ? d
238
+ : {
239
+ enumerable: true,
240
+ get: function () {
241
+ return n[k]
242
+ }
243
+ }
244
+ )
245
+ })
246
+ return a
247
+ }
248
+
210
249
  let yoctocolorsCjs
211
250
  let hasRequiredYoctocolorsCjs
212
251
  function requireYoctocolorsCjs() {
@@ -214,7 +253,7 @@ function requireYoctocolorsCjs() {
214
253
  return yoctocolorsCjs
215
254
  }
216
255
  hasRequiredYoctocolorsCjs = 1
217
- const tty = require$$0
256
+ const tty = require$$0$1
218
257
 
219
258
  // eslint-disable-next-line no-warning-comments
220
259
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -723,7 +762,7 @@ function requireCliWidth() {
723
762
  const defaultOpts = {
724
763
  defaultWidth: 0,
725
764
  output: process.stdout,
726
- tty: require$$0$1
765
+ tty: require$$0$2
727
766
  }
728
767
  if (!options) {
729
768
  return defaultOpts
@@ -761,23 +800,23 @@ const cliWidthExports = requireCliWidth()
761
800
 
762
801
  const stringWidth = { exports: {} }
763
802
 
764
- let ansiRegex
765
- let hasRequiredAnsiRegex
766
- function requireAnsiRegex() {
767
- if (hasRequiredAnsiRegex) {
768
- return ansiRegex
769
- }
770
- hasRequiredAnsiRegex = 1
771
- ansiRegex = ({ onlyFirst = false } = {}) => {
772
- const pattern = [
773
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
774
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
775
- ].join('|')
776
- return new RegExp(pattern, onlyFirst ? undefined : 'g')
777
- }
778
- return ansiRegex
803
+ function ansiRegex({ onlyFirst = false } = {}) {
804
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
805
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
806
+ const pattern = [
807
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
808
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
809
+ ].join('|')
810
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
779
811
  }
780
812
 
813
+ const ansiRegex$1 = /*#__PURE__*/ Object.freeze({
814
+ __proto__: null,
815
+ default: ansiRegex
816
+ })
817
+
818
+ const require$$0 = /*@__PURE__*/ getAugmentedNamespace(ansiRegex$1)
819
+
781
820
  let stripAnsi
782
821
  let hasRequiredStripAnsi
783
822
  function requireStripAnsi() {
@@ -785,7 +824,7 @@ function requireStripAnsi() {
785
824
  return stripAnsi
786
825
  }
787
826
  hasRequiredStripAnsi = 1
788
- const ansiRegex = requireAnsiRegex()
827
+ const ansiRegex = require$$0
789
828
  stripAnsi = string =>
790
829
  typeof string === 'string' ? string.replace(ansiRegex(), '') : string
791
830
  return stripAnsi
@@ -2403,7 +2442,7 @@ function requireLib() {
2403
2442
  return lib
2404
2443
  }
2405
2444
  hasRequiredLib = 1
2406
- const Stream = require$$0$2
2445
+ const Stream = require$$0$3
2407
2446
  class MuteStream extends Stream {
2408
2447
  #isTTY = null
2409
2448
  constructor(opts = {}) {
@@ -2,10 +2,10 @@
2
2
 
3
3
  const readline$1 = require('readline')
4
4
  const async_hooks = require('async_hooks')
5
- const require$$0$2 = require('stream')
5
+ const require$$0$3 = require('stream')
6
6
  const util = require('util')
7
+ const require$$0$2 = require('tty')
7
8
  const require$$0$1 = require('tty')
8
- const require$$0 = require('tty')
9
9
  const process$2 = require('process')
10
10
 
11
11
  function _interopNamespaceDefault(e) {
@@ -208,6 +208,45 @@ function useEffect(cb, depArray) {
208
208
  })
209
209
  }
210
210
 
211
+ function getAugmentedNamespace(n) {
212
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) {
213
+ return n
214
+ }
215
+ const f = n.default
216
+ if (typeof f == 'function') {
217
+ var a = function a() {
218
+ let isInstance = false
219
+ try {
220
+ isInstance = this instanceof a
221
+ } catch {}
222
+ if (isInstance) {
223
+ return Reflect.construct(f, arguments, this.constructor)
224
+ }
225
+ return f.apply(this, arguments)
226
+ }
227
+ a.prototype = f.prototype
228
+ } else {
229
+ a = {}
230
+ }
231
+ Object.defineProperty(a, '__esModule', { value: true })
232
+ Object.keys(n).forEach(function (k) {
233
+ const d = Object.getOwnPropertyDescriptor(n, k)
234
+ Object.defineProperty(
235
+ a,
236
+ k,
237
+ d.get
238
+ ? d
239
+ : {
240
+ enumerable: true,
241
+ get: function () {
242
+ return n[k]
243
+ }
244
+ }
245
+ )
246
+ })
247
+ return a
248
+ }
249
+
211
250
  let yoctocolorsCjs
212
251
  let hasRequiredYoctocolorsCjs
213
252
  function requireYoctocolorsCjs() {
@@ -215,7 +254,7 @@ function requireYoctocolorsCjs() {
215
254
  return yoctocolorsCjs
216
255
  }
217
256
  hasRequiredYoctocolorsCjs = 1
218
- const tty = require$$0
257
+ const tty = require$$0$1
219
258
 
220
259
  // eslint-disable-next-line no-warning-comments
221
260
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -724,7 +763,7 @@ function requireCliWidth() {
724
763
  const defaultOpts = {
725
764
  defaultWidth: 0,
726
765
  output: process.stdout,
727
- tty: require$$0$1
766
+ tty: require$$0$2
728
767
  }
729
768
  if (!options) {
730
769
  return defaultOpts
@@ -762,23 +801,23 @@ const cliWidthExports = requireCliWidth()
762
801
 
763
802
  const stringWidth = { exports: {} }
764
803
 
765
- let ansiRegex
766
- let hasRequiredAnsiRegex
767
- function requireAnsiRegex() {
768
- if (hasRequiredAnsiRegex) {
769
- return ansiRegex
770
- }
771
- hasRequiredAnsiRegex = 1
772
- ansiRegex = ({ onlyFirst = false } = {}) => {
773
- const pattern = [
774
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
775
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
776
- ].join('|')
777
- return new RegExp(pattern, onlyFirst ? undefined : 'g')
778
- }
779
- return ansiRegex
804
+ function ansiRegex({ onlyFirst = false } = {}) {
805
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
806
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
807
+ const pattern = [
808
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
809
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
810
+ ].join('|')
811
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
780
812
  }
781
813
 
814
+ const ansiRegex$1 = /*#__PURE__*/ Object.freeze({
815
+ __proto__: null,
816
+ default: ansiRegex
817
+ })
818
+
819
+ const require$$0 = /*@__PURE__*/ getAugmentedNamespace(ansiRegex$1)
820
+
782
821
  let stripAnsi
783
822
  let hasRequiredStripAnsi
784
823
  function requireStripAnsi() {
@@ -786,7 +825,7 @@ function requireStripAnsi() {
786
825
  return stripAnsi
787
826
  }
788
827
  hasRequiredStripAnsi = 1
789
- const ansiRegex = requireAnsiRegex()
828
+ const ansiRegex = require$$0
790
829
  stripAnsi = string =>
791
830
  typeof string === 'string' ? string.replace(ansiRegex(), '') : string
792
831
  return stripAnsi
@@ -2404,7 +2443,7 @@ function requireLib() {
2404
2443
  return lib
2405
2444
  }
2406
2445
  hasRequiredLib = 1
2407
- const Stream = require$$0$2
2446
+ const Stream = require$$0$3
2408
2447
  class MuteStream extends Stream {
2409
2448
  #isTTY = null
2410
2449
  constructor(opts = {}) {
@@ -2,10 +2,10 @@
2
2
 
3
3
  const readline$1 = require('readline')
4
4
  const async_hooks = require('async_hooks')
5
- const require$$0$2 = require('stream')
5
+ const require$$0$3 = require('stream')
6
6
  const util = require('util')
7
+ const require$$0$2 = require('tty')
7
8
  const require$$0$1 = require('tty')
8
- const require$$0 = require('tty')
9
9
  const process$2 = require('process')
10
10
 
11
11
  function _interopNamespaceDefault(e) {
@@ -207,6 +207,45 @@ function useEffect(cb, depArray) {
207
207
  })
208
208
  }
209
209
 
210
+ function getAugmentedNamespace(n) {
211
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) {
212
+ return n
213
+ }
214
+ const f = n.default
215
+ if (typeof f == 'function') {
216
+ var a = function a() {
217
+ let isInstance = false
218
+ try {
219
+ isInstance = this instanceof a
220
+ } catch {}
221
+ if (isInstance) {
222
+ return Reflect.construct(f, arguments, this.constructor)
223
+ }
224
+ return f.apply(this, arguments)
225
+ }
226
+ a.prototype = f.prototype
227
+ } else {
228
+ a = {}
229
+ }
230
+ Object.defineProperty(a, '__esModule', { value: true })
231
+ Object.keys(n).forEach(function (k) {
232
+ const d = Object.getOwnPropertyDescriptor(n, k)
233
+ Object.defineProperty(
234
+ a,
235
+ k,
236
+ d.get
237
+ ? d
238
+ : {
239
+ enumerable: true,
240
+ get: function () {
241
+ return n[k]
242
+ }
243
+ }
244
+ )
245
+ })
246
+ return a
247
+ }
248
+
210
249
  let yoctocolorsCjs
211
250
  let hasRequiredYoctocolorsCjs
212
251
  function requireYoctocolorsCjs() {
@@ -214,7 +253,7 @@ function requireYoctocolorsCjs() {
214
253
  return yoctocolorsCjs
215
254
  }
216
255
  hasRequiredYoctocolorsCjs = 1
217
- const tty = require$$0
256
+ const tty = require$$0$1
218
257
 
219
258
  // eslint-disable-next-line no-warning-comments
220
259
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -723,7 +762,7 @@ function requireCliWidth() {
723
762
  const defaultOpts = {
724
763
  defaultWidth: 0,
725
764
  output: process.stdout,
726
- tty: require$$0$1
765
+ tty: require$$0$2
727
766
  }
728
767
  if (!options) {
729
768
  return defaultOpts
@@ -761,23 +800,23 @@ const cliWidthExports = requireCliWidth()
761
800
 
762
801
  const stringWidth = { exports: {} }
763
802
 
764
- let ansiRegex
765
- let hasRequiredAnsiRegex
766
- function requireAnsiRegex() {
767
- if (hasRequiredAnsiRegex) {
768
- return ansiRegex
769
- }
770
- hasRequiredAnsiRegex = 1
771
- ansiRegex = ({ onlyFirst = false } = {}) => {
772
- const pattern = [
773
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
774
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
775
- ].join('|')
776
- return new RegExp(pattern, onlyFirst ? undefined : 'g')
777
- }
778
- return ansiRegex
803
+ function ansiRegex({ onlyFirst = false } = {}) {
804
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
805
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
806
+ const pattern = [
807
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
808
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
809
+ ].join('|')
810
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
779
811
  }
780
812
 
813
+ const ansiRegex$1 = /*#__PURE__*/ Object.freeze({
814
+ __proto__: null,
815
+ default: ansiRegex
816
+ })
817
+
818
+ const require$$0 = /*@__PURE__*/ getAugmentedNamespace(ansiRegex$1)
819
+
781
820
  let stripAnsi
782
821
  let hasRequiredStripAnsi
783
822
  function requireStripAnsi() {
@@ -785,7 +824,7 @@ function requireStripAnsi() {
785
824
  return stripAnsi
786
825
  }
787
826
  hasRequiredStripAnsi = 1
788
- const ansiRegex = requireAnsiRegex()
827
+ const ansiRegex = require$$0
789
828
  stripAnsi = string =>
790
829
  typeof string === 'string' ? string.replace(ansiRegex(), '') : string
791
830
  return stripAnsi
@@ -2403,7 +2442,7 @@ function requireLib() {
2403
2442
  return lib
2404
2443
  }
2405
2444
  hasRequiredLib = 1
2406
- const Stream = require$$0$2
2445
+ const Stream = require$$0$3
2407
2446
  class MuteStream extends Stream {
2408
2447
  #isTTY = null
2409
2448
  constructor(opts = {}) {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true })
4
4
 
5
- const require$$0 = require('tty')
5
+ const require$$0$1 = require('tty')
6
6
  const process$2 = require('process')
7
7
  const readline$1 = require('readline')
8
8
  const async_hooks = require('async_hooks')
9
- const require$$0$2 = require('stream')
9
+ const require$$0$3 = require('stream')
10
10
  const util = require('util')
11
- const require$$0$1 = require('tty')
11
+ const require$$0$2 = require('tty')
12
12
 
13
13
  function _interopNamespaceDefault(e) {
14
14
  const n = Object.create(null)
@@ -209,6 +209,45 @@ function useEffect(cb, depArray) {
209
209
  })
210
210
  }
211
211
 
212
+ function getAugmentedNamespace(n) {
213
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) {
214
+ return n
215
+ }
216
+ const f = n.default
217
+ if (typeof f == 'function') {
218
+ var a = function a() {
219
+ let isInstance = false
220
+ try {
221
+ isInstance = this instanceof a
222
+ } catch {}
223
+ if (isInstance) {
224
+ return Reflect.construct(f, arguments, this.constructor)
225
+ }
226
+ return f.apply(this, arguments)
227
+ }
228
+ a.prototype = f.prototype
229
+ } else {
230
+ a = {}
231
+ }
232
+ Object.defineProperty(a, '__esModule', { value: true })
233
+ Object.keys(n).forEach(function (k) {
234
+ const d = Object.getOwnPropertyDescriptor(n, k)
235
+ Object.defineProperty(
236
+ a,
237
+ k,
238
+ d.get
239
+ ? d
240
+ : {
241
+ enumerable: true,
242
+ get: function () {
243
+ return n[k]
244
+ }
245
+ }
246
+ )
247
+ })
248
+ return a
249
+ }
250
+
212
251
  let yoctocolorsCjs
213
252
  let hasRequiredYoctocolorsCjs
214
253
  function requireYoctocolorsCjs() {
@@ -216,7 +255,7 @@ function requireYoctocolorsCjs() {
216
255
  return yoctocolorsCjs
217
256
  }
218
257
  hasRequiredYoctocolorsCjs = 1
219
- const tty = require$$0
258
+ const tty = require$$0$1
220
259
 
221
260
  // eslint-disable-next-line no-warning-comments
222
261
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -744,7 +783,7 @@ function requireCliWidth() {
744
783
  const defaultOpts = {
745
784
  defaultWidth: 0,
746
785
  output: process.stdout,
747
- tty: require$$0$1
786
+ tty: require$$0$2
748
787
  }
749
788
  if (!options) {
750
789
  return defaultOpts
@@ -782,23 +821,23 @@ const cliWidthExports = requireCliWidth()
782
821
 
783
822
  const stringWidth = { exports: {} }
784
823
 
785
- let ansiRegex
786
- let hasRequiredAnsiRegex
787
- function requireAnsiRegex() {
788
- if (hasRequiredAnsiRegex) {
789
- return ansiRegex
790
- }
791
- hasRequiredAnsiRegex = 1
792
- ansiRegex = ({ onlyFirst = false } = {}) => {
793
- const pattern = [
794
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
795
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
796
- ].join('|')
797
- return new RegExp(pattern, onlyFirst ? undefined : 'g')
798
- }
799
- return ansiRegex
824
+ function ansiRegex({ onlyFirst = false } = {}) {
825
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
826
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
827
+ const pattern = [
828
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
829
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
830
+ ].join('|')
831
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
800
832
  }
801
833
 
834
+ const ansiRegex$1 = /*#__PURE__*/ Object.freeze({
835
+ __proto__: null,
836
+ default: ansiRegex
837
+ })
838
+
839
+ const require$$0 = /*@__PURE__*/ getAugmentedNamespace(ansiRegex$1)
840
+
802
841
  let stripAnsi
803
842
  let hasRequiredStripAnsi
804
843
  function requireStripAnsi() {
@@ -806,7 +845,7 @@ function requireStripAnsi() {
806
845
  return stripAnsi
807
846
  }
808
847
  hasRequiredStripAnsi = 1
809
- const ansiRegex = requireAnsiRegex()
848
+ const ansiRegex = require$$0
810
849
  stripAnsi = string =>
811
850
  typeof string === 'string' ? string.replace(ansiRegex(), '') : string
812
851
  return stripAnsi
@@ -2585,7 +2624,7 @@ function requireLib() {
2585
2624
  return lib
2586
2625
  }
2587
2626
  hasRequiredLib = 1
2588
- const Stream = require$$0$2
2627
+ const Stream = require$$0$3
2589
2628
  class MuteStream extends Stream {
2590
2629
  #isTTY = null
2591
2630
  constructor(opts = {}) {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true })
4
4
 
5
- const require$$0 = require('tty')
5
+ const require$$0$1 = require('tty')
6
6
  const process$2 = require('process')
7
7
  const readline$1 = require('readline')
8
8
  const async_hooks = require('async_hooks')
9
- const require$$0$2 = require('stream')
9
+ const require$$0$3 = require('stream')
10
10
  const util = require('util')
11
- const require$$0$1 = require('tty')
11
+ const require$$0$2 = require('tty')
12
12
 
13
13
  function _interopNamespaceDefault(e) {
14
14
  const n = Object.create(null)
@@ -225,6 +225,45 @@ function useEffect(cb, depArray) {
225
225
  })
226
226
  }
227
227
 
228
+ function getAugmentedNamespace(n) {
229
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) {
230
+ return n
231
+ }
232
+ const f = n.default
233
+ if (typeof f == 'function') {
234
+ var a = function a() {
235
+ let isInstance = false
236
+ try {
237
+ isInstance = this instanceof a
238
+ } catch {}
239
+ if (isInstance) {
240
+ return Reflect.construct(f, arguments, this.constructor)
241
+ }
242
+ return f.apply(this, arguments)
243
+ }
244
+ a.prototype = f.prototype
245
+ } else {
246
+ a = {}
247
+ }
248
+ Object.defineProperty(a, '__esModule', { value: true })
249
+ Object.keys(n).forEach(function (k) {
250
+ const d = Object.getOwnPropertyDescriptor(n, k)
251
+ Object.defineProperty(
252
+ a,
253
+ k,
254
+ d.get
255
+ ? d
256
+ : {
257
+ enumerable: true,
258
+ get: function () {
259
+ return n[k]
260
+ }
261
+ }
262
+ )
263
+ })
264
+ return a
265
+ }
266
+
228
267
  let yoctocolorsCjs
229
268
  let hasRequiredYoctocolorsCjs
230
269
  function requireYoctocolorsCjs() {
@@ -232,7 +271,7 @@ function requireYoctocolorsCjs() {
232
271
  return yoctocolorsCjs
233
272
  }
234
273
  hasRequiredYoctocolorsCjs = 1
235
- const tty = require$$0
274
+ const tty = require$$0$1
236
275
 
237
276
  // eslint-disable-next-line no-warning-comments
238
277
  // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
@@ -760,7 +799,7 @@ function requireCliWidth() {
760
799
  const defaultOpts = {
761
800
  defaultWidth: 0,
762
801
  output: process.stdout,
763
- tty: require$$0$1
802
+ tty: require$$0$2
764
803
  }
765
804
  if (!options) {
766
805
  return defaultOpts
@@ -798,23 +837,23 @@ const cliWidthExports = requireCliWidth()
798
837
 
799
838
  const stringWidth = { exports: {} }
800
839
 
801
- let ansiRegex
802
- let hasRequiredAnsiRegex
803
- function requireAnsiRegex() {
804
- if (hasRequiredAnsiRegex) {
805
- return ansiRegex
806
- }
807
- hasRequiredAnsiRegex = 1
808
- ansiRegex = ({ onlyFirst = false } = {}) => {
809
- const pattern = [
810
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
811
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
812
- ].join('|')
813
- return new RegExp(pattern, onlyFirst ? undefined : 'g')
814
- }
815
- return ansiRegex
840
+ function ansiRegex({ onlyFirst = false } = {}) {
841
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
842
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
843
+ const pattern = [
844
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
845
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
846
+ ].join('|')
847
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
816
848
  }
817
849
 
850
+ const ansiRegex$1 = /*#__PURE__*/ Object.freeze({
851
+ __proto__: null,
852
+ default: ansiRegex
853
+ })
854
+
855
+ const require$$0 = /*@__PURE__*/ getAugmentedNamespace(ansiRegex$1)
856
+
818
857
  let stripAnsi
819
858
  let hasRequiredStripAnsi
820
859
  function requireStripAnsi() {
@@ -822,7 +861,7 @@ function requireStripAnsi() {
822
861
  return stripAnsi
823
862
  }
824
863
  hasRequiredStripAnsi = 1
825
- const ansiRegex = requireAnsiRegex()
864
+ const ansiRegex = require$$0
826
865
  stripAnsi = string =>
827
866
  typeof string === 'string' ? string.replace(ansiRegex(), '') : string
828
867
  return stripAnsi
@@ -2601,7 +2640,7 @@ function requireLib() {
2601
2640
  return lib
2602
2641
  }
2603
2642
  hasRequiredLib = 1
2604
- const Stream = require$$0$2
2643
+ const Stream = require$$0$3
2605
2644
  class MuteStream extends Stream {
2606
2645
  #isTTY = null
2607
2646
  constructor(opts = {}) {
@@ -0,0 +1,13 @@
1
+ 'use strict'
2
+
3
+ function ansiRegex({ onlyFirst = false } = {}) {
4
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
5
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)'
6
+ const pattern = [
7
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
8
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
9
+ ].join('|')
10
+ return new RegExp(pattern, onlyFirst ? undefined : 'g')
11
+ }
12
+
13
+ module.exports = ansiRegex