diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-02-07 22:09:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 21:09:50 +0000 |
commit | 49af1ab18da02f09e65506c873526c40d005c4ed (patch) | |
tree | 0d8f6028e98907096019500a7e1c717408eeb4e2 /ext/cache | |
parent | b4aa1530970f7b9cc4e6f2f27e077852c4e178d3 (diff) |
refactor: remove prefix from include_js_files & use extension name (#17683)
Diffstat (limited to 'ext/cache')
-rw-r--r-- | ext/cache/01_cache.js | 12 | ||||
-rw-r--r-- | ext/cache/lib.rs | 5 |
2 files changed, 7 insertions, 10 deletions
diff --git a/ext/cache/01_cache.js b/ext/cache/01_cache.js index f49db3b84..b1e05d0db 100644 --- a/ext/cache/01_cache.js +++ b/ext/cache/01_cache.js @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. const core = globalThis.Deno.core; -import * as webidl from "internal:ext/webidl/00_webidl.js"; +import * as webidl from "internal:deno_webidl/00_webidl.js"; const primordials = globalThis.__bootstrap.primordials; const { Symbol, @@ -12,11 +12,11 @@ import { Request, RequestPrototype, toInnerRequest, -} from "internal:ext/fetch/23_request.js"; -import { toInnerResponse } from "internal:ext/fetch/23_response.js"; -import { URLPrototype } from "internal:ext/url/00_url.js"; -import { getHeader } from "internal:ext/fetch/20_headers.js"; -import { readableStreamForRid } from "internal:ext/web/06_streams.js"; +} from "internal:deno_fetch/23_request.js"; +import { toInnerResponse } from "internal:deno_fetch/23_response.js"; +import { URLPrototype } from "internal:deno_url/00_url.js"; +import { getHeader } from "internal:deno_fetch/20_headers.js"; +import { readableStreamForRid } from "internal:deno_web/06_streams.js"; class CacheStorage { constructor() { diff --git a/ext/cache/lib.rs b/ext/cache/lib.rs index a35ac6246..b0efbca55 100644 --- a/ext/cache/lib.rs +++ b/ext/cache/lib.rs @@ -27,10 +27,7 @@ pub fn init<CA: Cache + 'static>( ) -> Extension { Extension::builder(env!("CARGO_PKG_NAME")) .dependencies(vec!["deno_webidl", "deno_web", "deno_url", "deno_fetch"]) - .esm(include_js_files!( - prefix "internal:ext/cache", - "01_cache.js", - )) + .esm(include_js_files!("01_cache.js",)) .ops(vec![ op_cache_storage_open::decl::<CA>(), op_cache_storage_has::decl::<CA>(), |