From f184332c09c851faac50f598d29ebe4426e05464 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sat, 9 May 2020 13:34:47 +0100 Subject: BREAKING(std): reorganization (#5087) * Prepend underscores to private modules * Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result. * Move std/_util/async.ts to std/async * Move std/util/sha*.ts to std/hash --- std/examples/chat/server_test.ts | 2 +- std/examples/flags.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 std/examples/flags.ts (limited to 'std/examples') diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts index 92eb50f92..7375de47a 100644 --- a/std/examples/chat/server_test.ts +++ b/std/examples/chat/server_test.ts @@ -3,7 +3,7 @@ import { assert, assertEquals } from "../../testing/asserts.ts"; import { TextProtoReader } from "../../textproto/mod.ts"; import { BufReader } from "../../io/bufio.ts"; import { connectWebSocket, WebSocket } from "../../ws/mod.ts"; -import { delay } from "../../util/async.ts"; +import { delay } from "../../async/delay.ts"; const { test } = Deno; diff --git a/std/examples/flags.ts b/std/examples/flags.ts new file mode 100644 index 000000000..4625b8c96 --- /dev/null +++ b/std/examples/flags.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +const { args } = Deno; +import { parse } from "../flags/mod.ts"; + +if (import.meta.main) { + console.dir(parse(args)); +} -- cgit v1.2.3