summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/net.ts
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-06-18 16:16:13 +0530
committerGitHub <noreply@github.com>2024-06-18 10:46:13 +0000
commit8c4b33db0d05181a0e5538bddaf063144724c938 (patch)
tree368ced63a6ac484db822212d9d332d92bd3466ed /ext/node/polyfills/net.ts
parent4b83ce8acabaf868d47bf764fce18ce5450fd314 (diff)
feat(ext/node): add BlockList & SocketAddress classes (#24229)
Closes https://github.com/denoland/deno/issues/24059
Diffstat (limited to 'ext/node/polyfills/net.ts')
-rw-r--r--ext/node/polyfills/net.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/node/polyfills/net.ts b/ext/node/polyfills/net.ts
index 66b7735d9..6625ce7b5 100644
--- a/ext/node/polyfills/net.ts
+++ b/ext/node/polyfills/net.ts
@@ -24,6 +24,8 @@
// deno-lint-ignore-file prefer-primordials
import { notImplemented } from "ext:deno_node/_utils.ts";
+import { BlockList, SocketAddress } from "ext:deno_node/internal/blocklist.mjs";
+
import { EventEmitter } from "node:events";
import {
isIP,
@@ -2472,7 +2474,7 @@ export function createServer(
return new Server(options, connectionListener);
}
-export { isIP, isIPv4, isIPv6 };
+export { BlockList, isIP, isIPv4, isIPv6, SocketAddress };
export default {
_createServerHandle,
@@ -2480,6 +2482,8 @@ export default {
isIP,
isIPv4,
isIPv6,
+ BlockList,
+ SocketAddress,
connect,
createConnection,
createServer,