summaryrefslogtreecommitdiff
path: root/std/node
diff options
context:
space:
mode:
Diffstat (limited to 'std/node')
-rw-r--r--std/node/_fs/_fs_appendFile.ts6
-rw-r--r--std/node/_fs/_fs_chmod_test.ts2
-rw-r--r--std/node/_fs/_fs_chown_test.ts2
-rw-r--r--std/node/_fs/_fs_close_test.ts2
-rw-r--r--std/node/_fs/_fs_link_test.ts2
-rw-r--r--std/node/_fs/_fs_readFile.ts8
-rw-r--r--std/node/_fs/_fs_readFile_test.ts2
-rw-r--r--std/node/_fs/_fs_readlink_test.ts2
-rw-r--r--std/node/_fs/_fs_writeFile.ts8
-rw-r--r--std/node/_fs/promises/_fs_readFile.ts2
-rw-r--r--std/node/_fs/promises/_fs_readFile_test.ts2
-rw-r--r--std/node/_util/_util_types_test.ts26
-rw-r--r--std/node/assert.ts6
-rw-r--r--std/node/assert_test.ts14
-rw-r--r--std/node/assertion_error_test.ts2
-rw-r--r--std/node/buffer.ts2
-rw-r--r--std/node/events_test.ts4
-rw-r--r--std/node/fs.ts6
-rw-r--r--std/node/module.ts2
-rw-r--r--std/node/module_test.ts2
-rw-r--r--std/node/os_test.ts2
-rw-r--r--std/node/process_test.ts4
-rw-r--r--std/node/querystring_test.ts2
-rw-r--r--std/node/url.ts4
24 files changed, 57 insertions, 57 deletions
diff --git a/std/node/_fs/_fs_appendFile.ts b/std/node/_fs/_fs_appendFile.ts
index bc30de609..cb51def67 100644
--- a/std/node/_fs/_fs_appendFile.ts
+++ b/std/node/_fs/_fs_appendFile.ts
@@ -1,10 +1,10 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
- Encodings,
- WriteFileOptions,
- isFileOptions,
CallbackWithError,
+ Encodings,
getOpenOptions,
+ isFileOptions,
+ WriteFileOptions,
} from "./_fs_common.ts";
import { notImplemented } from "../_utils.ts";
import { fromFileUrl } from "../path.ts";
diff --git a/std/node/_fs/_fs_chmod_test.ts b/std/node/_fs/_fs_chmod_test.ts
index de4981a8c..a9ff7ed7d 100644
--- a/std/node/_fs/_fs_chmod_test.ts
+++ b/std/node/_fs/_fs_chmod_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assert } from "../../testing/asserts.ts";
+import { assert, fail } from "../../testing/asserts.ts";
import { chmod, chmodSync } from "./_fs_chmod.ts";
Deno.test({
diff --git a/std/node/_fs/_fs_chown_test.ts b/std/node/_fs/_fs_chown_test.ts
index de7dd992f..b053a7584 100644
--- a/std/node/_fs/_fs_chown_test.ts
+++ b/std/node/_fs/_fs_chown_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assertEquals } from "../../testing/asserts.ts";
+import { assertEquals, fail } from "../../testing/asserts.ts";
import { chown, chownSync } from "./_fs_chown.ts";
// chown is difficult to test. Best we can do is set the existing user id/group
diff --git a/std/node/_fs/_fs_close_test.ts b/std/node/_fs/_fs_close_test.ts
index feaf92ab8..173213816 100644
--- a/std/node/_fs/_fs_close_test.ts
+++ b/std/node/_fs/_fs_close_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assert, assertThrows } from "../../testing/asserts.ts";
+import { assert, assertThrows, fail } from "../../testing/asserts.ts";
import { close, closeSync } from "./_fs_close.ts";
Deno.test({
diff --git a/std/node/_fs/_fs_link_test.ts b/std/node/_fs/_fs_link_test.ts
index ae97f6676..7d1cbfd4f 100644
--- a/std/node/_fs/_fs_link_test.ts
+++ b/std/node/_fs/_fs_link_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { fail, assertEquals } from "../../testing/asserts.ts";
+import { assertEquals, fail } from "../../testing/asserts.ts";
import { link, linkSync } from "./_fs_link.ts";
import { assert } from "../../testing/asserts.ts";
diff --git a/std/node/_fs/_fs_readFile.ts b/std/node/_fs/_fs_readFile.ts
index 2aef28290..e4a7d2031 100644
--- a/std/node/_fs/_fs_readFile.ts
+++ b/std/node/_fs/_fs_readFile.ts
@@ -1,12 +1,12 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
+ BinaryEncodings,
+ BinaryOptionsArgument,
Encodings,
- getEncoding,
FileOptionsArgument,
- TextOptionsArgument,
- BinaryOptionsArgument,
+ getEncoding,
TextEncodings,
- BinaryEncodings,
+ TextOptionsArgument,
} from "./_fs_common.ts";
import { Buffer } from "../buffer.ts";
import { fromFileUrl } from "../path.ts";
diff --git a/std/node/_fs/_fs_readFile_test.ts b/std/node/_fs/_fs_readFile_test.ts
index 2ea7831d4..bc2635e82 100644
--- a/std/node/_fs/_fs_readFile_test.ts
+++ b/std/node/_fs/_fs_readFile_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readFile, readFileSync } from "./_fs_readFile.ts";
import * as path from "../../path/mod.ts";
-import { assertEquals, assert } from "../../testing/asserts.ts";
+import { assert, assertEquals } from "../../testing/asserts.ts";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "testdata", "hello.txt");
diff --git a/std/node/_fs/_fs_readlink_test.ts b/std/node/_fs/_fs_readlink_test.ts
index 0b220caa4..61bc3b004 100644
--- a/std/node/_fs/_fs_readlink_test.ts
+++ b/std/node/_fs/_fs_readlink_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readlink, readlinkSync } from "./_fs_readlink.ts";
-import { assertEquals, assert } from "../../testing/asserts.ts";
+import { assert, assertEquals } from "../../testing/asserts.ts";
import * as path from "../path.ts";
const testDir = Deno.makeTempDirSync();
diff --git a/std/node/_fs/_fs_writeFile.ts b/std/node/_fs/_fs_writeFile.ts
index a8ae1f586..19181ee21 100644
--- a/std/node/_fs/_fs_writeFile.ts
+++ b/std/node/_fs/_fs_writeFile.ts
@@ -4,13 +4,13 @@ import { fromFileUrl } from "../path.ts";
import { Buffer } from "../buffer.ts";
import {
- Encodings,
- WriteFileOptions,
CallbackWithError,
- isFileOptions,
- getEncoding,
checkEncoding,
+ Encodings,
+ getEncoding,
getOpenOptions,
+ isFileOptions,
+ WriteFileOptions,
} from "./_fs_common.ts";
export function writeFile(
diff --git a/std/node/_fs/promises/_fs_readFile.ts b/std/node/_fs/promises/_fs_readFile.ts
index 446c48625..fed5367ed 100644
--- a/std/node/_fs/promises/_fs_readFile.ts
+++ b/std/node/_fs/promises/_fs_readFile.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import type {
- FileOptionsArgument,
BinaryOptionsArgument,
+ FileOptionsArgument,
TextOptionsArgument,
} from "../_fs_common.ts";
import { readFile as readFileCallback } from "../_fs_readFile.ts";
diff --git a/std/node/_fs/promises/_fs_readFile_test.ts b/std/node/_fs/promises/_fs_readFile_test.ts
index 53ef373e5..2068797b9 100644
--- a/std/node/_fs/promises/_fs_readFile_test.ts
+++ b/std/node/_fs/promises/_fs_readFile_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { readFile } from "./_fs_readFile.ts";
import * as path from "../../../path/mod.ts";
-import { assertEquals, assert } from "../../../testing/asserts.ts";
+import { assert, assertEquals } from "../../../testing/asserts.ts";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "..", "testdata", "hello.txt");
diff --git a/std/node/_util/_util_types_test.ts b/std/node/_util/_util_types_test.ts
index fff0dad0c..0b9872bbb 100644
--- a/std/node/_util/_util_types_test.ts
+++ b/std/node/_util/_util_types_test.ts
@@ -22,42 +22,42 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
import { assertStrictEquals } from "../../testing/asserts.ts";
import {
- isDate,
- isMap,
- isSet,
isAnyArrayBuffer,
- isArrayBufferView,
isArgumentsObject,
isArrayBuffer,
- isStringObject,
+ isArrayBufferView,
isAsyncFunction,
isBigInt64Array,
+ isBigIntObject,
isBigUint64Array,
isBooleanObject,
isBoxedPrimitive,
isDataView,
+ isDate,
isFloat32Array,
isFloat64Array,
isGeneratorFunction,
isGeneratorObject,
- isInt8Array,
isInt16Array,
isInt32Array,
+ isInt8Array,
+ isMap,
isMapIterator,
isModuleNamespaceObject,
isNativeError,
- isSymbolObject,
- isTypedArray,
- isUint8Array,
- isUint8ClampedArray,
- isUint16Array,
- isUint32Array,
isNumberObject,
- isBigIntObject,
isPromise,
isRegExp,
+ isSet,
isSetIterator,
isSharedArrayBuffer,
+ isStringObject,
+ isSymbolObject,
+ isTypedArray,
+ isUint16Array,
+ isUint32Array,
+ isUint8Array,
+ isUint8ClampedArray,
isWeakMap,
isWeakSet,
} from "./_util_types.ts";
diff --git a/std/node/assert.ts b/std/node/assert.ts
index 78bc4b3b5..ad353912e 100644
--- a/std/node/assert.ts
+++ b/std/node/assert.ts
@@ -1,19 +1,19 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import {
assertEquals,
+ assertMatch,
assertNotEquals,
- assertStrictEquals,
assertNotStrictEquals,
- assertMatch,
+ assertStrictEquals,
assertThrows,
} from "../testing/asserts.ts";
export { AssertionError } from "./assertion_error.ts";
export {
+ assert,
assert as default,
assert as ok,
- assert,
fail,
} from "../testing/asserts.ts";
diff --git a/std/node/assert_test.ts b/std/node/assert_test.ts
index defcaa425..01a722ed3 100644
--- a/std/node/assert_test.ts
+++ b/std/node/assert_test.ts
@@ -2,10 +2,10 @@
import {
assert as denoAssert,
assertEquals,
+ assertMatch,
assertNotEquals,
- assertStrictEquals,
assertNotStrictEquals,
- assertMatch,
+ assertStrictEquals,
assertThrows,
fail as denoFail,
} from "../testing/asserts.ts";
@@ -13,16 +13,16 @@ import {
import AssertionError from "./assertion_error.ts";
import assert, {
- ok,
assert as assert_,
+ AssertionError as AssertionError_,
deepStrictEqual,
+ fail,
+ match,
notDeepStrictEqual,
- strictEqual,
notStrictEqual,
- match,
+ ok,
+ strictEqual,
throws,
- fail,
- AssertionError as AssertionError_,
} from "./assert.ts";
Deno.test("API should be exposed", () => {
diff --git a/std/node/assertion_error_test.ts b/std/node/assertion_error_test.ts
index 74187bc3a..2faa191f2 100644
--- a/std/node/assertion_error_test.ts
+++ b/std/node/assertion_error_test.ts
@@ -9,8 +9,8 @@ import {
import {
AssertionError,
copyError,
- inspectValue,
createErrDiff,
+ inspectValue,
} from "./assertion_error.ts";
Deno.test({
diff --git a/std/node/buffer.ts b/std/node/buffer.ts
index 24b77e323..2a9f0bb56 100644
--- a/std/node/buffer.ts
+++ b/std/node/buffer.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as hex from "../encoding/hex.ts";
import * as base64 from "../encoding/base64.ts";
-import { notImplemented, normalizeEncoding } from "./_utils.ts";
+import { normalizeEncoding, notImplemented } from "./_utils.ts";
const notImplementedEncodings = [
"ascii",
diff --git a/std/node/events_test.ts b/std/node/events_test.ts
index 557a3924d..b8324c74f 100644
--- a/std/node/events_test.ts
+++ b/std/node/events_test.ts
@@ -2,10 +2,10 @@
import {
assert,
assertEquals,
- fail,
assertThrows,
+ fail,
} from "../testing/asserts.ts";
-import EventEmitter, { WrappedFunction, once, on } from "./events.ts";
+import EventEmitter, { on, once, WrappedFunction } from "./events.ts";
const shouldNeverBeEmitted = () => {
fail("Should never be called");
diff --git a/std/node/fs.ts b/std/node/fs.ts
index 31e2e5ded..adb3a7c63 100644
--- a/std/node/fs.ts
+++ b/std/node/fs.ts
@@ -29,13 +29,13 @@ export {
copyFileSync,
exists,
existsSync,
+ mkdir,
+ mkdirSync,
+ promises,
readFile,
readFileSync,
readlink,
readlinkSync,
- mkdir,
- mkdirSync,
writeFile,
writeFileSync,
- promises,
};
diff --git a/std/node/module.ts b/std/node/module.ts
index 534fe88e4..a9a1b38d8 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -33,7 +33,7 @@ import * as nodeUtil from "./util.ts";
import * as path from "../path/mod.ts";
import { assert } from "../_util/assert.ts";
-import { pathToFileURL, fileURLToPath } from "./url.ts";
+import { fileURLToPath, pathToFileURL } from "./url.ts";
const CHAR_FORWARD_SLASH = "/".charCodeAt(0);
const CHAR_BACKWARD_SLASH = "\\".charCodeAt(0);
diff --git a/std/node/module_test.ts b/std/node/module_test.ts
index 4752763c9..2b8c5c790 100644
--- a/std/node/module_test.ts
+++ b/std/node/module_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-var-requires */
import {
- assertEquals,
assert,
+ assertEquals,
assertStringContains,
} from "../testing/asserts.ts";
diff --git a/std/node/os_test.ts b/std/node/os_test.ts
index 89a0a03aa..e4231aa3c 100644
--- a/std/node/os_test.ts
+++ b/std/node/os_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assert, assertThrows, assertEquals } from "../testing/asserts.ts";
+import { assert, assertEquals, assertThrows } from "../testing/asserts.ts";
import * as os from "./os.ts";
Deno.test({
diff --git a/std/node/process_test.ts b/std/node/process_test.ts
index 684beb8d2..6e6145e67 100644
--- a/std/node/process_test.ts
+++ b/std/node/process_test.ts
@@ -1,10 +1,10 @@
// deno-lint-ignore-file no-undef
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assert, assertThrows, assertEquals } from "../testing/asserts.ts";
+import { assert, assertEquals, assertThrows } from "../testing/asserts.ts";
import * as path from "../path/mod.ts";
import * as all from "./process.ts";
-import { env, argv } from "./process.ts";
+import { argv, env } from "./process.ts";
// NOTE: Deno.execPath() (and thus process.argv) currently requires --allow-env
// (Also Deno.env.toObject() (and process.env) requires --allow-env but it's more obvious)
diff --git a/std/node/querystring_test.ts b/std/node/querystring_test.ts
index 7f1efd4fd..63447b94a 100644
--- a/std/node/querystring_test.ts
+++ b/std/node/querystring_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../testing/asserts.ts";
-import { stringify, parse } from "./querystring.ts";
+import { parse, stringify } from "./querystring.ts";
Deno.test({
name: "stringify",
diff --git a/std/node/url.ts b/std/node/url.ts
index 577c5eaf2..70e1645b6 100644
--- a/std/node/url.ts
+++ b/std/node/url.ts
@@ -20,10 +20,10 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
import {
+ CHAR_BACKWARD_SLASH,
+ CHAR_FORWARD_SLASH,
CHAR_LOWERCASE_A,
CHAR_LOWERCASE_Z,
- CHAR_FORWARD_SLASH,
- CHAR_BACKWARD_SLASH,
} from "../path/_constants.ts";
import * as path from "./path.ts";