@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
@@ -2720,97 +2720,88 @@ const encoding$1 = {}
2720
2720
 
2721
2721
  const lib$9 = { exports: {} }
2722
2722
 
2723
- /* eslint-disable node/no-deprecated-api */
2724
- let safer_1
2723
+ const safer = { exports: {} }
2724
+
2725
+ let shared
2726
+ let hasRequiredShared
2727
+ function requireShared() {
2728
+ if (hasRequiredShared) {
2729
+ return shared
2730
+ }
2731
+ hasRequiredShared = 1
2732
+
2733
+ // Use non-'node:' prefixed require to avoid Webpack errors.
2734
+ // eslint-disable-next-line n/prefer-node-protocol
2735
+ const builtinBufferExports = require$$0$4
2736
+ const builtinBufferExportsDescMap = Object.fromEntries(
2737
+ Object.entries(
2738
+ Object.getOwnPropertyDescriptors(builtinBufferExports)
2739
+ ).filter(({ 0: key }) => key !== 'Buffer' && key !== 'SlowBuffer')
2740
+ )
2741
+ shared = {
2742
+ builtinBufferExportsDescMap
2743
+ }
2744
+ return shared
2745
+ }
2746
+
2725
2747
  let hasRequiredSafer
2726
2748
  function requireSafer() {
2727
2749
  if (hasRequiredSafer) {
2728
- return safer_1
2750
+ return safer.exports
2729
2751
  }
2730
2752
  hasRequiredSafer = 1
2731
- const buffer = require$$0$4
2732
- const Buffer = buffer.Buffer
2733
- const safer = {}
2734
- let key
2735
- for (key in buffer) {
2736
- if (!buffer.hasOwnProperty(key)) {
2737
- continue
2738
- }
2739
- if (key === 'SlowBuffer' || key === 'Buffer') {
2740
- continue
2741
- }
2742
- safer[key] = buffer[key]
2743
- }
2744
- const Safer = (safer.Buffer = {})
2745
- for (key in Buffer) {
2746
- if (!Buffer.hasOwnProperty(key)) {
2747
- continue
2748
- }
2749
- if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') {
2750
- continue
2751
- }
2752
- Safer[key] = Buffer[key]
2753
- }
2754
- safer.Buffer.prototype = Buffer.prototype
2755
- if (!Safer.from || Safer.from === Uint8Array.from) {
2756
- Safer.from = function (value, encodingOrOffset, length) {
2757
- if (typeof value === 'number') {
2758
- throw new TypeError(
2759
- 'The "value" argument must not be of type number. Received type ' +
2760
- typeof value
2761
- )
2762
- }
2763
- if (value && typeof value.length === 'undefined') {
2764
- throw new TypeError(
2765
- 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' +
2766
- typeof value
2767
- )
2768
- }
2769
- return Buffer(value, encodingOrOffset, length)
2770
- }
2771
- }
2772
- if (!Safer.alloc) {
2773
- Safer.alloc = function (size, fill, encoding) {
2774
- if (typeof size !== 'number') {
2775
- throw new TypeError(
2776
- 'The "size" argument must be of type number. Received type ' +
2777
- typeof size
2778
- )
2779
- }
2780
- if (size < 0 || size >= 2 * (1 << 30)) {
2781
- throw new RangeError(
2782
- 'The value "' + size + '" is invalid for option "size"'
2783
- )
2784
- }
2785
- const buf = Buffer(size)
2786
- if (!fill || fill.length === 0) {
2787
- buf.fill(0)
2788
- } else if (typeof encoding === 'string') {
2789
- buf.fill(fill, encoding)
2790
- } else {
2791
- buf.fill(fill)
2792
- }
2793
- return buf
2794
- }
2795
- }
2796
- if (!safer.kStringMaxLength) {
2797
- try {
2798
- safer.kStringMaxLength = process.binding('buffer').kStringMaxLength
2799
- } catch (e) {
2800
- // we can't determine kStringMaxLength in environments where process.binding
2801
- // is unsupported, so let's not set it
2802
- }
2803
- }
2804
- if (!safer.constants) {
2805
- safer.constants = {
2806
- MAX_LENGTH: safer.kMaxLength
2807
- }
2808
- if (safer.kStringMaxLength) {
2809
- safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength
2810
- }
2811
- }
2812
- safer_1 = safer
2813
- return safer_1
2753
+ ;(function (module) {
2754
+ const {
2755
+ Blob: BlobCtor,
2756
+ Buffer: UnsafeBuffer,
2757
+ File: FileCtor,
2758
+ INSPECT_MAX_BYTES,
2759
+ atob: atobFn,
2760
+ btoa: btoaFn,
2761
+ constants,
2762
+ isAscii,
2763
+ isUtf8,
2764
+ kMaxLength,
2765
+ kStringMaxLength,
2766
+ resolveObjectURL,
2767
+ transcode
2768
+ // Use non-'node:' prefixed require to avoid Webpack errors.
2769
+ // eslint-disable-next-line n/prefer-node-protocol
2770
+ } = require$$0$4
2771
+ const { builtinBufferExportsDescMap } = /*@__PURE__*/ requireShared()
2772
+ const Safer = {
2773
+ prototype: UnsafeBuffer.prototype
2774
+ }
2775
+ for (const key of Reflect.ownKeys(UnsafeBuffer)) {
2776
+ if (
2777
+ key !== 'allocUnsafe' &&
2778
+ key !== 'allocUnsafeSlow' &&
2779
+ key !== 'prototype'
2780
+ ) {
2781
+ Safer[key] = UnsafeBuffer[key]
2782
+ }
2783
+ }
2784
+ // Give Node ESM/CJS interop a chance to detect names of exports.
2785
+ module.exports = {
2786
+ INSPECT_MAX_BYTES,
2787
+ Blob: BlobCtor,
2788
+ File: FileCtor,
2789
+ atob: atobFn,
2790
+ btoa: btoaFn,
2791
+ constants,
2792
+ isAscii,
2793
+ isUtf8,
2794
+ kMaxLength,
2795
+ kStringMaxLength,
2796
+ resolveObjectURL,
2797
+ transcode,
2798
+ Buffer: Safer
2799
+ }
2800
+ // Redefine INSPECT_MAX_BYTES, Blob, File, and resolveObjectURL as their
2801
+ // builtin getter/setters.
2802
+ Object.defineProperties(module.exports, builtinBufferExportsDescMap)
2803
+ })(safer)
2804
+ return safer.exports
2814
2805
  }
2815
2806
 
2816
2807
  const bomHandling = {}
@@ -2875,7 +2866,7 @@ function requireInternal() {
2875
2866
  return internal
2876
2867
  }
2877
2868
  hasRequiredInternal = 1
2878
- const Buffer = requireSafer().Buffer
2869
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
2879
2870
 
2880
2871
  // Export Node.js internal encodings.
2881
2872
 
@@ -3093,7 +3084,7 @@ function requireUtf32() {
3093
3084
  return utf32
3094
3085
  }
3095
3086
  hasRequiredUtf32 = 1
3096
- const Buffer = requireSafer().Buffer
3087
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
3097
3088
 
3098
3089
  // == UTF32-LE/BE codec. ==========================================================
3099
3090
 
@@ -3423,7 +3414,7 @@ function requireUtf16() {
3423
3414
  return utf16
3424
3415
  }
3425
3416
  hasRequiredUtf16 = 1
3426
- const Buffer = requireSafer().Buffer
3417
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
3427
3418
 
3428
3419
  // Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
3429
3420
 
@@ -3622,7 +3613,7 @@ function requireUtf7() {
3622
3613
  return utf7
3623
3614
  }
3624
3615
  hasRequiredUtf7 = 1
3625
- const Buffer = requireSafer().Buffer
3616
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
3626
3617
 
3627
3618
  // UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
3628
3619
  // See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
@@ -3937,7 +3928,7 @@ function requireSbcsCodec() {
3937
3928
  return sbcsCodec
3938
3929
  }
3939
3930
  hasRequiredSbcsCodec = 1
3940
- const Buffer = requireSafer().Buffer
3931
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
3941
3932
 
3942
3933
  // Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
3943
3934
  // correspond to encoded bytes (if 128 - then lower half is ASCII).
@@ -4720,7 +4711,7 @@ function requireDbcsCodec() {
4720
4711
  return dbcsCodec
4721
4712
  }
4722
4713
  hasRequiredDbcsCodec = 1
4723
- const Buffer = requireSafer().Buffer
4714
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
4724
4715
 
4725
4716
  // Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
4726
4717
  // Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
@@ -11201,7 +11192,7 @@ function requireStreams() {
11201
11192
  return streams
11202
11193
  }
11203
11194
  hasRequiredStreams = 1
11204
- const Buffer = requireSafer().Buffer
11195
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
11205
11196
 
11206
11197
  // NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments),
11207
11198
  // we opt to dependency-inject it instead of creating a hard dependency.
@@ -11334,7 +11325,7 @@ function requireLib$a() {
11334
11325
  }
11335
11326
  hasRequiredLib$a = 1
11336
11327
  ;(function (module) {
11337
- const Buffer = requireSafer().Buffer
11328
+ const Buffer = /*@__PURE__*/ requireSafer().Buffer
11338
11329
  const bomHandling = requireBomHandling(),
11339
11330
  iconv = module.exports
11340
11331