@evobug_com/safe-ts-feature-node 0.1.0 → 0.3.0
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/README.md +4 -2
- package/node-api.json +48 -85
- package/package.json +162 -3
- package/safe/buffer.d.ts +155 -0
- package/safe/buffer.js +582 -0
- package/safe/child_process.d.ts +32 -0
- package/safe/child_process.js +21 -0
- package/safe/core.d.ts +36 -0
- package/safe/core.js +25 -0
- package/safe/crypto.d.ts +105 -0
- package/safe/crypto.js +205 -0
- package/safe/dgram.d.ts +26 -0
- package/safe/dgram.js +76 -0
- package/safe/dns/promises.d.ts +136 -0
- package/safe/dns/promises.js +262 -0
- package/safe/errors.d.ts +155 -0
- package/safe/errors.js +32 -0
- package/safe/events.d.ts +11 -0
- package/safe/events.js +14 -0
- package/safe/ffi.d.ts +23 -0
- package/safe/ffi.js +57 -0
- package/safe/fs/promises.d.ts +168 -0
- package/safe/fs/promises.js +366 -0
- package/safe/fs.d.ts +201 -0
- package/safe/fs.js +422 -0
- package/safe/globals.d.ts +87 -0
- package/safe/globals.js +232 -0
- package/safe/http.d.ts +34 -0
- package/safe/http.js +85 -0
- package/safe/http2.d.ts +26 -0
- package/safe/http2.js +61 -0
- package/safe/https.d.ts +21 -0
- package/safe/https.js +29 -0
- package/safe/inspector/promises.d.ts +200 -0
- package/safe/inspector/promises.js +13 -0
- package/safe/inspector.d.ts +8 -0
- package/safe/inspector.js +13 -0
- package/safe/module.d.ts +21 -0
- package/safe/module.js +45 -0
- package/safe/net.d.ts +11 -0
- package/safe/net.js +17 -0
- package/safe/os.d.ts +20 -0
- package/safe/os.js +29 -0
- package/safe/perf_hooks.d.ts +11 -0
- package/safe/perf_hooks.js +12 -0
- package/safe/process.d.ts +31 -0
- package/safe/process.js +97 -0
- package/safe/punycode.d.ts +10 -0
- package/safe/punycode.js +21 -0
- package/safe/querystring.d.ts +11 -0
- package/safe/querystring.js +21 -0
- package/safe/readline/promises.d.ts +12 -0
- package/safe/readline/promises.js +13 -0
- package/safe/runtime.d.ts +10 -0
- package/safe/runtime.js +16 -0
- package/safe/sqlite.d.ts +54 -0
- package/safe/sqlite.js +118 -0
- package/safe/stream/consumers.d.ts +19 -0
- package/safe/stream/consumers.js +54 -0
- package/safe/stream/promises.d.ts +26 -0
- package/safe/stream/promises.js +22 -0
- package/safe/stream/web.d.ts +18 -0
- package/safe/stream/web.js +37 -0
- package/safe/stream.d.ts +29 -0
- package/safe/stream.js +62 -0
- package/safe/tls.d.ts +27 -0
- package/safe/tls.js +65 -0
- package/safe/url.d.ts +28 -0
- package/safe/url.js +57 -0
- package/safe/util.d.ts +13 -0
- package/safe/util.js +25 -0
- package/safe/v8.d.ts +28 -0
- package/safe/v8.js +85 -0
- package/safe/vm.d.ts +23 -0
- package/safe/vm.js +69 -0
- package/safe/wasi.d.ts +10 -0
- package/safe/wasi.js +20 -0
- package/safe/worker_threads.d.ts +31 -0
- package/safe/worker_threads.js +62 -0
- package/safe/zlib.d.ts +61 -0
- package/safe/zlib.js +214 -0
- package/safe-ts.json +1722 -490
package/README.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# @evobug_com/safe-ts-feature-node
|
|
2
2
|
|
|
3
|
-
SAFE-TS
|
|
3
|
+
SAFE-TS feature pack for Node: which built-in functions throw or reject, with the exact errors, and safe versions of them that return a Result (one module per Node module), with the error types and guards.
|
|
4
4
|
|
|
5
5
|
**Documentation: [safe-ts.evobug-pages.com/guide/libraries](https://safe-ts.evobug-pages.com/guide/libraries)**
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install
|
|
8
|
+
npm install @evobug_com/safe-ts-feature-node
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Part of [SAFE-TS](https://safe-ts.evobug-pages.com/), a strict, Rust-flavoured subset of TypeScript. The website has the
|
|
12
12
|
guides, a page per rule, and a playground that runs the checker in your browser.
|
|
13
13
|
|
|
14
|
+
Changes in each version: [CHANGELOG.md](https://git.evobug.com/Evobug/Safe-Ts/src/branch/main/CHANGELOG.md).
|
|
15
|
+
|
|
14
16
|
Source: https://git.evobug.com/Evobug/Safe-Ts. Licensed under MIT OR Apache-2.0.
|
package/node-api.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Every callable Node exposes, by how it fails. Checked against the running Node by test/manifest.test.ts; `node test/inventory.ts` lists what is new or gone. `extends` (class bases) is written from the running Node by `--write-extends`; `creates` (which class a callable returns) is written by hand. `throws`/`rejects` the checker can see are in safe-ts.json.",
|
|
2
|
+
"$comment": "Every callable Node exposes, by how it fails. Checked against the running Node by test/manifest.test.ts; `node test/inventory.ts` lists what is new or gone. `errors` says what each throws/rejects member fails with, in the notation of packages/pack-kit/notation.ts (also in safe-ts.json's $comment); test/errors.test.ts makes every member it safely can fail on the running Node (test/triggers.ts) and checks the error against it. `extends` (class bases) is written from the running Node by `--write-extends`; `creates` (which class a callable returns) is written by hand. `throws`/`rejects` the checker can see are in safe-ts.json.",
|
|
3
3
|
"node": "26.13.0",
|
|
4
4
|
"categories": {
|
|
5
5
|
"throws": "Throws synchronously on runtime conditions: I/O, the environment, or data from outside (a file, a request, user input).",
|
|
@@ -15,81 +15,42 @@
|
|
|
15
15
|
"never": "Does not fail."
|
|
16
16
|
},
|
|
17
17
|
"errors": {
|
|
18
|
-
"node:events": { "
|
|
19
|
-
"node:stream": { "*": "
|
|
20
|
-
"node:stream/promises": { "*": "
|
|
21
|
-
"node:stream/consumers": { "*": "
|
|
22
|
-
"node:stream/web": { "*": "
|
|
23
|
-
"node:net": { "
|
|
24
|
-
"node:tls": { "*": "Error
|
|
25
|
-
"node:buffer": { "*": "RangeError
|
|
26
|
-
"node:child_process": { "execSync": "Error
|
|
27
|
-
"node:crypto": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
"node:
|
|
43
|
-
"node:
|
|
44
|
-
"node:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
"
|
|
54
|
-
"*": "Error (e.g. ENOENT)",
|
|
55
|
-
"appendFile": "Error (e.g. EACCES)", "writeFile": "Error (e.g. EACCES)", "chown": "Error (e.g. EPERM)", "lchmod": "Error (ERR_METHOD_NOT_IMPLEMENTED outside macOS)",
|
|
56
|
-
"link": "Error (e.g. EEXIST)", "symlink": "Error (e.g. EEXIST)", "mkdir": "Error (e.g. EEXIST)", "readlink": "Error (e.g. EINVAL)", "rmdir": "Error (e.g. ENOTEMPTY)",
|
|
57
|
-
"FileHandle#appendFile": "Error (e.g. EBADF)", "FileHandle#chmod": "Error (e.g. EPERM)", "FileHandle#chown": "Error (e.g. EPERM)", "FileHandle#close": "Error (e.g. EBADF)", "FileHandle#datasync": "Error (e.g. EIO)", "FileHandle#sync": "Error (e.g. EIO)", "FileHandle#read": "Error (e.g. EISDIR)", "FileHandle#readv": "Error (e.g. EBADF)", "FileHandle#readFile": "Error (e.g. EISDIR)", "FileHandle#stat": "Error (e.g. EBADF)", "FileHandle#truncate": "Error (e.g. EINVAL)", "FileHandle#utimes": "Error (e.g. EPERM)", "FileHandle#write": "Error (e.g. ENOSPC)", "FileHandle#writev": "Error (e.g. ENOSPC)", "FileHandle#writeFile": "Error (e.g. ENOSPC)"
|
|
58
|
-
},
|
|
59
|
-
"node:http": {
|
|
60
|
-
"*": "TypeError (ERR_INVALID_CHAR, ERR_HTTP_HEADERS_SENT)",
|
|
61
|
-
"get": "TypeError (ERR_INVALID_URL: the URL string is invalid; network errors go to 'error')", "request": "TypeError (ERR_INVALID_URL: the URL string is invalid; network errors go to 'error')",
|
|
62
|
-
"validateHeaderName": "TypeError (ERR_INVALID_HTTP_TOKEN)", "validateHeaderName.withoutStackTrace": "TypeError (ERR_INVALID_HTTP_TOKEN)",
|
|
63
|
-
"new WebSocket": "SyntaxError (invalid URL)"
|
|
64
|
-
},
|
|
65
|
-
"node:http2": { "*": "Error (ERR_HTTP2_INVALID_HEADER_VALUE, ERR_HTTP2_HEADERS_SENT)", "getUnpackedSettings": "RangeError (ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH)", "createSecureServer": "Error (malformed key or certificate)", "ClientHttp2Session#request": "Error (ERR_HTTP2_INVALID_SESSION, ERR_HTTP2_OUT_OF_STREAMS)" },
|
|
66
|
-
"node:https": { "*": "TypeError (ERR_INVALID_URL: the URL string is invalid; network errors go to 'error')", "createServer": "Error (malformed key or certificate)" },
|
|
67
|
-
"node:inspector": { "open": "Error (ERR_INSPECTOR_ALREADY_ACTIVATED, port in use)" },
|
|
68
|
-
"node:inspector/promises": { "*": "Error (the inspector protocol command failed)" },
|
|
69
|
-
"node:module": { "*": "Error (MODULE_NOT_FOUND)", "stripTypeScriptTypes": "SyntaxError (ERR_INVALID_TYPESCRIPT_SYNTAX)", "runMain": "whatever the main module throws", "Module#require": "Error (MODULE_NOT_FOUND) | whatever the module throws" },
|
|
70
|
-
"node:os": { "getPriority": "Error (e.g. ESRCH)", "setPriority": "Error (e.g. EACCES)", "userInfo": "Error (no username or home directory)" },
|
|
71
|
-
"node:perf_hooks": { "Performance#measure": "SyntaxError (the mark does not exist)", "importHistogram": "TypeError (ERR_INVALID_ARG_VALUE: invalid histogram export data)" },
|
|
72
|
-
"node:process": { "*": "Error (e.g. EPERM)", "dlopen": "Error (cannot load the addon)", "loadEnvFile": "Error (e.g. ENOENT)", "kill": "Error (e.g. ESRCH, EPERM)", "execve": "Error (the program cannot run)", "chdir": "Error (e.g. ENOENT)", "cwd": "Error (ENOENT: the working directory was removed)" },
|
|
73
|
-
"node:punycode": { "*": "RangeError (invalid input)" },
|
|
74
|
-
"node:querystring": { "*": "URIError (lone surrogate)" },
|
|
75
|
-
"node:readline/promises": { "Interface#question": "AbortError (input closed, e.g. Ctrl+D)", "Readline#commit": "Error (the stream errored)" },
|
|
76
|
-
"node:url": { "*": "TypeError (ERR_INVALID_URL)", "fileURLToPath": "TypeError (ERR_INVALID_URL_SCHEME, ERR_INVALID_FILE_URL_PATH)", "fileURLToPathBuffer": "TypeError (ERR_INVALID_URL_SCHEME, ERR_INVALID_FILE_URL_PATH)" },
|
|
77
|
-
"node:util": { "parseArgs": "TypeError (ERR_PARSE_ARGS_UNKNOWN_OPTION, ...)", "TextDecoder#decode": "TypeError (ERR_ENCODING_INVALID_ENCODED_DATA, with fatal: true)", "new MIMEType": "TypeError (ERR_INVALID_MIME_SYNTAX)" },
|
|
78
|
-
"node:v8": { "*": "Error (invalid data)", "Serializer#writeValue": "DataCloneError (value cannot be cloned)", "serialize": "DataCloneError (value cannot be cloned)", "writeHeapSnapshot": "Error (e.g. EACCES)" },
|
|
79
|
-
"node:vm": { "*": "SyntaxError | whatever the code throws", "compileFunction": "SyntaxError" },
|
|
80
|
-
"node:wasi": { "*": "Error (the WebAssembly program trapped or exited)" },
|
|
81
|
-
"node:worker_threads": { "*": "DataCloneError (value cannot be cloned)", "postMessageToThread": "Error (ERR_WORKER_MESSAGING_FAILED, timeout)", "Worker#getHeapSnapshot": "Error (ERR_WORKER_NOT_RUNNING)", "Worker#getHeapStatistics": "Error (ERR_WORKER_NOT_RUNNING)", "Worker#cpuUsage": "Error (ERR_WORKER_NOT_RUNNING)", "Worker#startCpuProfile": "Error (ERR_WORKER_NOT_RUNNING)", "Worker#startHeapProfile": "Error (ERR_WORKER_NOT_RUNNING)" },
|
|
82
|
-
"node:zlib": {
|
|
83
|
-
"*": "Error (Z_DATA_ERROR: corrupt input)",
|
|
84
|
-
"ZipFile.open": "Error (e.g. ENOENT, ERR_ZIP_INVALID_ARCHIVE)", "ZipFile.openSync": "Error (e.g. ENOENT, ERR_ZIP_INVALID_ARCHIVE)", "new ZipBuffer": "Error (ERR_ZIP_INVALID_ARCHIVE)",
|
|
85
|
-
"ZipFile#get": "Error (ERR_ZIP_ENTRY_NOT_FOUND)", "ZipFile#getSync": "Error (ERR_ZIP_ENTRY_NOT_FOUND)", "ZipFile#stream": "Error (ERR_ZIP_ENTRY_NOT_FOUND)", "ZipBuffer#get": "Error (ERR_ZIP_ENTRY_NOT_FOUND)",
|
|
86
|
-
"ZipFile#addEntry": "Error (e.g. ENOSPC)", "ZipFile#add": "Error (e.g. ENOSPC)", "ZipFile#addEntrySync": "Error (e.g. ENOSPC)", "ZipFile#addSync": "Error (e.g. ENOSPC)",
|
|
87
|
-
"ZipFile#delete": "Error (e.g. ENOSPC)", "ZipFile#deleteSync": "Error (e.g. ENOSPC)", "ZipFile#compactSync": "Error (e.g. EIO)", "ZipFile#close": "Error (e.g. EBADF)", "ZipFile#closeSync": "Error (e.g. EBADF)",
|
|
88
|
-
"ZipEntry#content": "Error (ERR_ZIP_ENTRY_CORRUPT, ERR_ZIP_ENTRY_TOO_LARGE)", "ZipEntry#contentSync": "Error (ERR_ZIP_ENTRY_CORRUPT, ERR_ZIP_ENTRY_TOO_LARGE)",
|
|
89
|
-
"ZipBuffer#toBuffer": "Error (an entry's source or backing file failed)", "ZipBuffer#toBufferSync": "Error (an entry's backing file failed)"
|
|
90
|
-
},
|
|
91
|
-
"node:sqlite": { "*": "Error (SQLite error, e.g. SQLITE_CONSTRAINT)", "new Database": "Error (cannot open the database)", "Database#open": "Error (cannot open the database)", "Database#prepare": "Error (SQL error, e.g. no such table)", "Database#exec": "Error (SQL error)", "backup": "Error (the backup failed)" },
|
|
92
|
-
"node:ffi": { "*": "Error (ERR_FFI_CALL_FAILED: undefined symbol)", "new DynamicLibrary": "Error (ERR_FFI_CALL_FAILED: the library cannot be loaded)", "dlopen": "Error (ERR_FFI_CALL_FAILED: the library cannot be loaded, or a symbol is missing)" }
|
|
18
|
+
"node:events": { "once": "(the 'error' event's argument)" },
|
|
19
|
+
"node:stream": { "*": "(the stream's error) | (what your callback throws)", "Readable#toArray": "(the stream's error)" },
|
|
20
|
+
"node:stream/promises": { "*": "(the stream's error) | Error [ERR_STREAM_PREMATURE_CLOSE]" },
|
|
21
|
+
"node:stream/consumers": { "*": "(the stream's error)", "json": "(the stream's error) | SyntaxError" },
|
|
22
|
+
"node:stream/web": { "*": "(the stream's error)", "ReadableStream#pipeTo": "(the source's or the destination's error)" },
|
|
23
|
+
"node:net": { "new BoundSocket": "Error [E*] {errno, syscall: 'bind', address, port?}" },
|
|
24
|
+
"node:tls": { "*": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "setDefaultCACertificates": "Error [ERR_CRYPTO_OPERATION_FAILED]" },
|
|
25
|
+
"node:buffer": { "*": "RangeError [ERR_OUT_OF_RANGE | ERR_BUFFER_OUT_OF_BOUNDS]", "Buffer#write": "RangeError [ERR_OUT_OF_RANGE]", "Buffer#swap16": "RangeError [ERR_INVALID_BUFFER_SIZE]", "Buffer#swap32": "RangeError [ERR_INVALID_BUFFER_SIZE]", "Buffer#swap64": "RangeError [ERR_INVALID_BUFFER_SIZE]", "transcode": "Error [U_*] {errno}", "atob": "DOMException [InvalidCharacterError]", "btoa": "DOMException [InvalidCharacterError]", "Blob#arrayBuffer": "DOMException [NotReadableError]", "Blob#text": "DOMException [NotReadableError]", "Blob#bytes": "DOMException [NotReadableError]" },
|
|
26
|
+
"node:child_process": { "execSync": "Error {status, signal, output, pid, stdout, stderr} | Error [E*] {errno, syscall: 'spawnSync *', path, spawnargs, error, status, signal, output, pid, stdout?, stderr?}", "execFileSync": "Error {status, signal, output, pid, stdout, stderr} | Error [E*] {errno, syscall: 'spawnSync *', path, spawnargs, error, status, signal, output, pid, stdout?, stderr?}" },
|
|
27
|
+
"node:crypto": { "*": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "argon2Sync": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "scryptSync": "RangeError [ERR_CRYPTO_INVALID_SCRYPT_PARAMS]", "createCipheriv": "RangeError [ERR_CRYPTO_INVALID_KEYLEN] | TypeError [ERR_CRYPTO_INVALID_IV]", "createDecipheriv": "RangeError [ERR_CRYPTO_INVALID_KEYLEN] | TypeError [ERR_CRYPTO_INVALID_IV]", "diffieHellman": "Error [ERR_CRYPTO_INCOMPATIBLE_KEY] | Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "setEngine": "Error [ERR_CRYPTO_ENGINE_UNKNOWN]", "setFips": "Error [ERR_CRYPTO_FIPS_FORCED] | TypeError [ERR_WORKER_UNSUPPORTED_OPERATION] | Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "timingSafeEqual": "RangeError [ERR_CRYPTO_TIMING_SAFE_EQUAL_LENGTH]", "encapsulate": "Error [ERR_CRYPTO_OPERATION_FAILED]", "decapsulate": "Error [ERR_CRYPTO_OPERATION_FAILED]", "createMac": "TypeError [ERR_CRYPTO_INVALID_MAC | ERR_CRYPTO_INVALID_DIGEST] | Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "parsePKCS12": "Error [ERR_CRYPTO_OPERATION_FAILED] | Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "Cipheriv#final": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "Decipheriv#final": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?} | Error", "Decipheriv#setAuthTag": "TypeError [ERR_CRYPTO_INVALID_AUTH_TAG]", "DiffieHellman#computeSecret": "RangeError [ERR_CRYPTO_INVALID_KEYLEN] | Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY]", "DiffieHellmanGroup#computeSecret": "RangeError [ERR_CRYPTO_INVALID_KEYLEN] | Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY]", "ECDH#computeSecret": "Error [ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY | ERR_CRYPTO_OPERATION_FAILED]", "ECDH.convertKey": "Error [ERR_CRYPTO_OPERATION_FAILED]", "ECDH#setPrivateKey": "RangeError [ERR_CRYPTO_INVALID_KEYTYPE] | Error [ERR_CRYPTO_OPERATION_FAILED]" },
|
|
28
|
+
"node:dgram": { "Socket#setMulticastInterface": "Error [E*] {errno, syscall: 'setMulticastInterface'}", "Socket#addMembership": "Error [E*] {errno, syscall: 'addMembership'}", "Socket#dropMembership": "Error [E*] {errno, syscall: 'dropMembership'}", "Socket#addSourceSpecificMembership": "Error [E*] {errno, syscall: 'addSourceSpecificMembership'}", "Socket#dropSourceSpecificMembership": "Error [E*] {errno, syscall: 'dropSourceSpecificMembership'}", "Socket#bindSync": "Error [E*] {errno, syscall: 'bind', address, port?}", "Socket#connectSync": "Error [E*] {errno, syscall: 'bind' | 'connect', address, port?}", "Socket#setRecvBufferSize": "SystemError [ERR_SOCKET_BUFFER_SIZE] {info, errno, syscall: 'uv_recv_buffer_size'}", "Socket#setSendBufferSize": "SystemError [ERR_SOCKET_BUFFER_SIZE] {info, errno, syscall: 'uv_send_buffer_size'}" },
|
|
29
|
+
"node:dns/promises": { "lookup": "Error [ENOTFOUND | EAI_*] {errno, syscall: 'getaddrinfo', hostname}", "lookupService": "Error [ENOTFOUND | EAI_*] {errno, syscall: 'getnameinfo'}", "reverse": "Error [dns.*] {syscall: 'getHostByAddr', hostname} | Error [EINVAL] {errno, syscall: 'getHostByAddr', hostname}", "resolve": "Error [dns.*] {syscall: 'query*', hostname}", "resolveAny": "Error [dns.*] {syscall: 'queryAny', hostname}", "resolve4": "Error [dns.*] {syscall: 'queryA', hostname}", "resolve6": "Error [dns.*] {syscall: 'queryAaaa', hostname}", "resolveCaa": "Error [dns.*] {syscall: 'queryCaa', hostname}", "resolveCname": "Error [dns.*] {syscall: 'queryCname', hostname}", "resolveMx": "Error [dns.*] {syscall: 'queryMx', hostname}", "resolveNs": "Error [dns.*] {syscall: 'queryNs', hostname}", "resolveTlsa": "Error [dns.*] {syscall: 'queryTlsa', hostname}", "resolveTxt": "Error [dns.*] {syscall: 'queryTxt', hostname}", "resolveSrv": "Error [dns.*] {syscall: 'querySrv', hostname}", "resolvePtr": "Error [dns.*] {syscall: 'queryPtr', hostname}", "resolveNaptr": "Error [dns.*] {syscall: 'queryNaptr', hostname}", "resolveSoa": "Error [dns.*] {syscall: 'querySoa', hostname}", "Resolver#reverse": "Error [dns.*] {syscall: 'getHostByAddr', hostname} | Error [EINVAL] {errno, syscall: 'getHostByAddr', hostname}", "Resolver#resolve": "Error [dns.*] {syscall: 'query*', hostname}", "Resolver#resolveAny": "Error [dns.*] {syscall: 'queryAny', hostname}", "Resolver#resolve4": "Error [dns.*] {syscall: 'queryA', hostname}", "Resolver#resolve6": "Error [dns.*] {syscall: 'queryAaaa', hostname}", "Resolver#resolveCaa": "Error [dns.*] {syscall: 'queryCaa', hostname}", "Resolver#resolveCname": "Error [dns.*] {syscall: 'queryCname', hostname}", "Resolver#resolveMx": "Error [dns.*] {syscall: 'queryMx', hostname}", "Resolver#resolveNs": "Error [dns.*] {syscall: 'queryNs', hostname}", "Resolver#resolveTlsa": "Error [dns.*] {syscall: 'queryTlsa', hostname}", "Resolver#resolveTxt": "Error [dns.*] {syscall: 'queryTxt', hostname}", "Resolver#resolveSrv": "Error [dns.*] {syscall: 'querySrv', hostname}", "Resolver#resolvePtr": "Error [dns.*] {syscall: 'queryPtr', hostname}", "Resolver#resolveNaptr": "Error [dns.*] {syscall: 'queryNaptr', hostname}", "Resolver#resolveSoa": "Error [dns.*] {syscall: 'querySoa', hostname}" },
|
|
30
|
+
"node:fs": { "accessSync": "Error [E*] {errno, syscall: 'access', path}", "chmodSync": "Error [E*] {errno, syscall: 'chmod', path}", "chownSync": "Error [E*] {errno, syscall: 'chown', path}", "lchownSync": "Error [E*] {errno, syscall: 'lchown', path}", "lstatSync": "Error [E*] {errno, syscall: 'lstat', path}", "statSync": "Error [E*] {errno, syscall: 'stat', path}", "statfsSync": "Error [E*] {errno, syscall: 'statfs', path}", "utimesSync": "Error [E*] {errno, syscall: 'utime', path}", "lutimesSync": "Error [E*] {errno, syscall: 'lutime', path}", "unlinkSync": "Error [E*] {errno, syscall: 'unlink', path}", "rmdirSync": "Error [E*] {errno, syscall: 'rmdir', path}", "readlinkSync": "Error [E*] {errno, syscall: 'readlink', path}", "readdirSync": "Error [E*] {errno, syscall: 'scandir', path}", "mkdirSync": "Error [E*] {errno, syscall: 'mkdir', path}", "mkdtempSync": "Error [E*] {errno, syscall: 'mkdtemp', path}", "mkdtempDisposableSync": "Error [E*] {errno, syscall: 'mkdtemp', path}", "openSync": "Error [E*] {errno, syscall: 'open', path}", "opendirSync": "Error [E*] {errno, syscall: 'opendir', path?}", "truncateSync": "Error [E*] {errno, syscall: 'open' | 'ftruncate', path?}", "realpathSync": "Error [E*] {errno, syscall: 'lstat' | 'stat' | 'readlink', path}", "realpathSync.native": "Error [E*] {errno, syscall: 'realpath', path}", "watch": "Error [E*] {errno, syscall: 'watch', path, filename}", "copyFileSync": "Error [E*] {errno, syscall: 'copyfile', path, dest}", "linkSync": "Error [E*] {errno, syscall: 'link', path, dest}", "symlinkSync": "Error [E*] {errno, syscall: 'symlink', path, dest}", "renameSync": "Error [E*] {errno, syscall: 'rename', path, dest}", "closeSync": "Error [E*] {errno, syscall: 'close'}", "fchmodSync": "Error [E*] {errno, syscall: 'fchmod'}", "fchownSync": "Error [E*] {errno, syscall: 'fchown'}", "fdatasyncSync": "Error [E*] {errno, syscall: 'fdatasync'}", "fstatSync": "Error [E*] {errno, syscall: 'fstat'}", "fsyncSync": "Error [E*] {errno, syscall: 'fsync'}", "ftruncateSync": "Error [E*] {errno, syscall: 'ftruncate'}", "futimesSync": "Error [E*] {errno, syscall: 'futime'}", "readSync": "Error [E*] {errno, syscall: 'read'}", "readvSync": "Error [E*] {errno, syscall: 'read'}", "writeSync": "Error [E*] {errno, syscall: 'write'}", "writevSync": "Error [E*] {errno, syscall: 'write'}", "readFileSync": "Error [E*] {errno, syscall: 'open' | 'fstat' | 'read', path?}", "writeFileSync": "Error [E*] {errno, syscall: 'open' | 'write', path?}", "appendFileSync": "Error [E*] {errno, syscall: 'open' | 'write', path?}", "openAsBlob": "Error [E*] {errno, syscall: 'stat', path}", "openAsBlobSync": "Error [E*] {errno, syscall: 'stat', path}", "lchmodSync": "Error [E*] {errno, syscall: 'open' | 'fchmod' | 'close', path?}", "rmSync": "Error [E*] {errno, syscall, path} | SystemError [ERR_FS_EISDIR] {info, errno, syscall: 'rm', path}", "cpSync": "Error [E*] {errno, syscall, path?, dest?} | Error [ERR_FS_CP_* | ERR_FS_EISDIR]", "Dir#readSync": "Error [E*] {errno, syscall}", "Dir#read": "Error [E*] {errno, syscall}", "Dir#closeSync": "Error [E*] {errno, syscall}", "Dir#close": "Error [E*] {errno, syscall}", "new Utf8Stream": "Error [E*] {errno, syscall: 'open', path}", "Utf8Stream#flushSync": "Error [E*] {errno, syscall: 'write' | 'fsync'}" },
|
|
31
|
+
"node:fs/promises": { "access": "Error [E*] {errno, syscall: 'access', path}", "chmod": "Error [E*] {errno, syscall: 'chmod', path}", "chown": "Error [E*] {errno, syscall: 'chown', path}", "lchown": "Error [E*] {errno, syscall: 'lchown', path}", "lchmod": "Error [ERR_METHOD_NOT_IMPLEMENTED]", "lstat": "Error [E*] {errno, syscall: 'lstat', path}", "stat": "Error [E*] {errno, syscall: 'stat', path}", "statfs": "Error [E*] {errno, syscall: 'statfs', path}", "utimes": "Error [E*] {errno, syscall: 'utime', path}", "lutimes": "Error [E*] {errno, syscall: 'lutime', path}", "unlink": "Error [E*] {errno, syscall: 'unlink', path}", "rmdir": "Error [E*] {errno, syscall: 'rmdir', path}", "readlink": "Error [E*] {errno, syscall: 'readlink', path}", "readdir": "Error [E*] {errno, syscall: 'scandir', path}", "mkdir": "Error [E*] {errno, syscall: 'mkdir', path}", "mkdtemp": "Error [E*] {errno, syscall: 'mkdtemp', path}", "mkdtempDisposable": "Error [E*] {errno, syscall: 'mkdtemp', path}", "open": "Error [E*] {errno, syscall: 'open', path}", "opendir": "Error [E*] {errno, syscall: 'opendir', path}", "truncate": "Error [E*] {errno, syscall: 'open' | 'ftruncate', path?}", "realpath": "Error [E*] {errno, syscall: 'realpath', path}", "copyFile": "Error [E*] {errno, syscall: 'copyfile', path, dest}", "link": "Error [E*] {errno, syscall: 'link', path, dest}", "symlink": "Error [E*] {errno, syscall: 'symlink', path, dest}", "rename": "Error [E*] {errno, syscall: 'rename', path, dest}", "readFile": "Error [E*] {errno, syscall: 'open' | 'fstat' | 'read', path?}", "writeFile": "Error [E*] {errno, syscall: 'open' | 'write', path?}", "appendFile": "Error [E*] {errno, syscall: 'open' | 'write', path?}", "rm": "Error [E*] {errno, syscall, path} | SystemError [ERR_FS_EISDIR] {info, errno, syscall: 'rm', path}", "cp": "Error [E*] {errno, syscall, path?, dest?} | SystemError [ERR_FS_CP_* | ERR_FS_EISDIR] {info, errno, syscall: 'cp', path}", "FileHandle#appendFile": "Error [E*] {errno, syscall: 'write'}", "FileHandle#writeFile": "Error [E*] {errno, syscall: 'write'}", "FileHandle#write": "Error [E*] {errno, syscall: 'write'}", "FileHandle#writev": "Error [E*] {errno, syscall: 'write'}", "FileHandle#read": "Error [E*] {errno, syscall: 'read'}", "FileHandle#readv": "Error [E*] {errno, syscall: 'read'}", "FileHandle#readFile": "Error [E*] {errno, syscall: 'fstat' | 'read'}", "FileHandle#chmod": "Error [E*] {errno, syscall: 'fchmod'}", "FileHandle#chown": "Error [E*] {errno, syscall: 'fchown'}", "FileHandle#datasync": "Error [E*] {errno, syscall: 'fdatasync'}", "FileHandle#sync": "Error [E*] {errno, syscall: 'fsync'}", "FileHandle#stat": "Error [E*] {errno, syscall: 'fstat'}", "FileHandle#truncate": "Error [E*] {errno, syscall: 'ftruncate'}", "FileHandle#utimes": "Error [E*] {errno, syscall: 'futime'}", "FileHandle#close": "Error [E*] {errno, syscall: 'close'}" },
|
|
32
|
+
"node:http": { "*": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_INVALID_CHAR]", "get": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_UNESCAPED_CHARACTERS | ERR_INVALID_PROTOCOL]", "request": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_UNESCAPED_CHARACTERS | ERR_INVALID_PROTOCOL]", "validateHeaderName": "TypeError [ERR_INVALID_HTTP_TOKEN]", "validateHeaderName.withoutStackTrace": "TypeError [ERR_INVALID_HTTP_TOKEN]", "validateHeaderValue": "TypeError [ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "validateHeaderValue.withoutStackTrace": "TypeError [ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "OutgoingMessage#setHeader": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "OutgoingMessage#setHeaders": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "OutgoingMessage#appendHeader": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "ServerResponse#writeHead": "RangeError [ERR_HTTP_INVALID_STATUS_CODE] | TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP_INVALID_HEADER_VALUE | ERR_INVALID_CHAR]", "new WebSocket": "DOMException [SyntaxError]" },
|
|
33
|
+
"node:http2": { "*": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP2_INVALID_HEADER_VALUE | ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED]", "getUnpackedSettings": "RangeError [ERR_HTTP2_INVALID_PACKED_SETTINGS_LENGTH]", "createSecureServer": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}", "Http2ServerResponse#writeHead": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP2_INVALID_HEADER_VALUE | ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED] | RangeError [ERR_HTTP2_STATUS_INVALID]", "ClientHttp2Session#request": "TypeError [ERR_INVALID_HTTP_TOKEN | ERR_HTTP2_INVALID_PSEUDOHEADER | ERR_HTTP2_HEADER_SINGLE_VALUE | ERR_HTTP2_INVALID_CONNECTION_HEADERS]" },
|
|
34
|
+
"node:https": { "*": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_UNESCAPED_CHARACTERS | ERR_INVALID_PROTOCOL]", "createServer": "Error [ERR_OSSL_*] {library, reason, opensslErrorStack?}" },
|
|
35
|
+
"node:inspector": { "open": "Error [ERR_INSPECTOR_ALREADY_ACTIVATED | ERR_INSPECTOR_NOT_ACTIVE]" },
|
|
36
|
+
"node:inspector/promises": { "*": "Error [ERR_INSPECTOR_COMMAND]" },
|
|
37
|
+
"node:module": { "*": "Error [MODULE_NOT_FOUND] {requireStack}", "Module#require": "Error [MODULE_NOT_FOUND] {requireStack} | (what the module throws)", "Module#load": "Error [E*] {errno, syscall: 'open' | 'read', path} | SyntaxError | (what the module throws)", "runMain": "(what the main module throws)", "register": "Error [ERR_MODULE_NOT_FOUND] | (what the hooks module throws)", "findPackageJSON": "Error [ERR_MODULE_NOT_FOUND]", "stripTypeScriptTypes": "SyntaxError [ERR_INVALID_TYPESCRIPT_SYNTAX | ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX]" },
|
|
38
|
+
"node:os": { "getPriority": "SystemError [ERR_SYSTEM_ERROR] {info, errno, syscall: 'uv_os_getpriority'}", "setPriority": "SystemError [ERR_SYSTEM_ERROR] {info, errno, syscall: 'uv_os_setpriority'}", "userInfo": "SystemError [ERR_SYSTEM_ERROR] {info, errno, syscall: 'uv_os_get_passwd'}" },
|
|
39
|
+
"node:perf_hooks": { "Performance#measure": "DOMException [SyntaxError]", "importHistogram": "TypeError [ERR_INVALID_ARG_VALUE]" },
|
|
40
|
+
"node:process": { "setuid": "Error [E*] {errno, syscall: 'setuid'} | Error [ERR_UNKNOWN_CREDENTIAL]", "seteuid": "Error [E*] {errno, syscall: 'seteuid'} | Error [ERR_UNKNOWN_CREDENTIAL]", "setgid": "Error [E*] {errno, syscall: 'setgid'} | Error [ERR_UNKNOWN_CREDENTIAL]", "setegid": "Error [E*] {errno, syscall: 'setegid'} | Error [ERR_UNKNOWN_CREDENTIAL]", "setgroups": "Error [E*] {errno, syscall: 'setgroups'} | Error [ERR_UNKNOWN_CREDENTIAL]", "initgroups": "Error [E*] {errno, syscall: 'initgroups'} | Error [ERR_UNKNOWN_CREDENTIAL]", "dlopen": "Error [ERR_DLOPEN_FAILED]", "loadEnvFile": "Error [E*] {errno, syscall: 'open' | 'read', path}", "kill": "Error [E*] {errno, syscall: 'kill'}", "execve": "Error [E*] {errno, syscall: 'execve', path} | TypeError [ERR_WORKER_UNSUPPORTED_OPERATION | ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]", "chdir": "Error [E*] {errno, syscall: 'chdir', path, dest}", "cwd": "Error [E*] {errno, syscall: 'uv_cwd'}" },
|
|
41
|
+
"node:punycode": { "*": "RangeError" },
|
|
42
|
+
"node:querystring": { "*": "URIError [ERR_INVALID_URI]" },
|
|
43
|
+
"node:readline/promises": { "Interface#question": "AbortError [ABORT_ERR]" },
|
|
44
|
+
"node:url": { "*": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_INVALID_ARG_VALUE]", "new URL": "TypeError [ERR_INVALID_URL] {input, base?}", "fileURLToPath": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_INVALID_URL_SCHEME | ERR_INVALID_FILE_URL_HOST] | TypeError [ERR_INVALID_FILE_URL_PATH] {input?}", "fileURLToPathBuffer": "TypeError [ERR_INVALID_URL] {input} | TypeError [ERR_INVALID_URL_SCHEME | ERR_INVALID_FILE_URL_HOST] | TypeError [ERR_INVALID_FILE_URL_PATH] {input?}" },
|
|
45
|
+
"node:util": { "parseArgs": "TypeError [ERR_PARSE_ARGS_UNKNOWN_OPTION | ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL | ERR_PARSE_ARGS_INVALID_OPTION_VALUE]", "TextDecoder#decode": "TypeError [ERR_ENCODING_INVALID_ENCODED_DATA]", "new MIMEType": "TypeError [ERR_INVALID_MIME_SYNTAX]" },
|
|
46
|
+
"node:v8": { "*": "Error", "writeHeapSnapshot": "Error [E*] {errno, syscall: 'open', path}" },
|
|
47
|
+
"node:vm": { "*": "SyntaxError | (what the code throws)", "new Script": "SyntaxError", "createScript": "SyntaxError", "compileFunction": "SyntaxError", "Script#runInThisContext": "(what the code throws)", "Script#runInContext": "(what the code throws)", "Script#runInNewContext": "(what the code throws)" },
|
|
48
|
+
"node:wasi": { "*": "RuntimeError | (what the program's imports throw)" },
|
|
49
|
+
"node:worker_threads": { "*": "DOMException [DataCloneError]", "postMessageToThread": "Error [ERR_WORKER_MESSAGING_FAILED | ERR_WORKER_MESSAGING_TIMEOUT | ERR_WORKER_MESSAGING_ERRORED]", "Worker#getHeapSnapshot": "Error [ERR_WORKER_NOT_RUNNING]", "Worker#getHeapStatistics": "Error [ERR_WORKER_NOT_RUNNING]", "Worker#cpuUsage": "Error [ERR_WORKER_NOT_RUNNING]", "Worker#startCpuProfile": "Error [ERR_WORKER_NOT_RUNNING]", "Worker#startHeapProfile": "Error [ERR_WORKER_NOT_RUNNING]" },
|
|
50
|
+
"node:zlib": { "*": "Error [Z_*] {errno}", "brotliDecompressSync": "Error [ERR__ERROR_* | Z_BUF_ERROR] {errno}", "zstdDecompressSync": "Error [ZSTD_error_* | Z_BUF_ERROR] {errno}", "ZipFile.open": "Error [E*] {errno, syscall: 'open' | 'fstat' | 'read', path} | Error [ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | RangeError [ERR_ZIP_ARCHIVE_TOO_LARGE]", "ZipFile.openSync": "Error [E*] {errno, syscall: 'open' | 'fstat' | 'read', path} | Error [ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | RangeError [ERR_ZIP_ARCHIVE_TOO_LARGE]", "new ZipBuffer": "Error [ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | RangeError [ERR_ZIP_ARCHIVE_TOO_LARGE]", "ZipFile#get": "Error [ERR_ZIP_ENTRY_NOT_FOUND | ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | Error [E*] {errno, syscall: 'read'}", "ZipFile#getSync": "Error [ERR_ZIP_ENTRY_NOT_FOUND | ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | Error [E*] {errno, syscall: 'read'}", "ZipFile#stream": "Error [ERR_ZIP_ENTRY_NOT_FOUND | ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | Error [E*] {errno, syscall: 'read'}", "ZipBuffer#get": "Error [ERR_ZIP_ENTRY_NOT_FOUND]", "ZipFile#addEntry": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#add": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#addEntrySync": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#addSync": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#delete": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#deleteSync": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#compactSync": "Error [E*] {errno, syscall: 'read' | 'write' | 'ftruncate' | 'fsync'}", "ZipFile#close": "Error [E*] {errno, syscall: 'close'}", "ZipFile#closeSync": "Error [E*] {errno, syscall: 'close'}", "ZipEntry#content": "Error [ERR_ZIP_ENTRY_CORRUPT | ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | RangeError [ERR_ZIP_ENTRY_TOO_LARGE] | Error [Z_*] {errno} | Error [E*] {errno, syscall: 'read'}", "ZipEntry#contentSync": "Error [ERR_ZIP_ENTRY_CORRUPT | ERR_ZIP_INVALID_ARCHIVE | ERR_ZIP_UNSUPPORTED_FEATURE] | RangeError [ERR_ZIP_ENTRY_TOO_LARGE] | Error [Z_*] {errno} | Error [E*] {errno, syscall: 'read'}", "ZipBuffer#toBuffer": "(the entry source's error) | Error [E*] {errno, syscall: 'read'}", "ZipBuffer#toBufferSync": "Error [E*] {errno, syscall: 'read'}" },
|
|
51
|
+
"node:sqlite": { "*": "Error [ERR_SQLITE_ERROR] {errcode, errstr?}", "Database#loadExtension": "Error [ERR_LOAD_SQLITE_EXTENSION]" },
|
|
52
|
+
"node:ffi": { "*": "Error [ERR_FFI_CALL_FAILED]" },
|
|
53
|
+
"globals": { "structuredClone": "DOMException [DataCloneError]", "AbortSignal#throwIfAborted": "DOMException [AbortError | TimeoutError] | (the signal's reason)", "Headers#append": "TypeError", "Headers#set": "TypeError", "new Request": "TypeError {cause?}", "new Response": "RangeError | TypeError", "Response.json": "TypeError | (what toJSON throws)", "Request#clone": "TypeError", "Response#clone": "TypeError", "Storage#setItem": "DOMException [QuotaExceededError]", "fetch": "TypeError {cause} | DOMException [AbortError | TimeoutError] | (the signal's reason)", "Request#blob": "TypeError", "Request#arrayBuffer": "TypeError", "Request#text": "TypeError", "Request#bytes": "TypeError", "Request#json": "SyntaxError | TypeError", "Request#formData": "TypeError", "Response#blob": "TypeError", "Response#arrayBuffer": "TypeError", "Response#text": "TypeError", "Response#bytes": "TypeError", "Response#json": "SyntaxError | TypeError", "Response#formData": "TypeError", "SubtleCrypto#encrypt": "DOMException [OperationError] {cause?}", "SubtleCrypto#decrypt": "DOMException [OperationError] {cause?}", "SubtleCrypto#deriveKey": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#deriveBits": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#importKey": "DOMException [DataError | NotSupportedError]", "SubtleCrypto#wrapKey": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#unwrapKey": "DOMException [InvalidAccessError | OperationError | DataError] {cause?}", "SubtleCrypto#encapsulateBits": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#encapsulateKey": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#decapsulateBits": "DOMException [InvalidAccessError | OperationError] {cause?}", "SubtleCrypto#decapsulateKey": "DOMException [InvalidAccessError | OperationError] {cause?}" }
|
|
93
54
|
},
|
|
94
55
|
"platformOnly": {
|
|
95
56
|
"posix": { "node:process": ["getuid", "geteuid", "getgid", "getegid", "getgroups", "setuid", "seteuid", "setgid", "setegid", "setgroups", "initgroups"] },
|
|
@@ -141,7 +102,8 @@
|
|
|
141
102
|
"node:stream": { "Readable.from": "Readable" },
|
|
142
103
|
"node:stream/web": { "ReadableStream#getReader": "ReadableStreamDefaultReader", "WritableStream#getWriter": "WritableStreamDefaultWriter" },
|
|
143
104
|
"node:url": { "parse": "Url" },
|
|
144
|
-
"node:zlib": { "ZipFile.open": "ZipFile", "ZipFile.openSync": "ZipFile", "ZipFile#get": "ZipEntry", "ZipFile#getSync": "ZipEntry", "ZipFile#stream": "node:stream Readable", "ZipBuffer#get": "ZipEntry", "ZipBuffer#toBuffer": "node:buffer Buffer", "ZipBuffer#toBufferSync": "node:buffer Buffer", "ZipEntry.create": "ZipEntry", "ZipEntry.createSync": "ZipEntry", "ZipEntry#content": "node:buffer Buffer", "ZipEntry#contentSync": "node:buffer Buffer", "zipFiles": "node:stream Readable", "createGzip": "Gzip", "createGunzip": "Gunzip", "createDeflate": "Deflate", "createInflate": "Inflate", "createDeflateRaw": "DeflateRaw", "createInflateRaw": "InflateRaw", "createUnzip": "Unzip", "createBrotliCompress": "BrotliCompress", "createBrotliDecompress": "BrotliDecompress", "createZstdCompress": "ZstdCompress", "createZstdDecompress": "ZstdDecompress" }
|
|
105
|
+
"node:zlib": { "ZipFile.open": "ZipFile", "ZipFile.openSync": "ZipFile", "ZipFile#get": "ZipEntry", "ZipFile#getSync": "ZipEntry", "ZipFile#stream": "node:stream Readable", "ZipBuffer#get": "ZipEntry", "ZipBuffer#toBuffer": "node:buffer Buffer", "ZipBuffer#toBufferSync": "node:buffer Buffer", "ZipEntry.create": "ZipEntry", "ZipEntry.createSync": "ZipEntry", "ZipEntry#content": "node:buffer Buffer", "ZipEntry#contentSync": "node:buffer Buffer", "zipFiles": "node:stream Readable", "createGzip": "Gzip", "createGunzip": "Gunzip", "createDeflate": "Deflate", "createInflate": "Inflate", "createDeflateRaw": "DeflateRaw", "createInflateRaw": "InflateRaw", "createUnzip": "Unzip", "createBrotliCompress": "BrotliCompress", "createBrotliDecompress": "BrotliDecompress", "createZstdCompress": "ZstdCompress", "createZstdDecompress": "ZstdDecompress" },
|
|
106
|
+
"globals": { "fetch": "Response", "Response.json": "Response", "Response.error": "Response", "Response.redirect": "Response", "Response#clone": "Response", "Request#clone": "Request", "crypto": "Crypto", "Crypto#subtle": "SubtleCrypto", "localStorage": "Storage", "sessionStorage": "Storage" }
|
|
145
107
|
},
|
|
146
108
|
"modules": {
|
|
147
109
|
"node:events": {
|
|
@@ -168,11 +130,11 @@
|
|
|
168
130
|
"never": ["new BlockList", "BlockList.isBlockList", "BlockList#toJSON", "SocketAddress.isSocketAddress", "SocketAddress#toJSON", "BoundSocket#address", "BoundSocket#fd", "BoundSocket#close", "isIP", "isIPv4", "isIPv6", "Server#address", "Server#ref", "Server#unref", "Socket#setNoDelay", "Socket#setKeepAlive", "Socket#getTypeOfService", "Socket#address", "Socket#resetAndDestroy", "Socket#pause", "Socket#resume", "Socket#read", "Socket#destroySoon", "Socket#ref", "Socket#unref", "getDefaultAutoSelectFamily", "getDefaultAutoSelectFamilyAttemptTimeout", "BlockList#clear"]
|
|
169
131
|
},
|
|
170
132
|
"node:tls": {
|
|
171
|
-
"throws": ["setDefaultCACertificates", "createSecureContext", "
|
|
133
|
+
"throws": ["setDefaultCACertificates", "createSecureContext", "TLSSocket#setKeyCert", "Server#setSecureContext", "Server#addContext", "createServer"],
|
|
172
134
|
"callback": ["TLSSocket#renegotiate"],
|
|
173
135
|
"event": ["connect"],
|
|
174
136
|
"returns": ["checkServerIdentity"],
|
|
175
|
-
"args": ["convertALPNProtocols", "getCACertificates", "new TLSSocket", "TLSSocket#exportKeyingMaterial", "TLSSocket#setServername", "TLSSocket#setSession", "new Server", "Server#setTicketKeys"],
|
|
137
|
+
"args": ["convertALPNProtocols", "getCACertificates", "new TLSSocket", "TLSSocket#exportKeyingMaterial", "TLSSocket#setServername", "TLSSocket#setSession", "new Server", "Server#setTicketKeys", "SecureContext"],
|
|
176
138
|
"never": ["getCiphers", "getCertificateCompressionAlgorithms", "TLSSocket#disableRenegotiation", "TLSSocket#setMaxSendFragment", "TLSSocket#getSession", "TLSSocket#getPeerCertificate", "TLSSocket#getCertificate", "TLSSocket#getPeerX509Certificate", "TLSSocket#getX509Certificate", "TLSSocket#getCipher", "TLSSocket#getSharedSigalgs", "TLSSocket#getEphemeralKeyInfo", "TLSSocket#getFinished", "TLSSocket#getPeerFinished", "TLSSocket#getProtocol", "TLSSocket#getTLSTicket", "TLSSocket#isSessionReused", "TLSSocket#enableTrace", "Server#getTicketKeys"]
|
|
177
139
|
},
|
|
178
140
|
"node:buffer": {
|
|
@@ -344,7 +306,8 @@
|
|
|
344
306
|
"never": ["Interface#setPrompt", "Interface#getPrompt", "Interface#close", "Interface#pause", "Interface#resume", "Interface#clearLine", "Interface#getCursorPos", "clearLine", "clearScreenDown", "cursorTo", "emitKeypressEvents", "moveCursor"]
|
|
345
307
|
},
|
|
346
308
|
"node:readline/promises": {
|
|
347
|
-
"rejects": ["Interface#question"
|
|
309
|
+
"rejects": ["Interface#question"],
|
|
310
|
+
"event": ["Readline#commit"],
|
|
348
311
|
"args": ["new Interface", "Interface#setupHistoryManager", "Interface#prompt", "Interface#write", "new Readline", "Readline#cursorTo", "Readline#moveCursor", "Readline#clearLine", "Readline#clearScreenDown", "createInterface"],
|
|
349
312
|
"never": ["Interface#setPrompt", "Interface#getPrompt", "Interface#close", "Interface#pause", "Interface#resume", "Interface#clearLine", "Interface#getCursorPos", "Readline#rollback"]
|
|
350
313
|
},
|
|
@@ -416,12 +379,12 @@
|
|
|
416
379
|
"never": ["WASI#getImportObject"]
|
|
417
380
|
},
|
|
418
381
|
"node:worker_threads": {
|
|
419
|
-
"throws": ["MessagePort#postMessage", "Worker#postMessage", "BroadcastChannel#postMessage"
|
|
382
|
+
"throws": ["MessagePort#postMessage", "Worker#postMessage", "BroadcastChannel#postMessage"],
|
|
420
383
|
"rejects": ["postMessageToThread", "Worker#getHeapSnapshot", "Worker#getHeapStatistics", "Worker#cpuUsage", "Worker#startCpuProfile", "Worker#startHeapProfile"],
|
|
421
384
|
"event": ["new Worker"],
|
|
422
385
|
"propagates": ["MessagePort#emit", "locks.request"],
|
|
423
386
|
"args": ["new MessagePort", "MessagePort#setMaxListeners", "MessagePort#on", "MessagePort#addListener", "MessagePort#once", "markAsUncloneable", "markAsUntransferable", "moveMessagePortToContext", "receiveMessageOnPort"],
|
|
424
|
-
"never": ["MessagePort#start", "MessagePort#ref", "MessagePort#unref", "MessagePort#hasRef", "MessagePort#close", "MessagePort#getMaxListeners", "MessagePort#eventNames", "MessagePort#listenerCount", "MessagePort#off", "MessagePort#removeListener", "MessagePort#removeAllListeners", "MessageChannel", "isMarkedAsUntransferable", "Worker#terminate", "Worker#ref", "Worker#unref", "new BroadcastChannel", "BroadcastChannel#close", "BroadcastChannel#ref", "BroadcastChannel#unref", "getEnvironmentData", "locks.query"]
|
|
387
|
+
"never": ["MessagePort#start", "MessagePort#ref", "MessagePort#unref", "MessagePort#hasRef", "MessagePort#close", "MessagePort#getMaxListeners", "MessagePort#eventNames", "MessagePort#listenerCount", "MessagePort#off", "MessagePort#removeListener", "MessagePort#removeAllListeners", "MessageChannel", "isMarkedAsUntransferable", "Worker#terminate", "Worker#ref", "Worker#unref", "new BroadcastChannel", "BroadcastChannel#close", "BroadcastChannel#ref", "BroadcastChannel#unref", "getEnvironmentData", "locks.query", "setEnvironmentData"]
|
|
425
388
|
},
|
|
426
389
|
"node:zlib": {
|
|
427
390
|
"throws": ["unzipSync", "inflateSync", "gunzipSync", "inflateRawSync", "brotliDecompressSync", "zstdDecompressSync", "ZipFile.openSync", "ZipFile#getSync", "ZipFile#addEntrySync", "ZipFile#addSync", "ZipFile#deleteSync", "ZipFile#compactSync", "ZipFile#closeSync", "ZipEntry#contentSync", "new ZipBuffer", "ZipBuffer#get", "ZipBuffer#toBufferSync"],
|
|
@@ -456,10 +419,10 @@
|
|
|
456
419
|
"never": ["dot", "junit", "spec", "tap", "lcov"]
|
|
457
420
|
},
|
|
458
421
|
"globals": {
|
|
459
|
-
"throws": ["AbortSignal#throwIfAborted", "structuredClone", "Headers#append", "Headers#set", "new Request", "new Response", "Response.json", "Request#clone", "Response#clone", "
|
|
460
|
-
"rejects": ["fetch", "Request#blob", "Request#arrayBuffer", "Request#text", "Request#json", "Request#formData", "Request#bytes", "Response#blob", "Response#arrayBuffer", "Response#text", "Response#json", "Response#formData", "Response#bytes", "SubtleCrypto#encrypt", "SubtleCrypto#decrypt", "SubtleCrypto#
|
|
422
|
+
"throws": ["AbortSignal#throwIfAborted", "structuredClone", "Headers#append", "Headers#set", "new Request", "new Response", "Response.json", "Request#clone", "Response#clone", "Storage#setItem"],
|
|
423
|
+
"rejects": ["fetch", "Request#blob", "Request#arrayBuffer", "Request#text", "Request#json", "Request#formData", "Request#bytes", "Response#blob", "Response#arrayBuffer", "Response#text", "Response#json", "Response#formData", "Response#bytes", "SubtleCrypto#encrypt", "SubtleCrypto#decrypt", "SubtleCrypto#deriveKey", "SubtleCrypto#deriveBits", "SubtleCrypto#importKey", "SubtleCrypto#wrapKey", "SubtleCrypto#unwrapKey", "SubtleCrypto#encapsulateBits", "SubtleCrypto#encapsulateKey", "SubtleCrypto#decapsulateBits", "SubtleCrypto#decapsulateKey"],
|
|
461
424
|
"iterates": ["Request#textStream", "Response#textStream"],
|
|
462
|
-
"args": ["new DOMException", "new QuotaExceededError", "AbortSignal.timeout", "AbortSignal.any", "new Event", "Event#initEvent", "EventTarget#addEventListener", "EventTarget#removeEventListener", "EventTarget#dispatchEvent", "new CustomEvent", "queueMicrotask", "new FormData", "new Headers", "Response.redirect", "new ErrorEvent", "new Crypto", "Crypto#getRandomValues", "new CryptoKey", "new SubtleCrypto", "SubtleCrypto#digest", "SubtleCrypto#generateKey", "SubtleCrypto#getPublicKey", "new Navigator", "new Storage", "Storage#key"],
|
|
425
|
+
"args": ["new DOMException", "new QuotaExceededError", "AbortSignal.timeout", "AbortSignal.any", "new Event", "Event#initEvent", "EventTarget#addEventListener", "EventTarget#removeEventListener", "EventTarget#dispatchEvent", "new CustomEvent", "queueMicrotask", "new FormData", "FormData#append", "FormData#set", "new Headers", "Response.redirect", "new ErrorEvent", "new Crypto", "Crypto#getRandomValues", "new CryptoKey", "new SubtleCrypto", "SubtleCrypto#digest", "SubtleCrypto#generateKey", "SubtleCrypto#sign", "SubtleCrypto#verify", "SubtleCrypto#exportKey", "SubtleCrypto#getPublicKey", "new Navigator", "new Storage", "Storage#key"],
|
|
463
426
|
"never": ["new AbortController", "AbortController#abort", "new AbortSignal", "AbortSignal.abort", "Event#stopImmediatePropagation", "Event#preventDefault", "Event#composedPath", "Event#stopPropagation", "new EventTarget", "FormData#delete", "FormData#get", "FormData#getAll", "FormData#has", "FormData#keys", "FormData#values", "FormData#entries", "FormData#forEach", "Headers#delete", "Headers#get", "Headers#has", "Headers#getSetCookie", "Headers#keys", "Headers#values", "Headers#entries", "Headers#forEach", "Response.error", "Crypto#randomUUID", "SubtleCrypto.supports", "Storage#clear", "Storage#getItem", "Storage#removeItem"]
|
|
464
427
|
}
|
|
465
428
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evobug_com/safe-ts-feature-node",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "SAFE-TS
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "SAFE-TS feature pack for Node: which built-in functions throw or reject, with the exact errors, and safe versions of them that return a Result (one module per Node module), with the error types and guards.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"safe-ts",
|
|
7
7
|
"typescript",
|
|
8
8
|
"type-safety",
|
|
9
9
|
"node",
|
|
10
10
|
"static-analysis",
|
|
11
|
-
"error-handling"
|
|
11
|
+
"error-handling",
|
|
12
|
+
"result"
|
|
12
13
|
],
|
|
13
14
|
"license": "MIT OR Apache-2.0",
|
|
14
15
|
"homepage": "https://safe-ts.evobug-pages.com/guide/libraries",
|
|
@@ -19,12 +20,170 @@
|
|
|
19
20
|
},
|
|
20
21
|
"bugs": "https://git.evobug.com/Evobug/Safe-Ts/issues",
|
|
21
22
|
"type": "module",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"exports": {
|
|
25
|
+
"./errors": {
|
|
26
|
+
"types": "./safe/errors.d.ts",
|
|
27
|
+
"default": "./safe/errors.js"
|
|
28
|
+
},
|
|
29
|
+
"./buffer": {
|
|
30
|
+
"types": "./safe/buffer.d.ts",
|
|
31
|
+
"default": "./safe/buffer.js"
|
|
32
|
+
},
|
|
33
|
+
"./child_process": {
|
|
34
|
+
"types": "./safe/child_process.d.ts",
|
|
35
|
+
"default": "./safe/child_process.js"
|
|
36
|
+
},
|
|
37
|
+
"./crypto": {
|
|
38
|
+
"types": "./safe/crypto.d.ts",
|
|
39
|
+
"default": "./safe/crypto.js"
|
|
40
|
+
},
|
|
41
|
+
"./dgram": {
|
|
42
|
+
"types": "./safe/dgram.d.ts",
|
|
43
|
+
"default": "./safe/dgram.js"
|
|
44
|
+
},
|
|
45
|
+
"./dns/promises": {
|
|
46
|
+
"types": "./safe/dns/promises.d.ts",
|
|
47
|
+
"default": "./safe/dns/promises.js"
|
|
48
|
+
},
|
|
49
|
+
"./events": {
|
|
50
|
+
"types": "./safe/events.d.ts",
|
|
51
|
+
"default": "./safe/events.js"
|
|
52
|
+
},
|
|
53
|
+
"./ffi": {
|
|
54
|
+
"types": "./safe/ffi.d.ts",
|
|
55
|
+
"default": "./safe/ffi.js"
|
|
56
|
+
},
|
|
57
|
+
"./fs": {
|
|
58
|
+
"types": "./safe/fs.d.ts",
|
|
59
|
+
"default": "./safe/fs.js"
|
|
60
|
+
},
|
|
61
|
+
"./fs/promises": {
|
|
62
|
+
"types": "./safe/fs/promises.d.ts",
|
|
63
|
+
"default": "./safe/fs/promises.js"
|
|
64
|
+
},
|
|
65
|
+
"./globals": {
|
|
66
|
+
"types": "./safe/globals.d.ts",
|
|
67
|
+
"default": "./safe/globals.js"
|
|
68
|
+
},
|
|
69
|
+
"./http": {
|
|
70
|
+
"types": "./safe/http.d.ts",
|
|
71
|
+
"default": "./safe/http.js"
|
|
72
|
+
},
|
|
73
|
+
"./http2": {
|
|
74
|
+
"types": "./safe/http2.d.ts",
|
|
75
|
+
"default": "./safe/http2.js"
|
|
76
|
+
},
|
|
77
|
+
"./https": {
|
|
78
|
+
"types": "./safe/https.d.ts",
|
|
79
|
+
"default": "./safe/https.js"
|
|
80
|
+
},
|
|
81
|
+
"./inspector": {
|
|
82
|
+
"types": "./safe/inspector.d.ts",
|
|
83
|
+
"default": "./safe/inspector.js"
|
|
84
|
+
},
|
|
85
|
+
"./inspector/promises": {
|
|
86
|
+
"types": "./safe/inspector/promises.d.ts",
|
|
87
|
+
"default": "./safe/inspector/promises.js"
|
|
88
|
+
},
|
|
89
|
+
"./module": {
|
|
90
|
+
"types": "./safe/module.d.ts",
|
|
91
|
+
"default": "./safe/module.js"
|
|
92
|
+
},
|
|
93
|
+
"./net": {
|
|
94
|
+
"types": "./safe/net.d.ts",
|
|
95
|
+
"default": "./safe/net.js"
|
|
96
|
+
},
|
|
97
|
+
"./os": {
|
|
98
|
+
"types": "./safe/os.d.ts",
|
|
99
|
+
"default": "./safe/os.js"
|
|
100
|
+
},
|
|
101
|
+
"./perf_hooks": {
|
|
102
|
+
"types": "./safe/perf_hooks.d.ts",
|
|
103
|
+
"default": "./safe/perf_hooks.js"
|
|
104
|
+
},
|
|
105
|
+
"./process": {
|
|
106
|
+
"types": "./safe/process.d.ts",
|
|
107
|
+
"default": "./safe/process.js"
|
|
108
|
+
},
|
|
109
|
+
"./punycode": {
|
|
110
|
+
"types": "./safe/punycode.d.ts",
|
|
111
|
+
"default": "./safe/punycode.js"
|
|
112
|
+
},
|
|
113
|
+
"./querystring": {
|
|
114
|
+
"types": "./safe/querystring.d.ts",
|
|
115
|
+
"default": "./safe/querystring.js"
|
|
116
|
+
},
|
|
117
|
+
"./readline/promises": {
|
|
118
|
+
"types": "./safe/readline/promises.d.ts",
|
|
119
|
+
"default": "./safe/readline/promises.js"
|
|
120
|
+
},
|
|
121
|
+
"./sqlite": {
|
|
122
|
+
"types": "./safe/sqlite.d.ts",
|
|
123
|
+
"default": "./safe/sqlite.js"
|
|
124
|
+
},
|
|
125
|
+
"./stream": {
|
|
126
|
+
"types": "./safe/stream.d.ts",
|
|
127
|
+
"default": "./safe/stream.js"
|
|
128
|
+
},
|
|
129
|
+
"./stream/consumers": {
|
|
130
|
+
"types": "./safe/stream/consumers.d.ts",
|
|
131
|
+
"default": "./safe/stream/consumers.js"
|
|
132
|
+
},
|
|
133
|
+
"./stream/promises": {
|
|
134
|
+
"types": "./safe/stream/promises.d.ts",
|
|
135
|
+
"default": "./safe/stream/promises.js"
|
|
136
|
+
},
|
|
137
|
+
"./stream/web": {
|
|
138
|
+
"types": "./safe/stream/web.d.ts",
|
|
139
|
+
"default": "./safe/stream/web.js"
|
|
140
|
+
},
|
|
141
|
+
"./tls": {
|
|
142
|
+
"types": "./safe/tls.d.ts",
|
|
143
|
+
"default": "./safe/tls.js"
|
|
144
|
+
},
|
|
145
|
+
"./url": {
|
|
146
|
+
"types": "./safe/url.d.ts",
|
|
147
|
+
"default": "./safe/url.js"
|
|
148
|
+
},
|
|
149
|
+
"./util": {
|
|
150
|
+
"types": "./safe/util.d.ts",
|
|
151
|
+
"default": "./safe/util.js"
|
|
152
|
+
},
|
|
153
|
+
"./v8": {
|
|
154
|
+
"types": "./safe/v8.d.ts",
|
|
155
|
+
"default": "./safe/v8.js"
|
|
156
|
+
},
|
|
157
|
+
"./vm": {
|
|
158
|
+
"types": "./safe/vm.d.ts",
|
|
159
|
+
"default": "./safe/vm.js"
|
|
160
|
+
},
|
|
161
|
+
"./wasi": {
|
|
162
|
+
"types": "./safe/wasi.d.ts",
|
|
163
|
+
"default": "./safe/wasi.js"
|
|
164
|
+
},
|
|
165
|
+
"./worker_threads": {
|
|
166
|
+
"types": "./safe/worker_threads.d.ts",
|
|
167
|
+
"default": "./safe/worker_threads.js"
|
|
168
|
+
},
|
|
169
|
+
"./zlib": {
|
|
170
|
+
"types": "./safe/zlib.d.ts",
|
|
171
|
+
"default": "./safe/zlib.js"
|
|
172
|
+
},
|
|
173
|
+
"./safe-ts.json": "./safe-ts.json",
|
|
174
|
+
"./node-api.json": "./node-api.json",
|
|
175
|
+
"./package.json": "./package.json"
|
|
176
|
+
},
|
|
22
177
|
"files": [
|
|
23
178
|
"safe-ts.json",
|
|
24
179
|
"node-api.json",
|
|
180
|
+
"safe",
|
|
25
181
|
"LICENSE-MIT",
|
|
26
182
|
"LICENSE-APACHE"
|
|
27
183
|
],
|
|
184
|
+
"peerDependencies": {
|
|
185
|
+
"@evobug_com/safe-ts-std": "^0.3.0"
|
|
186
|
+
},
|
|
28
187
|
"publishConfig": {
|
|
29
188
|
"access": "public"
|
|
30
189
|
}
|