diff options
Diffstat (limited to 'std/node')
34 files changed, 28 insertions, 8 deletions
diff --git a/std/node/_fs/_fs_access.ts b/std/node/_fs/_fs_access.ts index 8fb8cc7e6..f3fb1a010 100644 --- a/std/node/_fs/_fs_access.ts +++ b/std/node/_fs/_fs_access.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.ts"; import { notImplemented } from "../_utils.ts"; diff --git a/std/node/_fs/_fs_chmod.ts b/std/node/_fs/_fs_chmod.ts index 9a8277b45..7b8d11b71 100644 --- a/std/node/_fs/_fs_chmod.ts +++ b/std/node/_fs/_fs_chmod.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.ts"; import { fromFileUrl } from "../path.ts"; diff --git a/std/node/_fs/_fs_chown.ts b/std/node/_fs/_fs_chown.ts index ae3af0121..021b6498a 100644 --- a/std/node/_fs/_fs_chown.ts +++ b/std/node/_fs/_fs_chown.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.ts"; import { fromFileUrl } from "../path.ts"; diff --git a/std/node/_fs/_fs_close.ts b/std/node/_fs/_fs_close.ts index add6f6663..1b5393db0 100644 --- a/std/node/_fs/_fs_close.ts +++ b/std/node/_fs/_fs_close.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.ts"; export function close(fd: number, callback: CallbackWithError): void { diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts index ec0c2caef..fa1a52429 100644 --- a/std/node/_fs/_fs_common.ts +++ b/std/node/_fs/_fs_common.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import { notImplemented } from "../_utils.ts"; export type CallbackWithError = (err?: Error | null) => void; diff --git a/std/node/_fs/_fs_copy.ts b/std/node/_fs/_fs_copy.ts index ba530a85c..21d05a7fe 100644 --- a/std/node/_fs/_fs_copy.ts +++ b/std/node/_fs/_fs_copy.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.ts"; import { fromFileUrl } from "../path.ts"; diff --git a/std/node/_fs/_fs_dir.ts b/std/node/_fs/_fs_dir.ts index 20239d4f3..1fd7d60dd 100644 --- a/std/node/_fs/_fs_dir.ts +++ b/std/node/_fs/_fs_dir.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import Dirent from "./_fs_dirent.ts"; import { assert } from "../../_util/assert.ts"; diff --git a/std/node/_fs/_fs_dir_test.ts b/std/node/_fs/_fs_dir_test.ts index 4c2806389..522bd9bcd 100644 --- a/std/node/_fs/_fs_dir_test.ts +++ b/std/node/_fs/_fs_dir_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, fail } from "../../testing/asserts.ts"; import Dir from "./_fs_dir.ts"; import type Dirent from "./_fs_dirent.ts"; diff --git a/std/node/_fs/_fs_dirent.ts b/std/node/_fs/_fs_dirent.ts index 24e43145c..4a39c41fb 100644 --- a/std/node/_fs/_fs_dirent.ts +++ b/std/node/_fs/_fs_dirent.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { notImplemented } from "../_utils.ts"; export default class Dirent { diff --git a/std/node/_fs/_fs_dirent_test.ts b/std/node/_fs/_fs_dirent_test.ts index aeb20f1d5..46d8b8d34 100644 --- a/std/node/_fs/_fs_dirent_test.ts +++ b/std/node/_fs/_fs_dirent_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, assertThrows } from "../../testing/asserts.ts"; import Dirent from "./_fs_dirent.ts"; diff --git a/std/node/_fs/_fs_link.ts b/std/node/_fs/_fs_link.ts index 42ca3de89..b5d8c399c 100644 --- a/std/node/_fs/_fs_link.ts +++ b/std/node/_fs/_fs_link.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import type { CallbackWithError } from "./_fs_common.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 9ada80057..2ea7831d4 100644 --- a/std/node/_fs/_fs_readFile_test.ts +++ b/std/node/_fs/_fs_readFile_test.ts @@ -1,3 +1,4 @@ +// 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"; diff --git a/std/node/_fs/_fs_readlink_test.ts b/std/node/_fs/_fs_readlink_test.ts index 437873494..0b220caa4 100644 --- a/std/node/_fs/_fs_readlink_test.ts +++ b/std/node/_fs/_fs_readlink_test.ts @@ -1,3 +1,4 @@ +// 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 * as path from "../path.ts"; diff --git a/std/node/_fs/promises/_fs_readFile_test.ts b/std/node/_fs/promises/_fs_readFile_test.ts index 5414a3a09..53ef373e5 100644 --- a/std/node/_fs/promises/_fs_readFile_test.ts +++ b/std/node/_fs/promises/_fs_readFile_test.ts @@ -1,3 +1,4 @@ +// 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"; diff --git a/std/node/_utils.ts b/std/node/_utils.ts index 5bd4d1075..e63b53d18 100644 --- a/std/node/_utils.ts +++ b/std/node/_utils.ts @@ -1,3 +1,5 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + export function notImplemented(msg?: string): never { const message = msg ? `Not implemented: ${msg}` : "Not implemented"; throw new Error(message); diff --git a/std/node/assert.ts b/std/node/assert.ts index 2a4f8a0b5..78bc4b3b5 100644 --- a/std/node/assert.ts +++ b/std/node/assert.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assertEquals, assertNotEquals, diff --git a/std/node/assert_test.ts b/std/node/assert_test.ts index 9d38ca56b..defcaa425 100644 --- a/std/node/assert_test.ts +++ b/std/node/assert_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert as denoAssert, assertEquals, diff --git a/std/node/assertion_error_test.ts b/std/node/assertion_error_test.ts index 5157ea3b3..74187bc3a 100644 --- a/std/node/assertion_error_test.ts +++ b/std/node/assertion_error_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { stripColor } from "../fmt/colors.ts"; import { assert, diff --git a/std/node/buffer.ts b/std/node/buffer.ts index c88d7f8b7..24b77e323 100644 --- a/std/node/buffer.ts +++ b/std/node/buffer.ts @@ -1,3 +1,4 @@ +// 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"; diff --git a/std/node/buffer_test.ts b/std/node/buffer_test.ts index a72569b7c..b7d76113b 100644 --- a/std/node/buffer_test.ts +++ b/std/node/buffer_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, assertThrows } from "../testing/asserts.ts"; import Buffer from "./buffer.ts"; diff --git a/std/node/events_test.ts b/std/node/events_test.ts index a3285f24b..557a3924d 100644 --- a/std/node/events_test.ts +++ b/std/node/events_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals, diff --git a/std/node/fs.ts b/std/node/fs.ts index 4bb514c7a..31e2e5ded 100644 --- a/std/node/fs.ts +++ b/std/node/fs.ts @@ -1,5 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - import { access, accessSync } from "./_fs/_fs_access.ts"; import { appendFile, appendFileSync } from "./_fs/_fs_appendFile.ts"; import { chmod, chmodSync } from "./_fs/_fs_chmod.ts"; diff --git a/std/node/global.ts b/std/node/global.ts index 1049f8ba1..2f894c8e5 100644 --- a/std/node/global.ts +++ b/std/node/global.ts @@ -1,3 +1,5 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + Object.defineProperty(globalThis, Symbol.toStringTag, { value: "global", writable: false, diff --git a/std/node/module_test.ts b/std/node/module_test.ts index 12021782a..4752763c9 100644 --- a/std/node/module_test.ts +++ b/std/node/module_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. /* eslint-disable @typescript-eslint/no-var-requires */ import { assertEquals, diff --git a/std/node/os_test.ts b/std/node/os_test.ts index 34f8d0f87..89a0a03aa 100644 --- a/std/node/os_test.ts +++ b/std/node/os_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertThrows, assertEquals } from "../testing/asserts.ts"; import * as os from "./os.ts"; diff --git a/std/node/path.ts b/std/node/path.ts index e8295281a..a206eb792 100644 --- a/std/node/path.ts +++ b/std/node/path.ts @@ -1 +1,2 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. export * from "../path/mod.ts"; diff --git a/std/node/process.ts b/std/node/process.ts index b42c885c0..62bef922c 100644 --- a/std/node/process.ts +++ b/std/node/process.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { notImplemented } from "./_utils.ts"; /** https://nodejs.org/api/process.html#process_process_arch */ diff --git a/std/node/process_test.ts b/std/node/process_test.ts index a277eaa07..684beb8d2 100644 --- a/std/node/process_test.ts +++ b/std/node/process_test.ts @@ -1,4 +1,5 @@ // 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 * as path from "../path/mod.ts"; diff --git a/std/node/querystring_test.ts b/std/node/querystring_test.ts index 6ce681ca5..7f1efd4fd 100644 --- a/std/node/querystring_test.ts +++ b/std/node/querystring_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assertEquals } from "../testing/asserts.ts"; import { stringify, parse } from "./querystring.ts"; diff --git a/std/node/string_decoder_test.ts b/std/node/string_decoder_test.ts index de32b6815..7c36ea383 100644 --- a/std/node/string_decoder_test.ts +++ b/std/node/string_decoder_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assertEquals } from "../testing/asserts.ts"; import Buffer from "./buffer.ts"; import { StringDecoder } from "./string_decoder.ts"; diff --git a/std/node/timers.ts b/std/node/timers.ts index b91985069..792e37581 100644 --- a/std/node/timers.ts +++ b/std/node/timers.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. // TODO: implement the 'NodeJS.Timeout' and 'NodeJS.Immediate' versions of the timers. // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1163ead296d84e7a3c80d71e7c81ecbd1a130e9a/types/node/v12/globals.d.ts#L1120-L1131 export const setTimeout = window.setTimeout; diff --git a/std/node/url_test.ts b/std/node/url_test.ts index 5e64b6295..a99acc4eb 100644 --- a/std/node/url_test.ts +++ b/std/node/url_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assertEquals } from "../testing/asserts.ts"; import * as url from "./url.ts"; diff --git a/std/node/util.ts b/std/node/util.ts index 9cca3e835..27aa5a12b 100644 --- a/std/node/util.ts +++ b/std/node/util.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. export { promisify } from "./_util/_util_promisify.ts"; export { callbackify } from "./_util/_util_callbackify.ts"; import * as types from "./_util/_util_types.ts"; diff --git a/std/node/util_test.ts b/std/node/util_test.ts index b1be36ce1..9b55d0178 100644 --- a/std/node/util_test.ts +++ b/std/node/util_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { assert, assertEquals } from "../testing/asserts.ts"; import { stripColor } from "../fmt/colors.ts"; import * as util from "./util.ts"; |