diff options
42 files changed, 42 insertions, 0 deletions
diff --git a/colors/example.ts b/colors/example.ts index 02bc93432..c6bbd614d 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 f12f0cbb1..bdce35523 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 5a967925d..f30fc89c9 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 ce8193dfb..65577420b 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 d8862d424..38fdbb2cc 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<void> { diff --git a/examples/echo_server.ts b/examples/echo_server.ts index 1d5b287db..5776e77ef 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 1baff874a..860678d88 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 58013c70b..79a90827a 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 5aa0a5034..54d64b681 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 28a5c8eac..2b91c2775 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 fe4ec2c9f..66aa8d2cd 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 07b12c292..80e469f18 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 6fa014d8d..6e3da2e73 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 6ab1a7d75..d9f54c692 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 82dab5538..ed5564715 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 6b64e3b5e..31b73c85d 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 41853c1de..f2440919b 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 d75ece3b2..9ea7df471 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 cc5b1b4e3..a3b564e7e 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 263335761..d6a1be709 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 fe8994394..84edd483e 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 aef4d5dc5..5e171accd 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 e86f92796..ba1023dbe 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 46ad09426..4dd9f9783 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 64390108d..6ca0749c2 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 d1a34ab79..1f3fdd586 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 f8b2429b0..1b6613c15 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 5aca12f55..d80b2b103 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 a3006d319..9ff212f29 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 fe25a5f6e..723a34523 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 422901e4a..4ff69352a 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 185732b36..8726a1887 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 7318d887c..90ae5d4c1 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 c39102c8e..9241bd77e 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 bbdf6e0a5..52eca16ea 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 52d28aea5..3fc866161 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 9f34f9c32..678d5ed94 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 2456e9fc2..a2275a00b 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 821c2f82a..96dc81ff1 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 3d803cc0c..f9ab4222e 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"; @@ -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 0b1e2c858..865e443e5 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"; |