mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -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";
|
import { bgBlue, red, bold, italic } from "./mod.ts";
|
||||||
|
|
||||||
console.log(bgBlue(italic(red(bold("Hello world!")))));
|
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 { assert, test } from "../testing/mod.ts";
|
||||||
import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts";
|
import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts";
|
||||||
import "./example.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";
|
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 { test, assertEqual, assert } from "../testing/mod.ts";
|
||||||
import * as datetime from "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";
|
import * as deno from "deno";
|
||||||
|
|
||||||
async function cat(filenames: string[]): Promise<void> {
|
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";
|
import { listen, copy } from "deno";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env deno --allow-net --allow-env
|
#!/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 { args, env, exit, readFile } from "deno";
|
||||||
import { parse } from "https://deno.land/x/flags/mod.ts";
|
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 { run } from "deno";
|
||||||
import { test, assertEqual } from "../testing/mod.ts";
|
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 { args } from "deno";
|
||||||
import { parse } from "./mod.ts";
|
import { parse } from "./mod.ts";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
export interface ArgParsingOptions {
|
export interface ArgParsingOptions {
|
||||||
unknown?: Function;
|
unknown?: Function;
|
||||||
boolean?: Boolean | string | string[];
|
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/all_bool.ts";
|
||||||
import "./tests/bool.ts";
|
import "./tests/bool.ts";
|
||||||
import "./tests/dash.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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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 { test, assertEqual } from "../../testing/mod.ts";
|
||||||
import { parse } from "../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/mod.ts";
|
||||||
export * from "./path/interface.ts";
|
export * from "./path/interface.ts";
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env deno --allow-net
|
#!/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.
|
// This program serves files in the current directory over HTTP.
|
||||||
// TODO Stream responses instead of reading them into memory.
|
// 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 { readFile, run } from "deno";
|
||||||
|
|
||||||
import { test, assert, assertEqual } from "../testing/mod.ts";
|
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 * as deno from "deno";
|
||||||
import { serve } from "./mod.ts";
|
import { serve } from "./mod.ts";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
export enum Status {
|
export enum Status {
|
||||||
Continue = 100, // RFC 7231, 6.2.1
|
Continue = 100, // RFC 7231, 6.2.1
|
||||||
SwitchingProtocols = 101, // RFC 7231, 6.2.2
|
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 { listen, Conn, toAsyncIterator, Reader, copy } from "deno";
|
||||||
import { BufReader, BufState, BufWriter } from "../io/bufio.ts";
|
import { BufReader, BufState, BufWriter } from "../io/bufio.ts";
|
||||||
import { TextProtoReader } from "../textproto/mod.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 { Reader, ReadResult } from "deno";
|
||||||
import { assertEqual, test } from "../testing/mod.ts";
|
import { assertEqual, test } from "../testing/mod.ts";
|
||||||
import { readInt, readLong, readShort, sliceLongToBytes } from "./ioutil.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";
|
import { Buffer, Reader } from "deno";
|
||||||
|
|
||||||
// `off` is the offset into `dst` where it will at which to begin writing values
|
// `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 { test, assert } from "../testing/mod.ts";
|
||||||
import { copyBytes } from "./util.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 { open, File, Writer } from "deno";
|
||||||
import { getLevelByName } from "./levels.ts";
|
import { getLevelByName } from "./levels.ts";
|
||||||
import { LogRecord } from "./logger.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 { assertEqual, test } from "../testing/mod.ts";
|
||||||
import { LogRecord, Logger } from "./logger.ts";
|
import { LogRecord, Logger } from "./logger.ts";
|
||||||
import { LogLevel, getLevelName, getLevelByName } from "./levels.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 = {
|
export const LogLevel = {
|
||||||
NOTSET: 0,
|
NOTSET: 0,
|
||||||
DEBUG: 10,
|
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 { LogLevel, getLevelByName, getLevelName } from "./levels.ts";
|
||||||
import { BaseHandler } from "./handlers.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 { assertEqual, test } from "../testing/mod.ts";
|
||||||
import { LogRecord, Logger } from "./logger.ts";
|
import { LogRecord, Logger } from "./logger.ts";
|
||||||
import { LogLevel } from "./levels.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 { Logger } from "./logger.ts";
|
||||||
import {
|
import {
|
||||||
BaseHandler,
|
BaseHandler,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
import { assertEqual, test } from "../testing/mod.ts";
|
import { assertEqual, test } from "../testing/mod.ts";
|
||||||
import * as log from "./mod.ts";
|
import * as log from "./mod.ts";
|
||||||
import { BaseHandler } from "./handlers.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
|
#!/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 "colors/test.ts";
|
||||||
import "datetime/test.ts";
|
import "datetime/test.ts";
|
||||||
import "examples/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 { assert, test } from "../testing/mod.ts";
|
||||||
import { Sha1 } from "./sha1.ts";
|
import { Sha1 } from "./sha1.ts";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue