diff options
Diffstat (limited to 'ext/node/polyfills/_fs')
-rw-r--r-- | ext/node/polyfills/_fs/_fs_access.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_chmod.ts | 4 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_chown.ts | 4 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_copy.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_open.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_opendir.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_read.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_readFile.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_readdir.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_rmdir.ts | 4 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_watch.ts | 8 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_write.mjs | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_writeFile.ts | 2 | ||||
-rw-r--r-- | ext/node/polyfills/_fs/_fs_writev.mjs | 2 |
14 files changed, 20 insertions, 20 deletions
diff --git a/ext/node/polyfills/_fs/_fs_access.ts b/ext/node/polyfills/_fs/_fs_access.ts index edb621598..646403b27 100644 --- a/ext/node/polyfills/_fs/_fs_access.ts +++ b/ext/node/polyfills/_fs/_fs_access.ts @@ -13,7 +13,7 @@ import { getValidatedPath, getValidMode, } from "ext:deno_node/internal/fs/utils.mjs"; -import type { Buffer } from "ext:deno_node/buffer.ts"; +import type { Buffer } from "node:buffer"; import { promisify } from "ext:deno_node/internal/util.mjs"; export function access( diff --git a/ext/node/polyfills/_fs/_fs_chmod.ts b/ext/node/polyfills/_fs/_fs_chmod.ts index 867ede99c..b20273f5d 100644 --- a/ext/node/polyfills/_fs/_fs_chmod.ts +++ b/ext/node/polyfills/_fs/_fs_chmod.ts @@ -5,9 +5,9 @@ import type { CallbackWithError } from "ext:deno_node/_fs/_fs_common.ts"; import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs"; -import * as pathModule from "ext:deno_node/path.ts"; +import * as pathModule from "node:path"; import { parseFileMode } from "ext:deno_node/internal/validators.mjs"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { promisify } from "ext:deno_node/internal/util.mjs"; export function chmod( diff --git a/ext/node/polyfills/_fs/_fs_chown.ts b/ext/node/polyfills/_fs/_fs_chown.ts index 6cd78d206..6e835146f 100644 --- a/ext/node/polyfills/_fs/_fs_chown.ts +++ b/ext/node/polyfills/_fs/_fs_chown.ts @@ -11,9 +11,9 @@ import { getValidatedPath, kMaxUserId, } from "ext:deno_node/internal/fs/utils.mjs"; -import * as pathModule from "ext:deno_node/path.ts"; +import * as pathModule from "node:path"; import { validateInteger } from "ext:deno_node/internal/validators.mjs"; -import type { Buffer } from "ext:deno_node/buffer.ts"; +import type { Buffer } from "node:buffer"; import { promisify } from "ext:deno_node/internal/util.mjs"; /** diff --git a/ext/node/polyfills/_fs/_fs_copy.ts b/ext/node/polyfills/_fs/_fs_copy.ts index 3d51d6fae..6ecf516e4 100644 --- a/ext/node/polyfills/_fs/_fs_copy.ts +++ b/ext/node/polyfills/_fs/_fs_copy.ts @@ -5,7 +5,7 @@ import type { CallbackWithError } from "ext:deno_node/_fs/_fs_common.ts"; import { makeCallback } from "ext:deno_node/_fs/_fs_common.ts"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { getValidatedPath, getValidMode, diff --git a/ext/node/polyfills/_fs/_fs_open.ts b/ext/node/polyfills/_fs/_fs_open.ts index 4fccf8c28..571a06a5d 100644 --- a/ext/node/polyfills/_fs/_fs_open.ts +++ b/ext/node/polyfills/_fs/_fs_open.ts @@ -16,7 +16,7 @@ import { parseFileMode } from "ext:deno_node/internal/validators.mjs"; import { ERR_INVALID_ARG_TYPE } from "ext:deno_node/internal/errors.ts"; import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs"; import { FileHandle } from "ext:deno_node/internal/fs/handle.ts"; -import type { Buffer } from "ext:deno_node/buffer.ts"; +import type { Buffer } from "node:buffer"; function existsSync(filePath: string | URL): boolean { try { diff --git a/ext/node/polyfills/_fs/_fs_opendir.ts b/ext/node/polyfills/_fs/_fs_opendir.ts index 1a3664915..2ab0a6280 100644 --- a/ext/node/polyfills/_fs/_fs_opendir.ts +++ b/ext/node/polyfills/_fs/_fs_opendir.ts @@ -4,7 +4,7 @@ // deno-lint-ignore-file prefer-primordials import Dir from "ext:deno_node/_fs/_fs_dir.ts"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { getOptions, getValidatedPath, diff --git a/ext/node/polyfills/_fs/_fs_read.ts b/ext/node/polyfills/_fs/_fs_read.ts index e220b62e4..6d7efbeef 100644 --- a/ext/node/polyfills/_fs/_fs_read.ts +++ b/ext/node/polyfills/_fs/_fs_read.ts @@ -3,7 +3,7 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { ERR_INVALID_ARG_TYPE } from "ext:deno_node/internal/errors.ts"; import * as io from "ext:deno_io/12_io.js"; import * as fs from "ext:deno_fs/30_fs.js"; diff --git a/ext/node/polyfills/_fs/_fs_readFile.ts b/ext/node/polyfills/_fs/_fs_readFile.ts index ad7456254..740ca4e3d 100644 --- a/ext/node/polyfills/_fs/_fs_readFile.ts +++ b/ext/node/polyfills/_fs/_fs_readFile.ts @@ -9,7 +9,7 @@ import { getEncoding, TextOptionsArgument, } from "ext:deno_node/_fs/_fs_common.ts"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { readAll } from "ext:deno_io/12_io.js"; import { FileHandle } from "ext:deno_node/internal/fs/handle.ts"; import { pathFromURL } from "ext:deno_web/00_infra.js"; diff --git a/ext/node/polyfills/_fs/_fs_readdir.ts b/ext/node/polyfills/_fs/_fs_readdir.ts index f00e47927..ce8e0185c 100644 --- a/ext/node/polyfills/_fs/_fs_readdir.ts +++ b/ext/node/polyfills/_fs/_fs_readdir.ts @@ -8,7 +8,7 @@ import { asyncIterableToCallback } from "ext:deno_node/_fs/_fs_watch.ts"; import Dirent from "ext:deno_node/_fs/_fs_dirent.ts"; import { denoErrorToNodeError } from "ext:deno_node/internal/errors.ts"; import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { promisify } from "ext:deno_node/internal/util.mjs"; function toDirent(val: Deno.DirEntry): Dirent { diff --git a/ext/node/polyfills/_fs/_fs_rmdir.ts b/ext/node/polyfills/_fs/_fs_rmdir.ts index e375d489e..c2c43e1e3 100644 --- a/ext/node/polyfills/_fs/_fs_rmdir.ts +++ b/ext/node/polyfills/_fs/_fs_rmdir.ts @@ -10,12 +10,12 @@ import { validateRmOptions, validateRmOptionsSync, } from "ext:deno_node/internal/fs/utils.mjs"; -import { toNamespacedPath } from "ext:deno_node/path.ts"; +import { toNamespacedPath } from "node:path"; import { denoErrorToNodeError, ERR_FS_RMDIR_ENOTDIR, } from "ext:deno_node/internal/errors.ts"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { promisify } from "ext:deno_node/internal/util.mjs"; type rmdirOptions = { diff --git a/ext/node/polyfills/_fs/_fs_watch.ts b/ext/node/polyfills/_fs/_fs_watch.ts index 32b7bbf5d..1b132bebc 100644 --- a/ext/node/polyfills/_fs/_fs_watch.ts +++ b/ext/node/polyfills/_fs/_fs_watch.ts @@ -3,15 +3,15 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials -import { basename } from "ext:deno_node/path.ts"; -import { EventEmitter } from "ext:deno_node/events.ts"; +import { basename } from "node:path"; +import { EventEmitter } from "node:events"; import { notImplemented } from "ext:deno_node/_utils.ts"; -import { promisify } from "ext:deno_node/util.ts"; +import { promisify } from "node:util"; import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs"; import { validateFunction } from "ext:deno_node/internal/validators.mjs"; import { stat, Stats } from "ext:deno_node/_fs/_fs_stat.ts"; import { Stats as StatsClass } from "ext:deno_node/internal/fs/utils.mjs"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { delay } from "ext:deno_node/_util/async.ts"; const statPromisified = promisify(stat); diff --git a/ext/node/polyfills/_fs/_fs_write.mjs b/ext/node/polyfills/_fs/_fs_write.mjs index 63fbcb49c..aea1e7236 100644 --- a/ext/node/polyfills/_fs/_fs_write.mjs +++ b/ext/node/polyfills/_fs/_fs_write.mjs @@ -4,7 +4,7 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { validateEncoding, validateInteger } from "ext:deno_node/internal/validators.mjs"; import * as io from "ext:deno_io/12_io.js"; import * as fs from "ext:deno_fs/30_fs.js"; diff --git a/ext/node/polyfills/_fs/_fs_writeFile.ts b/ext/node/polyfills/_fs/_fs_writeFile.ts index 7d8c8243d..3f263173f 100644 --- a/ext/node/polyfills/_fs/_fs_writeFile.ts +++ b/ext/node/polyfills/_fs/_fs_writeFile.ts @@ -5,7 +5,7 @@ import { Encodings } from "ext:deno_node/_utils.ts"; import { pathFromURL } from "ext:deno_web/00_infra.js"; -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { CallbackWithError, checkEncoding, diff --git a/ext/node/polyfills/_fs/_fs_writev.mjs b/ext/node/polyfills/_fs/_fs_writev.mjs index 34f77ac21..f27985c2a 100644 --- a/ext/node/polyfills/_fs/_fs_writev.mjs +++ b/ext/node/polyfills/_fs/_fs_writev.mjs @@ -4,7 +4,7 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials -import { Buffer } from "ext:deno_node/buffer.ts"; +import { Buffer } from "node:buffer"; import { validateBufferArray } from "ext:deno_node/internal/fs/utils.mjs"; import { getValidatedFd } from "ext:deno_node/internal/fs/utils.mjs"; import { maybeCallback } from "ext:deno_node/_fs/_fs_common.ts"; |