From 49af1ab18da02f09e65506c873526c40d005c4ed Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 7 Feb 2023 22:09:50 +0100 Subject: refactor: remove prefix from include_js_files & use extension name (#17683) --- ext/flash/01_http.js | 16 ++++++++-------- ext/flash/lib.rs | 5 +---- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'ext/flash') diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index d2f967ada..34b158e40 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -2,18 +2,18 @@ const core = globalThis.Deno.core; const ops = core.ops; const primordials = globalThis.__bootstrap.primordials; -import { BlobPrototype } from "internal:ext/web/09_file.js"; -import { TcpConn } from "internal:ext/net/01_net.js"; -import { toInnerResponse } from "internal:ext/fetch/23_response.js"; -import { _flash, fromFlashRequest } from "internal:ext/fetch/23_request.js"; -import { Event } from "internal:ext/web/02_event.js"; +import { BlobPrototype } from "internal:deno_web/09_file.js"; +import { TcpConn } from "internal:deno_net/01_net.js"; +import { toInnerResponse } from "internal:deno_fetch/23_response.js"; +import { _flash, fromFlashRequest } from "internal:deno_fetch/23_request.js"; +import { Event } from "internal:deno_web/02_event.js"; import { _state, getReadableStreamResourceBacking, ReadableStream, readableStreamClose, ReadableStreamPrototype, -} from "internal:ext/web/06_streams.js"; +} from "internal:deno_web/06_streams.js"; import { _eventLoop, _idleTimeoutDuration, @@ -23,8 +23,8 @@ import { _rid, _serverHandleIdleTimeout, WebSocket, -} from "internal:ext/websocket/01_websocket.js"; -import { _ws } from "internal:ext/http/01_http.js"; +} from "internal:deno_websocket/01_websocket.js"; +import { _ws } from "internal:deno_http/01_http.js"; const { ObjectPrototypeIsPrototypeOf, PromisePrototype, diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index ab048c9cd..f92aa3ea3 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -1514,10 +1514,7 @@ pub fn init(unstable: bool) -> Extension { "deno_websocket", "deno_http", ]) - .esm(deno_core::include_js_files!( - prefix "internal:ext/flash", - "01_http.js", - )) + .esm(deno_core::include_js_files!("01_http.js",)) .ops(vec![ op_flash_serve::decl::

(), op_node_unstable_flash_serve::decl::

(), -- cgit v1.2.3