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