summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE.txt20
-rw-r--r--deno.d.ts2
-rw-r--r--deno_dir.go2
-rw-r--r--deno_dir_test.go2
-rw-r--r--dispatch.go2
-rw-r--r--dispatch.ts2
-rw-r--r--echo.go2
-rw-r--r--fetch.go2
-rw-r--r--fetch.ts2
-rw-r--r--globals.ts2
-rw-r--r--integration_test.go2
-rw-r--r--main.go2
-rw-r--r--main.ts2
-rw-r--r--msg.proto2
-rw-r--r--os.go2
-rw-r--r--os.ts2
-rw-r--r--os_test.go2
-rw-r--r--runtime.ts2
-rw-r--r--tests.ts2
-rw-r--r--text-encoding.d.ts2
-rw-r--r--timers.go2
-rw-r--r--timers.ts2
-rw-r--r--types.ts2
-rw-r--r--url.js2
-rw-r--r--util.go2
-rw-r--r--util.ts2
-rw-r--r--v8_source_maps.ts4
-rw-r--r--v8worker2.d.ts2
28 files changed, 76 insertions, 0 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 000000000..fa4d722f0
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+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 59b1f2dfd..f88a13741 100644
--- a/deno.d.ts
+++ b/deno.d.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 84ead16f7..7f9dac445 100644
--- a/deno_dir.go
+++ b/deno_dir.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/deno_dir_test.go b/deno_dir_test.go
index 2e98461eb..404d589cb 100644
--- a/deno_dir_test.go
+++ b/deno_dir_test.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/dispatch.go b/dispatch.go
index 8f22f8f5d..bbb696e6d 100644
--- a/dispatch.go
+++ b/dispatch.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/dispatch.ts b/dispatch.ts
index 41f736fff..f6823ceff 100644
--- a/dispatch.ts
+++ b/dispatch.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 b0db58471..f1036478a 100644
--- a/echo.go
+++ b/echo.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
// For testing
diff --git a/fetch.go b/fetch.go
index d0d0ac1b3..6f6f07c44 100644
--- a/fetch.go
+++ b/fetch.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/fetch.ts b/fetch.ts
index 71920d176..f66a883bd 100644
--- a/fetch.ts
+++ b/fetch.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 184f25163..ed60bc46a 100644
--- a/globals.ts
+++ b/globals.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 a3f8f16ce..28411e6da 100644
--- a/integration_test.go
+++ b/integration_test.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/main.go b/main.go
index a9db596ab..349926396 100644
--- a/main.go
+++ b/main.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/main.ts b/main.ts
index 47da3e0db..75f5780ce 100644
--- a/main.ts
+++ b/main.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 1a2abcbbf..0a802749b 100644
--- a/msg.proto
+++ b/msg.proto
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
syntax = "proto3";
package main;
diff --git a/os.go b/os.go
index 52c70eddc..d28cf5e9c 100644
--- a/os.go
+++ b/os.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/os.ts b/os.ts
index 18ccb5bb5..2817a97cc 100644
--- a/os.ts
+++ b/os.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 0d1f39171..1f9ae69e7 100644
--- a/os_test.go
+++ b/os_test.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/runtime.ts b/runtime.ts
index e46c73c61..2c4703362 100644
--- a/runtime.ts
+++ b/runtime.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 921eeb72c..97bdc9b00 100644
--- a/tests.ts
+++ b/tests.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 014c95eff..42d2be942 100644
--- a/text-encoding.d.ts
+++ b/text-encoding.d.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
// Type definitions for text-encoding
// Project: https://github.com/inexorabletash/text-encoding
// Definitions by: MIZUNE Pine <https://github.com/pine613>
diff --git a/timers.go b/timers.go
index 96ad72997..ba751712d 100644
--- a/timers.go
+++ b/timers.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/timers.ts b/timers.ts
index d0d4b7d02..a5caf94d8 100644
--- a/timers.ts
+++ b/timers.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 8631d2c84..d32d9f5a6 100644
--- a/types.ts
+++ b/types.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
export type TypedArray = Uint8Array | Float32Array | Int32Array;
export interface ModuleInfo {
diff --git a/url.js b/url.js
index 76e32cc86..75a6b8e6e 100644
--- a/url.js
+++ b/url.js
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 1b87413ef..873bf28b0 100644
--- a/util.go
+++ b/util.go
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
package main
import (
diff --git a/util.ts b/util.ts
index 67d3b550e..f6beba238 100644
--- a/util.ts
+++ b/util.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 5f5b1c779..170978984 100644
--- a/v8_source_maps.ts
+++ b/v8_source_maps.ts
@@ -1,3 +1,7 @@
+// Copyright 2014 Evan Wallace
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 9ace56ff7..1c39653a4 100644
--- a/v8worker2.d.ts
+++ b/v8worker2.d.ts
@@ -1,3 +1,5 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
declare namespace V8Worker2 {
function print(...args: any[]): void;
type RecvCallback = (ab: ArrayBuffer) => void;