initial commit
This commit is contained in:
38
node_modules/unenv/runtime/node/fs/_classes.cjs
generated
vendored
Normal file
38
node_modules/unenv/runtime/node/fs/_classes.cjs
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.WriteStream = exports.Stats = exports.ReadStream = exports.FileWriteStream = exports.FileReadStream = exports.Dirent = exports.Dir = void 0;
|
||||
|
||||
var _proxy = _interopRequireDefault(require("../../mock/proxy.cjs"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
const Dir = _proxy.default.__createMock__("fs.Dir");
|
||||
|
||||
exports.Dir = Dir;
|
||||
|
||||
const Dirent = _proxy.default.__createMock__("fs.Dirent");
|
||||
|
||||
exports.Dirent = Dirent;
|
||||
|
||||
const Stats = _proxy.default.__createMock__("fs.Stats");
|
||||
|
||||
exports.Stats = Stats;
|
||||
|
||||
const ReadStream = _proxy.default.__createMock__("fs.ReadStream");
|
||||
|
||||
exports.ReadStream = ReadStream;
|
||||
|
||||
const WriteStream = _proxy.default.__createMock__("fs.WriteStream");
|
||||
|
||||
exports.WriteStream = WriteStream;
|
||||
|
||||
const FileReadStream = _proxy.default.__createMock__("fs.FileReadStream");
|
||||
|
||||
exports.FileReadStream = FileReadStream;
|
||||
|
||||
const FileWriteStream = _proxy.default.__createMock__("fs.FileWriteStream");
|
||||
|
||||
exports.FileWriteStream = FileWriteStream;
|
||||
8
node_modules/unenv/runtime/node/fs/_classes.d.ts
generated
vendored
Normal file
8
node_modules/unenv/runtime/node/fs/_classes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type fs from "node:fs";
|
||||
export declare const Dir: typeof fs.Dir;
|
||||
export declare const Dirent: typeof fs.Dirent;
|
||||
export declare const Stats: typeof fs.Stats;
|
||||
export declare const ReadStream: typeof fs.ReadStream;
|
||||
export declare const WriteStream: typeof fs.WriteStream;
|
||||
export declare const FileReadStream: any;
|
||||
export declare const FileWriteStream: any;
|
||||
8
node_modules/unenv/runtime/node/fs/_classes.mjs
generated
vendored
Normal file
8
node_modules/unenv/runtime/node/fs/_classes.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import mock from "../../mock/proxy.mjs";
|
||||
export const Dir = mock.__createMock__("fs.Dir");
|
||||
export const Dirent = mock.__createMock__("fs.Dirent");
|
||||
export const Stats = mock.__createMock__("fs.Stats");
|
||||
export const ReadStream = mock.__createMock__("fs.ReadStream");
|
||||
export const WriteStream = mock.__createMock__("fs.WriteStream");
|
||||
export const FileReadStream = mock.__createMock__("fs.FileReadStream");
|
||||
export const FileWriteStream = mock.__createMock__("fs.FileWriteStream");
|
||||
73
node_modules/unenv/runtime/node/fs/_constants.cjs
generated
vendored
Normal file
73
node_modules/unenv/runtime/node/fs/_constants.cjs
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.constants = exports.X_OK = exports.W_OK = exports.R_OK = exports.F_OK = void 0;
|
||||
const F_OK = 0;
|
||||
exports.F_OK = F_OK;
|
||||
const R_OK = 4;
|
||||
exports.R_OK = R_OK;
|
||||
const W_OK = 2;
|
||||
exports.W_OK = W_OK;
|
||||
const X_OK = 1;
|
||||
exports.X_OK = X_OK;
|
||||
const constants = /* @__PURE__ */Object.create({
|
||||
UV_FS_SYMLINK_DIR: 1,
|
||||
UV_FS_SYMLINK_JUNCTION: 2,
|
||||
O_RDONLY: 0,
|
||||
O_WRONLY: 1,
|
||||
O_RDWR: 2,
|
||||
UV_DIRENT_UNKNOWN: 0,
|
||||
UV_DIRENT_FILE: 1,
|
||||
UV_DIRENT_DIR: 2,
|
||||
UV_DIRENT_LINK: 3,
|
||||
UV_DIRENT_FIFO: 4,
|
||||
UV_DIRENT_SOCKET: 5,
|
||||
UV_DIRENT_CHAR: 6,
|
||||
UV_DIRENT_BLOCK: 7,
|
||||
S_IFMT: 61440,
|
||||
S_IFREG: 32768,
|
||||
S_IFDIR: 16384,
|
||||
S_IFCHR: 8192,
|
||||
S_IFBLK: 24576,
|
||||
S_IFIFO: 4096,
|
||||
S_IFLNK: 40960,
|
||||
S_IFSOCK: 49152,
|
||||
O_CREAT: 64,
|
||||
O_EXCL: 128,
|
||||
UV_FS_O_FILEMAP: 0,
|
||||
O_NOCTTY: 256,
|
||||
O_TRUNC: 512,
|
||||
O_APPEND: 1024,
|
||||
O_DIRECTORY: 65536,
|
||||
O_NOATIME: 262144,
|
||||
O_NOFOLLOW: 131072,
|
||||
O_SYNC: 1052672,
|
||||
O_DSYNC: 4096,
|
||||
O_DIRECT: 16384,
|
||||
O_NONBLOCK: 2048,
|
||||
S_IRWXU: 448,
|
||||
S_IRUSR: 256,
|
||||
S_IWUSR: 128,
|
||||
S_IXUSR: 64,
|
||||
S_IRWXG: 56,
|
||||
S_IRGRP: 32,
|
||||
S_IWGRP: 16,
|
||||
S_IXGRP: 8,
|
||||
S_IRWXO: 7,
|
||||
S_IROTH: 4,
|
||||
S_IWOTH: 2,
|
||||
S_IXOTH: 1,
|
||||
F_OK: 0,
|
||||
R_OK: 4,
|
||||
W_OK: 2,
|
||||
X_OK: 1,
|
||||
UV_FS_COPYFILE_EXCL: 1,
|
||||
COPYFILE_EXCL: 1,
|
||||
UV_FS_COPYFILE_FICLONE: 2,
|
||||
COPYFILE_FICLONE: 2,
|
||||
UV_FS_COPYFILE_FICLONE_FORCE: 4,
|
||||
COPYFILE_FICLONE_FORCE: 4
|
||||
});
|
||||
exports.constants = constants;
|
||||
6
node_modules/unenv/runtime/node/fs/_constants.d.ts
generated
vendored
Normal file
6
node_modules/unenv/runtime/node/fs/_constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type fs from "node:fs";
|
||||
export declare const F_OK = 0;
|
||||
export declare const R_OK = 4;
|
||||
export declare const W_OK = 2;
|
||||
export declare const X_OK = 1;
|
||||
export declare const constants: typeof fs.constants;
|
||||
62
node_modules/unenv/runtime/node/fs/_constants.mjs
generated
vendored
Normal file
62
node_modules/unenv/runtime/node/fs/_constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
export const F_OK = 0;
|
||||
export const R_OK = 4;
|
||||
export const W_OK = 2;
|
||||
export const X_OK = 1;
|
||||
export const constants = /* @__PURE__ */ Object.create({
|
||||
UV_FS_SYMLINK_DIR: 1,
|
||||
UV_FS_SYMLINK_JUNCTION: 2,
|
||||
O_RDONLY: 0,
|
||||
O_WRONLY: 1,
|
||||
O_RDWR: 2,
|
||||
UV_DIRENT_UNKNOWN: 0,
|
||||
UV_DIRENT_FILE: 1,
|
||||
UV_DIRENT_DIR: 2,
|
||||
UV_DIRENT_LINK: 3,
|
||||
UV_DIRENT_FIFO: 4,
|
||||
UV_DIRENT_SOCKET: 5,
|
||||
UV_DIRENT_CHAR: 6,
|
||||
UV_DIRENT_BLOCK: 7,
|
||||
S_IFMT: 61440,
|
||||
S_IFREG: 32768,
|
||||
S_IFDIR: 16384,
|
||||
S_IFCHR: 8192,
|
||||
S_IFBLK: 24576,
|
||||
S_IFIFO: 4096,
|
||||
S_IFLNK: 40960,
|
||||
S_IFSOCK: 49152,
|
||||
O_CREAT: 64,
|
||||
O_EXCL: 128,
|
||||
UV_FS_O_FILEMAP: 0,
|
||||
O_NOCTTY: 256,
|
||||
O_TRUNC: 512,
|
||||
O_APPEND: 1024,
|
||||
O_DIRECTORY: 65536,
|
||||
O_NOATIME: 262144,
|
||||
O_NOFOLLOW: 131072,
|
||||
O_SYNC: 1052672,
|
||||
O_DSYNC: 4096,
|
||||
O_DIRECT: 16384,
|
||||
O_NONBLOCK: 2048,
|
||||
S_IRWXU: 448,
|
||||
S_IRUSR: 256,
|
||||
S_IWUSR: 128,
|
||||
S_IXUSR: 64,
|
||||
S_IRWXG: 56,
|
||||
S_IRGRP: 32,
|
||||
S_IWGRP: 16,
|
||||
S_IXGRP: 8,
|
||||
S_IRWXO: 7,
|
||||
S_IROTH: 4,
|
||||
S_IWOTH: 2,
|
||||
S_IXOTH: 1,
|
||||
F_OK: 0,
|
||||
R_OK: 4,
|
||||
W_OK: 2,
|
||||
X_OK: 1,
|
||||
UV_FS_COPYFILE_EXCL: 1,
|
||||
COPYFILE_EXCL: 1,
|
||||
UV_FS_COPYFILE_FICLONE: 2,
|
||||
COPYFILE_FICLONE: 2,
|
||||
UV_FS_COPYFILE_FICLONE_FORCE: 4,
|
||||
COPYFILE_FICLONE_FORCE: 4
|
||||
});
|
||||
215
node_modules/unenv/runtime/node/fs/_fs.cjs
generated
vendored
Normal file
215
node_modules/unenv/runtime/node/fs/_fs.cjs
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.writevSync = exports.writev = exports.writeSync = exports.writeFileSync = exports.writeFile = exports.write = exports.watchFile = exports.watch = exports.utimesSync = exports.utimes = exports.unwatchFile = exports.unlinkSync = exports.unlink = exports.truncateSync = exports.truncate = exports.symlinkSync = exports.symlink = exports.statSync = exports.stat = exports.rmdirSync = exports.rmdir = exports.rmSync = exports.rm = exports.renameSync = exports.rename = exports.realpathSync = exports.realpath = exports.readvSync = exports.readv = exports.readlinkSync = exports.readlink = exports.readdirSync = exports.readdir = exports.readSync = exports.readFileSync = exports.readFile = exports.read = exports.opendirSync = exports.opendir = exports.openSync = exports.open = exports.mkdtempSync = exports.mkdtemp = exports.mkdirSync = exports.mkdir = exports.lutimesSync = exports.lutimes = exports.lstatSync = exports.lstat = exports.linkSync = exports.link = exports.lchownSync = exports.lchown = exports.lchmodSync = exports.lchmod = exports.futimesSync = exports.futimes = exports.ftruncateSync = exports.ftruncate = exports.fsyncSync = exports.fsync = exports.fstatSync = exports.fstat = exports.fdatasyncSync = exports.fdatasync = exports.fchownSync = exports.fchown = exports.fchmodSync = exports.fchmod = exports.existsSync = exports.exists = exports.createWriteStream = exports.createReadStream = exports.cpSync = exports.cp = exports.copyFileSync = exports.copyFile = exports.closeSync = exports.close = exports.chownSync = exports.chown = exports.chmodSync = exports.chmod = exports.appendFileSync = exports.appendFile = exports.accessSync = exports.access = exports._toUnixTimestamp = void 0;
|
||||
|
||||
var _utils = require("../../_internal/utils.cjs");
|
||||
|
||||
var fsp = _interopRequireWildcard(require("./promises/index.cjs"));
|
||||
|
||||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
||||
|
||||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function notImplementedAsync(name) {
|
||||
const fn = (0, _utils.notImplemented)(name);
|
||||
|
||||
fn.__promisify__ = () => (0, _utils.notImplemented)(name + ".__promisify__");
|
||||
|
||||
fn.native = fn;
|
||||
return fn;
|
||||
}
|
||||
|
||||
function callbackify(fn) {
|
||||
const fnc = function (...args) {
|
||||
const cb = args.pop();
|
||||
fn().catch(error => cb(error)).then(val => cb(void 0, val));
|
||||
};
|
||||
|
||||
fnc.__promisify__ = fn;
|
||||
fnc.native = fnc;
|
||||
return fnc;
|
||||
}
|
||||
|
||||
const access = callbackify(fsp.access);
|
||||
exports.access = access;
|
||||
const appendFile = callbackify(fsp.appendFile);
|
||||
exports.appendFile = appendFile;
|
||||
const chown = callbackify(fsp.chown);
|
||||
exports.chown = chown;
|
||||
const chmod = callbackify(fsp.chmod);
|
||||
exports.chmod = chmod;
|
||||
const copyFile = callbackify(fsp.copyFile);
|
||||
exports.copyFile = copyFile;
|
||||
const cp = callbackify(fsp.cp);
|
||||
exports.cp = cp;
|
||||
const lchown = callbackify(fsp.lchown);
|
||||
exports.lchown = lchown;
|
||||
const lchmod = callbackify(fsp.lchmod);
|
||||
exports.lchmod = lchmod;
|
||||
const link = callbackify(fsp.link);
|
||||
exports.link = link;
|
||||
const lstat = callbackify(fsp.lstat);
|
||||
exports.lstat = lstat;
|
||||
const lutimes = callbackify(fsp.lutimes);
|
||||
exports.lutimes = lutimes;
|
||||
const mkdir = callbackify(fsp.mkdir);
|
||||
exports.mkdir = mkdir;
|
||||
const mkdtemp = callbackify(fsp.mkdtemp);
|
||||
exports.mkdtemp = mkdtemp;
|
||||
const realpath = callbackify(fsp.realpath);
|
||||
exports.realpath = realpath;
|
||||
const open = callbackify(fsp.open);
|
||||
exports.open = open;
|
||||
const opendir = callbackify(fsp.opendir);
|
||||
exports.opendir = opendir;
|
||||
const readdir = callbackify(fsp.readdir);
|
||||
exports.readdir = readdir;
|
||||
const readFile = callbackify(fsp.readFile);
|
||||
exports.readFile = readFile;
|
||||
const readlink = callbackify(fsp.readlink);
|
||||
exports.readlink = readlink;
|
||||
const rename = callbackify(fsp.rename);
|
||||
exports.rename = rename;
|
||||
const rm = callbackify(fsp.rm);
|
||||
exports.rm = rm;
|
||||
const rmdir = callbackify(fsp.rmdir);
|
||||
exports.rmdir = rmdir;
|
||||
const stat = callbackify(fsp.stat);
|
||||
exports.stat = stat;
|
||||
const symlink = callbackify(fsp.symlink);
|
||||
exports.symlink = symlink;
|
||||
const truncate = callbackify(fsp.truncate);
|
||||
exports.truncate = truncate;
|
||||
const unlink = callbackify(fsp.unlink);
|
||||
exports.unlink = unlink;
|
||||
const utimes = callbackify(fsp.utimes);
|
||||
exports.utimes = utimes;
|
||||
const writeFile = callbackify(fsp.writeFile);
|
||||
exports.writeFile = writeFile;
|
||||
const close = notImplementedAsync("fs.close");
|
||||
exports.close = close;
|
||||
const createReadStream = notImplementedAsync("fs.createReadStream");
|
||||
exports.createReadStream = createReadStream;
|
||||
const createWriteStream = notImplementedAsync("fs.createWriteStream");
|
||||
exports.createWriteStream = createWriteStream;
|
||||
const exists = notImplementedAsync("fs.exists");
|
||||
exports.exists = exists;
|
||||
const fchown = notImplementedAsync("fs.fchown");
|
||||
exports.fchown = fchown;
|
||||
const fchmod = notImplementedAsync("fs.fchmod");
|
||||
exports.fchmod = fchmod;
|
||||
const fdatasync = notImplementedAsync("fs.fdatasync");
|
||||
exports.fdatasync = fdatasync;
|
||||
const fstat = notImplementedAsync("fs.fstat");
|
||||
exports.fstat = fstat;
|
||||
const fsync = notImplementedAsync("fs.fsync");
|
||||
exports.fsync = fsync;
|
||||
const ftruncate = notImplementedAsync("fs.ftruncate");
|
||||
exports.ftruncate = ftruncate;
|
||||
const futimes = notImplementedAsync("fs.futimes");
|
||||
exports.futimes = futimes;
|
||||
const lstatSync = notImplementedAsync("fs.lstatSync");
|
||||
exports.lstatSync = lstatSync;
|
||||
const read = notImplementedAsync("fs.read");
|
||||
exports.read = read;
|
||||
const readv = notImplementedAsync("fs.readv");
|
||||
exports.readv = readv;
|
||||
const realpathSync = notImplementedAsync("fs.realpathSync");
|
||||
exports.realpathSync = realpathSync;
|
||||
const statSync = notImplementedAsync("fs.statSync");
|
||||
exports.statSync = statSync;
|
||||
const unwatchFile = notImplementedAsync("fs.unwatchFile");
|
||||
exports.unwatchFile = unwatchFile;
|
||||
const watch = notImplementedAsync("fs.watch");
|
||||
exports.watch = watch;
|
||||
const watchFile = notImplementedAsync("fs.watchFile");
|
||||
exports.watchFile = watchFile;
|
||||
const write = notImplementedAsync("fs.write");
|
||||
exports.write = write;
|
||||
const writev = notImplementedAsync("fs.writev");
|
||||
exports.writev = writev;
|
||||
|
||||
const _toUnixTimestamp = notImplementedAsync("fs._toUnixTimestamp");
|
||||
|
||||
exports._toUnixTimestamp = _toUnixTimestamp;
|
||||
const appendFileSync = (0, _utils.notImplemented)("fs.appendFileSync");
|
||||
exports.appendFileSync = appendFileSync;
|
||||
const accessSync = (0, _utils.notImplemented)("fs.accessSync");
|
||||
exports.accessSync = accessSync;
|
||||
const chownSync = (0, _utils.notImplemented)("fs.chownSync");
|
||||
exports.chownSync = chownSync;
|
||||
const chmodSync = (0, _utils.notImplemented)("fs.chmodSync");
|
||||
exports.chmodSync = chmodSync;
|
||||
const closeSync = (0, _utils.notImplemented)("fs.closeSync");
|
||||
exports.closeSync = closeSync;
|
||||
const copyFileSync = (0, _utils.notImplemented)("fs.copyFileSync");
|
||||
exports.copyFileSync = copyFileSync;
|
||||
const cpSync = (0, _utils.notImplemented)("fs.cpSync");
|
||||
exports.cpSync = cpSync;
|
||||
|
||||
const existsSync = () => false;
|
||||
|
||||
exports.existsSync = existsSync;
|
||||
const fchownSync = (0, _utils.notImplemented)("fs.fchownSync");
|
||||
exports.fchownSync = fchownSync;
|
||||
const fchmodSync = (0, _utils.notImplemented)("fs.fchmodSync");
|
||||
exports.fchmodSync = fchmodSync;
|
||||
const fdatasyncSync = (0, _utils.notImplemented)("fs.fdatasyncSync");
|
||||
exports.fdatasyncSync = fdatasyncSync;
|
||||
const fstatSync = (0, _utils.notImplemented)("fs.fstatSync");
|
||||
exports.fstatSync = fstatSync;
|
||||
const fsyncSync = (0, _utils.notImplemented)("fs.fsyncSync");
|
||||
exports.fsyncSync = fsyncSync;
|
||||
const ftruncateSync = (0, _utils.notImplemented)("fs.ftruncateSync");
|
||||
exports.ftruncateSync = ftruncateSync;
|
||||
const futimesSync = (0, _utils.notImplemented)("fs.futimesSync");
|
||||
exports.futimesSync = futimesSync;
|
||||
const lchownSync = (0, _utils.notImplemented)("fs.lchownSync");
|
||||
exports.lchownSync = lchownSync;
|
||||
const lchmodSync = (0, _utils.notImplemented)("fs.lchmodSync");
|
||||
exports.lchmodSync = lchmodSync;
|
||||
const linkSync = (0, _utils.notImplemented)("fs.linkSync");
|
||||
exports.linkSync = linkSync;
|
||||
const lutimesSync = (0, _utils.notImplemented)("fs.lutimesSync");
|
||||
exports.lutimesSync = lutimesSync;
|
||||
const mkdirSync = (0, _utils.notImplemented)("fs.mkdirSync");
|
||||
exports.mkdirSync = mkdirSync;
|
||||
const mkdtempSync = (0, _utils.notImplemented)("fs.mkdtempSync");
|
||||
exports.mkdtempSync = mkdtempSync;
|
||||
const openSync = (0, _utils.notImplemented)("fs.openSync");
|
||||
exports.openSync = openSync;
|
||||
const opendirSync = (0, _utils.notImplemented)("fs.opendirSync");
|
||||
exports.opendirSync = opendirSync;
|
||||
const readdirSync = (0, _utils.notImplemented)("fs.readdirSync");
|
||||
exports.readdirSync = readdirSync;
|
||||
const readSync = (0, _utils.notImplemented)("fs.readSync");
|
||||
exports.readSync = readSync;
|
||||
const readvSync = (0, _utils.notImplemented)("fs.readvSync");
|
||||
exports.readvSync = readvSync;
|
||||
const readFileSync = (0, _utils.notImplemented)("fs.readFileSync");
|
||||
exports.readFileSync = readFileSync;
|
||||
const readlinkSync = (0, _utils.notImplemented)("fs.readlinkSync");
|
||||
exports.readlinkSync = readlinkSync;
|
||||
const renameSync = (0, _utils.notImplemented)("fs.renameSync");
|
||||
exports.renameSync = renameSync;
|
||||
const rmSync = (0, _utils.notImplemented)("fs.rmSync");
|
||||
exports.rmSync = rmSync;
|
||||
const rmdirSync = (0, _utils.notImplemented)("fs.rmdirSync");
|
||||
exports.rmdirSync = rmdirSync;
|
||||
const symlinkSync = (0, _utils.notImplemented)("fs.symlinkSync");
|
||||
exports.symlinkSync = symlinkSync;
|
||||
const truncateSync = (0, _utils.notImplemented)("fs.truncateSync");
|
||||
exports.truncateSync = truncateSync;
|
||||
const unlinkSync = (0, _utils.notImplemented)("fs.unlinkSync");
|
||||
exports.unlinkSync = unlinkSync;
|
||||
const utimesSync = (0, _utils.notImplemented)("fs.utimesSync");
|
||||
exports.utimesSync = utimesSync;
|
||||
const writeFileSync = (0, _utils.notImplemented)("fs.writeFileSync");
|
||||
exports.writeFileSync = writeFileSync;
|
||||
const writeSync = (0, _utils.notImplemented)("fs.writeSync");
|
||||
exports.writeSync = writeSync;
|
||||
const writevSync = (0, _utils.notImplemented)("fs.writevSync");
|
||||
exports.writevSync = writevSync;
|
||||
95
node_modules/unenv/runtime/node/fs/_fs.d.ts
generated
vendored
Normal file
95
node_modules/unenv/runtime/node/fs/_fs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
import type fs from "node:fs";
|
||||
interface Promisifiable {
|
||||
(): any;
|
||||
native: Promisifiable;
|
||||
__promisify__: () => Promise<any>;
|
||||
}
|
||||
export declare const access: typeof fs.access;
|
||||
export declare const appendFile: typeof fs.appendFile;
|
||||
export declare const chown: typeof fs.chown;
|
||||
export declare const chmod: typeof fs.chmod;
|
||||
export declare const copyFile: typeof fs.copyFile;
|
||||
export declare const cp: typeof fs.cp;
|
||||
export declare const lchown: typeof fs.lchown;
|
||||
export declare const lchmod: typeof fs.lchmod;
|
||||
export declare const link: typeof fs.link;
|
||||
export declare const lstat: typeof fs.lstat;
|
||||
export declare const lutimes: typeof fs.lutimes;
|
||||
export declare const mkdir: typeof fs.mkdir;
|
||||
export declare const mkdtemp: typeof fs.mkdtemp;
|
||||
export declare const realpath: typeof fs.realpath;
|
||||
export declare const open: typeof fs.open;
|
||||
export declare const opendir: typeof fs.opendir;
|
||||
export declare const readdir: typeof fs.readdir;
|
||||
export declare const readFile: typeof fs.readFile;
|
||||
export declare const readlink: typeof fs.readlink;
|
||||
export declare const rename: typeof fs.rename;
|
||||
export declare const rm: typeof fs.rm;
|
||||
export declare const rmdir: typeof fs.rmdir;
|
||||
export declare const stat: typeof fs.stat;
|
||||
export declare const symlink: typeof fs.symlink;
|
||||
export declare const truncate: typeof fs.truncate;
|
||||
export declare const unlink: typeof fs.unlink;
|
||||
export declare const utimes: typeof fs.utimes;
|
||||
export declare const writeFile: typeof fs.writeFile;
|
||||
export declare const close: typeof fs.close;
|
||||
export declare const createReadStream: typeof fs.createReadStream;
|
||||
export declare const createWriteStream: typeof fs.createWriteStream;
|
||||
export declare const exists: typeof fs.exists;
|
||||
export declare const fchown: typeof fs.fchown;
|
||||
export declare const fchmod: typeof fs.fchmod;
|
||||
export declare const fdatasync: typeof fs.fdatasync;
|
||||
export declare const fstat: typeof fs.fstat;
|
||||
export declare const fsync: typeof fs.fsync;
|
||||
export declare const ftruncate: typeof fs.ftruncate;
|
||||
export declare const futimes: typeof fs.futimes;
|
||||
export declare const lstatSync: typeof fs.lstatSync;
|
||||
export declare const read: typeof fs.read;
|
||||
export declare const readv: typeof fs.readv;
|
||||
export declare const realpathSync: typeof fs.realpathSync;
|
||||
export declare const statSync: typeof fs.statSync;
|
||||
export declare const unwatchFile: typeof fs.unwatchFile;
|
||||
export declare const watch: typeof fs.watch;
|
||||
export declare const watchFile: typeof fs.watchFile;
|
||||
export declare const write: typeof fs.write;
|
||||
export declare const writev: typeof fs.writev;
|
||||
export declare const _toUnixTimestamp: Promisifiable;
|
||||
export declare const appendFileSync: typeof fs.appendFileSync;
|
||||
export declare const accessSync: typeof fs.accessSync;
|
||||
export declare const chownSync: typeof fs.chownSync;
|
||||
export declare const chmodSync: typeof fs.chmodSync;
|
||||
export declare const closeSync: typeof fs.closeSync;
|
||||
export declare const copyFileSync: typeof fs.copyFileSync;
|
||||
export declare const cpSync: typeof fs.cpSync;
|
||||
export declare const existsSync: typeof fs.existsSync;
|
||||
export declare const fchownSync: typeof fs.fchownSync;
|
||||
export declare const fchmodSync: typeof fs.fchmodSync;
|
||||
export declare const fdatasyncSync: typeof fs.fdatasyncSync;
|
||||
export declare const fstatSync: typeof fs.fstatSync;
|
||||
export declare const fsyncSync: typeof fs.fsyncSync;
|
||||
export declare const ftruncateSync: typeof fs.ftruncateSync;
|
||||
export declare const futimesSync: typeof fs.futimesSync;
|
||||
export declare const lchownSync: typeof fs.lchownSync;
|
||||
export declare const lchmodSync: typeof fs.lchmodSync;
|
||||
export declare const linkSync: typeof fs.linkSync;
|
||||
export declare const lutimesSync: typeof fs.lutimesSync;
|
||||
export declare const mkdirSync: typeof fs.mkdirSync;
|
||||
export declare const mkdtempSync: typeof fs.mkdtempSync;
|
||||
export declare const openSync: typeof fs.openSync;
|
||||
export declare const opendirSync: typeof fs.opendirSync;
|
||||
export declare const readdirSync: typeof fs.readdirSync;
|
||||
export declare const readSync: typeof fs.readSync;
|
||||
export declare const readvSync: typeof fs.readvSync;
|
||||
export declare const readFileSync: typeof fs.readFileSync;
|
||||
export declare const readlinkSync: typeof fs.readlinkSync;
|
||||
export declare const renameSync: typeof fs.renameSync;
|
||||
export declare const rmSync: typeof fs.rmSync;
|
||||
export declare const rmdirSync: typeof fs.rmdirSync;
|
||||
export declare const symlinkSync: typeof fs.symlinkSync;
|
||||
export declare const truncateSync: typeof fs.truncateSync;
|
||||
export declare const unlinkSync: typeof fs.unlinkSync;
|
||||
export declare const utimesSync: typeof fs.utimesSync;
|
||||
export declare const writeFileSync: typeof fs.writeFileSync;
|
||||
export declare const writeSync: typeof fs.writeSync;
|
||||
export declare const writevSync: typeof fs.writevSync;
|
||||
export {};
|
||||
105
node_modules/unenv/runtime/node/fs/_fs.mjs
generated
vendored
Normal file
105
node_modules/unenv/runtime/node/fs/_fs.mjs
generated
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
import { notImplemented } from "../../_internal/utils.mjs";
|
||||
import * as fsp from "./promises/index.mjs";
|
||||
function notImplementedAsync(name) {
|
||||
const fn = notImplemented(name);
|
||||
fn.__promisify__ = () => notImplemented(name + ".__promisify__");
|
||||
fn.native = fn;
|
||||
return fn;
|
||||
}
|
||||
function callbackify(fn) {
|
||||
const fnc = function(...args) {
|
||||
const cb = args.pop();
|
||||
fn().catch((error) => cb(error)).then((val) => cb(void 0, val));
|
||||
};
|
||||
fnc.__promisify__ = fn;
|
||||
fnc.native = fnc;
|
||||
return fnc;
|
||||
}
|
||||
export const access = callbackify(fsp.access);
|
||||
export const appendFile = callbackify(fsp.appendFile);
|
||||
export const chown = callbackify(fsp.chown);
|
||||
export const chmod = callbackify(fsp.chmod);
|
||||
export const copyFile = callbackify(fsp.copyFile);
|
||||
export const cp = callbackify(fsp.cp);
|
||||
export const lchown = callbackify(fsp.lchown);
|
||||
export const lchmod = callbackify(fsp.lchmod);
|
||||
export const link = callbackify(fsp.link);
|
||||
export const lstat = callbackify(fsp.lstat);
|
||||
export const lutimes = callbackify(fsp.lutimes);
|
||||
export const mkdir = callbackify(fsp.mkdir);
|
||||
export const mkdtemp = callbackify(fsp.mkdtemp);
|
||||
export const realpath = callbackify(fsp.realpath);
|
||||
export const open = callbackify(fsp.open);
|
||||
export const opendir = callbackify(fsp.opendir);
|
||||
export const readdir = callbackify(fsp.readdir);
|
||||
export const readFile = callbackify(fsp.readFile);
|
||||
export const readlink = callbackify(fsp.readlink);
|
||||
export const rename = callbackify(fsp.rename);
|
||||
export const rm = callbackify(fsp.rm);
|
||||
export const rmdir = callbackify(fsp.rmdir);
|
||||
export const stat = callbackify(fsp.stat);
|
||||
export const symlink = callbackify(fsp.symlink);
|
||||
export const truncate = callbackify(fsp.truncate);
|
||||
export const unlink = callbackify(fsp.unlink);
|
||||
export const utimes = callbackify(fsp.utimes);
|
||||
export const writeFile = callbackify(fsp.writeFile);
|
||||
export const close = notImplementedAsync("fs.close");
|
||||
export const createReadStream = notImplementedAsync("fs.createReadStream");
|
||||
export const createWriteStream = notImplementedAsync("fs.createWriteStream");
|
||||
export const exists = notImplementedAsync("fs.exists");
|
||||
export const fchown = notImplementedAsync("fs.fchown");
|
||||
export const fchmod = notImplementedAsync("fs.fchmod");
|
||||
export const fdatasync = notImplementedAsync("fs.fdatasync");
|
||||
export const fstat = notImplementedAsync("fs.fstat");
|
||||
export const fsync = notImplementedAsync("fs.fsync");
|
||||
export const ftruncate = notImplementedAsync("fs.ftruncate");
|
||||
export const futimes = notImplementedAsync("fs.futimes");
|
||||
export const lstatSync = notImplementedAsync("fs.lstatSync");
|
||||
export const read = notImplementedAsync("fs.read");
|
||||
export const readv = notImplementedAsync("fs.readv");
|
||||
export const realpathSync = notImplementedAsync("fs.realpathSync");
|
||||
export const statSync = notImplementedAsync("fs.statSync");
|
||||
export const unwatchFile = notImplementedAsync("fs.unwatchFile");
|
||||
export const watch = notImplementedAsync("fs.watch");
|
||||
export const watchFile = notImplementedAsync("fs.watchFile");
|
||||
export const write = notImplementedAsync("fs.write");
|
||||
export const writev = notImplementedAsync("fs.writev");
|
||||
export const _toUnixTimestamp = notImplementedAsync("fs._toUnixTimestamp");
|
||||
export const appendFileSync = notImplemented("fs.appendFileSync");
|
||||
export const accessSync = notImplemented("fs.accessSync");
|
||||
export const chownSync = notImplemented("fs.chownSync");
|
||||
export const chmodSync = notImplemented("fs.chmodSync");
|
||||
export const closeSync = notImplemented("fs.closeSync");
|
||||
export const copyFileSync = notImplemented("fs.copyFileSync");
|
||||
export const cpSync = notImplemented("fs.cpSync");
|
||||
export const existsSync = () => false;
|
||||
export const fchownSync = notImplemented("fs.fchownSync");
|
||||
export const fchmodSync = notImplemented("fs.fchmodSync");
|
||||
export const fdatasyncSync = notImplemented("fs.fdatasyncSync");
|
||||
export const fstatSync = notImplemented("fs.fstatSync");
|
||||
export const fsyncSync = notImplemented("fs.fsyncSync");
|
||||
export const ftruncateSync = notImplemented("fs.ftruncateSync");
|
||||
export const futimesSync = notImplemented("fs.futimesSync");
|
||||
export const lchownSync = notImplemented("fs.lchownSync");
|
||||
export const lchmodSync = notImplemented("fs.lchmodSync");
|
||||
export const linkSync = notImplemented("fs.linkSync");
|
||||
export const lutimesSync = notImplemented("fs.lutimesSync");
|
||||
export const mkdirSync = notImplemented("fs.mkdirSync");
|
||||
export const mkdtempSync = notImplemented("fs.mkdtempSync");
|
||||
export const openSync = notImplemented("fs.openSync");
|
||||
export const opendirSync = notImplemented("fs.opendirSync");
|
||||
export const readdirSync = notImplemented("fs.readdirSync");
|
||||
export const readSync = notImplemented("fs.readSync");
|
||||
export const readvSync = notImplemented("fs.readvSync");
|
||||
export const readFileSync = notImplemented("fs.readFileSync");
|
||||
export const readlinkSync = notImplemented("fs.readlinkSync");
|
||||
export const renameSync = notImplemented("fs.renameSync");
|
||||
export const rmSync = notImplemented("fs.rmSync");
|
||||
export const rmdirSync = notImplemented("fs.rmdirSync");
|
||||
export const symlinkSync = notImplemented("fs.symlinkSync");
|
||||
export const truncateSync = notImplemented("fs.truncateSync");
|
||||
export const unlinkSync = notImplemented("fs.unlinkSync");
|
||||
export const utimesSync = notImplemented("fs.utimesSync");
|
||||
export const writeFileSync = notImplemented("fs.writeFileSync");
|
||||
export const writeSync = notImplemented("fs.writeSync");
|
||||
export const writevSync = notImplemented("fs.writevSync");
|
||||
66
node_modules/unenv/runtime/node/fs/index.cjs
generated
vendored
Normal file
66
node_modules/unenv/runtime/node/fs/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
promises: true
|
||||
};
|
||||
exports.promises = exports.default = void 0;
|
||||
|
||||
var _classes = _interopRequireWildcard(require("./_classes.cjs"));
|
||||
|
||||
Object.keys(_classes).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _classes[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _classes[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var _constants = _interopRequireWildcard(require("./_constants.cjs"));
|
||||
|
||||
Object.keys(_constants).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _constants[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _constants[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var _fs = _interopRequireWildcard(require("./_fs.cjs"));
|
||||
|
||||
Object.keys(_fs).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _fs[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _fs[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var _promises = _interopRequireWildcard(require("./promises/index.cjs"));
|
||||
|
||||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
||||
|
||||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
const promises = _promises;
|
||||
exports.promises = promises;
|
||||
var _default = { ..._classes,
|
||||
..._constants,
|
||||
..._fs,
|
||||
promises
|
||||
};
|
||||
module.exports = _default;
|
||||
7
node_modules/unenv/runtime/node/fs/index.d.ts
generated
vendored
Normal file
7
node_modules/unenv/runtime/node/fs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as _promises from "./promises/index";
|
||||
export * from "./_classes";
|
||||
export * from "./_constants";
|
||||
export * from "./_fs";
|
||||
export declare const promises: typeof _promises;
|
||||
declare const _default: any;
|
||||
export default _default;
|
||||
14
node_modules/unenv/runtime/node/fs/index.mjs
generated
vendored
Normal file
14
node_modules/unenv/runtime/node/fs/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as _classes from "./_classes.mjs";
|
||||
import * as _constants from "./_constants.mjs";
|
||||
import * as _fs from "./_fs.mjs";
|
||||
import * as _promises from "./promises/index.mjs";
|
||||
export * from "./_classes.mjs";
|
||||
export * from "./_constants.mjs";
|
||||
export * from "./_fs.mjs";
|
||||
export const promises = _promises;
|
||||
export default {
|
||||
..._classes,
|
||||
..._constants,
|
||||
..._fs,
|
||||
promises
|
||||
};
|
||||
67
node_modules/unenv/runtime/node/fs/promises/index.cjs
generated
vendored
Normal file
67
node_modules/unenv/runtime/node/fs/promises/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.writeFile = exports.watch = exports.utimes = exports.unlink = exports.truncate = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.realpath = exports.readlink = exports.readdir = exports.readFile = exports.opendir = exports.open = exports.mkdtemp = exports.mkdir = exports.lutimes = exports.lstat = exports.link = exports.lchown = exports.lchmod = exports.cp = exports.copyFile = exports.chown = exports.chmod = exports.appendFile = exports.access = void 0;
|
||||
|
||||
var _utils = require("../../../_internal/utils.cjs");
|
||||
|
||||
const access = (0, _utils.notImplemented)("fs.access");
|
||||
exports.access = access;
|
||||
const copyFile = (0, _utils.notImplemented)("fs.copyFile");
|
||||
exports.copyFile = copyFile;
|
||||
const cp = (0, _utils.notImplemented)("fs.cp");
|
||||
exports.cp = cp;
|
||||
const open = (0, _utils.notImplemented)("fs.open");
|
||||
exports.open = open;
|
||||
const opendir = (0, _utils.notImplemented)("fs.opendir");
|
||||
exports.opendir = opendir;
|
||||
const rename = (0, _utils.notImplemented)("fs.rename");
|
||||
exports.rename = rename;
|
||||
const truncate = (0, _utils.notImplemented)("fs.truncate");
|
||||
exports.truncate = truncate;
|
||||
const rm = (0, _utils.notImplemented)("fs.rm");
|
||||
exports.rm = rm;
|
||||
const rmdir = (0, _utils.notImplemented)("fs.rmdir");
|
||||
exports.rmdir = rmdir;
|
||||
const mkdir = (0, _utils.notImplemented)("fs.mkdir");
|
||||
exports.mkdir = mkdir;
|
||||
const readdir = (0, _utils.notImplemented)("fs.readdir");
|
||||
exports.readdir = readdir;
|
||||
const readlink = (0, _utils.notImplemented)("fs.readlink");
|
||||
exports.readlink = readlink;
|
||||
const symlink = (0, _utils.notImplemented)("fs.symlink");
|
||||
exports.symlink = symlink;
|
||||
const lstat = (0, _utils.notImplemented)("fs.lstat");
|
||||
exports.lstat = lstat;
|
||||
const stat = (0, _utils.notImplemented)("fs.stat");
|
||||
exports.stat = stat;
|
||||
const link = (0, _utils.notImplemented)("fs.link");
|
||||
exports.link = link;
|
||||
const unlink = (0, _utils.notImplemented)("fs.unlink");
|
||||
exports.unlink = unlink;
|
||||
const chmod = (0, _utils.notImplemented)("fs.chmod");
|
||||
exports.chmod = chmod;
|
||||
const lchmod = (0, _utils.notImplemented)("fs.lchmod");
|
||||
exports.lchmod = lchmod;
|
||||
const lchown = (0, _utils.notImplemented)("fs.lchown");
|
||||
exports.lchown = lchown;
|
||||
const chown = (0, _utils.notImplemented)("fs.chown");
|
||||
exports.chown = chown;
|
||||
const utimes = (0, _utils.notImplemented)("fs.utimes");
|
||||
exports.utimes = utimes;
|
||||
const lutimes = (0, _utils.notImplemented)("fs.lutimes");
|
||||
exports.lutimes = lutimes;
|
||||
const realpath = (0, _utils.notImplemented)("fs.realpath");
|
||||
exports.realpath = realpath;
|
||||
const mkdtemp = (0, _utils.notImplemented)("fs.mkdtemp");
|
||||
exports.mkdtemp = mkdtemp;
|
||||
const writeFile = (0, _utils.notImplemented)("fs.writeFile");
|
||||
exports.writeFile = writeFile;
|
||||
const appendFile = (0, _utils.notImplemented)("fs.appendFile");
|
||||
exports.appendFile = appendFile;
|
||||
const readFile = (0, _utils.notImplemented)("fs.readFile");
|
||||
exports.readFile = readFile;
|
||||
const watch = (0, _utils.notImplemented)("fs.watch");
|
||||
exports.watch = watch;
|
||||
30
node_modules/unenv/runtime/node/fs/promises/index.d.ts
generated
vendored
Normal file
30
node_modules/unenv/runtime/node/fs/promises/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import type fsp from "node:fs/promises";
|
||||
export declare const access: typeof fsp.access;
|
||||
export declare const copyFile: typeof fsp.copyFile;
|
||||
export declare const cp: typeof fsp.cp;
|
||||
export declare const open: typeof fsp.open;
|
||||
export declare const opendir: typeof fsp.opendir;
|
||||
export declare const rename: typeof fsp.rename;
|
||||
export declare const truncate: typeof fsp.truncate;
|
||||
export declare const rm: typeof fsp.rm;
|
||||
export declare const rmdir: typeof fsp.rmdir;
|
||||
export declare const mkdir: typeof fsp.mkdir;
|
||||
export declare const readdir: typeof fsp.readdir;
|
||||
export declare const readlink: typeof fsp.readlink;
|
||||
export declare const symlink: typeof fsp.symlink;
|
||||
export declare const lstat: typeof fsp.lstat;
|
||||
export declare const stat: typeof fsp.stat;
|
||||
export declare const link: typeof fsp.link;
|
||||
export declare const unlink: typeof fsp.unlink;
|
||||
export declare const chmod: typeof fsp.chmod;
|
||||
export declare const lchmod: typeof fsp.lchmod;
|
||||
export declare const lchown: typeof fsp.lchown;
|
||||
export declare const chown: typeof fsp.chown;
|
||||
export declare const utimes: typeof fsp.utimes;
|
||||
export declare const lutimes: typeof fsp.lutimes;
|
||||
export declare const realpath: typeof fsp.realpath;
|
||||
export declare const mkdtemp: typeof fsp.mkdtemp;
|
||||
export declare const writeFile: typeof fsp.writeFile;
|
||||
export declare const appendFile: typeof fsp.appendFile;
|
||||
export declare const readFile: typeof fsp.readFile;
|
||||
export declare const watch: typeof fsp.watch;
|
||||
30
node_modules/unenv/runtime/node/fs/promises/index.mjs
generated
vendored
Normal file
30
node_modules/unenv/runtime/node/fs/promises/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { notImplemented } from "../../../_internal/utils.mjs";
|
||||
export const access = notImplemented("fs.access");
|
||||
export const copyFile = notImplemented("fs.copyFile");
|
||||
export const cp = notImplemented("fs.cp");
|
||||
export const open = notImplemented("fs.open");
|
||||
export const opendir = notImplemented("fs.opendir");
|
||||
export const rename = notImplemented("fs.rename");
|
||||
export const truncate = notImplemented("fs.truncate");
|
||||
export const rm = notImplemented("fs.rm");
|
||||
export const rmdir = notImplemented("fs.rmdir");
|
||||
export const mkdir = notImplemented("fs.mkdir");
|
||||
export const readdir = notImplemented("fs.readdir");
|
||||
export const readlink = notImplemented("fs.readlink");
|
||||
export const symlink = notImplemented("fs.symlink");
|
||||
export const lstat = notImplemented("fs.lstat");
|
||||
export const stat = notImplemented("fs.stat");
|
||||
export const link = notImplemented("fs.link");
|
||||
export const unlink = notImplemented("fs.unlink");
|
||||
export const chmod = notImplemented("fs.chmod");
|
||||
export const lchmod = notImplemented("fs.lchmod");
|
||||
export const lchown = notImplemented("fs.lchown");
|
||||
export const chown = notImplemented("fs.chown");
|
||||
export const utimes = notImplemented("fs.utimes");
|
||||
export const lutimes = notImplemented("fs.lutimes");
|
||||
export const realpath = notImplemented("fs.realpath");
|
||||
export const mkdtemp = notImplemented("fs.mkdtemp");
|
||||
export const writeFile = notImplemented("fs.writeFile");
|
||||
export const appendFile = notImplemented("fs.appendFile");
|
||||
export const readFile = notImplemented("fs.readFile");
|
||||
export const watch = notImplemented("fs.watch");
|
||||
Reference in New Issue
Block a user