summaryrefslogtreecommitdiff
path: root/std/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding')
-rw-r--r--std/encoding/README.md6
-rw-r--r--std/encoding/_yaml/dumper/dumper_state.ts2
-rw-r--r--std/encoding/_yaml/schema.ts2
-rw-r--r--std/encoding/_yaml/type.ts2
-rw-r--r--std/encoding/_yaml/type/float.ts2
-rw-r--r--std/encoding/_yaml/type/int.ts2
-rw-r--r--std/encoding/ascii85_test.ts2
-rw-r--r--std/encoding/base32_test.ts4
-rw-r--r--std/encoding/base64_test.ts2
-rw-r--r--std/encoding/base64url_test.ts2
-rw-r--r--std/encoding/binary_test.ts4
-rw-r--r--std/encoding/csv_test.ts8
-rw-r--r--std/encoding/hex_test.ts10
13 files changed, 24 insertions, 24 deletions
diff --git a/std/encoding/README.md b/std/encoding/README.md
index fa9753777..21797a451 100644
--- a/std/encoding/README.md
+++ b/std/encoding/README.md
@@ -308,7 +308,7 @@ for Deno
decodes the given RFC4648 base32 representation to a `Uint8Array`.
```ts
-import { encode, decode } from "https://deno.land/std/encoding/base32.ts";
+import { decode, encode } from "https://deno.land/std/encoding/base32.ts";
const b32Repr = "RC2E6GA=";
@@ -330,7 +330,7 @@ Ascii85/base85 encoder and decoder with support for multiple standards
decodes the given ascii85 representation to a `Uint8Array`.
```ts
-import { encode, decode } from "https://deno.land/std/encoding/ascii85.ts";
+import { decode, encode } from "https://deno.land/std/encoding/ascii85.ts";
const a85Repr = "LpTqp";
@@ -359,7 +359,7 @@ supported by other encodings.)
encoding examples:
```ts
-import { encode, decode } from "https://deno.land/std/encoding/ascii85.ts";
+import { decode, encode } from "https://deno.land/std/encoding/ascii85.ts";
const binaryData = new Uint8Array([136, 180, 79, 24]);
console.log(encode(binaryData));
// => LpTqp
diff --git a/std/encoding/_yaml/dumper/dumper_state.ts b/std/encoding/_yaml/dumper/dumper_state.ts
index 63b04983e..31fe86f56 100644
--- a/std/encoding/_yaml/dumper/dumper_state.ts
+++ b/std/encoding/_yaml/dumper/dumper_state.ts
@@ -6,7 +6,7 @@
import type { Schema, SchemaDefinition } from "../schema.ts";
import { State } from "../state.ts";
import type { StyleVariant, Type } from "../type.ts";
-import type { ArrayObject, Any } from "../utils.ts";
+import type { Any, ArrayObject } from "../utils.ts";
const _hasOwnProperty = Object.prototype.hasOwnProperty;
diff --git a/std/encoding/_yaml/schema.ts b/std/encoding/_yaml/schema.ts
index b955e5df8..dfb8589c1 100644
--- a/std/encoding/_yaml/schema.ts
+++ b/std/encoding/_yaml/schema.ts
@@ -5,7 +5,7 @@
import { YAMLError } from "./error.ts";
import type { KindType, Type } from "./type.ts";
-import type { ArrayObject, Any } from "./utils.ts";
+import type { Any, ArrayObject } from "./utils.ts";
function compileList(
schema: Schema,
diff --git a/std/encoding/_yaml/type.ts b/std/encoding/_yaml/type.ts
index 89a91106b..f6ce9591c 100644
--- a/std/encoding/_yaml/type.ts
+++ b/std/encoding/_yaml/type.ts
@@ -3,7 +3,7 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import type { ArrayObject, Any } from "./utils.ts";
+import type { Any, ArrayObject } from "./utils.ts";
export type KindType = "sequence" | "scalar" | "mapping";
export type StyleVariant = "lowercase" | "uppercase" | "camelcase" | "decimal";
diff --git a/std/encoding/_yaml/type/float.ts b/std/encoding/_yaml/type/float.ts
index 6d59ed9ed..93635ba25 100644
--- a/std/encoding/_yaml/type/float.ts
+++ b/std/encoding/_yaml/type/float.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { StyleVariant, Type } from "../type.ts";
-import { isNegativeZero, Any } from "../utils.ts";
+import { Any, isNegativeZero } from "../utils.ts";
const YAML_FLOAT_PATTERN = new RegExp(
// 2.5e4, 2.5 and integers
diff --git a/std/encoding/_yaml/type/int.ts b/std/encoding/_yaml/type/int.ts
index 6a86aafe9..5186140e4 100644
--- a/std/encoding/_yaml/type/int.ts
+++ b/std/encoding/_yaml/type/int.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { isNegativeZero, Any } from "../utils.ts";
+import { Any, isNegativeZero } from "../utils.ts";
function isHexCode(c: number): boolean {
return (
diff --git a/std/encoding/ascii85_test.ts b/std/encoding/ascii85_test.ts
index 02af70964..cea939faf 100644
--- a/std/encoding/ascii85_test.ts
+++ b/std/encoding/ascii85_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../testing/asserts.ts";
-import { encode, decode, Ascii85Standard } from "./ascii85.ts";
+import { Ascii85Standard, decode, encode } from "./ascii85.ts";
type TestCases = Partial<{ [index in Ascii85Standard]: string[][] }>;
const utf8encoder = new TextEncoder();
const testCasesNoDelimeter: TestCases = {
diff --git a/std/encoding/base32_test.ts b/std/encoding/base32_test.ts
index cfefe54d7..a604bf323 100644
--- a/std/encoding/base32_test.ts
+++ b/std/encoding/base32_test.ts
@@ -1,8 +1,8 @@
// Test cases copied from https://github.com/LinusU/base32-encode/blob/master/test.js
// Copyright (c) 2016-2017 Linus Unnebäck. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assert } from "../testing/asserts.ts";
-import { encode, decode } from "./base32.ts";
+import { assert, assertEquals } from "../testing/asserts.ts";
+import { decode, encode } from "./base32.ts";
// Lifted from https://stackoverflow.com/questions/38987784
const fromHexString = (hexString: string): Uint8Array =>
diff --git a/std/encoding/base64_test.ts b/std/encoding/base64_test.ts
index 9e549c698..5fe89410b 100644
--- a/std/encoding/base64_test.ts
+++ b/std/encoding/base64_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../testing/asserts.ts";
-import { encode, decode, decodeString } from "./base64.ts";
+import { decode, decodeString, encode } from "./base64.ts";
const testsetString = [
["", ""],
diff --git a/std/encoding/base64url_test.ts b/std/encoding/base64url_test.ts
index 9a864a87c..59d67240f 100644
--- a/std/encoding/base64url_test.ts
+++ b/std/encoding/base64url_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../testing/asserts.ts";
-import { encode, decode } from "./base64url.ts";
+import { decode, encode } from "./base64url.ts";
const testsetString = [
["", ""],
diff --git a/std/encoding/binary_test.ts b/std/encoding/binary_test.ts
index 89a5b8c8e..a4e3cb144 100644
--- a/std/encoding/binary_test.ts
+++ b/std/encoding/binary_test.ts
@@ -9,11 +9,11 @@ import {
readVarnum,
sizeof,
varbig,
+ varbigBytes,
varnum,
+ varnumBytes,
writeVarbig,
writeVarnum,
- varbigBytes,
- varnumBytes,
} from "./binary.ts";
Deno.test("testGetNBytes", async function (): Promise<void> {
diff --git a/std/encoding/csv_test.ts b/std/encoding/csv_test.ts
index aab9e86b1..1a2d892cc 100644
--- a/std/encoding/csv_test.ts
+++ b/std/encoding/csv_test.ts
@@ -6,13 +6,13 @@
import { assertEquals, assertThrowsAsync } from "../testing/asserts.ts";
import {
- readMatrix,
- parse,
ERR_BARE_QUOTE,
- ERR_QUOTE,
- ERR_INVALID_DELIM,
ERR_FIELD_COUNT,
+ ERR_INVALID_DELIM,
+ ERR_QUOTE,
+ parse,
ParseError,
+ readMatrix,
} from "./csv.ts";
import { StringReader } from "../io/readers.ts";
import { BufReader } from "../io/bufio.ts";
diff --git a/std/encoding/hex_test.ts b/std/encoding/hex_test.ts
index 0cf39ad2e..d1a4002c6 100644
--- a/std/encoding/hex_test.ts
+++ b/std/encoding/hex_test.ts
@@ -7,14 +7,14 @@
import { assertEquals, assertThrows } from "../testing/asserts.ts";
import {
- encodedLen,
- encode,
- encodeToString,
- decodedLen,
decode,
+ decodedLen,
decodeString,
- errLength,
+ encode,
+ encodedLen,
+ encodeToString,
errInvalidByte,
+ errLength,
} from "./hex.ts";
function toByte(s: string): number {