@exodus/test-bundler 1.0.0-rc.1
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/CHANGELOG.md +3 -0
- package/LICENSE +21 -0
- package/babel-worker.cjs +62 -0
- package/bundle.js +555 -0
- package/modules/ansi-styles.cjs +49 -0
- package/modules/assert-strict.cjs +1 -0
- package/modules/child_process.cjs +10 -0
- package/modules/cluster.cjs +27 -0
- package/modules/crypto.cjs +5 -0
- package/modules/empty/function-throw.cjs +4 -0
- package/modules/empty/module-throw.cjs +1 -0
- package/modules/fs-promises.cjs +1 -0
- package/modules/fs.cjs +123 -0
- package/modules/globals.cjs +341 -0
- package/modules/globals.node.cjs +8 -0
- package/modules/http.cjs +119 -0
- package/modules/https.cjs +11 -0
- package/modules/jest-message-util.js +5 -0
- package/modules/jest-util.js +22 -0
- package/modules/module.cjs +16 -0
- package/modules/node-buffer.cjs +3 -0
- package/modules/text-encoding-utf.cjs +90 -0
- package/modules/tty.cjs +10 -0
- package/modules/url.cjs +32 -0
- package/modules/util-format.cjs +48 -0
- package/modules/util.cjs +4 -0
- package/modules/ws.cjs +20 -0
- package/package.json +81 -0
package/modules/http.cjs
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
const STATUS_CODES = {
|
|
2
|
+
100: 'Continue',
|
|
3
|
+
101: 'Switching Protocols',
|
|
4
|
+
102: 'Processing',
|
|
5
|
+
103: 'Early Hints',
|
|
6
|
+
200: 'OK',
|
|
7
|
+
201: 'Created',
|
|
8
|
+
202: 'Accepted',
|
|
9
|
+
203: 'Non-Authoritative Information',
|
|
10
|
+
204: 'No Content',
|
|
11
|
+
205: 'Reset Content',
|
|
12
|
+
206: 'Partial Content',
|
|
13
|
+
207: 'Multi-Status',
|
|
14
|
+
208: 'Already Reported',
|
|
15
|
+
226: 'IM Used',
|
|
16
|
+
300: 'Multiple Choices',
|
|
17
|
+
301: 'Moved Permanently',
|
|
18
|
+
302: 'Found',
|
|
19
|
+
303: 'See Other',
|
|
20
|
+
304: 'Not Modified',
|
|
21
|
+
305: 'Use Proxy',
|
|
22
|
+
307: 'Temporary Redirect',
|
|
23
|
+
308: 'Permanent Redirect',
|
|
24
|
+
400: 'Bad Request',
|
|
25
|
+
401: 'Unauthorized',
|
|
26
|
+
402: 'Payment Required',
|
|
27
|
+
403: 'Forbidden',
|
|
28
|
+
404: 'Not Found',
|
|
29
|
+
405: 'Method Not Allowed',
|
|
30
|
+
406: 'Not Acceptable',
|
|
31
|
+
407: 'Proxy Authentication Required',
|
|
32
|
+
408: 'Request Timeout',
|
|
33
|
+
409: 'Conflict',
|
|
34
|
+
410: 'Gone',
|
|
35
|
+
411: 'Length Required',
|
|
36
|
+
412: 'Precondition Failed',
|
|
37
|
+
413: 'Payload Too Large',
|
|
38
|
+
414: 'URI Too Long',
|
|
39
|
+
415: 'Unsupported Media Type',
|
|
40
|
+
416: 'Range Not Satisfiable',
|
|
41
|
+
417: 'Expectation Failed',
|
|
42
|
+
418: "I'm a Teapot",
|
|
43
|
+
421: 'Misdirected Request',
|
|
44
|
+
422: 'Unprocessable Entity',
|
|
45
|
+
423: 'Locked',
|
|
46
|
+
424: 'Failed Dependency',
|
|
47
|
+
425: 'Too Early',
|
|
48
|
+
426: 'Upgrade Required',
|
|
49
|
+
428: 'Precondition Required',
|
|
50
|
+
429: 'Too Many Requests',
|
|
51
|
+
431: 'Request Header Fields Too Large',
|
|
52
|
+
451: 'Unavailable For Legal Reasons',
|
|
53
|
+
500: 'Internal Server Error',
|
|
54
|
+
501: 'Not Implemented',
|
|
55
|
+
502: 'Bad Gateway',
|
|
56
|
+
503: 'Service Unavailable',
|
|
57
|
+
504: 'Gateway Timeout',
|
|
58
|
+
505: 'HTTP Version Not Supported',
|
|
59
|
+
506: 'Variant Also Negotiates',
|
|
60
|
+
507: 'Insufficient Storage',
|
|
61
|
+
508: 'Loop Detected',
|
|
62
|
+
509: 'Bandwidth Limit Exceeded',
|
|
63
|
+
510: 'Not Extended',
|
|
64
|
+
511: 'Network Authentication Required',
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// prettier-ignore
|
|
68
|
+
const METHODS = [
|
|
69
|
+
'ACL', 'BIND', 'CHECKOUT',
|
|
70
|
+
'CONNECT', 'COPY', 'DELETE',
|
|
71
|
+
'GET', 'HEAD', 'LINK',
|
|
72
|
+
'LOCK', 'M-SEARCH', 'MERGE',
|
|
73
|
+
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
|
|
74
|
+
'MOVE', 'NOTIFY', 'OPTIONS',
|
|
75
|
+
'PATCH', 'POST', 'PROPFIND',
|
|
76
|
+
'PROPPATCH', 'PURGE', 'PUT',
|
|
77
|
+
'QUERY', 'REBIND', 'REPORT',
|
|
78
|
+
'SEARCH', 'SOURCE', 'SUBSCRIBE',
|
|
79
|
+
'TRACE', 'UNBIND', 'UNLINK',
|
|
80
|
+
'UNLOCK', 'UNSUBSCRIBE'
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
const keys = [
|
|
84
|
+
'_connectionListener',
|
|
85
|
+
'Agent',
|
|
86
|
+
'ClientRequest',
|
|
87
|
+
'IncomingMessage',
|
|
88
|
+
'OutgoingMessage',
|
|
89
|
+
'Server',
|
|
90
|
+
'ServerResponse',
|
|
91
|
+
'createServer',
|
|
92
|
+
'validateHeaderName',
|
|
93
|
+
'validateHeaderValue',
|
|
94
|
+
'get',
|
|
95
|
+
'request',
|
|
96
|
+
'setMaxIdleHTTPParsers',
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
const makeMethod = (key) => {
|
|
100
|
+
// Not an arrow as some methods are constructors and can be called with new
|
|
101
|
+
return function () {
|
|
102
|
+
throw new Error(`http(s).${key} unsupported in bundled mode`)
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
module.exports = {
|
|
107
|
+
METHODS,
|
|
108
|
+
STATUS_CODES,
|
|
109
|
+
...Object.fromEntries(keys.map((key) => [key, makeMethod(key)])),
|
|
110
|
+
get maxHeaderSize() {
|
|
111
|
+
return 16_384
|
|
112
|
+
},
|
|
113
|
+
get globalAgent() {
|
|
114
|
+
throw new Error('http.globalAgent unsupported in bundled mode')
|
|
115
|
+
},
|
|
116
|
+
set globalAgent(value) {
|
|
117
|
+
throw new Error('http.globalAgent unsupported in bundled mode')
|
|
118
|
+
},
|
|
119
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { Agent, Server, createServer, get, request } = require('./http.cjs')
|
|
2
|
+
const inherited = { Agent, Server, createServer, get, request }
|
|
3
|
+
module.exports = {
|
|
4
|
+
...inherited,
|
|
5
|
+
get globalAgent() {
|
|
6
|
+
throw new Error('https.globalAgent unsupported in bundled mode')
|
|
7
|
+
},
|
|
8
|
+
set globalAgent(value) {
|
|
9
|
+
throw new Error('https.globalAgent unsupported in bundled mode')
|
|
10
|
+
},
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// APIs used in expect()
|
|
2
|
+
|
|
3
|
+
export const isPromise = (x) => Boolean(x && x.then && x.catch && x.finally)
|
|
4
|
+
|
|
5
|
+
var NUMS = [
|
|
6
|
+
'zero',
|
|
7
|
+
'one',
|
|
8
|
+
'two',
|
|
9
|
+
'three',
|
|
10
|
+
'four',
|
|
11
|
+
'five',
|
|
12
|
+
'six',
|
|
13
|
+
'seven',
|
|
14
|
+
'eight',
|
|
15
|
+
'nine',
|
|
16
|
+
'ten',
|
|
17
|
+
'eleven',
|
|
18
|
+
'twelve',
|
|
19
|
+
'thirteen',
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
export const pluralize = (word, count) => `${NUMS[count] || count} ${word}${count === 1 ? '' : 's'}`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const ids = 'Module,SourceMap,builtinModules,findSourceMap,globalPaths,isBuiltin,runMain'.split(',')
|
|
2
|
+
|
|
3
|
+
const makeMethod = (key) => {
|
|
4
|
+
// Not an arrow as there are classes that can be called with new
|
|
5
|
+
return function () {
|
|
6
|
+
throw new Error(`module.${key} unsupported in bundled mode`)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const createRequire = (filename) => (file) => {
|
|
11
|
+
const clean = file.replace(/^node:/, '')
|
|
12
|
+
if (globalThis.EXODUS_TEST_MOCK_BUILTINS?.has(clean)) return EXODUS_TEST_MOCK_BUILTINS.get(clean) // eslint-disable-line no-undef
|
|
13
|
+
throw new Error(`module.createRequire is unsupported in bundled mode (origin: ${filename})`)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = { ...Object.fromEntries(ids.map((key) => [key, makeMethod(key)])), createRequire }
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Adapted from https://github.com/ExodusMovement/text-encoding-utf8
|
|
2
|
+
|
|
3
|
+
/* eslint-disable unicorn/prefer-set-has, unicorn/text-encoding-identifier-case */
|
|
4
|
+
|
|
5
|
+
const UTF8 = 'utf-8'
|
|
6
|
+
const UTF16LE = 'utf-16le'
|
|
7
|
+
|
|
8
|
+
// https://encoding.spec.whatwg.org/#names-and-labels
|
|
9
|
+
const UTF8alias = ['utf8', 'unicode-1-1-utf-8', 'unicode11utf8', 'unicode20utf8', 'x-unicode20utf8']
|
|
10
|
+
const UTF16LEalias = ['utf-16', 'ucs-2', 'unicode', 'unicodefeff', 'iso-10646-ucs-2', 'csunicode'] // but not utf16
|
|
11
|
+
|
|
12
|
+
const normalizeEncoding = (encoding) => {
|
|
13
|
+
const lower = encoding.toLowerCase()
|
|
14
|
+
if (UTF8 === lower || UTF16LE === lower) return lower // fast path
|
|
15
|
+
if (UTF8alias.includes(lower)) return UTF8
|
|
16
|
+
if (UTF16LEalias.includes(lower)) return UTF16LE
|
|
17
|
+
return lower
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const defineFinal = (obj, key, value) => Object.defineProperty(obj, key, { value, writable: false })
|
|
21
|
+
|
|
22
|
+
const assertUTF8 = (encoding) => {
|
|
23
|
+
if (encoding !== UTF8) throw new Error('only utf-8 is supported')
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const assertUTF8orUTF16LE = (enc) => {
|
|
27
|
+
// We don't include ascii because it's an alias to windows-1252 in TextDecoder and differs from Buffer ascii
|
|
28
|
+
// We don't include utf-16be because it's not supported by buffer package
|
|
29
|
+
if (enc !== UTF8 && enc !== UTF16LE) throw new Error('only utf-8 and utf-16le are supported')
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const assertBufferSource = (buf) => {
|
|
33
|
+
if (buf instanceof ArrayBuffer || ArrayBuffer.isView(buf)) return
|
|
34
|
+
if (globalThis.SharedArrayBuffer && buf instanceof globalThis.SharedArrayBuffer) return
|
|
35
|
+
throw new Error('argument must be a SharedArrayBuffer, ArrayBuffer or ArrayBufferView')
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// encoding argument is non-standard but catches usage of 'text-encoding' npm package API
|
|
39
|
+
// Standard TextEncoder constructor doesn't have any arguments at all and is always utf-8
|
|
40
|
+
function TextEncoder(encoding = UTF8) {
|
|
41
|
+
encoding = normalizeEncoding(encoding)
|
|
42
|
+
assertUTF8(encoding)
|
|
43
|
+
defineFinal(this, 'encoding', encoding)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
TextEncoder.prototype.encode = function (str) {
|
|
47
|
+
const buf = Buffer.from(str)
|
|
48
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.length)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
TextEncoder.prototype.encodeInto = function () {
|
|
52
|
+
throw new Error('not supported')
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function TextDecoder(encoding = UTF8, options = {}) {
|
|
56
|
+
encoding = normalizeEncoding(encoding)
|
|
57
|
+
assertUTF8orUTF16LE(encoding)
|
|
58
|
+
|
|
59
|
+
const { fatal = false, ignoreBOM = false, stream = false } = options
|
|
60
|
+
if (ignoreBOM !== false) throw new Error('option "ignoreBOM" is not supported')
|
|
61
|
+
if (stream !== false) throw new Error('option "stream" is not supported')
|
|
62
|
+
|
|
63
|
+
// see: https://github.com/inexorabletash/text-encoding/blob/master/lib/encoding.js#L1049
|
|
64
|
+
defineFinal(this, 'encoding', encoding)
|
|
65
|
+
defineFinal(this, 'fatal', fatal)
|
|
66
|
+
defineFinal(this, 'ignoreBOM', ignoreBOM)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Note: https://npmjs.com/package/buffer has a bug
|
|
70
|
+
// Buffer.from([0xf0, 0x90, 0x80]).toString().length should be 1, but it is 3 in https://npmjs.com/package/buffer
|
|
71
|
+
// Buffer.from([0xf0, 0x80, 0x80]).toString().length should be 3, see https://github.com/nodejs/node/issues/16894
|
|
72
|
+
TextDecoder.prototype.decode = function (buf) {
|
|
73
|
+
if (buf === undefined) return ''
|
|
74
|
+
assertBufferSource(buf)
|
|
75
|
+
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
|
|
76
|
+
const res = buf.toString(this.encoding)
|
|
77
|
+
if (this.fatal && res.includes('\uFFFD')) {
|
|
78
|
+
// We have a replacement symbol, recheck if output matches input
|
|
79
|
+
const reconstructed = Buffer.from(res, this.encoding)
|
|
80
|
+
if (Buffer.compare(buf, reconstructed) !== 0) {
|
|
81
|
+
const err = new TypeError('The encoded data was not valid for encoding utf-8')
|
|
82
|
+
err.code = 'ERR_ENCODING_INVALID_ENCODED_DATA'
|
|
83
|
+
throw err
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return res
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
module.exports = { TextEncoder, TextDecoder }
|
package/modules/tty.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
isatty: () => false,
|
|
3
|
+
// Not arrows as those are classes and can be called with new
|
|
4
|
+
ReadStream() {
|
|
5
|
+
throw new Error('tty.ReadStream unsupported in bundled mode')
|
|
6
|
+
},
|
|
7
|
+
WriteStream() {
|
|
8
|
+
throw new Error('tty.WriteStream unsupported in bundled mode')
|
|
9
|
+
},
|
|
10
|
+
}
|
package/modules/url.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const urlLib = require('url/url.js')
|
|
2
|
+
|
|
3
|
+
function pathToFileURL(path) {
|
|
4
|
+
const url = urlLib.format({ protocol: 'file:', pathname: path, slashes: true })
|
|
5
|
+
return globalThis.URL ? new globalThis.URL(url) : urlLib.parse(url)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function fileURLToPath(url, options) {
|
|
9
|
+
if (options?.windows) throw new Error('Windows mode not supported')
|
|
10
|
+
if (typeof url === 'string') {
|
|
11
|
+
url = urlLib.parse(url)
|
|
12
|
+
if (!url) throw new Error('Failed to parse URL')
|
|
13
|
+
} else if (!globalThis.URL || !(url instanceof globalThis.URL)) {
|
|
14
|
+
throw new Error('Input is not an URL')
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (url.protocol !== 'file:' || url.host !== '') throw new Error('Input is not a file URL')
|
|
18
|
+
const path = url.pathname
|
|
19
|
+
for (let n = 0; n < path.length; n++) {
|
|
20
|
+
if (path[n] !== '%' && path[n + 1] === '2' && (path.codePointAt(n + 2) | 0x20) === 102) {
|
|
21
|
+
throw new Error('must not include encoded / characters')
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return path
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = { ...urlLib, pathToFileURL, fileURLToPath }
|
|
29
|
+
|
|
30
|
+
for (const name of ['URL', 'URLSearchParams']) {
|
|
31
|
+
Object.defineProperty(module.exports, name, { get: () => globalThis[name], enumerable: true })
|
|
32
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const { inspect: inspectOrig, isString, isNull, isObject } = require('util/util.js') // dep
|
|
2
|
+
|
|
3
|
+
// Print errors without square brackets
|
|
4
|
+
const trim = (x) => x.trim()
|
|
5
|
+
const validLine = (x) => x && x !== '@'
|
|
6
|
+
const padLine = (line) => ` ${line}`
|
|
7
|
+
const pad = (stack) => stack.split('\n').map(trim).filter(validLine).map(padLine).join('\n')
|
|
8
|
+
const err2str = (e) => (e.stack?.startsWith(`${e}\n`) ? e.stack : `${e}\n${pad(e.stack)}`.trimEnd())
|
|
9
|
+
const inspect = (obj, opts) => (obj instanceof Error ? err2str(obj) : inspectOrig(obj, opts))
|
|
10
|
+
|
|
11
|
+
// Patched impl from require('util'), added %i
|
|
12
|
+
const formatRegExp = /%[%dijs]/g
|
|
13
|
+
module.exports = function (f, ...args) {
|
|
14
|
+
if (!isString(f)) return [f, ...args].map((x) => inspect(x)).join(' ')
|
|
15
|
+
|
|
16
|
+
let i = 0
|
|
17
|
+
let str = String(f).replace(formatRegExp, function (x) {
|
|
18
|
+
if (x === '%%') return '%'
|
|
19
|
+
if (i >= args.length) return x
|
|
20
|
+
switch (x) {
|
|
21
|
+
case '%s':
|
|
22
|
+
return String(args[i++])
|
|
23
|
+
case '%d':
|
|
24
|
+
return Number(args[i++])
|
|
25
|
+
case '%i':
|
|
26
|
+
return `${parseInt(args[i++])}`
|
|
27
|
+
case '%j':
|
|
28
|
+
try {
|
|
29
|
+
return JSON.stringify(args[i++])
|
|
30
|
+
} catch {
|
|
31
|
+
return '[Circular]'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
default:
|
|
35
|
+
return x
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
for (var x = args[i]; i < args.length; x = args[++i]) {
|
|
40
|
+
if (isNull(x) || !isObject(x)) {
|
|
41
|
+
str += ' ' + x
|
|
42
|
+
} else {
|
|
43
|
+
str += ' ' + inspect(x)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return str
|
|
48
|
+
}
|
package/modules/util.cjs
ADDED
package/modules/ws.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Should not be an arrow function as might be used as a constructor
|
|
2
|
+
const sub = function () {
|
|
3
|
+
throw new Error('module unsupported in bundled form: ws')
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
class WebSocket {
|
|
7
|
+
constructor() {
|
|
8
|
+
throw new Error('module unsupported in bundled form: ws')
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static CONNECTING = 0
|
|
12
|
+
static OPEN = 1
|
|
13
|
+
static CLOSING = 2
|
|
14
|
+
static CLOSED = 3
|
|
15
|
+
static Server = sub
|
|
16
|
+
static Receiver = sub
|
|
17
|
+
static Sender = sub
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = WebSocket
|
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@exodus/test-bundler",
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
|
+
"author": "Exodus Movement, Inc.",
|
|
5
|
+
"description": "Test bundler for @exodus/test for barebone and browser engines",
|
|
6
|
+
"homepage": "https://github.com/ExodusMovement/test",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/ExodusMovement/test.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ExodusMovement/tests/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"exodus-test",
|
|
16
|
+
"@exodus/test",
|
|
17
|
+
"test",
|
|
18
|
+
"node-test"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
"./bundle": "./bundle.js"
|
|
24
|
+
},
|
|
25
|
+
"prettier": "@exodus/prettier",
|
|
26
|
+
"files": [
|
|
27
|
+
"babel-worker.cjs",
|
|
28
|
+
"bundle.js",
|
|
29
|
+
"modules/empty/function-throw.cjs",
|
|
30
|
+
"modules/empty/module-throw.cjs",
|
|
31
|
+
"modules/ansi-styles.cjs",
|
|
32
|
+
"modules/assert-strict.cjs",
|
|
33
|
+
"modules/child_process.cjs",
|
|
34
|
+
"modules/cluster.cjs",
|
|
35
|
+
"modules/crypto.cjs",
|
|
36
|
+
"modules/fs.cjs",
|
|
37
|
+
"modules/fs-promises.cjs",
|
|
38
|
+
"modules/http.cjs",
|
|
39
|
+
"modules/https.cjs",
|
|
40
|
+
"modules/globals.cjs",
|
|
41
|
+
"modules/globals.node.cjs",
|
|
42
|
+
"modules/jest-message-util.js",
|
|
43
|
+
"modules/jest-util.js",
|
|
44
|
+
"modules/module.cjs",
|
|
45
|
+
"modules/node-buffer.cjs",
|
|
46
|
+
"modules/text-encoding-utf.cjs",
|
|
47
|
+
"modules/tty.cjs",
|
|
48
|
+
"modules/url.cjs",
|
|
49
|
+
"modules/util.cjs",
|
|
50
|
+
"modules/util-format.cjs",
|
|
51
|
+
"modules/ws.cjs",
|
|
52
|
+
"CHANGELOG.md"
|
|
53
|
+
],
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@ungap/url-search-params": "^0.2.2",
|
|
56
|
+
"assert": "^2.1.0",
|
|
57
|
+
"browserify-zlib": "^0.2.0",
|
|
58
|
+
"buffer": "^6.0.3",
|
|
59
|
+
"constants-browserify": "^1.0.0",
|
|
60
|
+
"esbuild": "~0.25.4",
|
|
61
|
+
"events": "^3.3.0",
|
|
62
|
+
"os-browserify": "^0.3.0",
|
|
63
|
+
"path-browserify": "^1.0.1",
|
|
64
|
+
"querystring-es3": "^0.2.1",
|
|
65
|
+
"stream-browserify": "^3.0.0",
|
|
66
|
+
"timers-browserify": "^2.0.12",
|
|
67
|
+
"url": "^0.11.0",
|
|
68
|
+
"util": "^0.12.5"
|
|
69
|
+
},
|
|
70
|
+
"optionalDependencies": {
|
|
71
|
+
"@babel/core": "^7.0.0",
|
|
72
|
+
"@babel/plugin-syntax-import-attributes": "^7.0.0",
|
|
73
|
+
"@babel/plugin-syntax-typescript": "^7.0.0",
|
|
74
|
+
"@babel/plugin-transform-block-scoping": "^7.0.0",
|
|
75
|
+
"@babel/plugin-transform-class-properties": "^7.0.0",
|
|
76
|
+
"@babel/plugin-transform-classes": "^7.0.0",
|
|
77
|
+
"@babel/plugin-transform-private-methods": "^7.0.0",
|
|
78
|
+
"crypto-browserify": "^3.12.0",
|
|
79
|
+
"flow-remove-types": "^2.242.0"
|
|
80
|
+
}
|
|
81
|
+
}
|