mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
Add missiong copyright headers (denoland/deno_std#177)
Original: 5440377495
This commit is contained in:
parent
dc1cef498f
commit
f113312ef2
42 changed files with 42 additions and 0 deletions
|
@ -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,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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
/**
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { listen, copy } from "deno";
|
||||
|
||||
(async () => {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { args } from "deno";
|
||||
import { parse } from "./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[];
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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,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.
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
export const LogLevel = {
|
||||
NOTSET: 0,
|
||||
DEBUG: 10,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { Logger } from "./logger.ts";
|
||||
import {
|
||||
BaseHandler,
|
||||
|
|
|
@ -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
test.ts
1
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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue