summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/fs/utils.mjs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-08 07:44:54 -0400
committerGitHub <noreply@github.com>2023-03-08 12:44:54 +0100
commit72fe9bb47005e720444e65a66e91559287137780 (patch)
treed529ee7f3b2c33063ba4496f8fd3dfdbac0d1355 /ext/node/polyfills/internal/fs/utils.mjs
parentd24c6ea27f7dea57e3bc0cda342d6cbe59782f7d (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/fs/utils.mjs')
-rw-r--r--ext/node/polyfills/internal/fs/utils.mjs28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/node/polyfills/internal/fs/utils.mjs b/ext/node/polyfills/internal/fs/utils.mjs
index 567212e17..b49e28183 100644
--- a/ext/node/polyfills/internal/fs/utils.mjs
+++ b/ext/node/polyfills/internal/fs/utils.mjs
@@ -1,7 +1,7 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
"use strict";
-import { Buffer } from "internal:deno_node/buffer.ts";
+import { Buffer } from "ext:deno_node/buffer.ts";
import {
ERR_FS_EISDIR,
ERR_FS_INVALID_SYMLINK_TYPE,
@@ -10,17 +10,17 @@ import {
ERR_OUT_OF_RANGE,
hideStackFrames,
uvException,
-} from "internal:deno_node/internal/errors.ts";
+} from "ext:deno_node/internal/errors.ts";
import {
isArrayBufferView,
isBigUint64Array,
isDate,
isUint8Array,
-} from "internal:deno_node/internal/util/types.ts";
-import { once } from "internal:deno_node/internal/util.mjs";
-import { deprecate } from "internal:deno_node/util.ts";
-import { toPathIfFileURL } from "internal:deno_node/internal/url.ts";
+} from "ext:deno_node/internal/util/types.ts";
+import { once } from "ext:deno_node/internal/util.mjs";
+import { deprecate } from "ext:deno_node/util.ts";
+import { toPathIfFileURL } from "ext:deno_node/internal/url.ts";
import {
validateAbortSignal,
validateBoolean,
@@ -29,20 +29,20 @@ import {
validateInteger,
validateObject,
validateUint32,
-} from "internal:deno_node/internal/validators.mjs";
-import pathModule from "internal:deno_node/path.ts";
+} from "ext:deno_node/internal/validators.mjs";
+import pathModule from "ext:deno_node/path.ts";
const kType = Symbol("type");
const kStats = Symbol("stats");
-import assert from "internal:deno_node/internal/assert.mjs";
-import { lstat, lstatSync } from "internal:deno_node/_fs/_fs_lstat.ts";
-import { stat, statSync } from "internal:deno_node/_fs/_fs_stat.ts";
-import { isWindows } from "internal:deno_node/_util/os.ts";
-import process from "internal:deno_node/process.ts";
+import assert from "ext:deno_node/internal/assert.mjs";
+import { lstat, lstatSync } from "ext:deno_node/_fs/_fs_lstat.ts";
+import { stat, statSync } from "ext:deno_node/_fs/_fs_stat.ts";
+import { isWindows } from "ext:deno_node/_util/os.ts";
+import process from "ext:deno_node/process.ts";
import {
fs as fsConstants,
os as osConstants,
-} from "internal:deno_node/internal_binding/constants.ts";
+} from "ext:deno_node/internal_binding/constants.ts";
const {
F_OK = 0,
W_OK = 0,