Skip to content

Commit

Permalink
Add missiong copyright headers (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Sharshakov authored and ry committed Feb 7, 2019
1 parent d3de37d commit 5440377
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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!")))));
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";

/**
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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> {
Expand Down
1 change: 1 addition & 0 deletions 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 () => {
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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[];
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";
1 change: 1 addition & 0 deletions 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.
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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,
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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,
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";
Expand Down
1 change: 1 addition & 0 deletions 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";

Expand Down

0 comments on commit 5440377

Please sign in to comment.