From 8c4b33db0d05181a0e5538bddaf063144724c938 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Tue, 18 Jun 2024 16:16:13 +0530 Subject: feat(ext/node): add BlockList & SocketAddress classes (#24229) Closes https://github.com/denoland/deno/issues/24059 --- ext/node/polyfills/net.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/node/polyfills/net.ts') 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, -- cgit v1.2.3