From 293fb0d71c9199e1e976d4e53a1fdceacdef1732 Mon Sep 17 00:00:00 2001 From: kriskowal Date: Wed, 16 Dec 2009 02:02:01 -0800 Subject: [PATCH] Annotated authors of each file. --- engines/browser/lib/binary.js | 1 + engines/browser/lib/reactor.js | 2 ++ engines/browser/lib/system.js | 3 +++ engines/default/lib/binary-engine.js | 3 +++ engines/default/lib/binary.js | 2 ++ engines/default/lib/file-engine.js | 3 +++ engines/default/lib/global-commonjs.js | 2 ++ engines/default/lib/global-es5.js | 3 +++ engines/default/lib/global.js | 2 ++ engines/default/lib/io-engine.js | 2 ++ engines/default/lib/os-engine.js | 1 + engines/default/lib/reactor.js | 2 ++ engines/default/lib/system.js | 3 +++ engines/default/lib/worker.js | 3 +++ engines/rhino/bootstrap.js | 2 ++ engines/rhino/lib/binary-engine.js | 3 +++ engines/rhino/lib/event-queue.js | 5 ++++- engines/rhino/lib/file-engine.js | 3 +++ engines/rhino/lib/http-client-engine.js | 3 +++ engines/rhino/lib/http-engine.js | 2 ++ engines/rhino/lib/io-engine.js | 4 ++++ engines/rhino/lib/md5-engine.js | 2 ++ engines/rhino/lib/os-engine.js | 2 ++ engines/rhino/lib/packages-engine.js | 2 ++ engines/rhino/lib/sandbox-engine.js | 3 +++ engines/rhino/lib/system.js | 2 ++ engines/rhino/lib/uuid.js | 8 ++++++-- engines/rhino/lib/worker-engine.js | 3 +++ engines/rhino/lib/zip.js | 2 ++ engines/secure/lib/file.js | 2 ++ engines/secure/lib/system.js | 2 ++ engines/template/bootstrap.js | 1 + engines/template/lib/file-engine.js | 3 +++ engines/template/lib/system.js | 2 ++ lib/args.js | 1 + lib/base16.js | 2 ++ lib/codec/base64.js | 8 -------- lib/crc32.js | 11 ++--------- lib/file-bootstrap.js | 3 +++ lib/file.js | 3 +++ lib/hash.js | 2 ++ lib/hashp.js | 3 +++ lib/html.js | 5 ++++- lib/http-client.js | 5 ++++- lib/http.js | 2 ++ lib/http/fs-store.js | 2 ++ lib/io.js | 3 +++ lib/loader.js | 2 ++ lib/loader/attenuated.js | 2 ++ lib/loader/multi.js | 3 +++ lib/loader/prefix.js | 2 ++ lib/logger.js | 3 +++ lib/md4.js | 5 ++++- lib/md5.js | 3 ++- lib/mime.js | 3 +++ lib/narwhal.js | 3 +++ lib/narwhal/client.js | 2 ++ lib/narwhal/compile.js | 2 ++ lib/narwhal/env.js | 2 ++ lib/narwhal/inline.js | 3 +++ lib/narwhal/json.js | 2 ++ lib/narwhal/repl-worker.js | 3 +++ lib/narwhal/repl.js | 4 ++++ lib/narwhal/server-test.js | 3 +++ lib/narwhal/server.js | 2 ++ lib/narwhal/tusk.js | 2 ++ lib/narwhal/tusk/commands/bin.js | 2 ++ lib/narwhal/tusk/commands/bundle.js | 3 +++ lib/narwhal/tusk/commands/catalog.js | 2 ++ lib/narwhal/tusk/commands/clone.js | 2 ++ lib/narwhal/tusk/commands/consolidate.js | 2 ++ lib/narwhal/tusk/commands/engine.js | 2 ++ lib/narwhal/tusk/commands/freeze.js | 3 +++ lib/narwhal/tusk/commands/init.js | 2 ++ lib/narwhal/tusk/commands/install.js | 2 ++ lib/narwhal/tusk/commands/list.js | 2 ++ lib/narwhal/tusk/commands/orphans.js | 3 +++ lib/narwhal/tusk/commands/reheat.js | 2 ++ lib/narwhal/tusk/commands/remove.js | 2 ++ lib/narwhal/tusk/commands/search.js | 2 ++ lib/narwhal/tusk/commands/update.js | 2 ++ lib/narwhal/tusk/commands/upgrade.js | 3 +++ lib/narwhal/tusk/update.js | 2 ++ lib/os.js | 2 ++ lib/packages.js | 2 ++ lib/printf.js | 3 +++ lib/promise.js | 3 +++ lib/querystring.js | 3 +++ lib/ref-send.js | 4 ++++ lib/sandbox.js | 2 ++ lib/sha.js | 1 + lib/sha256.js | 14 +++----------- lib/struct.js | 2 ++ lib/term.js | 1 + lib/test.js | 4 ++++ lib/test/assert.js | 3 +++ lib/test/equiv.js | 5 ++++- lib/test/jsdump.js | 3 +++ lib/test/runner.js | 3 +++ lib/unload.js | 2 ++ lib/utf8.js | 2 ++ lib/util.js | 2 ++ lib/uuid.js | 3 +++ lib/xregexp.js | 20 +++++++++----------- 104 files changed, 264 insertions(+), 47 deletions(-) delete mode 100644 lib/codec/base64.js diff --git a/engines/browser/lib/binary.js b/engines/browser/lib/binary.js index 23b51046..a518edc8 100644 --- a/engines/browser/lib/binary.js +++ b/engines/browser/lib/binary.js @@ -1,2 +1,3 @@ +// Tom Robinson exports.ByteString = String; exports.ByteArray = Array; diff --git a/engines/browser/lib/reactor.js b/engines/browser/lib/reactor.js index bd0f10cf..58e41f0c 100644 --- a/engines/browser/lib/reactor.js +++ b/engines/browser/lib/reactor.js @@ -1,4 +1,6 @@ +// Kris Kowal + var active = false; var pending = []; var run = function () { diff --git a/engines/browser/lib/system.js b/engines/browser/lib/system.js index d50a5cff..2becbb96 100644 --- a/engines/browser/lib/system.js +++ b/engines/browser/lib/system.js @@ -1,3 +1,6 @@ + +// Christoph Dorn + exports.print = function () { system.print.apply(system, arguments); }; diff --git a/engines/default/lib/binary-engine.js b/engines/default/lib/binary-engine.js index 3bc2425b..5e09b496 100644 --- a/engines/default/lib/binary-engine.js +++ b/engines/default/lib/binary-engine.js @@ -1,3 +1,6 @@ + +// Tom Robinson + exports.B_LENGTH = function(bytes) { return bytes.length; } diff --git a/engines/default/lib/binary.js b/engines/default/lib/binary.js index ee6aed2a..c01a7002 100644 --- a/engines/default/lib/binary.js +++ b/engines/default/lib/binary.js @@ -1,4 +1,6 @@ + /* Binary */ +// Tom Robinson var engine = require("binary-engine"), B_ALLOC = engine.B_ALLOC, diff --git a/engines/default/lib/file-engine.js b/engines/default/lib/file-engine.js index b86eefa6..36e7e691 100644 --- a/engines/default/lib/file-engine.js +++ b/engines/default/lib/file-engine.js @@ -1,4 +1,7 @@ +// Tom Robinson +// Kris Kowal + // HACK: use "fs.read" and "fs.isFile" until properly implemented. // save "fs" here since it will be replaced in "system" later. var fs = system.fs; diff --git a/engines/default/lib/global-commonjs.js b/engines/default/lib/global-commonjs.js index 030ee670..589a0240 100644 --- a/engines/default/lib/global-commonjs.js +++ b/engines/default/lib/global-commonjs.js @@ -1,4 +1,6 @@ +// Kris Kowal + // https://wiki.mozilla.org/ServerJS/Binary/B if (!String.prototype.toByteString) String.prototype.toByteString = function(charset) { diff --git a/engines/default/lib/global-es5.js b/engines/default/lib/global-es5.js index 4702ab3b..2130e716 100644 --- a/engines/default/lib/global-es5.js +++ b/engines/default/lib/global-es5.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Tom Robinson + /*! Copyright (c) 2009, 280 North Inc. http://280north.com/ MIT License. http://github.com/280north/narwhal/blob/master/README.md diff --git a/engines/default/lib/global.js b/engines/default/lib/global.js index d9d27bd2..cfb7c93c 100644 --- a/engines/default/lib/global.js +++ b/engines/default/lib/global.js @@ -1,4 +1,6 @@ +// Tom Robinson + require("./global-es5"); require("./global-commonjs"); diff --git a/engines/default/lib/io-engine.js b/engines/default/lib/io-engine.js index 4c9c65cf..0ca013b2 100644 --- a/engines/default/lib/io-engine.js +++ b/engines/default/lib/io-engine.js @@ -1,4 +1,6 @@ + // IO: default +// Tom Robinson var IO = exports.IO = function(inputStream, outputStream) { this.inputStream = inputStream; diff --git a/engines/default/lib/os-engine.js b/engines/default/lib/os-engine.js index 9d3a6f87..e7863712 100644 --- a/engines/default/lib/os-engine.js +++ b/engines/default/lib/os-engine.js @@ -1,3 +1,4 @@ +// Christoph Dorn exports.exit = function(status) { throw new Error("Exiting with status="+status); } diff --git a/engines/default/lib/reactor.js b/engines/default/lib/reactor.js index 9e8541a6..06fe5130 100644 --- a/engines/default/lib/reactor.js +++ b/engines/default/lib/reactor.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tasks = []; require('unload').when(function () { diff --git a/engines/default/lib/system.js b/engines/default/lib/system.js index 4fdd9374..bfe5a853 100644 --- a/engines/default/lib/system.js +++ b/engines/default/lib/system.js @@ -1,4 +1,7 @@ +// Tom Robinson +// Kris Kowal + var IO = require("./io").IO; exports.print = function () { diff --git a/engines/default/lib/worker.js b/engines/default/lib/worker.js index c630ef16..73a3dcc9 100644 --- a/engines/default/lib/worker.js +++ b/engines/default/lib/worker.js @@ -1,3 +1,6 @@ + +// Kris Zyp + var queue = require("event-queue"); var workerEngine = require("worker-engine"); diff --git a/engines/rhino/bootstrap.js b/engines/rhino/bootstrap.js index 19356146..684a9bef 100644 --- a/engines/rhino/bootstrap.js +++ b/engines/rhino/bootstrap.js @@ -1,4 +1,6 @@ (function(global, evalGlobal) { +// Tom Robinson +// Kris Kowal /* this is a minimal engine-specific thunk for narwhal.js diff --git a/engines/rhino/lib/binary-engine.js b/engines/rhino/lib/binary-engine.js index 657a2945..4d9d428d 100644 --- a/engines/rhino/lib/binary-engine.js +++ b/engines/rhino/lib/binary-engine.js @@ -1,3 +1,6 @@ + +// Tom Robinson + exports.B_LENGTH = function(bytes) { return bytes.length; } diff --git a/engines/rhino/lib/event-queue.js b/engines/rhino/lib/event-queue.js index 28b2ea6a..366c34ca 100644 --- a/engines/rhino/lib/event-queue.js +++ b/engines/rhino/lib/event-queue.js @@ -1,3 +1,6 @@ + +// Kris Zyp + /** * Represents the event queue for a vat * The API is modeled after https://developer.mozilla.org/en/nsIThread @@ -79,4 +82,4 @@ exports.shutdown = function(){ exports.defaultErrorReporter = function(e){ print((e.rhinoException && e.rhinoException.printStackTrace()) || (e.name + ": " + e.message)); -}; \ No newline at end of file +}; diff --git a/engines/rhino/lib/file-engine.js b/engines/rhino/lib/file-engine.js index 6455a5e2..8c49d45b 100644 --- a/engines/rhino/lib/file-engine.js +++ b/engines/rhino/lib/file-engine.js @@ -1,4 +1,7 @@ +// Tom Robinson +// Kris Kowal + // use the "file" module as the exports object. var exports = require('./file'); diff --git a/engines/rhino/lib/http-client-engine.js b/engines/rhino/lib/http-client-engine.js index b942e3d9..381aa867 100644 --- a/engines/rhino/lib/http-client-engine.js +++ b/engines/rhino/lib/http-client-engine.js @@ -1,3 +1,6 @@ + +// Isaac Schleuter + var IO = require("io").IO, HashP = require("hashp").HashP; diff --git a/engines/rhino/lib/http-engine.js b/engines/rhino/lib/http-engine.js index 2b3f5b8b..35223663 100644 --- a/engines/rhino/lib/http-engine.js +++ b/engines/rhino/lib/http-engine.js @@ -1,4 +1,6 @@ +// Kris Kowal + var IO = require('./io').IO; exports.IO = function (url) { diff --git a/engines/rhino/lib/io-engine.js b/engines/rhino/lib/io-engine.js index b235a624..e642c039 100644 --- a/engines/rhino/lib/io-engine.js +++ b/engines/rhino/lib/io-engine.js @@ -1,3 +1,7 @@ + +// Tom Robinson +// Kris Kowal + // IO: Rhino var IO = exports.IO = function(inputStream, outputStream) { diff --git a/engines/rhino/lib/md5-engine.js b/engines/rhino/lib/md5-engine.js index 265df512..f1987cc0 100644 --- a/engines/rhino/lib/md5-engine.js +++ b/engines/rhino/lib/md5-engine.js @@ -1,4 +1,6 @@ +// George Moschovitis + var binary = require("./binary"); var JString = Packages.java.lang.String, diff --git a/engines/rhino/lib/os-engine.js b/engines/rhino/lib/os-engine.js index 2c07364a..b2e79465 100644 --- a/engines/rhino/lib/os-engine.js +++ b/engines/rhino/lib/os-engine.js @@ -1,4 +1,6 @@ +// Kris Kowal + var io = require('io'); var cLib; diff --git a/engines/rhino/lib/packages-engine.js b/engines/rhino/lib/packages-engine.js index a1bbdedc..8c9acf12 100644 --- a/engines/rhino/lib/packages-engine.js +++ b/engines/rhino/lib/packages-engine.js @@ -1,4 +1,6 @@ +// Kris Kowal + var fs = require('./file'); var system = require('./system'); diff --git a/engines/rhino/lib/sandbox-engine.js b/engines/rhino/lib/sandbox-engine.js index 552853fc..830a97c3 100644 --- a/engines/rhino/lib/sandbox-engine.js +++ b/engines/rhino/lib/sandbox-engine.js @@ -1,4 +1,7 @@ +// Kris Kowal +// STATUS: never really worked. + /* shared, sealed global context */ var blacklist = [ diff --git a/engines/rhino/lib/system.js b/engines/rhino/lib/system.js index 7f1bee32..37f3c4c2 100644 --- a/engines/rhino/lib/system.js +++ b/engines/rhino/lib/system.js @@ -1,4 +1,6 @@ +// Tom Robinson + var io = require("./io"); exports.print = function () { diff --git a/engines/rhino/lib/uuid.js b/engines/rhino/lib/uuid.js index 54f57423..34f31f41 100644 --- a/engines/rhino/lib/uuid.js +++ b/engines/rhino/lib/uuid.js @@ -1,3 +1,7 @@ + +// Kris Zyp + exports.randomUUID = function(){ - return java.util.UUID.randomUUID().toString() -}; \ No newline at end of file + return String(java.util.UUID.randomUUID()) +}; + diff --git a/engines/rhino/lib/worker-engine.js b/engines/rhino/lib/worker-engine.js index 5746317c..6b56bf48 100644 --- a/engines/rhino/lib/worker-engine.js +++ b/engines/rhino/lib/worker-engine.js @@ -1,3 +1,6 @@ + +// Kris Zyp + exports.createEnvironment = function(){ var workerQueue, workerGlobal = new org.mozilla.javascript.tools.shell.Global(); diff --git a/engines/rhino/lib/zip.js b/engines/rhino/lib/zip.js index 423e8ad8..61525b55 100644 --- a/engines/rhino/lib/zip.js +++ b/engines/rhino/lib/zip.js @@ -1,4 +1,6 @@ +// Kris Kowal + var io = require('io'); var javaZip = Packages.java.util.zip; diff --git a/engines/secure/lib/file.js b/engines/secure/lib/file.js index 67076606..c9784b70 100644 --- a/engines/secure/lib/file.js +++ b/engines/secure/lib/file.js @@ -1,4 +1,6 @@ +// Kris Kowal + for (var name in system.fs) { if (Object.prototype.hasOwnProperty.call(system.fs, name)) exports[name] = system.fs[name]; diff --git a/engines/secure/lib/system.js b/engines/secure/lib/system.js index 9e3272a4..18df342f 100644 --- a/engines/secure/lib/system.js +++ b/engines/secure/lib/system.js @@ -1,4 +1,6 @@ +// Kris Kowal + for (var name in system) { if (Object.prototype.hasOwnProperty.call(system, name)) { exports[name] = system[name]; diff --git a/engines/template/bootstrap.js b/engines/template/bootstrap.js index 88545cf4..aa249392 100644 --- a/engines/template/bootstrap.js +++ b/engines/template/bootstrap.js @@ -1,4 +1,5 @@ (function (evalGlobal) { +// Kris Kowal var read = /*TODO*/; // function(path:string):string diff --git a/engines/template/lib/file-engine.js b/engines/template/lib/file-engine.js index 5249fb37..f9ff44cc 100644 --- a/engines/template/lib/file-engine.js +++ b/engines/template/lib/file-engine.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Christoph Dorn + var exports = require('./file'); exports.SEPARATOR = '/'; diff --git a/engines/template/lib/system.js b/engines/template/lib/system.js index 1ae47893..cac071a5 100644 --- a/engines/template/lib/system.js +++ b/engines/template/lib/system.js @@ -1,4 +1,6 @@ +// Tom Robinson + var IO = require("./io").IO; exports.stdin = /*TODO*/ diff --git a/lib/args.js b/lib/args.js index 4fc6bb04..f169854b 100644 --- a/lib/args.js +++ b/lib/args.js @@ -1,3 +1,4 @@ +// kriskowal, Kris Kowal var os = require('os'); var util = require('util'); diff --git a/lib/base16.js b/lib/base16.js index b8e54c79..dd669fe5 100644 --- a/lib/base16.js +++ b/lib/base16.js @@ -1,4 +1,6 @@ +// Kris Kowal + var util = require('util'); var binary = require('binary'); var struct = require('struct'); diff --git a/lib/codec/base64.js b/lib/codec/base64.js deleted file mode 100644 index fa7d7ce1..00000000 --- a/lib/codec/base64.js +++ /dev/null @@ -1,8 +0,0 @@ -var system = require("system"); -system.log.warn("codec/base64 is deprecated. use base64 directly."); -var base64 = require("base64"); -for (var name in base64) { - if (Object.prototype.hasOwnProperty.call(base64, name)) { - exports[name] = base64[name]; - } -} diff --git a/lib/crc32.js b/lib/crc32.js index 6a5a478b..b0566d46 100644 --- a/lib/crc32.js +++ b/lib/crc32.js @@ -1,3 +1,5 @@ +// from http://www.webtoolkit.info/ Javascript crc32 +// ported by Kris Kowal var util = require('./util'); @@ -49,12 +51,3 @@ exports.hash = function (bin, table) { return ~crc; }; -/* - - References - ========== - - http://www.webtoolkit.info/ - Javascript crc32 - -*/ diff --git a/lib/file-bootstrap.js b/lib/file-bootstrap.js index 82629295..8bc6bc0c 100644 --- a/lib/file-bootstrap.js +++ b/lib/file-bootstrap.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Tom Robinson + // NOTE: this file is used is the bootstrapping process, // so any "requires" must be accounted for in narwhal.js diff --git a/lib/file.js b/lib/file.js index 515fd99a..f4eb11b7 100644 --- a/lib/file.js +++ b/lib/file.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Tom Robinson + // NOTE: portions of the "file" module are implemented in "file-bootstrap" and "file-engine", // which are loaded at the bottom of this file to allow for overriding default implementations diff --git a/lib/hash.js b/lib/hash.js index 7caa086a..89d311f7 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -1,3 +1,5 @@ + +// Tom Robinson // Hash object var Hash = exports.Hash = {}; diff --git a/lib/hashp.js b/lib/hashp.js index a1253753..f7a6a289 100644 --- a/lib/hashp.js +++ b/lib/hashp.js @@ -1,3 +1,6 @@ + +// Tom Robinson + var Hash = require("hash").Hash; // HashP : Case Preserving hash, used for headers diff --git a/lib/html.js b/lib/html.js index 0afde030..71a20ffa 100644 --- a/lib/html.js +++ b/lib/html.js @@ -1,3 +1,6 @@ + +// gmosx, George Moschovitis + /** * Escape HTML characters. */ @@ -13,4 +16,4 @@ exports.escapeHTML = function(str) { */ exports.stripTags = function (str) { return str.replace(/<([^>]+)>/g, ""); -} \ No newline at end of file +} diff --git a/lib/http-client.js b/lib/http-client.js index dc437310..4149d49e 100644 --- a/lib/http-client.js +++ b/lib/http-client.js @@ -1,3 +1,6 @@ + +// isaacs, Isaac Schleuter + var IO = require("io").IO, HashP = require("hashp").HashP, engine = require("http-client-engine"); @@ -131,4 +134,4 @@ HttpClient.print = function HttpClient_print (resp) { resp.body.forEach(function (p) { out.push(p) }); print(out.join("")); }; - \ No newline at end of file + diff --git a/lib/http.js b/lib/http.js index 8589453a..d2de7502 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1,4 +1,6 @@ +// Kris Kowal + var implementation = require('http-engine'); exports.open = function (url, mode, options) { diff --git a/lib/http/fs-store.js b/lib/http/fs-store.js index 731af3d4..1f1b667e 100644 --- a/lib/http/fs-store.js +++ b/lib/http/fs-store.js @@ -1,4 +1,6 @@ +// Kris Kowal + var FS = require("file"); var HTTP = require("http"); var URI = require("uri"); diff --git a/lib/io.js b/lib/io.js index 1cc0edbe..7fb69022 100644 --- a/lib/io.js +++ b/lib/io.js @@ -1,3 +1,6 @@ + +// Tom Robinson + // IO: engine independent var engine = require("io-engine"); diff --git a/lib/loader.js b/lib/loader.js index 96a86034..5761c030 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -1,4 +1,6 @@ +// kriskowal, Kris Kowal + // NOTE: this file is used is the bootstrapping process, // so any "requires" must be accounted for in narwhal.js diff --git a/lib/loader/attenuated.js b/lib/loader/attenuated.js index 85adfa35..e9918169 100644 --- a/lib/loader/attenuated.js +++ b/lib/loader/attenuated.js @@ -1,4 +1,6 @@ +// Kris Kowal + exports.AttenuatedLoader = function (loader) { var self = {}; diff --git a/lib/loader/multi.js b/lib/loader/multi.js index 8d46a856..52829ced 100644 --- a/lib/loader/multi.js +++ b/lib/loader/multi.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Tom Robinson + // NOTE: this file is used is the bootstrapping process, // so any "requires" must be accounted for in narwhal.js diff --git a/lib/loader/prefix.js b/lib/loader/prefix.js index 34397412..43e8f97f 100644 --- a/lib/loader/prefix.js +++ b/lib/loader/prefix.js @@ -1,4 +1,6 @@ +// Kris Kowal + exports.PrefixLoader = function (prefix, loader) { var self = this || {}; diff --git a/lib/logger.js b/lib/logger.js index 5bf2b7b4..b113a2d6 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -1,3 +1,6 @@ + +// Tom Robinson + // Logging // // FATAL: an unhandleable error that results in a program crash diff --git a/lib/md4.js b/lib/md4.js index fe9a2924..35cc4471 100644 --- a/lib/md4.js +++ b/lib/md4.js @@ -1,4 +1,5 @@ -/* + +/*! Version 2.1 Copyright (C) Jerrad Pierce, Paul Johnston 1999 - 2002. Distributed under the BSD License @@ -6,6 +7,8 @@ Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet See http://pajhome.org.uk/crypt/md5 for more info. + Ported to Chiron and Narwhal by Kris Kowal, kriskowal + */ /** diff --git a/lib/md5.js b/lib/md5.js index 43cd5148..8ef0cc42 100644 --- a/lib/md5.js +++ b/lib/md5.js @@ -1,11 +1,12 @@ -/* +/*! A JavaScript implementation of the RSA Data Security, Inc. MD5 Message Digest Algorithm, as defined in RFC 1321. Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet Distributed under the BSD License See http://pajhome.org.uk/crypt/md5 for more info. + Ported to Chiron and Narwhal by Kris Kowal, kriskowal */ var util = require('./util'); diff --git a/lib/mime.js b/lib/mime.js index bbc22ff5..d3fbcec3 100644 --- a/lib/mime.js +++ b/lib/mime.js @@ -14,6 +14,9 @@ To run the tests, open mimeparse-js-test.html in a browser. Ported from version 0.1.2. Comments are mostly excerpted from the original. + + Ported to Chiron and Narwhal by Kris Kowal, kriskowal. + */ var util = require("util"); diff --git a/lib/narwhal.js b/lib/narwhal.js index a732ff2b..c165eff1 100644 --- a/lib/narwhal.js +++ b/lib/narwhal.js @@ -1,4 +1,7 @@ +// Kris Kowal +// Tom Robinson + var args = require("args"); var parser = exports.parser = new args.Parser(); diff --git a/lib/narwhal/client.js b/lib/narwhal/client.js index 4d6c1509..d6cf8554 100644 --- a/lib/narwhal/client.js +++ b/lib/narwhal/client.js @@ -1,4 +1,6 @@ +// Kris Kowal, kriskowal + // the catalog, inherited from inline.js, is a lookup table of top level module // identifiers to catalog entries. catalog entries include a module factory // function and an array of top level identifiers of each dependency. diff --git a/lib/narwhal/compile.js b/lib/narwhal/compile.js index e4f7a6be..6048eef9 100644 --- a/lib/narwhal/compile.js +++ b/lib/narwhal/compile.js @@ -1,4 +1,6 @@ +// Kris Kowal, kriskowal + var SYSTEM = require("system"); var FILE = require("file"); var PACKAGES = require("packages"); diff --git a/lib/narwhal/env.js b/lib/narwhal/env.js index 2c2ef01b..50ce46e2 100644 --- a/lib/narwhal/env.js +++ b/lib/narwhal/env.js @@ -1,4 +1,6 @@ +// Kris Kowal + var file = require("file"); var system = require("system"); var packages = require("packages"); diff --git a/lib/narwhal/inline.js b/lib/narwhal/inline.js index cb59dd3d..d355adbd 100644 --- a/lib/narwhal/inline.js +++ b/lib/narwhal/inline.js @@ -1,3 +1,6 @@ + +// Kris Kowal + // this is not a module. it is a snippet of a script that will be sent by the // client/browser module server defined in the narwhal/server module, or some // similar mechanism. this file is simply an anonymous function declaration. diff --git a/lib/narwhal/json.js b/lib/narwhal/json.js index e4e1f189..7944e1e1 100644 --- a/lib/narwhal/json.js +++ b/lib/narwhal/json.js @@ -1,4 +1,6 @@ +// Kris Kowal + var os = require("os"); var args = require("args"); var assert = require("test/assert"); diff --git a/lib/narwhal/repl-worker.js b/lib/narwhal/repl-worker.js index 41aa9ff5..dab958fa 100644 --- a/lib/narwhal/repl-worker.js +++ b/lib/narwhal/repl-worker.js @@ -1,3 +1,6 @@ + +// Kris Zyp + var system = require("system"); try { var readline = require("readline").readline; } catch (e) {} diff --git a/lib/narwhal/repl.js b/lib/narwhal/repl.js index 765c5ad0..ef9093b3 100644 --- a/lib/narwhal/repl.js +++ b/lib/narwhal/repl.js @@ -1,3 +1,7 @@ + +// Tom Robinson +// Kris Zyp + var system = require("system"), util = require('util'), SharedWorker = require("worker").SharedWorker, diff --git a/lib/narwhal/server-test.js b/lib/narwhal/server-test.js index 10187289..fd36bc51 100644 --- a/lib/narwhal/server-test.js +++ b/lib/narwhal/server-test.js @@ -1,3 +1,6 @@ + +// Kris Kowal, kriskowal + var Q = require("ref-send"); Q.when(require.async("util"), function (util) { print("Hello, World!"); diff --git a/lib/narwhal/server.js b/lib/narwhal/server.js index 73ceddd8..aadebea2 100644 --- a/lib/narwhal/server.js +++ b/lib/narwhal/server.js @@ -1,4 +1,6 @@ +// Kris Kowal + var SYSTEM = require("system"); var FILE = require("file"); var UTIL = require("util"); diff --git a/lib/narwhal/tusk.js b/lib/narwhal/tusk.js index 658cc85f..af6ac539 100644 --- a/lib/narwhal/tusk.js +++ b/lib/narwhal/tusk.js @@ -1,4 +1,6 @@ +// Kris Kowal + var system = require("system"); var fs = require("file"); var packages = require("packages"); diff --git a/lib/narwhal/tusk/commands/bin.js b/lib/narwhal/tusk/commands/bin.js index d348bba8..5322e1b3 100644 --- a/lib/narwhal/tusk/commands/bin.js +++ b/lib/narwhal/tusk/commands/bin.js @@ -1,4 +1,6 @@ +// Kris Kowal + var util = require('util'); var tusk = require('../../tusk'); var args = require('args'); diff --git a/lib/narwhal/tusk/commands/bundle.js b/lib/narwhal/tusk/commands/bundle.js index e69de29b..4b54a0ed 100644 --- a/lib/narwhal/tusk/commands/bundle.js +++ b/lib/narwhal/tusk/commands/bundle.js @@ -0,0 +1,3 @@ + +// Kris Kowal + diff --git a/lib/narwhal/tusk/commands/catalog.js b/lib/narwhal/tusk/commands/catalog.js index 4b4b6da8..c6db2f28 100644 --- a/lib/narwhal/tusk/commands/catalog.js +++ b/lib/narwhal/tusk/commands/catalog.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var args = require("args"); diff --git a/lib/narwhal/tusk/commands/clone.js b/lib/narwhal/tusk/commands/clone.js index 2b318dd5..2326c1ad 100644 --- a/lib/narwhal/tusk/commands/clone.js +++ b/lib/narwhal/tusk/commands/clone.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var os = require("os"); var util = require("util"); diff --git a/lib/narwhal/tusk/commands/consolidate.js b/lib/narwhal/tusk/commands/consolidate.js index 4e4e3a13..ac300543 100644 --- a/lib/narwhal/tusk/commands/consolidate.js +++ b/lib/narwhal/tusk/commands/consolidate.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var args = require("args"); diff --git a/lib/narwhal/tusk/commands/engine.js b/lib/narwhal/tusk/commands/engine.js index 5cbd8a95..ac6a0f8a 100644 --- a/lib/narwhal/tusk/commands/engine.js +++ b/lib/narwhal/tusk/commands/engine.js @@ -1,4 +1,6 @@ +// Kris Kowal + var system = require('system'); var os = require('os'); var fs = require('file'); diff --git a/lib/narwhal/tusk/commands/freeze.js b/lib/narwhal/tusk/commands/freeze.js index e69de29b..4b54a0ed 100644 --- a/lib/narwhal/tusk/commands/freeze.js +++ b/lib/narwhal/tusk/commands/freeze.js @@ -0,0 +1,3 @@ + +// Kris Kowal + diff --git a/lib/narwhal/tusk/commands/init.js b/lib/narwhal/tusk/commands/init.js index 6289030e..6920bbd9 100644 --- a/lib/narwhal/tusk/commands/init.js +++ b/lib/narwhal/tusk/commands/init.js @@ -1,4 +1,6 @@ +// Kris Kowal + var system = require("system"); var fs = require("file"); var json = require("json"); diff --git a/lib/narwhal/tusk/commands/install.js b/lib/narwhal/tusk/commands/install.js index 4e118276..6194ba4e 100644 --- a/lib/narwhal/tusk/commands/install.js +++ b/lib/narwhal/tusk/commands/install.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var args = require("args"); diff --git a/lib/narwhal/tusk/commands/list.js b/lib/narwhal/tusk/commands/list.js index 582730dd..e889e6a2 100644 --- a/lib/narwhal/tusk/commands/list.js +++ b/lib/narwhal/tusk/commands/list.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var args = require("args"); diff --git a/lib/narwhal/tusk/commands/orphans.js b/lib/narwhal/tusk/commands/orphans.js index e69de29b..4b54a0ed 100644 --- a/lib/narwhal/tusk/commands/orphans.js +++ b/lib/narwhal/tusk/commands/orphans.js @@ -0,0 +1,3 @@ + +// Kris Kowal + diff --git a/lib/narwhal/tusk/commands/reheat.js b/lib/narwhal/tusk/commands/reheat.js index 195808cd..39a4a814 100644 --- a/lib/narwhal/tusk/commands/reheat.js +++ b/lib/narwhal/tusk/commands/reheat.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var install = require('./install'); var util = require("util"); diff --git a/lib/narwhal/tusk/commands/remove.js b/lib/narwhal/tusk/commands/remove.js index 79d3908b..f7faf426 100644 --- a/lib/narwhal/tusk/commands/remove.js +++ b/lib/narwhal/tusk/commands/remove.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var args = require("args"); diff --git a/lib/narwhal/tusk/commands/search.js b/lib/narwhal/tusk/commands/search.js index 966098eb..e45b9e05 100644 --- a/lib/narwhal/tusk/commands/search.js +++ b/lib/narwhal/tusk/commands/search.js @@ -1,4 +1,6 @@ +// Kris Kowal + var tusk = require("../../tusk"); var util = require("util"); var http = require("http"); diff --git a/lib/narwhal/tusk/commands/update.js b/lib/narwhal/tusk/commands/update.js index 14587096..827915d0 100644 --- a/lib/narwhal/tusk/commands/update.js +++ b/lib/narwhal/tusk/commands/update.js @@ -1,4 +1,6 @@ +// Kris Kowal + var UPDATE = require("../update"); var ARGS = require("args"); var FS = require("file"); diff --git a/lib/narwhal/tusk/commands/upgrade.js b/lib/narwhal/tusk/commands/upgrade.js index e69de29b..4b54a0ed 100644 --- a/lib/narwhal/tusk/commands/upgrade.js +++ b/lib/narwhal/tusk/commands/upgrade.js @@ -0,0 +1,3 @@ + +// Kris Kowal + diff --git a/lib/narwhal/tusk/update.js b/lib/narwhal/tusk/update.js index d7e8a83a..b3bb615c 100644 --- a/lib/narwhal/tusk/update.js +++ b/lib/narwhal/tusk/update.js @@ -1,4 +1,6 @@ +// Kris Kowal + var FS = require("file"); var TUSK = require("../tusk"); var UTIL = require("util"); diff --git a/lib/os.js b/lib/os.js index cbaf6dfc..191d80eb 100644 --- a/lib/os.js +++ b/lib/os.js @@ -1,4 +1,6 @@ +// Kris Kowal + var engine = require('os-engine'); for (var name in engine) { if (Object.prototype.hasOwnProperty.call(engine, name)) { diff --git a/lib/packages.js b/lib/packages.js index a166fb78..12b7b9fa 100644 --- a/lib/packages.js +++ b/lib/packages.js @@ -1,4 +1,6 @@ +// Kris Kowal + var system = require('./system'); var util = require('./util'); var json = require('./json'); diff --git a/lib/printf.js b/lib/printf.js index 91747c58..8d11944f 100644 --- a/lib/printf.js +++ b/lib/printf.js @@ -1,4 +1,7 @@ +// Ash Searle +// Ported by Kris Kowal + /** provides printf and sprintf. This code is unrestricted: you are free to use it however you like. diff --git a/lib/promise.js b/lib/promise.js index 8b703484..c6dc63fe 100644 --- a/lib/promise.js +++ b/lib/promise.js @@ -1,3 +1,6 @@ + +// Kris Zyp + // this is based on the CommonJS spec for promises: // http://wiki.commonjs.org/wiki/Promises diff --git a/lib/querystring.js b/lib/querystring.js index 5eb09f94..bc3b479f 100644 --- a/lib/querystring.js +++ b/lib/querystring.js @@ -1,3 +1,6 @@ + +// Isaac Schleuter + // Query String Utilities diff --git a/lib/ref-send.js b/lib/ref-send.js index 4539c143..cd37fc4a 100644 --- a/lib/ref-send.js +++ b/lib/ref-send.js @@ -1,3 +1,7 @@ + +// Tyler Close +// Ported by Kris Kowal + /* * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found * at http://www.opensource.org/licenses/mit-license.html diff --git a/lib/sandbox.js b/lib/sandbox.js index b8efe3c1..23c430d0 100644 --- a/lib/sandbox.js +++ b/lib/sandbox.js @@ -1,4 +1,6 @@ +// Kris Kowal + // NOTE: this file is used is the bootstrapping process, // so any "requires" must be accounted for in narwhal.js diff --git a/lib/sha.js b/lib/sha.js index 96cd4ec0..9fc18392 100644 --- a/lib/sha.js +++ b/lib/sha.js @@ -6,6 +6,7 @@ Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet Distributed under the BSD License See http://pajhome.org.uk/crypt/md5 for details. + Ported to Chiron and Narwhal by Kris Kowal */ var util = require('./util'); diff --git a/lib/sha256.js b/lib/sha256.js index e704c79c..66ba2cd6 100644 --- a/lib/sha256.js +++ b/lib/sha256.js @@ -1,4 +1,6 @@ -/*file chiron src/crypt/sha256.js */ +// http://www.webtoolkit.info/ +// Secure Hash Algorithm (SHA256) +// Ported to Chiron and Narwhal by Kris Kowal var struct = require('./struct'); var util = require('./util'); @@ -90,13 +92,3 @@ var core = function (m, l) { return HASH; }; -/** - - References - ========== - - http://www.webtoolkit.info/ - Secure Hash Algorithm (SHA256) - -*/ - diff --git a/lib/struct.js b/lib/struct.js index 2dfb385e..ed1c0979 100644 --- a/lib/struct.js +++ b/lib/struct.js @@ -1,4 +1,6 @@ +// Kris Kowal + var util = require("util"); var binary = require("binary"); diff --git a/lib/term.js b/lib/term.js index 4c4602dd..7995d0e2 100644 --- a/lib/term.js +++ b/lib/term.js @@ -1,4 +1,5 @@ +// Kris Kowal // reference: http://ascii-table.com/ansi-escape-sequences-vt-100.php var system = require('system'); diff --git a/lib/test.js b/lib/test.js index afc4bd24..09030b68 100644 --- a/lib/test.js +++ b/lib/test.js @@ -1,3 +1,7 @@ + +// Zachary Carter +// Kris Kowal + var SYSTEM = require('system'); var FS = require('file'); var UTIL = require('util'); diff --git a/lib/test/assert.js b/lib/test/assert.js index 8a45a165..83e5ff5a 100644 --- a/lib/test/assert.js +++ b/lib/test/assert.js @@ -1,3 +1,6 @@ + +// Tom Robison + var equiv = require("./equiv").equiv, jsDump = require("./jsdump").jsDump, util = require("../util"); diff --git a/lib/test/equiv.js b/lib/test/equiv.js index 96281190..1171ae42 100644 --- a/lib/test/equiv.js +++ b/lib/test/equiv.js @@ -1,3 +1,6 @@ + +// Ported by Tom Robinson + // Hoozit // Determine what is o. function hoozit(o) { @@ -185,4 +188,4 @@ var equiv = exports.equiv = function () { return innerEquiv; -}(); \ No newline at end of file +}(); diff --git a/lib/test/jsdump.js b/lib/test/jsdump.js index 49cd8141..8476669e 100644 --- a/lib/test/jsdump.js +++ b/lib/test/jsdump.js @@ -1,3 +1,6 @@ + +// Ported by Tom Robinson + /** * jsDump * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com diff --git a/lib/test/runner.js b/lib/test/runner.js index cd852dcb..0b0a4b38 100644 --- a/lib/test/runner.js +++ b/lib/test/runner.js @@ -1,3 +1,6 @@ + +// Tom Robinson + var system = require('system'); var file = require('file'); var util = require('util'); diff --git a/lib/unload.js b/lib/unload.js index fde19481..fcc2733f 100644 --- a/lib/unload.js +++ b/lib/unload.js @@ -1,4 +1,6 @@ +// Kris Kowal + var observers = []; exports.when = function (observer) { diff --git a/lib/utf8.js b/lib/utf8.js index e1c742dd..c467f94f 100644 --- a/lib/utf8.js +++ b/lib/utf8.js @@ -1,4 +1,6 @@ +// ported by Kris Kowal + var binary = require('./binary'); /*** encode diff --git a/lib/util.js b/lib/util.js index fa9b8d8c..6d16c812 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1,4 +1,6 @@ +// Kris Kowal + // a decorator for functions that curry "polymorphically", // that is, that return a function that can be tested // against various objects if they're only "partially diff --git a/lib/uuid.js b/lib/uuid.js index 5453bef9..4aa14cac 100644 --- a/lib/uuid.js +++ b/lib/uuid.js @@ -1,3 +1,6 @@ + +// ported by Tom Robison + /* Based on Math.uuid.js 1.4 by Robert Kieffer diff --git a/lib/xregexp.js b/lib/xregexp.js index 4b67fd0b..b2ffcd13 100644 --- a/lib/xregexp.js +++ b/lib/xregexp.js @@ -1,20 +1,18 @@ -// RegExp -/** provides an augmented, cross-browser implementation of regular expressions - including support for additional modifiers and syntax. several convenience - methods and a recursive-construct parser are also included. -*/ - -/*preamble-steven-levithan +/*! XRegExp 0.6.1 Copyright (c) 2007-2008 Steven Levithan MIT license Based on XRegExp 0.5.1 + + Ported by Kris Kowal */ -/*preamble-kris-kowal - Copyright (c) 2002-2008 Kris Kowal - MIT License - Migrated to module system + +// RegExp + +/** provides an augmented, cross-browser implementation of regular expressions + including support for additional modifiers and syntax. several convenience + methods and a recursive-construct parser are also included. */ /** provides an augmented, cross-browser implementation of regular expressions