diff options
Diffstat (limited to 'ext/websocket')
-rw-r--r-- | ext/websocket/00_ops.js | 35 | ||||
-rw-r--r-- | ext/websocket/01_websocket.js | 2 | ||||
-rw-r--r-- | ext/websocket/02_websocketstream.js | 2 | ||||
-rw-r--r-- | ext/websocket/lib.rs | 2 |
4 files changed, 3 insertions, 38 deletions
diff --git a/ext/websocket/00_ops.js b/ext/websocket/00_ops.js deleted file mode 100644 index 69245bfcd..000000000 --- a/ext/websocket/00_ops.js +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { core } from "ext:core/mod.js"; -const { - op_ws_create, - op_ws_close, - op_ws_send_binary, - op_ws_send_binary_ab, - op_ws_send_text, - op_ws_next_event, - op_ws_get_buffer, - op_ws_get_buffer_as_string, - op_ws_get_error, - op_ws_send_ping, - op_ws_get_buffered_amount, - op_ws_send_text_async, - op_ws_send_binary_async, - op_ws_check_permission_and_cancel_handle, -} = core.ensureFastOps(); - -export { - op_ws_check_permission_and_cancel_handle, - op_ws_close, - op_ws_create, - op_ws_get_buffer, - op_ws_get_buffer_as_string, - op_ws_get_buffered_amount, - op_ws_get_error, - op_ws_next_event, - op_ws_send_binary, - op_ws_send_binary_ab, - op_ws_send_binary_async, - op_ws_send_ping, - op_ws_send_text, - op_ws_send_text_async, -}; diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js index 8b67eeabd..15793a886 100644 --- a/ext/websocket/01_websocket.js +++ b/ext/websocket/01_websocket.js @@ -20,7 +20,7 @@ import { op_ws_send_binary_ab, op_ws_send_ping, op_ws_send_text, -} from "ext:deno_websocket/00_ops.js"; +} from "ext:core/ops"; const { ArrayBufferIsView, ArrayPrototypeJoin, diff --git a/ext/websocket/02_websocketstream.js b/ext/websocket/02_websocketstream.js index 826e74d18..4eafac88b 100644 --- a/ext/websocket/02_websocketstream.js +++ b/ext/websocket/02_websocketstream.js @@ -13,7 +13,7 @@ import { op_ws_next_event, op_ws_send_binary_async, op_ws_send_text_async, -} from "ext:deno_websocket/00_ops.js"; +} from "ext:core/ops"; const { ArrayPrototypeJoin, ArrayPrototypeMap, diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 4b544b4f8..9b02d0759 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -842,7 +842,7 @@ deno_core::extension!(deno_websocket, op_ws_send_pong, op_ws_get_buffered_amount, ], - esm = [ "00_ops.js", "01_websocket.js", "02_websocketstream.js" ], + esm = [ "01_websocket.js", "02_websocketstream.js" ], options = { user_agent: String, root_cert_store_provider: Option<Arc<dyn RootCertStoreProvider>>, |