diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000..fa4d722f0a --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,20 @@ +Copyright 2018 Ryan Dahl +All rights reserved. MIT License. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/deno.d.ts b/deno.d.ts index 59b1f2dfd1..f88a137417 100644 --- a/deno.d.ts +++ b/deno.d.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. declare module "deno" { type MessageCallback = (msg: Uint8Array) => void; function sub(channel: string, cb: MessageCallback): void; diff --git a/deno_dir.go b/deno_dir.go index 84ead16f71..7f9dac4452 100644 --- a/deno_dir.go +++ b/deno_dir.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/deno_dir_test.go b/deno_dir_test.go index 2e98461eb7..404d589cb9 100644 --- a/deno_dir_test.go +++ b/deno_dir_test.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/dispatch.go b/dispatch.go index 8f22f8f5d9..bbb696e6da 100644 --- a/dispatch.go +++ b/dispatch.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/dispatch.ts b/dispatch.ts index 41f736fff3..f6823cefff 100644 --- a/dispatch.ts +++ b/dispatch.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import { typedArrayToArrayBuffer } from "./util"; import { _global } from "./globals"; import { main as pb } from "./msg.pb"; diff --git a/echo.go b/echo.go index b0db584711..f1036478ae 100644 --- a/echo.go +++ b/echo.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main // For testing diff --git a/fetch.go b/fetch.go index d0d0ac1b3b..6f6f07c44f 100644 --- a/fetch.go +++ b/fetch.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/fetch.ts b/fetch.ts index 71920d1762..f66a883bd4 100644 --- a/fetch.ts +++ b/fetch.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import { assert, log, createResolvable, Resolvable } from "./util"; import * as util from "./util"; import * as dispatch from "./dispatch"; diff --git a/globals.ts b/globals.ts index 184f25163b..ed60bc46a7 100644 --- a/globals.ts +++ b/globals.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import * as timer from "./timers"; // If you use the eval function indirectly, by invoking it via a reference diff --git a/integration_test.go b/integration_test.go index a3f8f16cef..28411e6da5 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/main.go b/main.go index a9db596abe..349926396e 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/main.ts b/main.ts index 47da3e0db6..75f5780ce5 100644 --- a/main.ts +++ b/main.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. // This allows us to have async/await in our code. It must be loaded first. import "babel-polyfill"; diff --git a/msg.proto b/msg.proto index 1a2abcbbff..0a802749b8 100644 --- a/msg.proto +++ b/msg.proto @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. syntax = "proto3"; package main; diff --git a/os.go b/os.go index 52c70eddcd..d28cf5e9cc 100644 --- a/os.go +++ b/os.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/os.ts b/os.ts index 18ccb5bb5a..2817a97cc4 100644 --- a/os.ts +++ b/os.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import { ModuleInfo } from "./types"; import { sendMsg } from "./dispatch"; import { main as pb } from "./msg.pb"; diff --git a/os_test.go b/os_test.go index 0d1f391719..1f9ae69e75 100644 --- a/os_test.go +++ b/os_test.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/runtime.ts b/runtime.ts index e46c73c61e..2c47033627 100644 --- a/runtime.ts +++ b/runtime.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. // Glossary // outputCode = generated javascript code // sourceCode = typescript code (or input javascript code) diff --git a/tests.ts b/tests.ts index 921eeb72c7..97bdc9b000 100644 --- a/tests.ts +++ b/tests.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. // This test is executed as part of integration_test.go // But it can also be run manually: // ./deno tests.ts diff --git a/text-encoding.d.ts b/text-encoding.d.ts index 014c95effe..42d2be9420 100644 --- a/text-encoding.d.ts +++ b/text-encoding.d.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. // Type definitions for text-encoding // Project: https://github.com/inexorabletash/text-encoding // Definitions by: MIZUNE Pine diff --git a/timers.go b/timers.go index 96ad72997c..ba751712dc 100644 --- a/timers.go +++ b/timers.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/timers.ts b/timers.ts index d0d4b7d020..a5caf94d85 100644 --- a/timers.ts +++ b/timers.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import { main as pb } from "./msg.pb"; import * as dispatch from "./dispatch"; import { assert } from "./util"; diff --git a/types.ts b/types.ts index 8631d2c843..d32d9f5a62 100644 --- a/types.ts +++ b/types.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. export type TypedArray = Uint8Array | Float32Array | Int32Array; export interface ModuleInfo { diff --git a/url.js b/url.js index 76e32cc86f..75a6b8e6e6 100644 --- a/url.js +++ b/url.js @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. /* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ * Forked from https://github.com/github/url-polyfill diff --git a/util.go b/util.go index 1b87413ef7..873bf28b02 100644 --- a/util.go +++ b/util.go @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. package main import ( diff --git a/util.ts b/util.ts index 67d3b550e0..f6beba2380 100644 --- a/util.ts +++ b/util.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. import { debug } from "./main"; import { TypedArray } from "./types"; diff --git a/v8_source_maps.ts b/v8_source_maps.ts index 5f5b1c7796..1709789847 100644 --- a/v8_source_maps.ts +++ b/v8_source_maps.ts @@ -1,3 +1,7 @@ +// Copyright 2014 Evan Wallace +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. +// Originated from source-map-support but has been heavily modified for deno. import { SourceMapConsumer, MappedPosition } from "source-map"; import * as base64 from "base64-js"; diff --git a/v8worker2.d.ts b/v8worker2.d.ts index 9ace56ff7a..1c39653a47 100644 --- a/v8worker2.d.ts +++ b/v8worker2.d.ts @@ -1,3 +1,5 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. declare namespace V8Worker2 { function print(...args: any[]): void; type RecvCallback = (ab: ArrayBuffer) => void;