diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-08 07:44:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 12:44:54 +0100 |
commit | 72fe9bb47005e720444e65a66e91559287137780 (patch) | |
tree | d529ee7f3b2c33063ba4496f8fd3dfdbac0d1355 /ext/node/polyfills/internal/buffer.mjs | |
parent | d24c6ea27f7dea57e3bc0cda342d6cbe59782f7d (diff) |
refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041)
This commit renames "deno_core::InternalModuleLoader" to
"ExtModuleLoader" and changes the specifiers used by the
modules loaded from this loader to "ext:".
"internal:" scheme was really ambiguous and it's more characters than
"ext:", which should result in slightly smaller snapshot size.
Closes https://github.com/denoland/deno/issues/18020
Diffstat (limited to 'ext/node/polyfills/internal/buffer.mjs')
-rw-r--r-- | ext/node/polyfills/internal/buffer.mjs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/node/polyfills/internal/buffer.mjs b/ext/node/polyfills/internal/buffer.mjs index d56ffdd3c..73116e552 100644 --- a/ext/node/polyfills/internal/buffer.mjs +++ b/ext/node/polyfills/internal/buffer.mjs @@ -2,10 +2,10 @@ // Copyright Joyent and Node contributors. All rights reserved. MIT license. // Copyright Feross Aboukhadijeh, and other contributors. All rights reserved. MIT license. -import { TextDecoder, TextEncoder } from "internal:deno_web/08_text_encoding.js"; -import { codes } from "internal:deno_node/internal/error_codes.ts"; -import { encodings } from "internal:deno_node/internal_binding/string_decoder.ts"; -import { indexOfBuffer, indexOfNumber } from "internal:deno_node/internal_binding/buffer.ts"; +import { TextDecoder, TextEncoder } from "ext:deno_web/08_text_encoding.js"; +import { codes } from "ext:deno_node/internal/error_codes.ts"; +import { encodings } from "ext:deno_node/internal_binding/string_decoder.ts"; +import { indexOfBuffer, indexOfNumber } from "ext:deno_node/internal_binding/buffer.ts"; import { asciiToBytes, base64ToBytes, @@ -14,14 +14,14 @@ import { bytesToUtf16le, hexToBytes, utf16leToBytes, -} from "internal:deno_node/internal_binding/_utils.ts"; -import { isAnyArrayBuffer, isArrayBufferView } from "internal:deno_node/internal/util/types.ts"; -import { normalizeEncoding } from "internal:deno_node/internal/util.mjs"; -import { validateBuffer } from "internal:deno_node/internal/validators.mjs"; -import { isUint8Array } from "internal:deno_node/internal/util/types.ts"; -import { forgivingBase64Encode, forgivingBase64UrlEncode } from "internal:deno_web/00_infra.js"; -import { atob, btoa } from "internal:deno_web/05_base64.js"; -import { Blob } from "internal:deno_web/09_file.js"; +} from "ext:deno_node/internal_binding/_utils.ts"; +import { isAnyArrayBuffer, isArrayBufferView } from "ext:deno_node/internal/util/types.ts"; +import { normalizeEncoding } from "ext:deno_node/internal/util.mjs"; +import { validateBuffer } from "ext:deno_node/internal/validators.mjs"; +import { isUint8Array } from "ext:deno_node/internal/util/types.ts"; +import { forgivingBase64Encode, forgivingBase64UrlEncode } from "ext:deno_web/00_infra.js"; +import { atob, btoa } from "ext:deno_web/05_base64.js"; +import { Blob } from "ext:deno_web/09_file.js"; export { atob, btoa, Blob }; |