mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: add copyright (#7593)
This commit is contained in:
parent
dc6571909b
commit
c4ed3fb7e7
117 changed files with 130 additions and 13 deletions
|
@ -1,3 +1,5 @@
|
|||
# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"cli",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Used for benchmarking Deno's networking.
|
||||
// TODO Replace this with a real HTTP server once
|
||||
// https://github.com/denoland/deno/issues/726 is completed.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Used for benchmarking Deno's tcp proxy performance.
|
||||
const addr = Deno.args[0] || "127.0.0.1:4500";
|
||||
const originAddr = Deno.args[1] || "127.0.0.1:4501";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
const net = require("net");
|
||||
|
||||
process.on("uncaughtException", function (error) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
pub fn gen(v: &[&[u8]]) -> String {
|
||||
let mut ctx = ring::digest::Context::new(&ring::digest::SHA256);
|
||||
for src in v {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::fs as deno_fs;
|
||||
use crate::http_cache::url_to_filename;
|
||||
use deno_core::url::{Host, Url};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::colors;
|
||||
use deno_core::error::AnyError;
|
||||
use futures::stream::StreamExt;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use deno_core::url::Url;
|
||||
use std::net::IpAddr;
|
||||
use std::str::FromStr;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::url::Url;
|
||||
use deno_core::ModuleSpecifier;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::colors;
|
||||
use crate::global_state::GlobalState;
|
||||
use crate::module_graph::{ModuleGraph, ModuleGraphFile, ModuleGraphLoader};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use serde_json::json;
|
||||
use std::collections::BTreeMap;
|
||||
use std::io::Result;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use super::dispatch_minimal::minimal_op;
|
||||
use super::dispatch_minimal::MinimalOp;
|
||||
use crate::http_util::HttpBody;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::ops::io::StreamResource;
|
||||
use crate::ops::io::StreamResourceHolder;
|
||||
use crate::ops::net::AcceptArgs;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Removes the `__proto__` for security reasons. This intentionally makes
|
||||
// Deno non compliant with ECMA-262 Annex B.2.2.1
|
||||
//
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::global_state::GlobalState;
|
||||
use crate::js;
|
||||
use crate::ops;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// This is not a real HTTP server. We read blindly one time into 'requestBuf',
|
||||
// then write this fixed 'responseBuf'. The point of this benchmark is to
|
||||
// exercise the event loop in a simple yet semi-realistic way.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// This is not a real HTTP server. We read blindly one time into 'requestBuf',
|
||||
// then write this fixed 'responseBuf'. The point of this benchmark is to
|
||||
// exercise the event loop in a simple yet semi-realistic way.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Forked from Gotham:
|
||||
// https://github.com/gotham-rs/gotham/blob/bcbbf8923789e341b7a0e62c59909428ca4e22e2/gotham/src/state/mod.rs
|
||||
// Copyright 2017 Gotham Project Developers. MIT license.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::normalize_path;
|
||||
use std::env::current_dir;
|
||||
use std::error::Error;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use std::path::Component;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::bindings;
|
||||
use rusty_v8 as v8;
|
||||
use smallvec::SmallVec;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, DenoStdInternalError } from "./assert.ts";
|
||||
import { assertThrows } from "../testing/asserts.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/**
|
||||
* Tar test
|
||||
*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { pooledMap } from "./pool.ts";
|
||||
import { assert } from "../testing/asserts.ts";
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
CallbackResult,
|
||||
Rule,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
export type Token = {
|
||||
type: string;
|
||||
value: string | number;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
/** A default TextEncoder instance */
|
||||
export const encoder = new TextEncoder();
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { listenAndServe } from "../../http/server.ts";
|
||||
import {
|
||||
acceptWebSocket,
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
console.log("Welcome to Deno 🦕");
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { parse } from "../flags/mod.ts";
|
||||
import { readStringDelim } from "../io/bufio.ts";
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import * as path from "../path/mod.ts";
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
GlobOptions,
|
||||
SEP_PATTERN,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { decode } from "../encoding/utf8.ts";
|
||||
import {
|
||||
assert,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { walk, walkSync, WalkOptions, WalkEntry } from "./walk.ts";
|
||||
import { assert, assertEquals, assertThrowsAsync } from "../testing/asserts.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/*
|
||||
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
||||
*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/*
|
||||
* Adapted to deno from:
|
||||
*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/*
|
||||
* [js-sha512]{@link https://github.com/emn178/js-sha512}
|
||||
*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { BufReader, BufWriter } from "../io/bufio.ts";
|
||||
import { TextProtoReader } from "../textproto/mod.ts";
|
||||
import { assert } from "../_util/assert.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
assertThrowsAsync,
|
||||
assertEquals,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
/** Create dummy Deno.Conn object with given base properties */
|
||||
export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn {
|
||||
return {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
export * from "./cookie.ts";
|
||||
export * from "./http_status.ts";
|
||||
export * from "./server.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals } from "../testing/asserts.ts";
|
||||
import { BufReader, BufWriter } from "../io/bufio.ts";
|
||||
import { TextProtoReader } from "../textproto/mod.ts";
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Ported to Deno from
|
||||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.// Ported to Deno from
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Based on https://github.com/golang/go/blob/891682/src/bufio/bufio.go
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Based on https://github.com/golang/go/blob/891682/src/bufio/bufio_test.go
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
export * from "./bufio.ts";
|
||||
export * from "./ioutil.ts";
|
||||
export * from "./readers.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import { LimitedReader, MultiReader, StringReader } from "./readers.ts";
|
||||
import { StringWriter } from "./writers.ts";
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import { StringWriter } from "./writers.ts";
|
||||
import { StringReader } from "./readers.ts";
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
export * from "./multipart.ts";
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
import { notImplemented } from "../_utils.ts";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
import { fromFileUrl } from "../path.ts";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
import { fromFileUrl } from "../path.ts";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
|
||||
export function close(fd: number, callback: CallbackWithError): void {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { notImplemented } from "../_utils.ts";
|
||||
|
||||
export type CallbackWithError = (err?: Error | null) => void;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
import { fromFileUrl } from "../path.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import Dirent from "./_fs_dirent.ts";
|
||||
import { assert } from "../../_util/assert.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals, fail } from "../../testing/asserts.ts";
|
||||
import Dir from "./_fs_dir.ts";
|
||||
import type Dirent from "./_fs_dirent.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { notImplemented } from "../_utils.ts";
|
||||
|
||||
export default class Dirent {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals, assertThrows } from "../../testing/asserts.ts";
|
||||
import Dirent from "./_fs_dirent.ts";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import type { CallbackWithError } from "./_fs_common.ts";
|
||||
import { fromFileUrl } from "../path.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { readFile, readFileSync } from "./_fs_readFile.ts";
|
||||
import * as path from "../../path/mod.ts";
|
||||
import { assertEquals, assert } from "../../testing/asserts.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { readlink, readlinkSync } from "./_fs_readlink.ts";
|
||||
import { assertEquals, assert } from "../../testing/asserts.ts";
|
||||
import * as path from "../path.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { readFile } from "./_fs_readFile.ts";
|
||||
import * as path from "../../../path/mod.ts";
|
||||
import { assertEquals, assert } from "../../../testing/asserts.ts";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
export function notImplemented(msg?: string): never {
|
||||
const message = msg ? `Not implemented: ${msg}` : "Not implemented";
|
||||
throw new Error(message);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
assertEquals,
|
||||
assertNotEquals,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
assert as denoAssert,
|
||||
assertEquals,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { stripColor } from "../fmt/colors.ts";
|
||||
import {
|
||||
assert,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import * as hex from "../encoding/hex.ts";
|
||||
import * as base64 from "../encoding/base64.ts";
|
||||
import { notImplemented, normalizeEncoding } from "./_utils.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals, assertThrows } from "../testing/asserts.ts";
|
||||
import Buffer from "./buffer.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { access, accessSync } from "./_fs/_fs_access.ts";
|
||||
import { appendFile, appendFileSync } from "./_fs/_fs_appendFile.ts";
|
||||
import { chmod, chmodSync } from "./_fs/_fs_chmod.ts";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
Object.defineProperty(globalThis, Symbol.toStringTag, {
|
||||
value: "global",
|
||||
writable: false,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
import {
|
||||
assertEquals,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertThrows, assertEquals } from "../testing/asserts.ts";
|
||||
import * as os from "./os.ts";
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
export * from "../path/mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { notImplemented } from "./_utils.ts";
|
||||
|
||||
/** https://nodejs.org/api/process.html#process_process_arch */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// deno-lint-ignore-file no-undef
|
||||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { assert, assertThrows, assertEquals } from "../testing/asserts.ts";
|
||||
import * as path from "../path/mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import { stringify, parse } from "./querystring.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import Buffer from "./buffer.ts";
|
||||
import { StringDecoder } from "./string_decoder.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// TODO: implement the 'NodeJS.Timeout' and 'NodeJS.Immediate' versions of the timers.
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1163ead296d84e7a3c80d71e7c81ecbd1a130e9a/types/node/v12/globals.d.ts#L1120-L1131
|
||||
export const setTimeout = window.setTimeout;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import * as url from "./url.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
export { promisify } from "./_util/_util_promisify.ts";
|
||||
export { callbackify } from "./_util/_util_callbackify.ts";
|
||||
import * as types from "./_util/_util_types.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals } from "../testing/asserts.ts";
|
||||
import { stripColor } from "../fmt/colors.ts";
|
||||
import * as util from "./util.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/** This module is browser compatible. */
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert, assertEquals } from "../testing/asserts.ts";
|
||||
import {
|
||||
GlobToRegExpOptions,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
import * as path from "./mod.ts";
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import "./mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { MuxAsyncIterator } from "../async/mux_async_iterator.ts";
|
||||
|
||||
export type Disposable = { dispose: () => void };
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assertEquals, assertThrows } from "../testing/asserts.ts";
|
||||
import { delay } from "../async/delay.ts";
|
||||
import { signal, onSignal } from "./mod.ts";
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// https://deno.land/std/testing/bench.ts
|
||||
import { BenchmarkTimer, bench, runBenchmarks } from "./bench.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import {
|
||||
bench,
|
||||
runBenchmarks,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import diff from "./diff.ts";
|
||||
import { assertEquals } from "../testing/asserts.ts";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
// Based on https://github.com/golang/go/tree/master/src/net/textproto
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue