@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.
- package/dist/cli.js +25 -28
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-bin.js +3 -3
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/types/commands/fix/git.d.mts.map +1 -1
- package/dist/types/commands/optimize/ls-by-agent.d.mts.map +1 -1
- package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/utils.js +7 -5
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +334 -333
- package/external/@socketsecurity/registry/external/@inquirer/confirm.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/input.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/password.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/search.js +61 -22
- package/external/@socketsecurity/registry/external/@inquirer/select.js +61 -22
- package/external/@socketsecurity/registry/external/ansi-regex.js +13 -0
- package/external/@socketsecurity/registry/external/libnpmpack.js +137 -146
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +85 -94
- package/external/@socketsecurity/registry/external/normalize-package-data.js +17 -404
- package/external/@socketsecurity/registry/external/pacote.js +124 -133
- package/external/@socketsecurity/registry/lib/spawn.js +44 -23
- package/external/@socketsecurity/registry/lib/strings.js +16 -0
- package/external/blessed-contrib/lib/widget/table.js +47 -12
- package/package.json +5 -4
|
@@ -2720,97 +2720,88 @@ const encoding$1 = {}
|
|
|
2720
2720
|
|
|
2721
2721
|
const lib$9 = { exports: {} }
|
|
2722
2722
|
|
|
2723
|
-
|
|
2724
|
-
|
|
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
|
|
2750
|
+
return safer.exports
|
|
2729
2751
|
}
|
|
2730
2752
|
hasRequiredSafer = 1
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
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
|
|