@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const require$$0 = require('url')
|
|
4
|
-
const require$$0$1 = require('
|
|
4
|
+
const require$$0$1 = require('module')
|
|
5
|
+
const require$$0$2 = require('util')
|
|
5
6
|
|
|
6
7
|
let debug_1
|
|
7
8
|
let hasRequiredDebug
|
|
@@ -21,11 +22,11 @@ function requireDebug() {
|
|
|
21
22
|
return debug_1
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
let constants
|
|
25
|
+
let constants
|
|
25
26
|
let hasRequiredConstants
|
|
26
27
|
function requireConstants() {
|
|
27
28
|
if (hasRequiredConstants) {
|
|
28
|
-
return constants
|
|
29
|
+
return constants
|
|
29
30
|
}
|
|
30
31
|
hasRequiredConstants = 1
|
|
31
32
|
|
|
@@ -51,7 +52,7 @@ function requireConstants() {
|
|
|
51
52
|
'prepatch',
|
|
52
53
|
'prerelease'
|
|
53
54
|
]
|
|
54
|
-
constants
|
|
55
|
+
constants = {
|
|
55
56
|
MAX_LENGTH,
|
|
56
57
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
57
58
|
MAX_SAFE_BUILD_LENGTH,
|
|
@@ -61,7 +62,7 @@ function requireConstants() {
|
|
|
61
62
|
FLAG_INCLUDE_PRERELEASE: 0b001,
|
|
62
63
|
FLAG_LOOSE: 0b010
|
|
63
64
|
}
|
|
64
|
-
return constants
|
|
65
|
+
return constants
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
const re = { exports: {} }
|
|
@@ -740,7 +741,7 @@ function requireClean() {
|
|
|
740
741
|
return clean_1
|
|
741
742
|
}
|
|
742
743
|
|
|
743
|
-
const require$$1$
|
|
744
|
+
const require$$1$2 = [
|
|
744
745
|
'0BSD',
|
|
745
746
|
'3D-Slicer-1.0',
|
|
746
747
|
'AAL',
|
|
@@ -1391,7 +1392,7 @@ const require$$1$3 = [
|
|
|
1391
1392
|
'zlib-acknowledgement'
|
|
1392
1393
|
]
|
|
1393
1394
|
|
|
1394
|
-
const require$$1$
|
|
1395
|
+
const require$$1$1 = [
|
|
1395
1396
|
'AGPL-1.0',
|
|
1396
1397
|
'AGPL-3.0',
|
|
1397
1398
|
'BSD-2-Clause-FreeBSD',
|
|
@@ -1496,7 +1497,7 @@ function requireScan$1() {
|
|
|
1496
1497
|
return scan$1
|
|
1497
1498
|
}
|
|
1498
1499
|
hasRequiredScan$1 = 1
|
|
1499
|
-
const licenses = [].concat(require$$1$
|
|
1500
|
+
const licenses = [].concat(require$$1$2).concat(require$$1$1)
|
|
1500
1501
|
const exceptions = require$$2
|
|
1501
1502
|
scan$1 = function (source) {
|
|
1502
1503
|
let index = 0
|
|
@@ -1766,7 +1767,7 @@ function requireScan() {
|
|
|
1766
1767
|
return scan
|
|
1767
1768
|
}
|
|
1768
1769
|
hasRequiredScan = 1
|
|
1769
|
-
const licenses = [].concat(require$$1$
|
|
1770
|
+
const licenses = [].concat(require$$1$2).concat(require$$1$1)
|
|
1770
1771
|
const exceptions = require$$2
|
|
1771
1772
|
scan = function (source) {
|
|
1772
1773
|
let index = 0
|
|
@@ -2052,7 +2053,7 @@ function requireSpdxCorrect() {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
hasRequiredSpdxCorrect = 1
|
|
2054
2055
|
const parse = requireSpdxExpressionParse()
|
|
2055
|
-
const spdxLicenseIds = require$$1$
|
|
2056
|
+
const spdxLicenseIds = require$$1$2
|
|
2056
2057
|
function valid(string) {
|
|
2057
2058
|
try {
|
|
2058
2059
|
parse(string)
|
|
@@ -4859,340 +4860,6 @@ function requireLib() {
|
|
|
4859
4860
|
return lib
|
|
4860
4861
|
}
|
|
4861
4862
|
|
|
4862
|
-
let implementation
|
|
4863
|
-
let hasRequiredImplementation
|
|
4864
|
-
function requireImplementation() {
|
|
4865
|
-
if (hasRequiredImplementation) {
|
|
4866
|
-
return implementation
|
|
4867
|
-
}
|
|
4868
|
-
hasRequiredImplementation = 1
|
|
4869
|
-
|
|
4870
|
-
/* eslint no-invalid-this: 1 */
|
|
4871
|
-
|
|
4872
|
-
const ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '
|
|
4873
|
-
const toStr = Object.prototype.toString
|
|
4874
|
-
const max = Math.max
|
|
4875
|
-
const funcType = '[object Function]'
|
|
4876
|
-
const concatty = function concatty(a, b) {
|
|
4877
|
-
const arr = []
|
|
4878
|
-
for (let i = 0; i < a.length; i += 1) {
|
|
4879
|
-
arr[i] = a[i]
|
|
4880
|
-
}
|
|
4881
|
-
for (let j = 0; j < b.length; j += 1) {
|
|
4882
|
-
arr[j + a.length] = b[j]
|
|
4883
|
-
}
|
|
4884
|
-
return arr
|
|
4885
|
-
}
|
|
4886
|
-
const slicy = function slicy(arrLike, offset) {
|
|
4887
|
-
const arr = []
|
|
4888
|
-
for (let i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
4889
|
-
arr[j] = arrLike[i]
|
|
4890
|
-
}
|
|
4891
|
-
return arr
|
|
4892
|
-
}
|
|
4893
|
-
const joiny = function (arr, joiner) {
|
|
4894
|
-
let str = ''
|
|
4895
|
-
for (let i = 0; i < arr.length; i += 1) {
|
|
4896
|
-
str += arr[i]
|
|
4897
|
-
if (i + 1 < arr.length) {
|
|
4898
|
-
str += joiner
|
|
4899
|
-
}
|
|
4900
|
-
}
|
|
4901
|
-
return str
|
|
4902
|
-
}
|
|
4903
|
-
implementation = function bind(that) {
|
|
4904
|
-
const target = this
|
|
4905
|
-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
4906
|
-
throw new TypeError(ERROR_MESSAGE + target)
|
|
4907
|
-
}
|
|
4908
|
-
const args = slicy(arguments, 1)
|
|
4909
|
-
let bound
|
|
4910
|
-
const binder = function () {
|
|
4911
|
-
if (this instanceof bound) {
|
|
4912
|
-
const result = target.apply(this, concatty(args, arguments))
|
|
4913
|
-
if (Object(result) === result) {
|
|
4914
|
-
return result
|
|
4915
|
-
}
|
|
4916
|
-
return this
|
|
4917
|
-
}
|
|
4918
|
-
return target.apply(that, concatty(args, arguments))
|
|
4919
|
-
}
|
|
4920
|
-
const boundLength = max(0, target.length - args.length)
|
|
4921
|
-
const boundArgs = []
|
|
4922
|
-
for (let i = 0; i < boundLength; i++) {
|
|
4923
|
-
boundArgs[i] = '$' + i
|
|
4924
|
-
}
|
|
4925
|
-
bound = Function(
|
|
4926
|
-
'binder',
|
|
4927
|
-
'return function (' +
|
|
4928
|
-
joiny(boundArgs, ',') +
|
|
4929
|
-
'){ return binder.apply(this,arguments); }'
|
|
4930
|
-
)(binder)
|
|
4931
|
-
if (target.prototype) {
|
|
4932
|
-
const Empty = function Empty() {}
|
|
4933
|
-
Empty.prototype = target.prototype
|
|
4934
|
-
bound.prototype = new Empty()
|
|
4935
|
-
Empty.prototype = null
|
|
4936
|
-
}
|
|
4937
|
-
return bound
|
|
4938
|
-
}
|
|
4939
|
-
return implementation
|
|
4940
|
-
}
|
|
4941
|
-
|
|
4942
|
-
let functionBind
|
|
4943
|
-
let hasRequiredFunctionBind
|
|
4944
|
-
function requireFunctionBind() {
|
|
4945
|
-
if (hasRequiredFunctionBind) {
|
|
4946
|
-
return functionBind
|
|
4947
|
-
}
|
|
4948
|
-
hasRequiredFunctionBind = 1
|
|
4949
|
-
const implementation = requireImplementation()
|
|
4950
|
-
functionBind = Function.prototype.bind || implementation
|
|
4951
|
-
return functionBind
|
|
4952
|
-
}
|
|
4953
|
-
|
|
4954
|
-
let hasown
|
|
4955
|
-
let hasRequiredHasown
|
|
4956
|
-
function requireHasown() {
|
|
4957
|
-
if (hasRequiredHasown) {
|
|
4958
|
-
return hasown
|
|
4959
|
-
}
|
|
4960
|
-
hasRequiredHasown = 1
|
|
4961
|
-
const call = Function.prototype.call
|
|
4962
|
-
const $hasOwn = Object.prototype.hasOwnProperty
|
|
4963
|
-
const bind = requireFunctionBind()
|
|
4964
|
-
|
|
4965
|
-
/** @type {import('.')} */
|
|
4966
|
-
hasown = bind.call(call, $hasOwn)
|
|
4967
|
-
return hasown
|
|
4968
|
-
}
|
|
4969
|
-
|
|
4970
|
-
const assert = true
|
|
4971
|
-
const async_hooks = '>= 8'
|
|
4972
|
-
const buffer_ieee754 = '>= 0.5 && < 0.9.7'
|
|
4973
|
-
const buffer = true
|
|
4974
|
-
const child_process = true
|
|
4975
|
-
const cluster = '>= 0.5'
|
|
4976
|
-
const console$1 = true
|
|
4977
|
-
const constants = true
|
|
4978
|
-
const crypto = true
|
|
4979
|
-
const _debug_agent = '>= 1 && < 8'
|
|
4980
|
-
const _debugger = '< 8'
|
|
4981
|
-
const dgram = true
|
|
4982
|
-
const diagnostics_channel = ['>= 14.17 && < 15', '>= 15.1']
|
|
4983
|
-
const dns = true
|
|
4984
|
-
const domain = '>= 0.7.12'
|
|
4985
|
-
const events = true
|
|
4986
|
-
const freelist = '< 6'
|
|
4987
|
-
const fs = true
|
|
4988
|
-
const _http_agent = '>= 0.11.1'
|
|
4989
|
-
const _http_client = '>= 0.11.1'
|
|
4990
|
-
const _http_common = '>= 0.11.1'
|
|
4991
|
-
const _http_incoming = '>= 0.11.1'
|
|
4992
|
-
const _http_outgoing = '>= 0.11.1'
|
|
4993
|
-
const _http_server = '>= 0.11.1'
|
|
4994
|
-
const http = true
|
|
4995
|
-
const http2 = '>= 8.8'
|
|
4996
|
-
const https = true
|
|
4997
|
-
const inspector = '>= 8'
|
|
4998
|
-
const _linklist = '< 8'
|
|
4999
|
-
const module$1 = true
|
|
5000
|
-
const net = true
|
|
5001
|
-
const os = true
|
|
5002
|
-
const path = true
|
|
5003
|
-
const perf_hooks = '>= 8.5'
|
|
5004
|
-
const process$1 = '>= 1'
|
|
5005
|
-
const punycode = '>= 0.5'
|
|
5006
|
-
const querystring = true
|
|
5007
|
-
const readline = true
|
|
5008
|
-
const repl = true
|
|
5009
|
-
const smalloc = '>= 0.11.5 && < 3'
|
|
5010
|
-
const _stream_duplex = '>= 0.9.4'
|
|
5011
|
-
const _stream_transform = '>= 0.9.4'
|
|
5012
|
-
const _stream_wrap = '>= 1.4.1'
|
|
5013
|
-
const _stream_passthrough = '>= 0.9.4'
|
|
5014
|
-
const _stream_readable = '>= 0.9.4'
|
|
5015
|
-
const _stream_writable = '>= 0.9.4'
|
|
5016
|
-
const stream = true
|
|
5017
|
-
const string_decoder = true
|
|
5018
|
-
const sys = ['>= 0.4 && < 0.7', '>= 0.8']
|
|
5019
|
-
const timers = true
|
|
5020
|
-
const _tls_common = '>= 0.11.13'
|
|
5021
|
-
const _tls_legacy = '>= 0.11.3 && < 10'
|
|
5022
|
-
const _tls_wrap = '>= 0.11.3'
|
|
5023
|
-
const tls = true
|
|
5024
|
-
const trace_events = '>= 10'
|
|
5025
|
-
const tty = true
|
|
5026
|
-
const url = true
|
|
5027
|
-
const util = true
|
|
5028
|
-
const v8 = '>= 1'
|
|
5029
|
-
const vm = true
|
|
5030
|
-
const wasi = ['>= 13.4 && < 13.5', '>= 18.17 && < 19', '>= 20']
|
|
5031
|
-
const worker_threads = '>= 11.7'
|
|
5032
|
-
const zlib = '>= 0.5'
|
|
5033
|
-
const require$$1$1 = {
|
|
5034
|
-
assert: assert,
|
|
5035
|
-
'node:assert': ['>= 14.18 && < 15', '>= 16'],
|
|
5036
|
-
'assert/strict': '>= 15',
|
|
5037
|
-
'node:assert/strict': '>= 16',
|
|
5038
|
-
async_hooks: async_hooks,
|
|
5039
|
-
'node:async_hooks': ['>= 14.18 && < 15', '>= 16'],
|
|
5040
|
-
buffer_ieee754: buffer_ieee754,
|
|
5041
|
-
buffer: buffer,
|
|
5042
|
-
'node:buffer': ['>= 14.18 && < 15', '>= 16'],
|
|
5043
|
-
child_process: child_process,
|
|
5044
|
-
'node:child_process': ['>= 14.18 && < 15', '>= 16'],
|
|
5045
|
-
cluster: cluster,
|
|
5046
|
-
'node:cluster': ['>= 14.18 && < 15', '>= 16'],
|
|
5047
|
-
console: console$1,
|
|
5048
|
-
'node:console': ['>= 14.18 && < 15', '>= 16'],
|
|
5049
|
-
constants: constants,
|
|
5050
|
-
'node:constants': ['>= 14.18 && < 15', '>= 16'],
|
|
5051
|
-
crypto: crypto,
|
|
5052
|
-
'node:crypto': ['>= 14.18 && < 15', '>= 16'],
|
|
5053
|
-
_debug_agent: _debug_agent,
|
|
5054
|
-
_debugger: _debugger,
|
|
5055
|
-
dgram: dgram,
|
|
5056
|
-
'node:dgram': ['>= 14.18 && < 15', '>= 16'],
|
|
5057
|
-
diagnostics_channel: diagnostics_channel,
|
|
5058
|
-
'node:diagnostics_channel': ['>= 14.18 && < 15', '>= 16'],
|
|
5059
|
-
dns: dns,
|
|
5060
|
-
'node:dns': ['>= 14.18 && < 15', '>= 16'],
|
|
5061
|
-
'dns/promises': '>= 15',
|
|
5062
|
-
'node:dns/promises': '>= 16',
|
|
5063
|
-
domain: domain,
|
|
5064
|
-
'node:domain': ['>= 14.18 && < 15', '>= 16'],
|
|
5065
|
-
events: events,
|
|
5066
|
-
'node:events': ['>= 14.18 && < 15', '>= 16'],
|
|
5067
|
-
freelist: freelist,
|
|
5068
|
-
fs: fs,
|
|
5069
|
-
'node:fs': ['>= 14.18 && < 15', '>= 16'],
|
|
5070
|
-
'fs/promises': ['>= 10 && < 10.1', '>= 14'],
|
|
5071
|
-
'node:fs/promises': ['>= 14.18 && < 15', '>= 16'],
|
|
5072
|
-
_http_agent: _http_agent,
|
|
5073
|
-
'node:_http_agent': ['>= 14.18 && < 15', '>= 16'],
|
|
5074
|
-
_http_client: _http_client,
|
|
5075
|
-
'node:_http_client': ['>= 14.18 && < 15', '>= 16'],
|
|
5076
|
-
_http_common: _http_common,
|
|
5077
|
-
'node:_http_common': ['>= 14.18 && < 15', '>= 16'],
|
|
5078
|
-
_http_incoming: _http_incoming,
|
|
5079
|
-
'node:_http_incoming': ['>= 14.18 && < 15', '>= 16'],
|
|
5080
|
-
_http_outgoing: _http_outgoing,
|
|
5081
|
-
'node:_http_outgoing': ['>= 14.18 && < 15', '>= 16'],
|
|
5082
|
-
_http_server: _http_server,
|
|
5083
|
-
'node:_http_server': ['>= 14.18 && < 15', '>= 16'],
|
|
5084
|
-
http: http,
|
|
5085
|
-
'node:http': ['>= 14.18 && < 15', '>= 16'],
|
|
5086
|
-
http2: http2,
|
|
5087
|
-
'node:http2': ['>= 14.18 && < 15', '>= 16'],
|
|
5088
|
-
https: https,
|
|
5089
|
-
'node:https': ['>= 14.18 && < 15', '>= 16'],
|
|
5090
|
-
inspector: inspector,
|
|
5091
|
-
'node:inspector': ['>= 14.18 && < 15', '>= 16'],
|
|
5092
|
-
'inspector/promises': ['>= 19'],
|
|
5093
|
-
'node:inspector/promises': ['>= 19'],
|
|
5094
|
-
_linklist: _linklist,
|
|
5095
|
-
module: module$1,
|
|
5096
|
-
'node:module': ['>= 14.18 && < 15', '>= 16'],
|
|
5097
|
-
net: net,
|
|
5098
|
-
'node:net': ['>= 14.18 && < 15', '>= 16'],
|
|
5099
|
-
'node-inspect/lib/_inspect': '>= 7.6 && < 12',
|
|
5100
|
-
'node-inspect/lib/internal/inspect_client': '>= 7.6 && < 12',
|
|
5101
|
-
'node-inspect/lib/internal/inspect_repl': '>= 7.6 && < 12',
|
|
5102
|
-
os: os,
|
|
5103
|
-
'node:os': ['>= 14.18 && < 15', '>= 16'],
|
|
5104
|
-
path: path,
|
|
5105
|
-
'node:path': ['>= 14.18 && < 15', '>= 16'],
|
|
5106
|
-
'path/posix': '>= 15.3',
|
|
5107
|
-
'node:path/posix': '>= 16',
|
|
5108
|
-
'path/win32': '>= 15.3',
|
|
5109
|
-
'node:path/win32': '>= 16',
|
|
5110
|
-
perf_hooks: perf_hooks,
|
|
5111
|
-
'node:perf_hooks': ['>= 14.18 && < 15', '>= 16'],
|
|
5112
|
-
process: process$1,
|
|
5113
|
-
'node:process': ['>= 14.18 && < 15', '>= 16'],
|
|
5114
|
-
punycode: punycode,
|
|
5115
|
-
'node:punycode': ['>= 14.18 && < 15', '>= 16'],
|
|
5116
|
-
querystring: querystring,
|
|
5117
|
-
'node:querystring': ['>= 14.18 && < 15', '>= 16'],
|
|
5118
|
-
readline: readline,
|
|
5119
|
-
'node:readline': ['>= 14.18 && < 15', '>= 16'],
|
|
5120
|
-
'readline/promises': '>= 17',
|
|
5121
|
-
'node:readline/promises': '>= 17',
|
|
5122
|
-
repl: repl,
|
|
5123
|
-
'node:repl': ['>= 14.18 && < 15', '>= 16'],
|
|
5124
|
-
'node:sea': ['>= 20.12 && < 21', '>= 21.7'],
|
|
5125
|
-
smalloc: smalloc,
|
|
5126
|
-
'node:sqlite': ['>= 22.13 && < 23', '>= 23.4'],
|
|
5127
|
-
_stream_duplex: _stream_duplex,
|
|
5128
|
-
'node:_stream_duplex': ['>= 14.18 && < 15', '>= 16'],
|
|
5129
|
-
_stream_transform: _stream_transform,
|
|
5130
|
-
'node:_stream_transform': ['>= 14.18 && < 15', '>= 16'],
|
|
5131
|
-
_stream_wrap: _stream_wrap,
|
|
5132
|
-
'node:_stream_wrap': ['>= 14.18 && < 15', '>= 16'],
|
|
5133
|
-
_stream_passthrough: _stream_passthrough,
|
|
5134
|
-
'node:_stream_passthrough': ['>= 14.18 && < 15', '>= 16'],
|
|
5135
|
-
_stream_readable: _stream_readable,
|
|
5136
|
-
'node:_stream_readable': ['>= 14.18 && < 15', '>= 16'],
|
|
5137
|
-
_stream_writable: _stream_writable,
|
|
5138
|
-
'node:_stream_writable': ['>= 14.18 && < 15', '>= 16'],
|
|
5139
|
-
stream: stream,
|
|
5140
|
-
'node:stream': ['>= 14.18 && < 15', '>= 16'],
|
|
5141
|
-
'stream/consumers': '>= 16.7',
|
|
5142
|
-
'node:stream/consumers': '>= 16.7',
|
|
5143
|
-
'stream/promises': '>= 15',
|
|
5144
|
-
'node:stream/promises': '>= 16',
|
|
5145
|
-
'stream/web': '>= 16.5',
|
|
5146
|
-
'node:stream/web': '>= 16.5',
|
|
5147
|
-
string_decoder: string_decoder,
|
|
5148
|
-
'node:string_decoder': ['>= 14.18 && < 15', '>= 16'],
|
|
5149
|
-
sys: sys,
|
|
5150
|
-
'node:sys': ['>= 14.18 && < 15', '>= 16'],
|
|
5151
|
-
'test/reporters': '>= 19.9 && < 20.2',
|
|
5152
|
-
'node:test/reporters': ['>= 18.17 && < 19', '>= 19.9', '>= 20'],
|
|
5153
|
-
'test/mock_loader': '>= 22.3 && < 22.7',
|
|
5154
|
-
'node:test/mock_loader': '>= 22.3 && < 22.7',
|
|
5155
|
-
'node:test': ['>= 16.17 && < 17', '>= 18'],
|
|
5156
|
-
timers: timers,
|
|
5157
|
-
'node:timers': ['>= 14.18 && < 15', '>= 16'],
|
|
5158
|
-
'timers/promises': '>= 15',
|
|
5159
|
-
'node:timers/promises': '>= 16',
|
|
5160
|
-
_tls_common: _tls_common,
|
|
5161
|
-
'node:_tls_common': ['>= 14.18 && < 15', '>= 16'],
|
|
5162
|
-
_tls_legacy: _tls_legacy,
|
|
5163
|
-
_tls_wrap: _tls_wrap,
|
|
5164
|
-
'node:_tls_wrap': ['>= 14.18 && < 15', '>= 16'],
|
|
5165
|
-
tls: tls,
|
|
5166
|
-
'node:tls': ['>= 14.18 && < 15', '>= 16'],
|
|
5167
|
-
trace_events: trace_events,
|
|
5168
|
-
'node:trace_events': ['>= 14.18 && < 15', '>= 16'],
|
|
5169
|
-
tty: tty,
|
|
5170
|
-
'node:tty': ['>= 14.18 && < 15', '>= 16'],
|
|
5171
|
-
url: url,
|
|
5172
|
-
'node:url': ['>= 14.18 && < 15', '>= 16'],
|
|
5173
|
-
util: util,
|
|
5174
|
-
'node:util': ['>= 14.18 && < 15', '>= 16'],
|
|
5175
|
-
'util/types': '>= 15.3',
|
|
5176
|
-
'node:util/types': '>= 16',
|
|
5177
|
-
'v8/tools/arguments': '>= 10 && < 12',
|
|
5178
|
-
'v8/tools/codemap': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5179
|
-
'v8/tools/consarray': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5180
|
-
'v8/tools/csvparser': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5181
|
-
'v8/tools/logreader': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5182
|
-
'v8/tools/profile_view': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5183
|
-
'v8/tools/splaytree': ['>= 4.4 && < 5', '>= 5.2 && < 12'],
|
|
5184
|
-
v8: v8,
|
|
5185
|
-
'node:v8': ['>= 14.18 && < 15', '>= 16'],
|
|
5186
|
-
vm: vm,
|
|
5187
|
-
'node:vm': ['>= 14.18 && < 15', '>= 16'],
|
|
5188
|
-
wasi: wasi,
|
|
5189
|
-
'node:wasi': ['>= 18.17 && < 19', '>= 20'],
|
|
5190
|
-
worker_threads: worker_threads,
|
|
5191
|
-
'node:worker_threads': ['>= 14.18 && < 15', '>= 16'],
|
|
5192
|
-
zlib: zlib,
|
|
5193
|
-
'node:zlib': ['>= 14.18 && < 15', '>= 16']
|
|
5194
|
-
}
|
|
5195
|
-
|
|
5196
4863
|
let isCoreModule
|
|
5197
4864
|
let hasRequiredIsCoreModule
|
|
5198
4865
|
function requireIsCoreModule() {
|
|
@@ -5200,68 +4867,14 @@ function requireIsCoreModule() {
|
|
|
5200
4867
|
return isCoreModule
|
|
5201
4868
|
}
|
|
5202
4869
|
hasRequiredIsCoreModule = 1
|
|
5203
|
-
const
|
|
5204
|
-
function
|
|
5205
|
-
|
|
5206
|
-
const parts = specifier.split(' ')
|
|
5207
|
-
const op = parts.length > 1 ? parts[0] : '='
|
|
5208
|
-
const versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.')
|
|
5209
|
-
for (let i = 0; i < 3; ++i) {
|
|
5210
|
-
const cur = parseInt(nodeParts[i] || 0, 10)
|
|
5211
|
-
const ver = parseInt(versionParts[i] || 0, 10)
|
|
5212
|
-
if (cur === ver) {
|
|
5213
|
-
continue // eslint-disable-line no-restricted-syntax, no-continue
|
|
5214
|
-
}
|
|
5215
|
-
if (op === '<') {
|
|
5216
|
-
return cur < ver
|
|
5217
|
-
}
|
|
5218
|
-
if (op === '>=') {
|
|
5219
|
-
return cur >= ver
|
|
5220
|
-
}
|
|
5221
|
-
return false
|
|
5222
|
-
}
|
|
5223
|
-
return op === '>='
|
|
5224
|
-
}
|
|
5225
|
-
function matchesRange(current, range) {
|
|
5226
|
-
const specifiers = range.split(/ ?&& ?/)
|
|
5227
|
-
if (specifiers.length === 0) {
|
|
5228
|
-
return false
|
|
5229
|
-
}
|
|
5230
|
-
for (let i = 0; i < specifiers.length; ++i) {
|
|
5231
|
-
if (!specifierIncluded(current, specifiers[i])) {
|
|
5232
|
-
return false
|
|
5233
|
-
}
|
|
5234
|
-
}
|
|
5235
|
-
return true
|
|
5236
|
-
}
|
|
5237
|
-
function versionIncluded(nodeVersion, specifierValue) {
|
|
5238
|
-
if (typeof specifierValue === 'boolean') {
|
|
5239
|
-
return specifierValue
|
|
5240
|
-
}
|
|
5241
|
-
const current =
|
|
5242
|
-
typeof nodeVersion === 'undefined'
|
|
5243
|
-
? process.versions && process.versions.node
|
|
5244
|
-
: nodeVersion
|
|
5245
|
-
if (typeof current !== 'string') {
|
|
4870
|
+
const { isBuiltin } = require$$0$1
|
|
4871
|
+
isCoreModule = function isCore(moduleName, nodeVersion) {
|
|
4872
|
+
if (typeof nodeVersion === 'string') {
|
|
5246
4873
|
throw new TypeError(
|
|
5247
|
-
|
|
5248
|
-
? 'Unable to determine current node version'
|
|
5249
|
-
: 'If provided, a valid node version is required'
|
|
4874
|
+
'nodeVersion parameter not supported.\nPlease report this error to https://github.com/SocketDev/socket-registry/issues.'
|
|
5250
4875
|
)
|
|
5251
4876
|
}
|
|
5252
|
-
|
|
5253
|
-
for (let i = 0; i < specifierValue.length; ++i) {
|
|
5254
|
-
if (matchesRange(current, specifierValue[i])) {
|
|
5255
|
-
return true
|
|
5256
|
-
}
|
|
5257
|
-
}
|
|
5258
|
-
return false
|
|
5259
|
-
}
|
|
5260
|
-
return matchesRange(current, specifierValue)
|
|
5261
|
-
}
|
|
5262
|
-
const data = require$$1$1
|
|
5263
|
-
isCoreModule = function isCore(x, nodeVersion) {
|
|
5264
|
-
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x])
|
|
4877
|
+
return isBuiltin(moduleName)
|
|
5265
4878
|
}
|
|
5266
4879
|
return isCoreModule
|
|
5267
4880
|
}
|
|
@@ -5879,7 +5492,7 @@ function requireMake_warning() {
|
|
|
5879
5492
|
return make_warning
|
|
5880
5493
|
}
|
|
5881
5494
|
hasRequiredMake_warning = 1
|
|
5882
|
-
const util = require$$0$
|
|
5495
|
+
const util = require$$0$2
|
|
5883
5496
|
const messages = require$$1
|
|
5884
5497
|
make_warning = function () {
|
|
5885
5498
|
const args = Array.prototype.slice.call(arguments, 0)
|