From 12c6b2395be2bd1371284adf03e4826ba5edc761 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 1 Apr 2020 15:23:39 -0400 Subject: Move encode, decode helpers to /std/encoding/utf8.ts, delete /std/strings/ (#4565) also removes std/encoding/mod.ts and std/archive/mod.ts which are useless. --- std/ws/example_client.ts | 2 +- std/ws/mod.ts | 2 +- std/ws/test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'std/ws') diff --git a/std/ws/example_client.ts b/std/ws/example_client.ts index e6653362d..3b1c6a33a 100644 --- a/std/ws/example_client.ts +++ b/std/ws/example_client.ts @@ -4,7 +4,7 @@ import { isWebSocketPingEvent, isWebSocketPongEvent, } from "../ws/mod.ts"; -import { encode } from "../strings/mod.ts"; +import { encode } from "../encoding/utf8.ts"; import { BufReader } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; import { blue, green, red, yellow } from "../fmt/colors.ts"; diff --git a/std/ws/mod.ts b/std/ws/mod.ts index a9b8cb675..bb377ad6e 100644 --- a/std/ws/mod.ts +++ b/std/ws/mod.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { decode, encode } from "../strings/mod.ts"; +import { decode, encode } from "../encoding/utf8.ts"; import { hasOwnProperty } from "../util/has_own_property.ts"; import { BufReader, BufWriter } from "../io/bufio.ts"; import { readLong, readShort, sliceLongToBytes } from "../io/ioutil.ts"; diff --git a/std/ws/test.ts b/std/ws/test.ts index 583750bb1..20ba2ba61 100644 --- a/std/ws/test.ts +++ b/std/ws/test.ts @@ -16,7 +16,7 @@ import { writeFrame, createWebSocket, } from "./mod.ts"; -import { encode, decode } from "../strings/mod.ts"; +import { encode, decode } from "../encoding/utf8.ts"; import Writer = Deno.Writer; import Reader = Deno.Reader; import Conn = Deno.Conn; -- cgit v1.2.3