From 54403774955af0bb5618c0ca6e12c57ec7d5fd0a Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Thu, 7 Feb 2019 19:45:47 +0300 Subject: [PATCH] Add missiong copyright headers (#177) --- colors/example.ts | 1 + colors/test.ts | 1 + datetime/mod.ts | 1 + datetime/test.ts | 1 + examples/cat.ts | 1 + examples/echo_server.ts | 1 + examples/gist.ts | 1 + examples/test.ts | 1 + flags/example.ts | 1 + flags/mod.ts | 1 + flags/test.ts | 1 + flags/tests/all_bool.ts | 1 + flags/tests/bool.ts | 1 + flags/tests/dash.ts | 1 + flags/tests/default_bool.ts | 1 + flags/tests/dotted.ts | 1 + flags/tests/kv_short.ts | 1 + flags/tests/long.ts | 1 + flags/tests/num.ts | 1 + flags/tests/parse.ts | 1 + flags/tests/short.ts | 1 + flags/tests/stop_early.ts | 1 + flags/tests/unknown.ts | 1 + flags/tests/whitespace.ts | 1 + fs/path.ts | 1 + http/file_server.ts | 1 + http/file_server_test.ts | 1 + http/http_bench.ts | 1 + http/http_status.ts | 1 + http/server.ts | 1 + io/ioutil_test.ts | 1 + io/util.ts | 1 + io/util_test.ts | 1 + log/handlers.ts | 1 + log/handlers_test.ts | 1 + log/levels.ts | 1 + log/logger.ts | 1 + log/logger_test.ts | 1 + log/mod.ts | 1 + log/test.ts | 1 + test.ts | 1 + ws/sha1_test.ts | 1 + 42 files changed, 42 insertions(+) diff --git a/colors/example.ts b/colors/example.ts index 02bc93432ec9..c6bbd614db9d 100644 --- a/colors/example.ts +++ b/colors/example.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { bgBlue, red, bold, italic } from "./mod.ts"; console.log(bgBlue(italic(red(bold("Hello world!"))))); diff --git a/colors/test.ts b/colors/test.ts index f12f0cbb1f26..bdce355234b5 100644 --- a/colors/test.ts +++ b/colors/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assert, test } from "../testing/mod.ts"; import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts"; import "./example.ts"; diff --git a/datetime/mod.ts b/datetime/mod.ts index 5a967925d588..f30fc89c9964 100644 --- a/datetime/mod.ts +++ b/datetime/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export type DateFormat = "mm-dd-yyyy" | "dd-mm-yyyy" | "yyyy-mm-dd"; /** diff --git a/datetime/test.ts b/datetime/test.ts index ce8193dfb31b..65577420b179 100644 --- a/datetime/test.ts +++ b/datetime/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual, assert } from "../testing/mod.ts"; import * as datetime from "mod.ts"; diff --git a/examples/cat.ts b/examples/cat.ts index d8862d4249c3..38fdbb2cce42 100644 --- a/examples/cat.ts +++ b/examples/cat.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; async function cat(filenames: string[]): Promise { diff --git a/examples/echo_server.ts b/examples/echo_server.ts index 1d5b287db7b5..5776e77ef41c 100644 --- a/examples/echo_server.ts +++ b/examples/echo_server.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { listen, copy } from "deno"; (async () => { diff --git a/examples/gist.ts b/examples/gist.ts index 1baff874ae88..860678d88d39 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-net --allow-env +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { args, env, exit, readFile } from "deno"; import { parse } from "https://deno.land/x/flags/mod.ts"; diff --git a/examples/test.ts b/examples/test.ts index 58013c70b53a..79a90827ae2a 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { run } from "deno"; import { test, assertEqual } from "../testing/mod.ts"; diff --git a/flags/example.ts b/flags/example.ts index 5aa0a503459b..54d64b681706 100644 --- a/flags/example.ts +++ b/flags/example.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { args } from "deno"; import { parse } from "./mod.ts"; diff --git a/flags/mod.ts b/flags/mod.ts index 28a5c8eaca1d..2b91c2775d4d 100644 --- a/flags/mod.ts +++ b/flags/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export interface ArgParsingOptions { unknown?: Function; boolean?: Boolean | string | string[]; diff --git a/flags/test.ts b/flags/test.ts index fe4ec2c9fa01..66aa8d2cd9fe 100644 --- a/flags/test.ts +++ b/flags/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "./tests/all_bool.ts"; import "./tests/bool.ts"; import "./tests/dash.ts"; diff --git a/flags/tests/all_bool.ts b/flags/tests/all_bool.ts index 07b12c29201b..80e469f1847b 100755 --- a/flags/tests/all_bool.ts +++ b/flags/tests/all_bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/bool.ts b/flags/tests/bool.ts index 6fa014d8ddef..6e3da2e73708 100755 --- a/flags/tests/bool.ts +++ b/flags/tests/bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/dash.ts b/flags/tests/dash.ts index 6ab1a7d75a5b..d9f54c69289c 100755 --- a/flags/tests/dash.ts +++ b/flags/tests/dash.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/default_bool.ts b/flags/tests/default_bool.ts index 82dab5538605..ed5564715b14 100755 --- a/flags/tests/default_bool.ts +++ b/flags/tests/default_bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/dotted.ts b/flags/tests/dotted.ts index 6b64e3b5e8de..31b73c85d6b0 100755 --- a/flags/tests/dotted.ts +++ b/flags/tests/dotted.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/kv_short.ts b/flags/tests/kv_short.ts index 41853c1def6a..f2440919b3d3 100755 --- a/flags/tests/kv_short.ts +++ b/flags/tests/kv_short.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/long.ts b/flags/tests/long.ts index d75ece3b2d5c..9ea7df4719e5 100755 --- a/flags/tests/long.ts +++ b/flags/tests/long.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/num.ts b/flags/tests/num.ts index cc5b1b4e306c..a3b564e7e251 100755 --- a/flags/tests/num.ts +++ b/flags/tests/num.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/parse.ts b/flags/tests/parse.ts index 2633357616d0..d6a1be709f98 100755 --- a/flags/tests/parse.ts +++ b/flags/tests/parse.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/short.ts b/flags/tests/short.ts index fe89943948e9..84edd483eb67 100755 --- a/flags/tests/short.ts +++ b/flags/tests/short.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/stop_early.ts b/flags/tests/stop_early.ts index aef4d5dc56f0..5e171accda12 100755 --- a/flags/tests/stop_early.ts +++ b/flags/tests/stop_early.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/unknown.ts b/flags/tests/unknown.ts index e86f927965e3..ba1023dbe491 100755 --- a/flags/tests/unknown.ts +++ b/flags/tests/unknown.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/whitespace.ts b/flags/tests/whitespace.ts index 46ad0942600a..4dd9f9783dab 100755 --- a/flags/tests/whitespace.ts +++ b/flags/tests/whitespace.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/fs/path.ts b/fs/path.ts index 64390108d67f..6ca0749c232d 100644 --- a/fs/path.ts +++ b/fs/path.ts @@ -1,2 +1,3 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export * from "./path/mod.ts"; export * from "./path/interface.ts"; diff --git a/http/file_server.ts b/http/file_server.ts index d1a34ab79aca..1f3fdd58615c 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-net +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // This program serves files in the current directory over HTTP. // TODO Stream responses instead of reading them into memory. diff --git a/http/file_server_test.ts b/http/file_server_test.ts index f8b2429b01d1..1b6613c15f03 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { readFile, run } from "deno"; import { test, assert, assertEqual } from "../testing/mod.ts"; diff --git a/http/http_bench.ts b/http/http_bench.ts index 5aca12f55ccb..d80b2b103ee5 100644 --- a/http/http_bench.ts +++ b/http/http_bench.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; import { serve } from "./mod.ts"; diff --git a/http/http_status.ts b/http/http_status.ts index a3006d319be5..9ff212f2961e 100644 --- a/http/http_status.ts +++ b/http/http_status.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export enum Status { Continue = 100, // RFC 7231, 6.2.1 SwitchingProtocols = 101, // RFC 7231, 6.2.2 diff --git a/http/server.ts b/http/server.ts index fe25a5f6e1e0..723a3452324b 100644 --- a/http/server.ts +++ b/http/server.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { listen, Conn, toAsyncIterator, Reader, copy } from "deno"; import { BufReader, BufState, BufWriter } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; diff --git a/io/ioutil_test.ts b/io/ioutil_test.ts index 422901e4a5c3..4ff69352a7f2 100644 --- a/io/ioutil_test.ts +++ b/io/ioutil_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Reader, ReadResult } from "deno"; import { assertEqual, test } from "../testing/mod.ts"; import { readInt, readLong, readShort, sliceLongToBytes } from "./ioutil.ts"; diff --git a/io/util.ts b/io/util.ts index 185732b36699..8726a1887990 100644 --- a/io/util.ts +++ b/io/util.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Buffer, Reader } from "deno"; // `off` is the offset into `dst` where it will at which to begin writing values diff --git a/io/util_test.ts b/io/util_test.ts index 7318d887cc17..90ae5d4c1bb4 100644 --- a/io/util_test.ts +++ b/io/util_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert } from "../testing/mod.ts"; import { copyBytes } from "./util.ts"; diff --git a/log/handlers.ts b/log/handlers.ts index c39102c8e84b..9241bd77e4fb 100644 --- a/log/handlers.ts +++ b/log/handlers.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { open, File, Writer } from "deno"; import { getLevelByName } from "./levels.ts"; import { LogRecord } from "./logger.ts"; diff --git a/log/handlers_test.ts b/log/handlers_test.ts index bbdf6e0a509a..52eca16ea5cc 100644 --- a/log/handlers_test.ts +++ b/log/handlers_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import { LogRecord, Logger } from "./logger.ts"; import { LogLevel, getLevelName, getLevelByName } from "./levels.ts"; diff --git a/log/levels.ts b/log/levels.ts index 52d28aea5adb..3fc86616186e 100644 --- a/log/levels.ts +++ b/log/levels.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export const LogLevel = { NOTSET: 0, DEBUG: 10, diff --git a/log/logger.ts b/log/logger.ts index 9f34f9c3257d..678d5ed94d36 100644 --- a/log/logger.ts +++ b/log/logger.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { LogLevel, getLevelByName, getLevelName } from "./levels.ts"; import { BaseHandler } from "./handlers.ts"; diff --git a/log/logger_test.ts b/log/logger_test.ts index 2456e9fc24d6..a2275a00bda4 100644 --- a/log/logger_test.ts +++ b/log/logger_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import { LogRecord, Logger } from "./logger.ts"; import { LogLevel } from "./levels.ts"; diff --git a/log/mod.ts b/log/mod.ts index 821c2f82aacf..96dc81ff1ab5 100644 --- a/log/mod.ts +++ b/log/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Logger } from "./logger.ts"; import { BaseHandler, diff --git a/log/test.ts b/log/test.ts index 3d803cc0c3ef..f9ab4222e17c 100644 --- a/log/test.ts +++ b/log/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import * as log from "./mod.ts"; import { BaseHandler } from "./handlers.ts"; diff --git a/test.ts b/test.ts index 07d825b625c6..0c4cf95b9c69 100755 --- a/test.ts +++ b/test.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-run --allow-net --allow-write +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "colors/test.ts"; import "datetime/test.ts"; import "examples/test.ts"; diff --git a/ws/sha1_test.ts b/ws/sha1_test.ts index 0b1e2c8583b0..865e443e5eb5 100644 --- a/ws/sha1_test.ts +++ b/ws/sha1_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assert, test } from "../testing/mod.ts"; import { Sha1 } from "./sha1.ts";