diff options
| author | Bert Belder <bertbelder@gmail.com> | 2019-02-25 21:35:50 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-26 00:35:50 -0500 |
| commit | 2ba7de2d04fb7fb5847b86d9c549f1cbf9c68d5a (patch) | |
| tree | ca85b441bcfcebd48ac1fb4e262d836215242167 /ws | |
| parent | a7bf19135352928c87b5e1068252e0490990cec3 (diff) | |
Change `import { x } from "deno"` to `const { x } = Deno` (denoland/deno_std#218)
Original: https://github.com/denoland/deno_std/commit/6063378a9284a48d42e37b4899f947c5c8bbf0b3
Diffstat (limited to 'ws')
| -rw-r--r-- | ws/mod.ts | 3 | ||||
| -rw-r--r-- | ws/test.ts | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,6 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { Buffer, Writer, Conn } from "deno"; +const { Buffer } = Deno; +import { Writer, Conn } from "deno"; import { BufReader, BufWriter } from "../io/bufio.ts"; import { readLong, readShort, sliceLongToBytes } from "../io/ioutil.ts"; import { Sha1 } from "./sha1.ts"; diff --git a/ws/test.ts b/ws/test.ts index 684c43002..46ea1cb83 100644 --- a/ws/test.ts +++ b/ws/test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "./sha1_test.ts"; -import { Buffer } from "deno"; +const { Buffer } = Deno; import { BufReader } from "../io/bufio.ts"; import { assert, assertEqual, test } from "../testing/mod.ts"; import { |
