mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
bda9379385
Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno.
132 lines
5.1 KiB
JavaScript
132 lines
5.1 KiB
JavaScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
__bootstrap.denoNs = {
|
|
test: __bootstrap.testing.test,
|
|
metrics: __bootstrap.metrics.metrics,
|
|
Process: __bootstrap.process.Process,
|
|
run: __bootstrap.process.run,
|
|
isatty: __bootstrap.tty.isatty,
|
|
writeFileSync: __bootstrap.writeFile.writeFileSync,
|
|
writeFile: __bootstrap.writeFile.writeFile,
|
|
writeTextFileSync: __bootstrap.writeFile.writeTextFileSync,
|
|
writeTextFile: __bootstrap.writeFile.writeTextFile,
|
|
readTextFile: __bootstrap.readFile.readTextFile,
|
|
readTextFileSync: __bootstrap.readFile.readTextFileSync,
|
|
readFile: __bootstrap.readFile.readFile,
|
|
readFileSync: __bootstrap.readFile.readFileSync,
|
|
watchFs: __bootstrap.fsEvents.watchFs,
|
|
chmodSync: __bootstrap.fs.chmodSync,
|
|
chmod: __bootstrap.fs.chmod,
|
|
chown: __bootstrap.fs.chown,
|
|
chownSync: __bootstrap.fs.chownSync,
|
|
copyFileSync: __bootstrap.fs.copyFileSync,
|
|
cwd: __bootstrap.fs.cwd,
|
|
makeTempDirSync: __bootstrap.fs.makeTempDirSync,
|
|
makeTempDir: __bootstrap.fs.makeTempDir,
|
|
makeTempFileSync: __bootstrap.fs.makeTempFileSync,
|
|
makeTempFile: __bootstrap.fs.makeTempFile,
|
|
mkdirSync: __bootstrap.fs.mkdirSync,
|
|
mkdir: __bootstrap.fs.mkdir,
|
|
chdir: __bootstrap.fs.chdir,
|
|
copyFile: __bootstrap.fs.copyFile,
|
|
readDirSync: __bootstrap.fs.readDirSync,
|
|
readDir: __bootstrap.fs.readDir,
|
|
readLinkSync: __bootstrap.fs.readLinkSync,
|
|
readLink: __bootstrap.fs.readLink,
|
|
realPathSync: __bootstrap.fs.realPathSync,
|
|
realPath: __bootstrap.fs.realPath,
|
|
removeSync: __bootstrap.fs.removeSync,
|
|
remove: __bootstrap.fs.remove,
|
|
renameSync: __bootstrap.fs.renameSync,
|
|
rename: __bootstrap.fs.rename,
|
|
version: __bootstrap.version.version,
|
|
build: __bootstrap.build.build,
|
|
statSync: __bootstrap.fs.statSync,
|
|
lstatSync: __bootstrap.fs.lstatSync,
|
|
stat: __bootstrap.fs.stat,
|
|
lstat: __bootstrap.fs.lstat,
|
|
truncateSync: __bootstrap.fs.truncateSync,
|
|
truncate: __bootstrap.fs.truncate,
|
|
errors: __bootstrap.errors.errors,
|
|
customInspect: __bootstrap.console.customInspect,
|
|
inspect: __bootstrap.console.inspect,
|
|
env: __bootstrap.os.env,
|
|
exit: __bootstrap.os.exit,
|
|
execPath: __bootstrap.os.execPath,
|
|
Buffer: __bootstrap.buffer.Buffer,
|
|
readAll: __bootstrap.buffer.readAll,
|
|
readAllSync: __bootstrap.buffer.readAllSync,
|
|
writeAll: __bootstrap.buffer.writeAll,
|
|
writeAllSync: __bootstrap.buffer.writeAllSync,
|
|
copy: __bootstrap.io.copy,
|
|
iter: __bootstrap.io.iter,
|
|
iterSync: __bootstrap.io.iterSync,
|
|
SeekMode: __bootstrap.io.SeekMode,
|
|
read: __bootstrap.io.read,
|
|
readSync: __bootstrap.io.readSync,
|
|
write: __bootstrap.io.write,
|
|
writeSync: __bootstrap.io.writeSync,
|
|
File: __bootstrap.files.File,
|
|
open: __bootstrap.files.open,
|
|
openSync: __bootstrap.files.openSync,
|
|
create: __bootstrap.files.create,
|
|
createSync: __bootstrap.files.createSync,
|
|
stdin: __bootstrap.files.stdin,
|
|
stdout: __bootstrap.files.stdout,
|
|
stderr: __bootstrap.files.stderr,
|
|
seek: __bootstrap.files.seek,
|
|
seekSync: __bootstrap.files.seekSync,
|
|
connect: __bootstrap.net.connect,
|
|
listen: __bootstrap.net.listen,
|
|
connectTls: __bootstrap.tls.connectTls,
|
|
listenTls: __bootstrap.tls.listenTls,
|
|
};
|
|
|
|
__bootstrap.denoNsUnstable = {
|
|
signal: __bootstrap.signals.signal,
|
|
signals: __bootstrap.signals.signals,
|
|
Signal: __bootstrap.signals.Signal,
|
|
SignalStream: __bootstrap.signals.SignalStream,
|
|
transpileOnly: __bootstrap.compilerApi.transpileOnly,
|
|
compile: __bootstrap.compilerApi.compile,
|
|
bundle: __bootstrap.compilerApi.bundle,
|
|
permissions: __bootstrap.permissions.permissions,
|
|
Permissions: __bootstrap.permissions.Permissions,
|
|
PermissionStatus: __bootstrap.permissions.PermissionStatus,
|
|
openPlugin: __bootstrap.plugins.openPlugin,
|
|
kill: __bootstrap.process.kill,
|
|
setRaw: __bootstrap.tty.setRaw,
|
|
consoleSize: __bootstrap.tty.consoleSize,
|
|
DiagnosticCategory: __bootstrap.diagnostics.DiagnosticCategory,
|
|
loadavg: __bootstrap.os.loadavg,
|
|
hostname: __bootstrap.os.hostname,
|
|
osRelease: __bootstrap.os.osRelease,
|
|
systemMemoryInfo: __bootstrap.os.systemMemoryInfo,
|
|
applySourceMap: __bootstrap.errorStack.opApplySourceMap,
|
|
formatDiagnostics: __bootstrap.errorStack.opFormatDiagnostics,
|
|
shutdown: __bootstrap.net.shutdown,
|
|
ShutdownMode: __bootstrap.net.ShutdownMode,
|
|
listen: __bootstrap.netUnstable.listen,
|
|
connect: __bootstrap.netUnstable.connect,
|
|
listenDatagram: __bootstrap.netUnstable.listenDatagram,
|
|
startTls: __bootstrap.tls.startTls,
|
|
fstatSync: __bootstrap.fs.fstatSync,
|
|
fstat: __bootstrap.fs.fstat,
|
|
ftruncateSync: __bootstrap.fs.ftruncateSync,
|
|
ftruncate: __bootstrap.fs.ftruncate,
|
|
umask: __bootstrap.fs.umask,
|
|
link: __bootstrap.fs.link,
|
|
linkSync: __bootstrap.fs.linkSync,
|
|
futime: __bootstrap.fs.futime,
|
|
futimeSync: __bootstrap.fs.futimeSync,
|
|
utime: __bootstrap.fs.utime,
|
|
utimeSync: __bootstrap.fs.utimeSync,
|
|
symlink: __bootstrap.fs.symlink,
|
|
symlinkSync: __bootstrap.fs.symlinkSync,
|
|
fdatasyncSync: __bootstrap.fs.fdatasyncSync,
|
|
fdatasync: __bootstrap.fs.fdatasync,
|
|
fsyncSync: __bootstrap.fs.fsyncSync,
|
|
fsync: __bootstrap.fs.fsync,
|
|
HttpClient: __bootstrap.fetch.HttpClient,
|
|
createHttpClient: __bootstrap.fetch.createHttpClient,
|
|
};
|