summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-05-09 12:44:35 -0400
committerGitHub <noreply@github.com>2020-05-09 12:44:35 -0400
commitb8364a263694e9845a4ad03fac53fb913667f63a (patch)
treee81795bf787aa7c934ab3f3ca509dea8cb5658fc /cli/js
parenteb505f8afcd56f4d4a372cdfbb66906d8a5107c7 (diff)
BREAKING: make Deno.hostname unstable (#5108)
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/deno.ts2
-rw-r--r--cli/js/deno_unstable.ts2
-rw-r--r--cli/js/lib.deno.ns.d.ts8
-rw-r--r--cli/js/lib.deno.unstable.d.ts8
4 files changed, 10 insertions, 10 deletions
diff --git a/cli/js/deno.ts b/cli/js/deno.ts
index 38b2f6d2a..5843d5fbf 100644
--- a/cli/js/deno.ts
+++ b/cli/js/deno.ts
@@ -59,7 +59,7 @@ export {
export { metrics, Metrics } from "./ops/runtime.ts";
export { mkdirSync, mkdir, MkdirOptions } from "./ops/fs/mkdir.ts";
export { connect, listen, Listener, Conn } from "./net.ts";
-export { dir, env, exit, execPath, hostname } from "./ops/os.ts";
+export { dir, env, exit, execPath } from "./ops/os.ts";
export { run, RunOptions, Process, ProcessStatus } from "./process.ts";
export { DirEntry, readDirSync, readDir } from "./ops/fs/read_dir.ts";
export { readFileSync, readFile } from "./read_file.ts";
diff --git a/cli/js/deno_unstable.ts b/cli/js/deno_unstable.ts
index 57d1a0970..4d964f3bd 100644
--- a/cli/js/deno_unstable.ts
+++ b/cli/js/deno_unstable.ts
@@ -5,7 +5,7 @@
export { umask } from "./ops/fs/umask.ts";
export { linkSync, link } from "./ops/fs/link.ts";
export { symlinkSync, symlink } from "./ops/fs/symlink.ts";
-export { dir, loadavg, osRelease } from "./ops/os.ts";
+export { dir, loadavg, osRelease, hostname } from "./ops/os.ts";
export { openPlugin } from "./ops/plugins.ts";
export { transpileOnly, compile, bundle } from "./compiler_api.ts";
export { applySourceMap, formatDiagnostics } from "./ops/errors.ts";
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 1eeb86307..8c91f145e 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -97,14 +97,6 @@ declare namespace Deno {
* */
export function test(name: string, fn: () => void | Promise<void>): void;
- /** Get the `hostname` of the machine the Deno process is running on.
- *
- * console.log(Deno.hostname());
- *
- * Requires `allow-env` permission.
- */
- export function hostname(): string;
-
/** Exit the Deno process with optional exit code. If no exit code is supplied
* then Deno will exit with return code of 0.
*
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts
index a523300cc..10587d3df 100644
--- a/cli/js/lib.deno.unstable.d.ts
+++ b/cli/js/lib.deno.unstable.d.ts
@@ -1174,4 +1174,12 @@ declare namespace Deno {
state: PermissionState;
constructor(state: PermissionState);
}
+
+ /** Get the `hostname` of the machine the Deno process is running on.
+ *
+ * console.log(Deno.hostname());
+ *
+ * Requires `allow-env` permission.
+ */
+ export function hostname(): string;
}