mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
update sources
This commit is contained in:
@@ -164,6 +164,7 @@ src/bun.js/node/node_http_binding.zig
|
||||
src/bun.js/node/node_net_binding.zig
|
||||
src/bun.js/node/node_os.zig
|
||||
src/bun.js/node/node_process.zig
|
||||
src/bun.js/node/node_tls_binding.zig
|
||||
src/bun.js/node/node_util_binding.zig
|
||||
src/bun.js/node/node_zlib_binding.zig
|
||||
src/bun.js/node/nodejs_error_code.zig
|
||||
@@ -580,6 +581,7 @@ src/system_timer.zig
|
||||
src/test/fixtures.zig
|
||||
src/test/recover.zig
|
||||
src/thread_pool.zig
|
||||
src/tls.zig
|
||||
src/tmp.zig
|
||||
src/toml/toml_lexer.zig
|
||||
src/toml/toml_parser.zig
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
function mirrorObject<K extends PropertyKey, V extends PropertyKey>(object: Record<K, V>): Record<V, K> {
|
||||
return Object.fromEntries(Object.entries(object).map(([key, value]) => [value, key]));
|
||||
}
|
||||
|
||||
export default { mirrorObject };
|
||||
@@ -1,7 +1,6 @@
|
||||
// Hardcoded module "node:tls"
|
||||
import type { SecureVersion } from "node:tls";
|
||||
|
||||
const { mirrorObject } = require("internal/util/types");
|
||||
const { isArrayBufferView, isTypedArray } = require("node:util/types");
|
||||
const net = require("node:net");
|
||||
const { Duplex } = require("node:stream");
|
||||
@@ -218,7 +217,12 @@ const TLS_VERSION_MAP: Record<SecureVersion, number> = {
|
||||
"TLSv1.3": 0x0304,
|
||||
};
|
||||
|
||||
const TLS_VERSION_REVERSE_MAP = mirrorObject(TLS_VERSION_MAP);
|
||||
const TLS_VERSION_REVERSE_MAP: Record<number, SecureVersion> = {
|
||||
0x0301: "TLSv1",
|
||||
0x0302: "TLSv1.1",
|
||||
0x0303: "TLSv1.2",
|
||||
0x0304: "TLSv1.3",
|
||||
};
|
||||
|
||||
var InternalSecureContext = class SecureContext {
|
||||
context;
|
||||
|
||||
Reference in New Issue
Block a user