1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-04 05:18:59 -05:00

Happy new year! (#3578)

This commit is contained in:
Ry Dahl 2020-01-02 15:13:47 -05:00 committed by GitHub
parent b0761138e5
commit bfab4ed0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
352 changed files with 352 additions and 352 deletions

View file

@ -1,4 +1,4 @@
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. # Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
[package] [package]
name = "deno_cli" name = "deno_cli"

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use std::env; use std::env;
use std::path::PathBuf; use std::path::PathBuf;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(ry) Replace ansi_term with termcolor. // TODO(ry) Replace ansi_term with termcolor.
use ansi_term::Color::Black; use ansi_term::Color::Black;
use ansi_term::Color::Fixed; use ansi_term::Color::Fixed;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::compilers::CompiledModule; use crate::compilers::CompiledModule;
use crate::compilers::CompiledModuleFuture; use crate::compilers::CompiledModuleFuture;
use crate::file_fetcher::SourceFile; use crate::file_fetcher::SourceFile;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::compilers::CompiledModule; use crate::compilers::CompiledModule;
use crate::compilers::CompiledModuleFuture; use crate::compilers::CompiledModuleFuture;
use crate::file_fetcher::SourceFile; use crate::file_fetcher::SourceFile;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use deno::ErrBox; use deno::ErrBox;
use futures::Future; use futures::Future;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::compilers::CompiledModule; use crate::compilers::CompiledModule;
use crate::compilers::CompiledModuleFuture; use crate::compilers::CompiledModuleFuture;
use crate::diagnostics::Diagnostic; use crate::diagnostics::Diagnostic;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::compilers::CompiledModule; use crate::compilers::CompiledModule;
use crate::compilers::CompiledModuleFuture; use crate::compilers::CompiledModuleFuture;
use crate::file_fetcher::SourceFile; use crate::file_fetcher::SourceFile;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::disk_cache::DiskCache; use crate::disk_cache::DiskCache;
use dirs; use dirs;
use std; use std;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::diagnostics::Diagnostic; use crate::diagnostics::Diagnostic;
use crate::fmt_errors::JSError; use crate::fmt_errors::JSError;
use crate::import_map::ImportMapError; use crate::import_map::ImportMapError;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
//! This module encodes TypeScript errors (diagnostics) into Rust structs and //! This module encodes TypeScript errors (diagnostics) into Rust structs and
//! contains code for printing them to the console. //! contains code for printing them to the console.
use crate::colors; use crate::colors;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::deno_error::too_many_redirects; use crate::deno_error::too_many_redirects;
use crate::deno_error::DenoError; use crate::deno_error::DenoError;
use crate::deno_error::ErrorKind; use crate::deno_error::ErrorKind;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use clap::App; use clap::App;
use clap::AppSettings; use clap::AppSettings;
use clap::Arg; use clap::Arg;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
//! This mod provides DenoError to unify errors across Deno. //! This mod provides DenoError to unify errors across Deno.
use crate::colors; use crate::colors;
use crate::source_maps::apply_source_map; use crate::source_maps::apply_source_map;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use std; use std;
use std::fs::{create_dir, DirBuilder, File, OpenOptions}; use std::fs::{create_dir, DirBuilder, File, OpenOptions};
use std::io::ErrorKind; use std::io::ErrorKind;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::compilers::CompiledModule; use crate::compilers::CompiledModule;
use crate::compilers::JsCompiler; use crate::compilers::JsCompiler;
use crate::compilers::JsonCompiler; use crate::compilers::JsonCompiler;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
//! This module helps deno implement timers. //! This module helps deno implement timers.
//! //!

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::deno_error; use crate::deno_error;
use crate::deno_error::DenoError; use crate::deno_error::DenoError;
use crate::version; use crate::version;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import { containsOnlyASCII, hasOwnProperty } from "./util.ts"; import { containsOnlyASCII, hasOwnProperty } from "./util.ts";
import { TextEncoder } from "./text_encoding.ts"; import { TextEncoder } from "./text_encoding.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts"; import { test, assert, assertEquals } from "./test_util.ts";
test(function blobString(): void { test(function blobString(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assertEquals, assert } from "./test_util.ts"; import { test, testPerm, assertEquals, assert } from "./test_util.ts";
// just a hack to get a body object // just a hack to get a body object

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// This code has been ported almost directly from Go's src/bytes/buffer.go // This code has been ported almost directly from Go's src/bytes/buffer.go
// Copyright 2009 The Go Authors. All rights reserved. BSD license. // Copyright 2009 The Go Authors. All rights reserved. BSD license.

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// This code has been ported almost directly from Go's src/bytes/buffer_test.go // This code has been ported almost directly from Go's src/bytes/buffer_test.go
// Copyright 2009 The Go Authors. All rights reserved. BSD license. // Copyright 2009 The Go Authors. All rights reserved. BSD license.

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export type OperatingSystem = "mac" | "win" | "linux"; export type OperatingSystem = "mac" | "win" | "linux";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert } from "./test_util.ts"; import { test, assert } from "./test_util.ts";
test(function buildInfo(): void { test(function buildInfo(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Console } from "./console.ts"; import { Console } from "./console.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assertEquals } from "./test_util.ts"; import { testPerm, assertEquals } from "./test_util.ts";
const isNotWindows = Deno.build.os !== "win"; const isNotWindows = Deno.build.os !== "win";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assertEquals } from "./test_util.ts"; import { testPerm, assertEquals } from "./test_util.ts";
// chown on Windows is noop for now, so ignore its testing on Windows // chown on Windows is noop for now, so ignore its testing on Windows

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(kitsonk) Replace with `deno_std/colors/mod.ts` when we can load modules // TODO(kitsonk) Replace with `deno_std/colors/mod.ts` when we can load modules
// which end in `.ts`. // which end in `.ts`.

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(ry) Combine this implementation with //deno_typescript/compiler_main.js // TODO(ry) Combine this implementation with //deno_typescript/compiler_main.js
import "./globals.ts"; import "./globals.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { isTypedArray } from "./util.ts"; import { isTypedArray } from "./util.ts";
import { TypedArray } from "./types.ts"; import { TypedArray } from "./types.ts";
import { TextEncoder } from "./text_encoding.ts"; import { TextEncoder } from "./text_encoding.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals, test } from "./test_util.ts"; import { assert, assertEquals, test } from "./test_util.ts";
// Some of these APIs aren't exposed in the types and so we have to cast to any // Some of these APIs aren't exposed in the types and so we have to cast to any

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
function readFileString(filename: string): string { function readFileString(filename: string): string {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { window } from "./window.ts"; import { window } from "./window.ts";
// This allows us to access core in API even if we // This allows us to access core in API even if we

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// The following code is based off: // The following code is based off:
// https://github.com/inexorabletash/text-encoding // https://github.com/inexorabletash/text-encoding
// //

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Public deno module. // Public deno module.
export { dir, env, exit, isTTY, execPath, hostname } from "./os.ts"; export { dir, env, exit, isTTY, execPath, hostname } from "./os.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Diagnostic provides an abstraction for advice/errors received from a // Diagnostic provides an abstraction for advice/errors received from a
// compiler, which is strongly influenced by the format of TypeScript // compiler, which is strongly influenced by the format of TypeScript

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts"; import { test, testPerm, assert, assertEquals } from "./test_util.ts";
test(function dirCwdNotNull(): void { test(function dirCwdNotNull(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as minimal from "./dispatch_minimal.ts"; import * as minimal from "./dispatch_minimal.ts";
import * as json from "./dispatch_json.ts"; import * as json from "./dispatch_json.ts";
import { AsyncHandler } from "./plugins.ts"; import { AsyncHandler } from "./plugins.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as util from "./util.ts"; import * as util from "./util.ts";
import { TextEncoder, TextDecoder } from "./text_encoding.ts"; import { TextEncoder, TextDecoder } from "./text_encoding.ts";
import { core } from "./core.ts"; import { core } from "./core.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as util from "./util.ts"; import * as util from "./util.ts";
import { core } from "./core.ts"; import { core } from "./core.ts";
import { TextDecoder } from "./text_encoding.ts"; import { TextDecoder } from "./text_encoding.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import * as blob from "./blob.ts"; import * as blob from "./blob.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/*! **************************************************************************** /*! ****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. Copyright (c) Microsoft Corporation. All rights reserved.

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Utility functions for DOM nodes // Utility functions for DOM nodes
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Some of the code here is adapted directly from V8 and licensed under a BSD // Some of the code here is adapted directly from V8 and licensed under a BSD
// style license available here: https://github.com/v8/v8/blob/24886f2d1c565287d33d71e4109a53bf0b54b75c/LICENSE.v8 // style license available here: https://github.com/v8/v8/blob/24886f2d1c565287d33d71e4109a53bf0b54b75c/LICENSE.v8
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert } from "./test_util.ts"; import { test, assert } from "./test_util.ts";
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/** A Deno specific error. The `kind` property is set to a specific error code /** A Deno specific error. The `kind` property is set to a specific error code
* which can be used to in application logic. * which can be used to in application logic.

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import { getPrivateValue, requiredArguments } from "./util.ts"; import { getPrivateValue, requiredArguments } from "./util.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import { DenoError, ErrorKind } from "./errors.ts"; import { DenoError, ErrorKind } from "./errors.ts";
import { hasOwnProperty, requiredArguments } from "./util.ts"; import { hasOwnProperty, requiredArguments } from "./util.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assertEquals } from "./test_util.ts"; import { test, assertEquals } from "./test_util.ts";
test(function addEventListenerTest(): void { test(function addEventListenerTest(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assertEquals, assertNotEquals } from "./test_util.ts"; import { test, assertEquals, assertNotEquals } from "./test_util.ts";
test(function eventInitializedWithType(): void { test(function eventInitializedWithType(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { import {
assert, assert,
createResolvable, createResolvable,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { import {
test, test,
testPerm, testPerm,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { StatResponse } from "./stat.ts"; import { StatResponse } from "./stat.ts";
/** A FileInfo describes a file and is returned by `stat`, `lstat`, /** A FileInfo describes a file and is returned by `stat`, `lstat`,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts"; import { test, assert, assertEquals } from "./test_util.ts";
function testFirstArgument(arg1, expectedSize): void { function testFirstArgument(arg1, expectedSize): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { import {
EOF, EOF,
Reader, Reader,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts"; import { test, testPerm, assert, assertEquals } from "./test_util.ts";
test(function filesStdioFileDescriptors(): void { test(function filesStdioFileDescriptors(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import * as blob from "./blob.ts"; import * as blob from "./blob.ts";
import * as domFile from "./dom_file.ts"; import * as domFile from "./dom_file.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts"; import { test, assert, assertEquals } from "./test_util.ts";
test(function formDataHasCorrectNameProp(): void { test(function formDataHasCorrectNameProp(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";
import { assert } from "./util.ts"; import { assert } from "./util.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assertNotEquals, assertStrictEq } from "./test_util.ts"; import { test, assertNotEquals, assertStrictEq } from "./test_util.ts";
test(function getRandomValuesInt8Array(): void { test(function getRandomValuesInt8Array(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// This is a "special" module, in that it define the global runtime scope of // This is a "special" module, in that it define the global runtime scope of
// Deno, and therefore it defines a lot of the runtime environment that code // Deno, and therefore it defines a lot of the runtime environment that code
// is evaluated in. We use this file to automatically build the runtime type // is evaluated in. We use this file to automatically build the runtime type

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert } from "./test_util.ts"; import { test, assert } from "./test_util.ts";
test(function globalThisExists(): void { test(function globalThisExists(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as domTypes from "./dom_types.ts"; import * as domTypes from "./dom_types.ts";
import { DomIterableMixin } from "./mixins/dom_iterable.ts"; import { DomIterableMixin } from "./mixins/dom_iterable.ts";
import { requiredArguments } from "./util.ts"; import { requiredArguments } from "./util.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts"; import { test, assert, assertEquals } from "./test_util.ts";
const { const {
stringifyArgs stringifyArgs

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Interfaces 100% copied from Go. // Interfaces 100% copied from Go.
// Documentation liberally lifted from them too. // Documentation liberally lifted from them too.
// Thank you! We love Go! // Thank you! We love Go!

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-empty-interface */

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ read: true, write: true }, function linkSyncSuccess(): void { testPerm({ read: true, write: true }, function linkSyncSuccess(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { URL } from "./url.ts"; import { URL } from "./url.ts";
import { notImplemented } from "./util.ts"; import { notImplemented } from "./util.ts";
import { Location } from "./dom_types.ts"; import { Location } from "./dom_types.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, assert } from "./test_util.ts"; import { test, assert } from "./test_util.ts";
test(function locationBasic(): void { test(function locationBasic(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import "./globals.ts"; import "./globals.ts";
import { assert, log } from "./util.ts"; import { assert, log } from "./util.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts"; import { test, testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ write: true }, function makeTempDirSyncSuccess(): void { testPerm({ write: true }, function makeTempDirSyncSuccess(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert } from "./test_util.ts"; import { test, testPerm, assert } from "./test_util.ts";
test(async function metrics(): Promise<void> { test(async function metrics(): Promise<void> {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ read: true, write: true }, function mkdirSyncSuccess(): void { testPerm({ read: true, write: true }, function mkdirSyncSuccess(): void {

View file

@ -1,2 +1,2 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export default undefined; export default undefined;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { EOF, Reader, Writer, Closer } from "./io.ts"; import { EOF, Reader, Writer, Closer } from "./io.ts";
import { notImplemented } from "./util.ts"; import { notImplemented } from "./util.ts";
import { read, write, close } from "./files.ts"; import { read, write, close } from "./files.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ net: true }, function netListenClose(): void { testPerm({ net: true }, function netListenClose(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { core } from "./core.ts"; import { core } from "./core.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { import {
test, test,
testPerm, testPerm,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert } from "./test_util.ts"; import { testPerm, assert } from "./test_util.ts";
testPerm({ hrtime: false }, function now(): void { testPerm({ hrtime: false }, function now(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { sendSync } from "./dispatch_json.ts"; import { sendSync } from "./dispatch_json.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEquals } from "./test_util.ts"; import { test, testPerm, assert, assertEquals } from "./test_util.ts";
const knownPermissions: Deno.PermissionName[] = [ const knownPermissions: Deno.PermissionName[] = [

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { File, close } from "./files.ts"; import { File, close } from "./files.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { import {
test, test,
testPerm, testPerm,

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";
import { FileInfo, FileInfoImpl } from "./file_info.ts"; import { FileInfo, FileInfoImpl } from "./file_info.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
type FileInfo = Deno.FileInfo; type FileInfo = Deno.FileInfo;

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { open, openSync } from "./files.ts"; import { open, openSync } from "./files.ts";
import { readAll, readAllSync } from "./buffer.ts"; import { readAll, readAllSync } from "./buffer.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ read: true }, function readFileSyncSuccess(): void { testPerm({ read: true }, function readFileSyncSuccess(): void {

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "./dispatch_json.ts"; import { sendSync, sendAsync } from "./dispatch_json.ts";
import * as dispatch from "./dispatch.ts"; import * as dispatch from "./dispatch.ts";

View file

@ -1,4 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEquals } from "./test_util.ts"; import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ write: true, read: true }, function readlinkSyncSuccess(): void { testPerm({ write: true, read: true }, function readlinkSyncSuccess(): void {

Some files were not shown because too many files have changed in this diff Show more