diff --git a/node_modules/.bin/atob b/node_modules/.bin/atob
deleted file mode 120000
index a68344a..0000000
--- a/node_modules/.bin/atob
+++ /dev/null
@@ -1 +0,0 @@
-../atob/bin/atob.js
\ No newline at end of file
diff --git a/node_modules/.bin/browserslist b/node_modules/.bin/browserslist
deleted file mode 120000
index 3cd991b..0000000
--- a/node_modules/.bin/browserslist
+++ /dev/null
@@ -1 +0,0 @@
-../browserslist/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/cdl b/node_modules/.bin/cdl
deleted file mode 120000
index 00a4369..0000000
--- a/node_modules/.bin/cdl
+++ /dev/null
@@ -1 +0,0 @@
-../cardinal/bin/cdl.js
\ No newline at end of file
diff --git a/node_modules/.bin/css-beautify b/node_modules/.bin/css-beautify
deleted file mode 120000
index d9b8ee2..0000000
--- a/node_modules/.bin/css-beautify
+++ /dev/null
@@ -1 +0,0 @@
-../js-beautify/js/bin/css-beautify.js
\ No newline at end of file
diff --git a/node_modules/.bin/detect-indent b/node_modules/.bin/detect-indent
deleted file mode 120000
index 637cd30..0000000
--- a/node_modules/.bin/detect-indent
+++ /dev/null
@@ -1 +0,0 @@
-../detect-indent/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/errno b/node_modules/.bin/errno
deleted file mode 120000
index 5a98e53..0000000
--- a/node_modules/.bin/errno
+++ /dev/null
@@ -1 +0,0 @@
-../errno/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/esparse b/node_modules/.bin/esparse
deleted file mode 120000
index 7423b18..0000000
--- a/node_modules/.bin/esparse
+++ /dev/null
@@ -1 +0,0 @@
-../esprima/bin/esparse.js
\ No newline at end of file
diff --git a/node_modules/.bin/esvalidate b/node_modules/.bin/esvalidate
deleted file mode 120000
index 16069ef..0000000
--- a/node_modules/.bin/esvalidate
+++ /dev/null
@@ -1 +0,0 @@
-../esprima/bin/esvalidate.js
\ No newline at end of file
diff --git a/node_modules/.bin/findup b/node_modules/.bin/findup
deleted file mode 120000
index ecbd2e5..0000000
--- a/node_modules/.bin/findup
+++ /dev/null
@@ -1 +0,0 @@
-../findup/bin/findup.js
\ No newline at end of file
diff --git a/node_modules/.bin/gulp b/node_modules/.bin/gulp
deleted file mode 120000
index 5de7332..0000000
--- a/node_modules/.bin/gulp
+++ /dev/null
@@ -1 +0,0 @@
-../gulp/bin/gulp.js
\ No newline at end of file
diff --git a/node_modules/.bin/har-validator b/node_modules/.bin/har-validator
deleted file mode 120000
index c6ec163..0000000
--- a/node_modules/.bin/har-validator
+++ /dev/null
@@ -1 +0,0 @@
-../har-validator/bin/har-validator
\ No newline at end of file
diff --git a/node_modules/.bin/html-beautify b/node_modules/.bin/html-beautify
deleted file mode 120000
index c17c69c..0000000
--- a/node_modules/.bin/html-beautify
+++ /dev/null
@@ -1 +0,0 @@
-../js-beautify/js/bin/html-beautify.js
\ No newline at end of file
diff --git a/node_modules/.bin/image-size b/node_modules/.bin/image-size
deleted file mode 120000
index f575317..0000000
--- a/node_modules/.bin/image-size
+++ /dev/null
@@ -1 +0,0 @@
-../image-size/bin/image-size.js
\ No newline at end of file
diff --git a/node_modules/.bin/js-beautify b/node_modules/.bin/js-beautify
deleted file mode 120000
index 548ddf4..0000000
--- a/node_modules/.bin/js-beautify
+++ /dev/null
@@ -1 +0,0 @@
-../js-beautify/js/bin/js-beautify.js
\ No newline at end of file
diff --git a/node_modules/.bin/json2yaml b/node_modules/.bin/json2yaml
deleted file mode 120000
index 62480dd..0000000
--- a/node_modules/.bin/json2yaml
+++ /dev/null
@@ -1 +0,0 @@
-../yamljs/bin/json2yaml
\ No newline at end of file
diff --git a/node_modules/.bin/lessc b/node_modules/.bin/lessc
deleted file mode 120000
index 87a5294..0000000
--- a/node_modules/.bin/lessc
+++ /dev/null
@@ -1 +0,0 @@
-../less/bin/lessc
\ No newline at end of file
diff --git a/node_modules/.bin/marked b/node_modules/.bin/marked
deleted file mode 120000
index a8d872e..0000000
--- a/node_modules/.bin/marked
+++ /dev/null
@@ -1 +0,0 @@
-../marked/bin/marked
\ No newline at end of file
diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime
deleted file mode 120000
index fbb7ee0..0000000
--- a/node_modules/.bin/mime
+++ /dev/null
@@ -1 +0,0 @@
-../mime/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp
deleted file mode 120000
index 017896c..0000000
--- a/node_modules/.bin/mkdirp
+++ /dev/null
@@ -1 +0,0 @@
-../mkdirp/bin/cmd.js
\ No newline at end of file
diff --git a/node_modules/.bin/nopt b/node_modules/.bin/nopt
deleted file mode 120000
index 6b6566e..0000000
--- a/node_modules/.bin/nopt
+++ /dev/null
@@ -1 +0,0 @@
-../nopt/bin/nopt.js
\ No newline at end of file
diff --git a/node_modules/.bin/notify b/node_modules/.bin/notify
deleted file mode 120000
index 2066abb..0000000
--- a/node_modules/.bin/notify
+++ /dev/null
@@ -1 +0,0 @@
-../node-notifier/bin.js
\ No newline at end of file
diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf
deleted file mode 120000
index 4cd49a4..0000000
--- a/node_modules/.bin/rimraf
+++ /dev/null
@@ -1 +0,0 @@
-../rimraf/bin.js
\ No newline at end of file
diff --git a/node_modules/.bin/rtlcss b/node_modules/.bin/rtlcss
deleted file mode 120000
index 082d767..0000000
--- a/node_modules/.bin/rtlcss
+++ /dev/null
@@ -1 +0,0 @@
-../rtlcss/bin/rtlcss.js
\ No newline at end of file
diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver
deleted file mode 120000
index 317eb29..0000000
--- a/node_modules/.bin/semver
+++ /dev/null
@@ -1 +0,0 @@
-../semver/bin/semver
\ No newline at end of file
diff --git a/node_modules/.bin/sshpk-conv b/node_modules/.bin/sshpk-conv
deleted file mode 120000
index a2a295c..0000000
--- a/node_modules/.bin/sshpk-conv
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-conv
\ No newline at end of file
diff --git a/node_modules/.bin/sshpk-sign b/node_modules/.bin/sshpk-sign
deleted file mode 120000
index 766b9b3..0000000
--- a/node_modules/.bin/sshpk-sign
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-sign
\ No newline at end of file
diff --git a/node_modules/.bin/sshpk-verify b/node_modules/.bin/sshpk-verify
deleted file mode 120000
index bfd7e3a..0000000
--- a/node_modules/.bin/sshpk-verify
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-verify
\ No newline at end of file
diff --git a/node_modules/.bin/strip-bom b/node_modules/.bin/strip-bom
deleted file mode 120000
index ba65fdf..0000000
--- a/node_modules/.bin/strip-bom
+++ /dev/null
@@ -1 +0,0 @@
-../strip-bom/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/strip-indent b/node_modules/.bin/strip-indent
deleted file mode 120000
index dddee7e..0000000
--- a/node_modules/.bin/strip-indent
+++ /dev/null
@@ -1 +0,0 @@
-../strip-indent/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/uglifyjs b/node_modules/.bin/uglifyjs
deleted file mode 120000
index fef3468..0000000
--- a/node_modules/.bin/uglifyjs
+++ /dev/null
@@ -1 +0,0 @@
-../uglify-js/bin/uglifyjs
\ No newline at end of file
diff --git a/node_modules/.bin/user-home b/node_modules/.bin/user-home
deleted file mode 120000
index d72d76b..0000000
--- a/node_modules/.bin/user-home
+++ /dev/null
@@ -1 +0,0 @@
-../user-home/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid
deleted file mode 120000
index b3e45bc..0000000
--- a/node_modules/.bin/uuid
+++ /dev/null
@@ -1 +0,0 @@
-../uuid/bin/uuid
\ No newline at end of file
diff --git a/node_modules/.bin/which b/node_modules/.bin/which
deleted file mode 120000
index f62471c..0000000
--- a/node_modules/.bin/which
+++ /dev/null
@@ -1 +0,0 @@
-../which/bin/which
\ No newline at end of file
diff --git a/node_modules/.bin/yaml2json b/node_modules/.bin/yaml2json
deleted file mode 120000
index b4423c4..0000000
--- a/node_modules/.bin/yaml2json
+++ /dev/null
@@ -1 +0,0 @@
-../yamljs/bin/yaml2json
\ No newline at end of file
diff --git a/node_modules/abbrev/LICENSE b/node_modules/abbrev/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/abbrev/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/abbrev/README.md b/node_modules/abbrev/README.md
deleted file mode 100644
index 99746fe..0000000
--- a/node_modules/abbrev/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# abbrev-js
-
-Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
-
-Usage:
-
- var abbrev = require("abbrev");
- abbrev("foo", "fool", "folding", "flop");
-
- // returns:
- { fl: 'flop'
- , flo: 'flop'
- , flop: 'flop'
- , fol: 'folding'
- , fold: 'folding'
- , foldi: 'folding'
- , foldin: 'folding'
- , folding: 'folding'
- , foo: 'foo'
- , fool: 'fool'
- }
-
-This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.
diff --git a/node_modules/abbrev/abbrev.js b/node_modules/abbrev/abbrev.js
deleted file mode 100644
index 7b1dc5d..0000000
--- a/node_modules/abbrev/abbrev.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module.exports = exports = abbrev.abbrev = abbrev
-
-abbrev.monkeyPatch = monkeyPatch
-
-function monkeyPatch () {
- Object.defineProperty(Array.prototype, 'abbrev', {
- value: function () { return abbrev(this) },
- enumerable: false, configurable: true, writable: true
- })
-
- Object.defineProperty(Object.prototype, 'abbrev', {
- value: function () { return abbrev(Object.keys(this)) },
- enumerable: false, configurable: true, writable: true
- })
-}
-
-function abbrev (list) {
- if (arguments.length !== 1 || !Array.isArray(list)) {
- list = Array.prototype.slice.call(arguments, 0)
- }
- for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
- args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
- }
-
- // sort them lexicographically, so that they're next to their nearest kin
- args = args.sort(lexSort)
-
- // walk through each, seeing how much it has in common with the next and previous
- var abbrevs = {}
- , prev = ""
- for (var i = 0, l = args.length ; i < l ; i ++) {
- var current = args[i]
- , next = args[i + 1] || ""
- , nextMatches = true
- , prevMatches = true
- if (current === next) continue
- for (var j = 0, cl = current.length ; j < cl ; j ++) {
- var curChar = current.charAt(j)
- nextMatches = nextMatches && curChar === next.charAt(j)
- prevMatches = prevMatches && curChar === prev.charAt(j)
- if (!nextMatches && !prevMatches) {
- j ++
- break
- }
- }
- prev = current
- if (j === cl) {
- abbrevs[current] = current
- continue
- }
- for (var a = current.substr(0, j) ; j <= cl ; j ++) {
- abbrevs[a] = current
- a += current.charAt(j)
- }
- }
- return abbrevs
-}
-
-function lexSort (a, b) {
- return a === b ? 0 : a > b ? 1 : -1
-}
diff --git a/node_modules/abbrev/package.json b/node_modules/abbrev/package.json
deleted file mode 100644
index d79f6b4..0000000
--- a/node_modules/abbrev/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "abbrev@1",
- "scope": null,
- "escapedName": "abbrev",
- "name": "abbrev",
- "rawSpec": "1",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/nopt"
- ]
- ],
- "_from": "abbrev@>=1.0.0 <2.0.0",
- "_id": "abbrev@1.1.0",
- "_inCache": true,
- "_location": "/abbrev",
- "_nodeVersion": "8.0.0-pre",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/abbrev-1.1.0.tgz_1487054000015_0.9229173036292195"
- },
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "_npmVersion": "4.3.0",
- "_phantomChildren": {},
- "_requested": {
- "raw": "abbrev@1",
- "scope": null,
- "escapedName": "abbrev",
- "name": "abbrev",
- "rawSpec": "1",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/nopt"
- ],
- "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz",
- "_shasum": "d0554c2256636e2f56e7c2e5ad183f859428d81f",
- "_shrinkwrap": null,
- "_spec": "abbrev@1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/nopt",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me"
- },
- "bugs": {
- "url": "https://github.com/isaacs/abbrev-js/issues"
- },
- "dependencies": {},
- "description": "Like ruby's abbrev module, but in js",
- "devDependencies": {
- "tap": "^10.1"
- },
- "directories": {},
- "dist": {
- "shasum": "d0554c2256636e2f56e7c2e5ad183f859428d81f",
- "tarball": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz"
- },
- "files": [
- "abbrev.js"
- ],
- "gitHead": "7136d4d95449dc44115d4f78b80ec907724f64e0",
- "homepage": "https://github.com/isaacs/abbrev-js#readme",
- "license": "ISC",
- "main": "abbrev.js",
- "maintainers": [
- {
- "name": "isaacs",
- "email": "i@izs.me"
- }
- ],
- "name": "abbrev",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test.js --100"
- },
- "version": "1.1.0"
-}
diff --git a/node_modules/accord/.editorconfig b/node_modules/accord/.editorconfig
deleted file mode 100644
index a29f5d5..0000000
--- a/node_modules/accord/.editorconfig
+++ /dev/null
@@ -1,11 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-indent_style = space
-indent_size = 2
diff --git a/node_modules/accord/.npmignore b/node_modules/accord/.npmignore
deleted file mode 100644
index cc7e3ca..0000000
--- a/node_modules/accord/.npmignore
+++ /dev/null
@@ -1,8 +0,0 @@
-test
-src
-.travis.yml
-Makefile
-docs
-coverage
-yarn.lock
-polytest_*
diff --git a/node_modules/accord/contributing.md b/node_modules/accord/contributing.md
deleted file mode 100644
index db03542..0000000
--- a/node_modules/accord/contributing.md
+++ /dev/null
@@ -1,20 +0,0 @@
-Contributing
-------------
-
-Anything that people should know before filing issues or opening pull requests should be here. This is a good place to put details on coding conventions, how to build the project, and how to run tests.
-
-### Filing Issues
-
-If you have found an issue with this library, please let us know! Make sure that before you file an issue, you have searched to see if someone else has already opened it. When opening the issue, make sure there's a clear and concise title and description, and that the description contains specific steps that can be followed to reproduce the issue you are experiencing. Following these guidelines will get your issue fixed up the quickest!
-
-If you are making a feature request, that is welcome in the issues section as well. Make sure again that the title and issue summary are clear so that we can understand what you're asking for. Any use cases would also help. And if you are requesting a feature and are able to work with javscript code, please consider submitting a pull request for the feature!
-
-### Pull Requests
-
-When submitting a pull request, make sure that the code follows the general style and structure elsewhere in the library, that your commit messages are [well-formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), and that you have added tests for whatever feature you are adding.
-
-### Running Tests
-
-To run tests, make sure you have `npm install`ed, then just run `mocha` in the root. If you'd like to run tests just for one specific adapter, you can use mocha's grep option, like this `mocha -g jade` - this would run just the jade test suite.
-
-The way tests are set up is fairly simple, a folder in `fixtures` and a `describe` block for each adapter. All tests are currently compared to expected output through an pure javascript AST, to ensure compatibility across systems.
diff --git a/node_modules/accord/lib/adapter_base.js b/node_modules/accord/lib/adapter_base.js
deleted file mode 100644
index a448f93..0000000
--- a/node_modules/accord/lib/adapter_base.js
+++ /dev/null
@@ -1,278 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, W, clone, fs, partialRight, path, readFile, requireEngine, resolve, resolvePath,
- indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
-
- W = require('when');
-
- clone = require('lodash.clone');
-
- partialRight = require('lodash.partialright');
-
- resolve = require('resolve');
-
- path = require('path');
-
- fs = require('fs');
-
- readFile = require('when/node/function').lift(fs.readFile);
-
- Adapter = (function() {
-
- /**
- * The names of the npm modules that are supported to be used as engines by
- the adapter. Defaults to the name of the adapter.
- * @type {String[]}
- */
- Adapter.prototype.supportedEngines = void 0;
-
-
- /**
- * The name of the engine in-use. Generally this is the name of the package on
- npm.
- * @type {String}
- */
-
- Adapter.prototype.engineName = '';
-
-
- /**
- * The actual engine, no adapter wrapper. Defaults to the engine that we
- recommend for compiling that particular language (if it is installed).
- Otherwise, whatever engine we support that is installed.
- */
-
- Adapter.prototype.engine = void 0;
-
-
- /**
- * Array of all file extensions the compiler should match
- * @type {String[]}
- */
-
- Adapter.prototype.extensions = void 0;
-
-
- /**
- * Expected output extension
- * @type {String}
- */
-
- Adapter.prototype.output = '';
-
-
- /**
- * Specify if the output of the language is independent of other files or the
- evaluation of potentially stateful functions. This means that the only
- information passed into the engine is what gets passed to Accord's
- compile/render function, and whenever that same input is given, the output
- will always be the same.
- * @type {Boolean}
- * @todo Add detection for when a particular job qualifies as isolated
- */
-
- Adapter.prototype.isolated = false;
-
-
- /**
- * @param {String} [engine=Adapter.supportedEngines[0]] If you need to use a
- particular engine to compile/render with, then specify it here. Otherwise
- we use whatever engine you have installed.
- */
-
- function Adapter(engineName1, customPath) {
- var i, len, ref, ref1;
- this.engineName = engineName1;
- if (!this.supportedEngines || this.supportedEngines.length === 0) {
- this.supportedEngines = [this.name];
- }
- if (this.engineName != null) {
- if (ref = this.engineName, indexOf.call(this.supportedEngines, ref) < 0) {
- throw new Error("engine '" + this.engineName + "' not supported");
- }
- this.engine = requireEngine(this.engineName, customPath);
- } else {
- ref1 = this.supportedEngines;
- for (i = 0, len = ref1.length; i < len; i++) {
- this.engineName = ref1[i];
- try {
- this.engine = requireEngine(this.engineName, customPath);
- } catch (error) {
- continue;
- }
- return;
- }
- throw new Error("'tried to require: " + this.supportedEngines + "'.\nNone found. Make sure one has been installed!");
- }
- }
-
-
- /**
- * Render a string to a compiled string
- * @param {String} str
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.render = function(str, opts) {
- if (opts == null) {
- opts = {};
- }
- if (!this._render) {
- return W.reject(new Error('render not supported'));
- }
- return this._render(str, opts);
- };
-
-
- /**
- * Render a file to a compiled string
- * @param {String} file The path to the file
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.renderFile = function(file, opts) {
- if (opts == null) {
- opts = {};
- }
- opts = clone(opts, true);
- return readFile(file, 'utf8').then(partialRight(this.render, Object.assign({
- filename: file
- }, opts)).bind(this));
- };
-
-
- /**
- * Compile a string to a function
- * @param {String} str
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.compile = function(str, opts) {
- if (opts == null) {
- opts = {};
- }
- if (!this._compile) {
- return W.reject(new Error('compile not supported'));
- }
- return this._compile(str, opts);
- };
-
-
- /**
- * Compile a file to a function
- * @param {String} file The path to the file
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.compileFile = function(file, opts) {
- if (opts == null) {
- opts = {};
- }
- return readFile(file, 'utf8').then(partialRight(this.compile, Object.assign({
- filename: file
- }, opts)).bind(this));
- };
-
-
- /**
- * Compile a string to a client-side-ready function
- * @param {String} str
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.compileClient = function(str, opts) {
- if (opts == null) {
- opts = {};
- }
- if (!this._compileClient) {
- return W.reject(new Error('client-side compile not supported'));
- }
- return this._compileClient(str, opts);
- };
-
-
- /**
- * Compile a file to a client-side-ready function
- * @param {String} file The path to the file
- * @param {Object} [opts = {}]
- * @return {Promise}
- */
-
- Adapter.prototype.compileFileClient = function(file, opts) {
- if (opts == null) {
- opts = {};
- }
- return readFile(file, 'utf8').then(partialRight(this.compileClient, Object.assign(opts, {
- filename: file
- })).bind(this));
- };
-
-
- /**
- * Some adapters that compile for client also need helpers, this method
- returns a string of minfied JavaScript with all of them
- * @return {Promise} A promise for the client-side helpers.
- */
-
- Adapter.prototype.clientHelpers = void 0;
-
- return Adapter;
-
- })();
-
- requireEngine = function(engineName, customPath) {
- var engine, err;
- if (customPath != null) {
- engine = require(resolve.sync(path.basename(customPath), {
- basedir: customPath
- }));
- engine.__accord_path = customPath;
- } else {
- try {
- engine = require(engineName);
- engine.__accord_path = resolvePath(engineName);
- } catch (error) {
- err = error;
- throw new Error("'" + engineName + "' not found. make sure it has been installed!");
- }
- }
- try {
- if (!engine.version) {
- engine.version = require(engine.__accord_path + '/package.json').version;
- }
- } catch (error) {
- err = error;
- }
- return engine;
- };
-
-
- /**
- * Get the path to the root folder of a node module, given its name.
- * @param {String} name The name of the node module you want the path to.
- * @return {String} The root folder of node module `name`.
- * @private
- */
-
- resolvePath = function(name) {
- var filepath;
- filepath = require.resolve(name);
- while (true) {
- if (filepath === '/') {
- throw new Error("cannot resolve root of node module " + name);
- }
- filepath = path.dirname(filepath);
- if (fs.existsSync(path.join(filepath, 'package.json'))) {
- return filepath;
- }
- }
- };
-
- module.exports = Adapter;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/LiveScript/1.x.js b/node_modules/accord/lib/adapters/LiveScript/1.x.js
deleted file mode 100644
index e80851f..0000000
--- a/node_modules/accord/lib/adapters/LiveScript/1.x.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, LiveScript, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- LiveScript = (function(superClass) {
- var compile;
-
- extend(LiveScript, superClass);
-
- function LiveScript() {
- return LiveScript.__super__.constructor.apply(this, arguments);
- }
-
- LiveScript.prototype.name = 'LiveScript';
-
- LiveScript.prototype.extensions = ['ls'];
-
- LiveScript.prototype.output = 'js';
-
- LiveScript.prototype.isolated = true;
-
- LiveScript.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return LiveScript;
-
- })(Adapter);
-
- module.exports = LiveScript;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/LiveScript/index.js b/node_modules/accord/lib/adapters/LiveScript/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/LiveScript/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/babel/4.x - 5.x.js b/node_modules/accord/lib/adapters/babel/4.x - 5.x.js
deleted file mode 100644
index 4b6f26e..0000000
--- a/node_modules/accord/lib/adapters/babel/4.x - 5.x.js
+++ /dev/null
@@ -1,74 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Babel, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- W = require('when');
-
- sourcemaps = require('../../sourcemaps');
-
- Babel = (function(superClass) {
- var compile;
-
- extend(Babel, superClass);
-
- function Babel() {
- return Babel.__super__.constructor.apply(this, arguments);
- }
-
- Babel.prototype.name = 'babel';
-
- Babel.prototype.extensions = ['jsx', 'js'];
-
- Babel.prototype.output = 'js';
-
- Babel.prototype.isolated = true;
-
- Babel.prototype._render = function(str, options) {
- var filename;
- filename = options.filename;
- if (options.sourcemap === true) {
- options.sourceMap = true;
- }
- options.sourceMapName = filename;
- delete options.sourcemap;
- return compile((function(_this) {
- return function() {
- return _this.engine.transform(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var data, err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- data = {
- result: res.code
- };
- if (res.map) {
- return sourcemaps.inline_sources(res.map).then(function(map) {
- data.sourcemap = map;
- return data;
- });
- } else {
- return W.resolve(data);
- }
- };
-
- return Babel;
-
- })(Adapter);
-
- module.exports = Babel;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/babel/6.x.js b/node_modules/accord/lib/adapters/babel/6.x.js
deleted file mode 100644
index 9df40b2..0000000
--- a/node_modules/accord/lib/adapters/babel/6.x.js
+++ /dev/null
@@ -1,86 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Babel, W, path, pick, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- path = require('path');
-
- W = require('when');
-
- pick = require('lodash.pick');
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- Babel = (function(superClass) {
- var compile;
-
- extend(Babel, superClass);
-
- function Babel() {
- return Babel.__super__.constructor.apply(this, arguments);
- }
-
- Babel.prototype.name = 'babel';
-
- Babel.prototype.extensions = ['js', 'jsx'];
-
- Babel.prototype.output = 'js';
-
- Babel.prototype.isolated = true;
-
- Babel.prototype.supportedEngines = ['babel-core'];
-
- Babel.prototype._render = function(str, options) {
- var allowed_keys, filename, sanitized_options;
- filename = options.filename;
- if (options.sourcemap === true) {
- options.sourceMaps = true;
- }
- options.sourceFileName = filename;
- delete options.sourcemap;
- allowed_keys = ['filename', 'filenameRelative', 'presets', 'plugins', 'highlightCode', 'only', 'ignore', 'auxiliaryCommentBefore', 'auxiliaryCommentAfter', 'sourceMaps', 'inputSourceMap', 'sourceMapTarget', 'sourceRoot', 'moduleRoot', 'moduleIds', 'moduleId', 'getModuleId', 'resolveModuleSource', 'code', 'babelrc', 'ast', 'compact', 'comments', 'shouldPrintComment', 'env', 'retainLines', 'extends'];
- sanitized_options = pick(options, allowed_keys);
- return compile((function(_this) {
- return function() {
- return _this.engine.transform(str, sanitized_options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var data, dirname, err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- data = {
- result: res.code
- };
- if (res.map) {
- if (res.map.sources) {
- dirname = path.dirname(res.options.filename);
- res.map.sources = res.map.sources.map(function(source) {
- return path.join(dirname, source);
- });
- }
- return sourcemaps.inline_sources(res.map).then(function(map) {
- data.sourcemap = map;
- return data;
- });
- } else {
- return W.resolve(data);
- }
- };
-
- return Babel;
-
- })(Adapter);
-
- module.exports = Babel;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/babel/index.js b/node_modules/accord/lib/adapters/babel/index.js
deleted file mode 100644
index 2bc94e7..0000000
--- a/node_modules/accord/lib/adapters/babel/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./6.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js b/node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js
deleted file mode 100644
index 315539b..0000000
--- a/node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Buble, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- W = require('when');
-
- sourcemaps = require('../../sourcemaps');
-
- Buble = (function(superClass) {
- var compile;
-
- extend(Buble, superClass);
-
- function Buble() {
- return Buble.__super__.constructor.apply(this, arguments);
- }
-
- Buble.prototype.name = 'buble';
-
- Buble.prototype.extensions = ['js'];
-
- Buble.prototype.output = 'js';
-
- Buble.prototype.isolated = true;
-
- Buble.prototype._render = function(str, options) {
- options.source = options.filename;
- return compile((function(_this) {
- return function() {
- return _this.engine.transform(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var data, err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- data = {
- result: res.code
- };
- if (res.map) {
- return sourcemaps.inline_sources(res.map).then(function(map) {
- data.sourcemap = map;
- return data;
- });
- } else {
- return W.resolve(data);
- }
- };
-
- return Buble;
-
- })(Adapter);
-
- module.exports = Buble;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/buble/index.js b/node_modules/accord/lib/adapters/buble/index.js
deleted file mode 100644
index 70ee3e3..0000000
--- a/node_modules/accord/lib/adapters/buble/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.8.x - 0.14.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/cjsx/3.x.js b/node_modules/accord/lib/adapters/cjsx/3.x.js
deleted file mode 100644
index 4107d52..0000000
--- a/node_modules/accord/lib/adapters/cjsx/3.x.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CJSX, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- path = require('path');
-
- W = require('when');
-
- CJSX = (function(superClass) {
- var compile;
-
- extend(CJSX, superClass);
-
- function CJSX() {
- return CJSX.__super__.constructor.apply(this, arguments);
- }
-
- CJSX.prototype.name = 'cjsx';
-
- CJSX.prototype.extensions = ['cjsx'];
-
- CJSX.prototype.output = 'coffee';
-
- CJSX.prototype.supportedEngines = ['coffee-react-transform'];
-
- CJSX.prototype.isolated = true;
-
- CJSX.prototype._render = function(str, options) {
- var filename;
- filename = options.filename;
- return compile((function(_this) {
- return function() {
- return _this.engine(str);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return CJSX;
-
- })(Adapter);
-
- module.exports = CJSX;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js b/node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js
deleted file mode 100644
index 4107d52..0000000
--- a/node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CJSX, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- path = require('path');
-
- W = require('when');
-
- CJSX = (function(superClass) {
- var compile;
-
- extend(CJSX, superClass);
-
- function CJSX() {
- return CJSX.__super__.constructor.apply(this, arguments);
- }
-
- CJSX.prototype.name = 'cjsx';
-
- CJSX.prototype.extensions = ['cjsx'];
-
- CJSX.prototype.output = 'coffee';
-
- CJSX.prototype.supportedEngines = ['coffee-react-transform'];
-
- CJSX.prototype.isolated = true;
-
- CJSX.prototype._render = function(str, options) {
- var filename;
- filename = options.filename;
- return compile((function(_this) {
- return function() {
- return _this.engine(str);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return CJSX;
-
- })(Adapter);
-
- module.exports = CJSX;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/cjsx/index.js b/node_modules/accord/lib/adapters/cjsx/index.js
deleted file mode 100644
index 4d6c019..0000000
--- a/node_modules/accord/lib/adapters/cjsx/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./4.x - 5.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/coco/0.9.x.js b/node_modules/accord/lib/adapters/coco/0.9.x.js
deleted file mode 100644
index 4784473..0000000
--- a/node_modules/accord/lib/adapters/coco/0.9.x.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Coco, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- Coco = (function(superClass) {
- var compile;
-
- extend(Coco, superClass);
-
- function Coco() {
- return Coco.__super__.constructor.apply(this, arguments);
- }
-
- Coco.prototype.name = 'coco';
-
- Coco.prototype.extensions = ['co'];
-
- Coco.prototype.output = 'js';
-
- Coco.prototype.isolated = true;
-
- Coco.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Coco;
-
- })(Adapter);
-
- module.exports = Coco;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/coco/index.js b/node_modules/accord/lib/adapters/coco/index.js
deleted file mode 100644
index 16c814a..0000000
--- a/node_modules/accord/lib/adapters/coco/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.9.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/coffee-script/1.x.js b/node_modules/accord/lib/adapters/coffee-script/1.x.js
deleted file mode 100644
index c884097..0000000
--- a/node_modules/accord/lib/adapters/coffee-script/1.x.js
+++ /dev/null
@@ -1,80 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CoffeeScript, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- path = require('path');
-
- W = require('when');
-
- CoffeeScript = (function(superClass) {
- var compile;
-
- extend(CoffeeScript, superClass);
-
- function CoffeeScript() {
- return CoffeeScript.__super__.constructor.apply(this, arguments);
- }
-
- CoffeeScript.prototype.name = 'coffee-script';
-
- CoffeeScript.prototype.extensions = ['coffee'];
-
- CoffeeScript.prototype.output = 'js';
-
- CoffeeScript.prototype.isolated = true;
-
- CoffeeScript.prototype._render = function(str, options) {
- var filename;
- filename = options.filename;
- if (options.sourcemap === true) {
- options.sourceMap = true;
- }
- options.sourceFiles = [filename];
- if (options.filename) {
- options.generatedFile = path.basename(filename).replace('.coffee', '.js');
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var data, err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- if (res.sourceMap) {
- data = {
- result: res.js,
- v2sourcemap: res.sourceMap,
- sourcemap: JSON.parse(res.v3SourceMap)
- };
- return sourcemaps.inline_sources(data.sourcemap).then(function(map) {
- data.sourcemap = map;
- return data;
- });
- } else {
- return W.resolve({
- result: res
- });
- }
- };
-
- return CoffeeScript;
-
- })(Adapter);
-
- module.exports = CoffeeScript;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/coffee-script/index.js b/node_modules/accord/lib/adapters/coffee-script/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/coffee-script/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js b/node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js
deleted file mode 100644
index e9d9c22..0000000
--- a/node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js
+++ /dev/null
@@ -1,58 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CSSO, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- CSSO = (function(superClass) {
- var compile;
-
- extend(CSSO, superClass);
-
- function CSSO() {
- return CSSO.__super__.constructor.apply(this, arguments);
- }
-
- CSSO.prototype.name = 'csso';
-
- CSSO.prototype.extensions = ['css'];
-
- CSSO.prototype.output = 'css';
-
- CSSO.prototype.isolated = true;
-
- CSSO.prototype._render = function(str, options) {
- if (options.noRestructure == null) {
- options.noRestructure = false;
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.justDoIt(str, options.noRestructure);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return CSSO;
-
- })(Adapter);
-
- module.exports = CSSO;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/csso/2.x.js b/node_modules/accord/lib/adapters/csso/2.x.js
deleted file mode 100644
index 2ab0adb..0000000
--- a/node_modules/accord/lib/adapters/csso/2.x.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CSSO, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- CSSO = (function(superClass) {
- var compile;
-
- extend(CSSO, superClass);
-
- function CSSO() {
- return CSSO.__super__.constructor.apply(this, arguments);
- }
-
- CSSO.prototype.name = 'csso';
-
- CSSO.prototype.extensions = ['css'];
-
- CSSO.prototype.output = 'css';
-
- CSSO.prototype.isolated = true;
-
- CSSO.prototype._render = function(str, options) {
- if (options.restructuring == null) {
- options.restructuring = true;
- }
- if (options.debug == null) {
- options.debug = false;
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.minify(str, options).css;
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return CSSO;
-
- })(Adapter);
-
- module.exports = CSSO;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/csso/^1.4.js b/node_modules/accord/lib/adapters/csso/^1.4.js
deleted file mode 100644
index d933636..0000000
--- a/node_modules/accord/lib/adapters/csso/^1.4.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, CSSO, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- CSSO = (function(superClass) {
- var compile;
-
- extend(CSSO, superClass);
-
- function CSSO() {
- return CSSO.__super__.constructor.apply(this, arguments);
- }
-
- CSSO.prototype.name = 'csso';
-
- CSSO.prototype.extensions = ['css'];
-
- CSSO.prototype.output = 'css';
-
- CSSO.prototype.isolated = true;
-
- CSSO.prototype._render = function(str, options) {
- if (options.restructuring == null) {
- options.restructuring = true;
- }
- if (options.debug == null) {
- options.debug = false;
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.minify(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return CSSO;
-
- })(Adapter);
-
- module.exports = CSSO;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/csso/index.js b/node_modules/accord/lib/adapters/csso/index.js
deleted file mode 100644
index cd8c953..0000000
--- a/node_modules/accord/lib/adapters/csso/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/dogescript/2.x.js b/node_modules/accord/lib/adapters/dogescript/2.x.js
deleted file mode 100644
index cc1ebd3..0000000
--- a/node_modules/accord/lib/adapters/dogescript/2.x.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, DogeScript, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- DogeScript = (function(superClass) {
- extend(DogeScript, superClass);
-
- function DogeScript() {
- return DogeScript.__super__.constructor.apply(this, arguments);
- }
-
- DogeScript.prototype.name = 'dogescript';
-
- DogeScript.prototype.extensions = ['djs'];
-
- DogeScript.prototype.output = 'js';
-
- DogeScript.prototype.isolated = true;
-
- DogeScript.prototype._render = function(str, options) {
- return W.resolve({
- result: this.engine(str, options.beauty, options.trueDoge)
- });
- };
-
- return DogeScript;
-
- })(Adapter);
-
- module.exports = DogeScript;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/dogescript/index.js b/node_modules/accord/lib/adapters/dogescript/index.js
deleted file mode 100644
index cd8c953..0000000
--- a/node_modules/accord/lib/adapters/dogescript/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/dot/1.x.js b/node_modules/accord/lib/adapters/dot/1.x.js
deleted file mode 100644
index c7a0f15..0000000
--- a/node_modules/accord/lib/adapters/dot/1.x.js
+++ /dev/null
@@ -1,80 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Dot, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- Dot = (function(superClass) {
- var compile;
-
- extend(Dot, superClass);
-
- function Dot() {
- return Dot.__super__.constructor.apply(this, arguments);
- }
-
- Dot.prototype.name = 'dot';
-
- Dot.prototype.extensions = ['dot'];
-
- Dot.prototype.output = 'html';
-
- Dot.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str)(options);
- };
- })(this));
- };
-
- Dot.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- Dot.prototype._compileClient = function(str, options) {
- options.client = true;
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options).toString();
- };
- })(this));
- };
-
- Dot.prototype.clientHelpers = function(str, options) {
- var runtime_path;
- runtime_path = path.join(this.engine.__accord_path, 'doT.min.js');
- return fs.readFileSync(runtime_path, 'utf8');
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Dot;
-
- })(Adapter);
-
- module.exports = Dot;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/dot/index.js b/node_modules/accord/lib/adapters/dot/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/dot/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/eco/1.x.js b/node_modules/accord/lib/adapters/eco/1.x.js
deleted file mode 100644
index e94507b..0000000
--- a/node_modules/accord/lib/adapters/eco/1.x.js
+++ /dev/null
@@ -1,76 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Eco, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- Eco = (function(superClass) {
- var compile;
-
- extend(Eco, superClass);
-
- function Eco() {
- return Eco.__super__.constructor.apply(this, arguments);
- }
-
- Eco.prototype.name = 'eco';
-
- Eco.prototype.extensions = ['eco'];
-
- Eco.prototype.output = 'html';
-
- Eco.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.render(str, options);
- };
- })(this));
- };
-
- Eco.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this)).then(function(res) {
- res.result = eval(res.result);
- return res;
- });
- };
-
- Eco.prototype._compileClient = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options).toString().trim() + '\n';
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Eco;
-
- })(Adapter);
-
- module.exports = Eco;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js b/node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js
deleted file mode 100644
index a5b6788..0000000
--- a/node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Eco, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- Eco = (function(superClass) {
- var compile;
-
- extend(Eco, superClass);
-
- function Eco() {
- return Eco.__super__.constructor.apply(this, arguments);
- }
-
- Eco.prototype.name = 'eco';
-
- Eco.prototype.extensions = ['eco'];
-
- Eco.prototype.output = 'html';
-
- Eco.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.render(str, options);
- };
- })(this));
- };
-
- Eco.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- Eco.prototype._compileClient = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options).toString().trim() + '\n';
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Eco;
-
- })(Adapter);
-
- module.exports = Eco;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/eco/index.js b/node_modules/accord/lib/adapters/eco/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/eco/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/ejs/2.x.js b/node_modules/accord/lib/adapters/ejs/2.x.js
deleted file mode 100644
index d65ceba..0000000
--- a/node_modules/accord/lib/adapters/ejs/2.x.js
+++ /dev/null
@@ -1,80 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, EJS, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- EJS = (function(superClass) {
- var compile;
-
- extend(EJS, superClass);
-
- function EJS() {
- return EJS.__super__.constructor.apply(this, arguments);
- }
-
- EJS.prototype.name = 'ejs';
-
- EJS.prototype.extensions = ['ejs'];
-
- EJS.prototype.output = 'html';
-
- EJS.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.render(str, options);
- };
- })(this));
- };
-
- EJS.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- EJS.prototype._compileClient = function(str, options) {
- options.client = true;
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options).toString();
- };
- })(this));
- };
-
- EJS.prototype.clientHelpers = function(str, options) {
- var runtime_path;
- runtime_path = path.join(this.engine.__accord_path, 'ejs.min.js');
- return fs.readFileSync(runtime_path, 'utf8');
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return EJS;
-
- })(Adapter);
-
- module.exports = EJS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/ejs/index.js b/node_modules/accord/lib/adapters/ejs/index.js
deleted file mode 100644
index cd8c953..0000000
--- a/node_modules/accord/lib/adapters/ejs/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/escape-html/0.5.x.js b/node_modules/accord/lib/adapters/escape-html/0.5.x.js
deleted file mode 100644
index b1e1254..0000000
--- a/node_modules/accord/lib/adapters/escape-html/0.5.x.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, EscapeHTML, W, defaults,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- defaults = require('lodash.defaults');
-
- EscapeHTML = (function(superClass) {
- var compile;
-
- extend(EscapeHTML, superClass);
-
- function EscapeHTML() {
- return EscapeHTML.__super__.constructor.apply(this, arguments);
- }
-
- EscapeHTML.prototype.name = 'escape-html';
-
- EscapeHTML.prototype.extensions = ['html'];
-
- EscapeHTML.prototype.output = 'html';
-
- EscapeHTML.prototype.supportedEngines = ['he'];
-
- EscapeHTML.prototype.isolated = true;
-
- EscapeHTML.prototype._render = function(str, options) {
- options = defaults(options, {
- allowUnsafeSymbols: true
- });
- return compile((function(_this) {
- return function() {
- return _this.engine.encode(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return EscapeHTML;
-
- })(Adapter);
-
- module.exports = EscapeHTML;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/escape-html/1.x.js b/node_modules/accord/lib/adapters/escape-html/1.x.js
deleted file mode 100644
index b1e1254..0000000
--- a/node_modules/accord/lib/adapters/escape-html/1.x.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, EscapeHTML, W, defaults,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- defaults = require('lodash.defaults');
-
- EscapeHTML = (function(superClass) {
- var compile;
-
- extend(EscapeHTML, superClass);
-
- function EscapeHTML() {
- return EscapeHTML.__super__.constructor.apply(this, arguments);
- }
-
- EscapeHTML.prototype.name = 'escape-html';
-
- EscapeHTML.prototype.extensions = ['html'];
-
- EscapeHTML.prototype.output = 'html';
-
- EscapeHTML.prototype.supportedEngines = ['he'];
-
- EscapeHTML.prototype.isolated = true;
-
- EscapeHTML.prototype._render = function(str, options) {
- options = defaults(options, {
- allowUnsafeSymbols: true
- });
- return compile((function(_this) {
- return function() {
- return _this.engine.encode(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return EscapeHTML;
-
- })(Adapter);
-
- module.exports = EscapeHTML;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/escape-html/index.js b/node_modules/accord/lib/adapters/escape-html/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/escape-html/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/haml/0.6.x.js b/node_modules/accord/lib/adapters/haml/0.6.x.js
deleted file mode 100644
index 74666cf..0000000
--- a/node_modules/accord/lib/adapters/haml/0.6.x.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, HAML, UglifyJS, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- UglifyJS = require('uglify-js');
-
- HAML = (function(superClass) {
- var compile;
-
- extend(HAML, superClass);
-
- function HAML() {
- return HAML.__super__.constructor.apply(this, arguments);
- }
-
- HAML.prototype.name = 'haml';
-
- HAML.prototype.extensions = ['haml'];
-
- HAML.prototype.output = 'html';
-
- HAML.prototype.supportedEngines = ['hamljs'];
-
- HAML.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str)(options);
- };
- })(this));
- };
-
- HAML.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return HAML;
-
- })(Adapter);
-
- module.exports = HAML;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/haml/index.js b/node_modules/accord/lib/adapters/haml/index.js
deleted file mode 100644
index 45607c6..0000000
--- a/node_modules/accord/lib/adapters/haml/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.6.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js b/node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js
deleted file mode 100644
index 216b084..0000000
--- a/node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js
+++ /dev/null
@@ -1,106 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Handlebars, W, clone, fs, merge, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- clone = require('lodash.clone');
-
- merge = require('lodash.merge');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- Handlebars = (function(superClass) {
- var compile, register_helpers;
-
- extend(Handlebars, superClass);
-
- function Handlebars() {
- return Handlebars.__super__.constructor.apply(this, arguments);
- }
-
- Handlebars.prototype.name = 'handlebars';
-
- Handlebars.prototype.extensions = ['hbs', 'handlebars'];
-
- Handlebars.prototype.output = 'html';
-
- Handlebars.prototype._render = function(str, options) {
- var compiler;
- compiler = clone(this.engine);
- register_helpers(compiler, options);
- return compile((function(_this) {
- return function() {
- return compiler.compile(str)(options);
- };
- })(this));
- };
-
- Handlebars.prototype._compile = function(str, options) {
- var compiler;
- compiler = clone(this.engine);
- register_helpers(compiler, options);
- return compile((function(_this) {
- return function() {
- return compiler.compile(str);
- };
- })(this));
- };
-
- Handlebars.prototype._compileClient = function(str, options) {
- var compiler;
- compiler = clone(this.engine);
- register_helpers(compiler, options);
- return compile((function(_this) {
- return function() {
- return "Handlebars.template(" + (compiler.precompile(str)) + ");";
- };
- })(this));
- };
-
- Handlebars.prototype.clientHelpers = function() {
- var runtime_path;
- runtime_path = path.join(this.engine.__accord_path, 'dist/handlebars.runtime.min.js');
- return fs.readFileSync(runtime_path, 'utf8');
- };
-
-
- /**
- * @private
- */
-
- register_helpers = function(compiler, opts) {
- if (opts.helpers) {
- compiler.helpers = merge(compiler.helpers, opts.helpers);
- }
- if (opts.partials) {
- return compiler.partials = merge(compiler.partials, opts.partials);
- }
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Handlebars;
-
- })(Adapter);
-
- module.exports = Handlebars;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/handlebars/index.js b/node_modules/accord/lib/adapters/handlebars/index.js
deleted file mode 100644
index ae858cd..0000000
--- a/node_modules/accord/lib/adapters/handlebars/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./3.x - 4.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/jade/1.x.js b/node_modules/accord/lib/adapters/jade/1.x.js
deleted file mode 100644
index 7e8ebbc..0000000
--- a/node_modules/accord/lib/adapters/jade/1.x.js
+++ /dev/null
@@ -1,86 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Jade, UglifyJS, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- UglifyJS = require('uglify-js');
-
- Jade = (function(superClass) {
- var compile;
-
- extend(Jade, superClass);
-
- function Jade() {
- return Jade.__super__.constructor.apply(this, arguments);
- }
-
- Jade.prototype.name = 'jade';
-
- Jade.prototype.extensions = ['jade'];
-
- Jade.prototype.output = 'html';
-
- Jade.prototype.supportedEngines = ['jade'];
-
- Jade.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.render(str, options);
- };
- })(this));
- };
-
- Jade.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- Jade.prototype._compileClient = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compileClient(str, options);
- };
- })(this));
- };
-
- Jade.prototype.clientHelpers = function() {
- var runtime, runtime_path;
- runtime_path = path.join(this.engine.__accord_path, 'runtime.js');
- runtime = fs.readFileSync(runtime_path, 'utf8');
- return UglifyJS.minify(runtime, {
- fromString: true
- }).code;
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Jade;
-
- })(Adapter);
-
- module.exports = Jade;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/jade/index.js b/node_modules/accord/lib/adapters/jade/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/jade/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/jsx/0.13.x.js b/node_modules/accord/lib/adapters/jsx/0.13.x.js
deleted file mode 100644
index 43069ea..0000000
--- a/node_modules/accord/lib/adapters/jsx/0.13.x.js
+++ /dev/null
@@ -1,78 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, JSX, W, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- path = require('path');
-
- W = require('when');
-
- JSX = (function(superClass) {
- var compile;
-
- extend(JSX, superClass);
-
- function JSX() {
- return JSX.__super__.constructor.apply(this, arguments);
- }
-
- JSX.prototype.name = 'jsx';
-
- JSX.prototype.extensions = ['jsx'];
-
- JSX.prototype.output = 'js';
-
- JSX.prototype.supportedEngines = ['react-tools'];
-
- JSX.prototype.isolated = true;
-
- JSX.prototype._render = function(str, options) {
- if (options.sourcemap === true) {
- options.sourceMap = true;
- options.sourceFilename = options.filename;
- }
- return compile(options, (function(_this) {
- return function() {
- return _this.engine.transformWithDetails(str, options);
- };
- })(this));
- };
-
- compile = function(opts, fn) {
- var data, err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- if (res.sourceMap) {
- data = {
- result: res.code,
- sourcemap: res.sourceMap
- };
- data.sourcemap.sources.pop();
- data.sourcemap.sources.push(opts.filename);
- return sourcemaps.inline_sources(data.sourcemap).then(function(map) {
- data.sourcemap = map;
- return data;
- });
- } else {
- return W.resolve({
- result: res.code
- });
- }
- };
-
- return JSX;
-
- })(Adapter);
-
- module.exports = JSX;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/jsx/index.js b/node_modules/accord/lib/adapters/jsx/index.js
deleted file mode 100644
index f2b3609..0000000
--- a/node_modules/accord/lib/adapters/jsx/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.13.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/less/2.x.js b/node_modules/accord/lib/adapters/less/2.x.js
deleted file mode 100644
index d4f5c2a..0000000
--- a/node_modules/accord/lib/adapters/less/2.x.js
+++ /dev/null
@@ -1,67 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Less, W, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- W = require('when');
-
- Less = (function(superClass) {
- extend(Less, superClass);
-
- function Less() {
- return Less.__super__.constructor.apply(this, arguments);
- }
-
- Less.prototype.name = 'less';
-
- Less.prototype.extensions = ['less'];
-
- Less.prototype.output = 'css';
-
-
- /**
- * LESS has import rules for other LESS stylesheets
- */
-
- Less.prototype.isolated = false;
-
- Less.prototype._render = function(str, options) {
- var deferred;
- deferred = W.defer();
- if (options.sourcemap === true) {
- options.sourceMap = true;
- }
- this.engine.render(str, options, function(err, res) {
- var obj;
- if (err) {
- return deferred.reject(err);
- }
- obj = {
- result: res.css,
- imports: res.imports
- };
- if (options.sourceMap && res.map) {
- obj.sourcemap = JSON.parse(res.map);
- return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
- obj.sourcemap = map;
- return deferred.resolve(obj);
- });
- } else {
- return deferred.resolve(obj);
- }
- });
- return deferred.promise;
- };
-
- return Less;
-
- })(Adapter);
-
- module.exports = Less;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/less/index.js b/node_modules/accord/lib/adapters/less/index.js
deleted file mode 100644
index cd8c953..0000000
--- a/node_modules/accord/lib/adapters/less/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/marc/0.1.x.js b/node_modules/accord/lib/adapters/marc/0.1.x.js
deleted file mode 100644
index 4195c01..0000000
--- a/node_modules/accord/lib/adapters/marc/0.1.x.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Marc, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- Marc = (function(superClass) {
- extend(Marc, superClass);
-
- function Marc() {
- return Marc.__super__.constructor.apply(this, arguments);
- }
-
- Marc.prototype.name = 'marc';
-
- Marc.prototype.extensions = ['md'];
-
- Marc.prototype.output = 'html';
-
- Marc.prototype._render = function(str, options) {
- var base, k, ref, ref1, ref2, v;
- base = this.engine();
- ref = options['data'];
- for (k in ref) {
- v = ref[k];
- base.set(k, v);
- }
- delete options['data'];
- ref1 = options['partial'];
- for (k in ref1) {
- v = ref1[k];
- base.partial(k, v);
- }
- delete options['partial'];
- ref2 = options['filter'];
- for (k in ref2) {
- v = ref2[k];
- base.filter(k, v);
- }
- delete options['filter'];
- base.config(options);
- return W.resolve({
- result: base(str, true)
- });
- };
-
- return Marc;
-
- })(Adapter);
-
- module.exports = Marc;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/marc/index.js b/node_modules/accord/lib/adapters/marc/index.js
deleted file mode 100644
index 67df43e..0000000
--- a/node_modules/accord/lib/adapters/marc/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/markdown/0.3.x.js b/node_modules/accord/lib/adapters/markdown/0.3.x.js
deleted file mode 100644
index 2ac6752..0000000
--- a/node_modules/accord/lib/adapters/markdown/0.3.x.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Markdown, nodefn,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- nodefn = require('when/node/function');
-
- Markdown = (function(superClass) {
- extend(Markdown, superClass);
-
- function Markdown() {
- return Markdown.__super__.constructor.apply(this, arguments);
- }
-
- Markdown.prototype.name = 'markdown';
-
- Markdown.prototype.extensions = ['md', 'mdown', 'markdown'];
-
- Markdown.prototype.output = 'html';
-
- Markdown.prototype.supportedEngines = ['marked'];
-
- Markdown.prototype.isolated = true;
-
- Markdown.prototype._render = function(str, options) {
- return nodefn.call(this.engine.bind(this.engine), str, options).then(function(res) {
- return {
- result: res
- };
- });
- };
-
- return Markdown;
-
- })(Adapter);
-
- module.exports = Markdown;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/markdown/index.js b/node_modules/accord/lib/adapters/markdown/index.js
deleted file mode 100644
index 9f08443..0000000
--- a/node_modules/accord/lib/adapters/markdown/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.3.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-css/3.x.js b/node_modules/accord/lib/adapters/minify-css/3.x.js
deleted file mode 100644
index 37fe149..0000000
--- a/node_modules/accord/lib/adapters/minify-css/3.x.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, MinifyCSS, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- MinifyCSS = (function(superClass) {
- var compile;
-
- extend(MinifyCSS, superClass);
-
- function MinifyCSS() {
- return MinifyCSS.__super__.constructor.apply(this, arguments);
- }
-
- MinifyCSS.prototype.name = 'minify-css';
-
- MinifyCSS.prototype.extensions = ['css'];
-
- MinifyCSS.prototype.output = 'css';
-
- MinifyCSS.prototype.supportedEngines = ['clean-css'];
-
-
- /**
- * It is sometimes isolated, but not always because you can get it to process
- `import` rules with `processImport`
- */
-
- MinifyCSS.prototype.isolated = false;
-
- MinifyCSS.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return (new _this.engine(options)).minify(str);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- if (res.errors.length > 0) {
- W.reject(res);
- }
- return W.resolve({
- result: res.styles,
- warnings: res.warnings,
- stats: res.stats
- });
- };
-
- return MinifyCSS;
-
- })(Adapter);
-
- module.exports = MinifyCSS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-css/index.js b/node_modules/accord/lib/adapters/minify-css/index.js
deleted file mode 100644
index b022e32..0000000
--- a/node_modules/accord/lib/adapters/minify-css/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./3.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js b/node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js
deleted file mode 100644
index c426290..0000000
--- a/node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, MinifyHTML, W, defaults,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- defaults = require('lodash.defaults');
-
- MinifyHTML = (function(superClass) {
- var compile;
-
- extend(MinifyHTML, superClass);
-
- function MinifyHTML() {
- return MinifyHTML.__super__.constructor.apply(this, arguments);
- }
-
- MinifyHTML.prototype.name = 'minify-html';
-
- MinifyHTML.prototype.extensions = ['html'];
-
- MinifyHTML.prototype.output = 'html';
-
- MinifyHTML.prototype.supportedEngines = ['html-minifier'];
-
-
- /**
- * I think that you could cause this to not be isolated by using the minifyCSS
- option and then making that import stylesheets, but I'm not even sure if
- MinifyHTML would support that...
- */
-
- MinifyHTML.prototype.isolated = true;
-
- MinifyHTML.prototype._render = function(str, options) {
- options = defaults(options, {
- removeComments: true,
- collapseWhitespace: true,
- removeEmptyAttributes: true
- });
- return compile((function(_this) {
- return function() {
- return _this.engine.minify(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return MinifyHTML;
-
- })(Adapter);
-
- module.exports = MinifyHTML;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js b/node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js
deleted file mode 100644
index c426290..0000000
--- a/node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, MinifyHTML, W, defaults,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- defaults = require('lodash.defaults');
-
- MinifyHTML = (function(superClass) {
- var compile;
-
- extend(MinifyHTML, superClass);
-
- function MinifyHTML() {
- return MinifyHTML.__super__.constructor.apply(this, arguments);
- }
-
- MinifyHTML.prototype.name = 'minify-html';
-
- MinifyHTML.prototype.extensions = ['html'];
-
- MinifyHTML.prototype.output = 'html';
-
- MinifyHTML.prototype.supportedEngines = ['html-minifier'];
-
-
- /**
- * I think that you could cause this to not be isolated by using the minifyCSS
- option and then making that import stylesheets, but I'm not even sure if
- MinifyHTML would support that...
- */
-
- MinifyHTML.prototype.isolated = true;
-
- MinifyHTML.prototype._render = function(str, options) {
- options = defaults(options, {
- removeComments: true,
- collapseWhitespace: true,
- removeEmptyAttributes: true
- });
- return compile((function(_this) {
- return function() {
- return _this.engine.minify(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return MinifyHTML;
-
- })(Adapter);
-
- module.exports = MinifyHTML;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-html/index.js b/node_modules/accord/lib/adapters/minify-html/index.js
deleted file mode 100644
index 088a274..0000000
--- a/node_modules/accord/lib/adapters/minify-html/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x - 3.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-js/2.x.js b/node_modules/accord/lib/adapters/minify-js/2.x.js
deleted file mode 100644
index 00741f5..0000000
--- a/node_modules/accord/lib/adapters/minify-js/2.x.js
+++ /dev/null
@@ -1,83 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, MinifyJS, W, convert, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- W = require('when');
-
- path = require('path');
-
- convert = require('convert-source-map');
-
- MinifyJS = (function(superClass) {
- var compile;
-
- extend(MinifyJS, superClass);
-
- function MinifyJS() {
- return MinifyJS.__super__.constructor.apply(this, arguments);
- }
-
- MinifyJS.prototype.name = 'minify-js';
-
- MinifyJS.prototype.extensions = ['js'];
-
- MinifyJS.prototype.output = 'js';
-
- MinifyJS.prototype.supportedEngines = ['uglify-js'];
-
- MinifyJS.prototype.isolated = true;
-
- MinifyJS.prototype._render = function(str, options) {
- if (options.sourcemap === true) {
- options.sourceMap = true;
- options.outSourceMap = path.basename(options.filename);
- }
- return compile((function(_this) {
- return function() {
- var obj, res;
- res = _this.engine.minify(str, Object.assign(options, {
- fromString: true
- }));
- obj = {
- result: res.code
- };
- if (options.sourceMap) {
- obj.sourcemap = JSON.parse(res.map);
- obj.sourcemap.sources.pop();
- obj.sourcemap.sources.push(options.filename);
- obj.result = convert.removeMapFileComments(obj.result).trim();
- return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
- obj.sourcemap = map;
- return obj;
- });
- } else {
- return obj;
- }
- };
- })(this));
- };
-
- compile = function(fn, map) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve(res);
- };
-
- return MinifyJS;
-
- })(Adapter);
-
- module.exports = MinifyJS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/minify-js/index.js b/node_modules/accord/lib/adapters/minify-js/index.js
deleted file mode 100644
index cd8c953..0000000
--- a/node_modules/accord/lib/adapters/minify-js/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./2.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/mustache/3.x.js b/node_modules/accord/lib/adapters/mustache/3.x.js
deleted file mode 100644
index f7e8faf..0000000
--- a/node_modules/accord/lib/adapters/mustache/3.x.js
+++ /dev/null
@@ -1,85 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Mustache, W, fs, path, util,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- util = require('util');
-
- fs = require('fs');
-
- path = require('path');
-
- Mustache = (function(superClass) {
- var compile;
-
- extend(Mustache, superClass);
-
- function Mustache() {
- return Mustache.__super__.constructor.apply(this, arguments);
- }
-
- Mustache.prototype.name = 'mustache';
-
- Mustache.prototype.extensions = ['mustache', 'hogan'];
-
- Mustache.prototype.output = 'html';
-
- Mustache.prototype.supportedEngines = ['hogan.js'];
-
- Mustache.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options).render(options, options.partials);
- };
- })(this));
- };
-
- Mustache.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- Mustache.prototype._compileClient = function(str, options) {
- options.asString = true;
- return this._compile(str, options).then(function(o) {
- return {
- result: "new Hogan.Template(" + (o.result.toString()) + ");"
- };
- });
- };
-
- Mustache.prototype.clientHelpers = function() {
- var runtime_path, version;
- version = require(path.join(this.engine.__accord_path, 'package')).version;
- runtime_path = path.join(this.engine.__accord_path, "web/builds/" + version + "/hogan-" + version + ".min.js");
- return fs.readFileSync(runtime_path, 'utf8');
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Mustache;
-
- })(Adapter);
-
- module.exports = Mustache;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/mustache/index.js b/node_modules/accord/lib/adapters/mustache/index.js
deleted file mode 100644
index b022e32..0000000
--- a/node_modules/accord/lib/adapters/mustache/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./3.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/myth/1.x.js b/node_modules/accord/lib/adapters/myth/1.x.js
deleted file mode 100644
index c90f831..0000000
--- a/node_modules/accord/lib/adapters/myth/1.x.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Myth, W, convert,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- convert = require('convert-source-map');
-
- W = require('when');
-
- Myth = (function(superClass) {
- var compile;
-
- extend(Myth, superClass);
-
- function Myth() {
- return Myth.__super__.constructor.apply(this, arguments);
- }
-
- Myth.prototype.name = 'myth';
-
- Myth.prototype.extensions = ['myth', 'mcss'];
-
- Myth.prototype.output = 'css';
-
- Myth.prototype._render = function(str, options) {
- options.source = options.filename;
- delete options.filename;
- return compile(options.sourcemap, ((function(_this) {
- return function() {
- return _this.engine(str, options);
- };
- })(this)));
- };
-
- compile = function(sourcemap, fn) {
- var data, err, map, res, src;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- data = {
- result: res
- };
- if (sourcemap) {
- map = convert.fromSource(res).sourcemap;
- src = convert.removeComments(res);
- data = {
- result: src,
- sourcemap: map
- };
- }
- return W.resolve(data);
- };
-
- return Myth;
-
- })(Adapter);
-
- module.exports = Myth;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/myth/index.js b/node_modules/accord/lib/adapters/myth/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/myth/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/postcss/4.x - 5.x.js b/node_modules/accord/lib/adapters/postcss/4.x - 5.x.js
deleted file mode 100644
index 3ee2383..0000000
--- a/node_modules/accord/lib/adapters/postcss/4.x - 5.x.js
+++ /dev/null
@@ -1,64 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, PostCSS, W, convert, path, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- W = require('when');
-
- path = require('path');
-
- convert = require('convert-source-map');
-
- PostCSS = (function(superClass) {
- extend(PostCSS, superClass);
-
- function PostCSS() {
- return PostCSS.__super__.constructor.apply(this, arguments);
- }
-
- PostCSS.prototype.name = 'postcss';
-
- PostCSS.prototype.extensions = ['css', 'pcss', 'sss'];
-
- PostCSS.prototype.output = 'css';
-
- PostCSS.prototype._render = function(str, options) {
- var processor, ref, use;
- use = (ref = options.use) != null ? ref : [];
- processor = this.engine(use);
- if (options.map === true) {
- options.map = {
- inline: false
- };
- options.from = options.filename;
- }
- return W(processor.process(str, options)).then(function(res) {
- var obj;
- obj = {
- result: res.css
- };
- if (options.map) {
- obj.sourcemap = JSON.parse(res.map);
- obj.result = convert.removeMapFileComments(obj.result).trim();
- return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
- obj.sourcemap = map;
- return obj;
- });
- } else {
- return obj;
- }
- });
- };
-
- return PostCSS;
-
- })(Adapter);
-
- module.exports = PostCSS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/postcss/index.js b/node_modules/accord/lib/adapters/postcss/index.js
deleted file mode 100644
index 4d6c019..0000000
--- a/node_modules/accord/lib/adapters/postcss/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./4.x - 5.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/scss/2.x.js b/node_modules/accord/lib/adapters/scss/2.x.js
deleted file mode 100644
index 39add7f..0000000
--- a/node_modules/accord/lib/adapters/scss/2.x.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, SCSS, W, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- path = require('path');
-
- SCSS = (function(superClass) {
- extend(SCSS, superClass);
-
- function SCSS() {
- return SCSS.__super__.constructor.apply(this, arguments);
- }
-
- SCSS.prototype.name = 'scss';
-
- SCSS.prototype.extensions = ['scss', 'sass'];
-
- SCSS.prototype.output = 'css';
-
- SCSS.prototype.supportedEngines = ['node-sass'];
-
- SCSS.prototype._render = function(str, options) {
- var deferred;
- deferred = W.defer();
- if (options.sourcemap === true) {
- options.sourceMap = true;
- options.outFile = path.basename(options.filename).replace('.scss', '.css');
- options.omitSourceMapUrl = true;
- options.sourceMapContents = true;
- }
- options.file = options.filename;
- options.data = str;
- options.error = function(err) {
- return deferred.reject(err);
- };
- options.success = function(res) {
- var data;
- data = {
- result: String(res.css),
- imports: res.stats.includedFiles,
- meta: {
- entry: res.stats.entry,
- start: res.stats.start,
- end: res.stats.end,
- duration: res.stats.duration
- }
- };
- if (res.map && Object.keys(JSON.parse(res.map)).length) {
- data.sourcemap = JSON.parse(res.map);
- data.sourcemap.sources.pop();
- data.sourcemap.sources.push(options.file);
- }
- return deferred.resolve(data);
- };
- this.engine.render(options);
- return deferred.promise;
- };
-
- return SCSS;
-
- })(Adapter);
-
- module.exports = SCSS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/scss/3.x - 4.x.js b/node_modules/accord/lib/adapters/scss/3.x - 4.x.js
deleted file mode 100644
index 739d558..0000000
--- a/node_modules/accord/lib/adapters/scss/3.x - 4.x.js
+++ /dev/null
@@ -1,72 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, SCSS, W, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- path = require('path');
-
- SCSS = (function(superClass) {
- extend(SCSS, superClass);
-
- function SCSS() {
- return SCSS.__super__.constructor.apply(this, arguments);
- }
-
- SCSS.prototype.name = 'scss';
-
- SCSS.prototype.extensions = ['scss', 'sass'];
-
- SCSS.prototype.output = 'css';
-
- SCSS.prototype.supportedEngines = ['node-sass'];
-
- SCSS.prototype._render = function(str, options) {
- var deferred;
- deferred = W.defer();
- if (options.sourcemap === true) {
- options.sourceMap = true;
- options.outFile = options.filename.replace('.scss', '.css');
- options.omitSourceMapUrl = true;
- options.sourceMapContents = true;
- }
- options.file = options.filename;
- options.data = str;
- this.engine.render(options, function(err, res) {
- var basePath, data;
- if (err) {
- return deferred.reject(err);
- }
- data = {
- result: String(res.css),
- imports: res.stats.includedFiles,
- meta: {
- entry: res.stats.entry,
- start: res.stats.start,
- end: res.stats.end,
- duration: res.stats.duration
- }
- };
- if (res.map) {
- data.sourcemap = JSON.parse(res.map.toString('utf8'));
- basePath = path.dirname(options.filename);
- data.sourcemap.sources = data.sourcemap.sources.map(function(relativePath) {
- return path.join(basePath, relativePath);
- });
- }
- return deferred.resolve(data);
- });
- return deferred.promise;
- };
-
- return SCSS;
-
- })(Adapter);
-
- module.exports = SCSS;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/scss/index.js b/node_modules/accord/lib/adapters/scss/index.js
deleted file mode 100644
index ae858cd..0000000
--- a/node_modules/accord/lib/adapters/scss/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./3.x - 4.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/stylus/0.x.js b/node_modules/accord/lib/adapters/stylus/0.x.js
deleted file mode 100644
index 23cd276..0000000
--- a/node_modules/accord/lib/adapters/stylus/0.x.js
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Stylus, flatten, nodefn, sourcemaps,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- sourcemaps = require('../../sourcemaps');
-
- nodefn = require('when/node/function');
-
- flatten = require('lodash.flatten');
-
- Stylus = (function(superClass) {
- extend(Stylus, superClass);
-
- function Stylus() {
- return Stylus.__super__.constructor.apply(this, arguments);
- }
-
- Stylus.prototype.name = 'stylus';
-
- Stylus.prototype.extensions = ['styl'];
-
- Stylus.prototype.output = 'css';
-
- Stylus.prototype._render = function(str, options) {
- var base, defines, i, imports, includes, j, k, l, len, len1, len2, m, obj, plugins, rawDefines, sets, v;
- sets = {};
- defines = {};
- rawDefines = {};
- includes = [];
- imports = [];
- plugins = [];
- if (options.sourcemap === true) {
- options.sourcemap = {
- comment: false
- };
- }
- for (k in options) {
- v = options[k];
- switch (k) {
- case 'define':
- Object.assign(defines, v);
- break;
- case 'rawDefine':
- Object.assign(rawDefines, v);
- break;
- case 'include':
- includes.push(v);
- break;
- case 'import':
- imports.push(v);
- break;
- case 'use':
- plugins.push(v);
- break;
- case 'url':
- if (typeof v === 'string') {
- obj = {};
- obj[v] = this.engine.url();
- Object.assign(defines, obj);
- } else {
- obj = {};
- obj[v.name] = this.engine.url({
- limit: v.limit != null ? v.limit : 30000,
- paths: v.paths || []
- });
- Object.assign(defines, obj);
- }
- break;
- default:
- sets[k] = v;
- }
- }
- includes = flatten(includes);
- imports = flatten(imports);
- plugins = flatten(plugins);
- base = this.engine(str);
- for (k in sets) {
- v = sets[k];
- base.set(k, v);
- }
- for (k in defines) {
- v = defines[k];
- base.define(k, v);
- }
- for (k in rawDefines) {
- v = rawDefines[k];
- base.define(k, v, true);
- }
- for (j = 0, len = includes.length; j < len; j++) {
- i = includes[j];
- base.include(i);
- }
- for (l = 0, len1 = imports.length; l < len1; l++) {
- i = imports[l];
- base["import"](i);
- }
- for (m = 0, len2 = plugins.length; m < len2; m++) {
- i = plugins[m];
- base.use(i);
- }
- return nodefn.call(base.render.bind(base)).then(function(res) {
- return obj = {
- result: res
- };
- }).then(function(obj) {
- if (base.sourcemap) {
- return sourcemaps.inline_sources(base.sourcemap).then(function(map) {
- obj.sourcemap = map;
- return obj;
- });
- } else {
- return obj;
- }
- });
- };
-
- return Stylus;
-
- })(Adapter);
-
- module.exports = Stylus;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/stylus/index.js b/node_modules/accord/lib/adapters/stylus/index.js
deleted file mode 100644
index f01d7fc..0000000
--- a/node_modules/accord/lib/adapters/stylus/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/swig/1.x.js b/node_modules/accord/lib/adapters/swig/1.x.js
deleted file mode 100644
index 41b9925..0000000
--- a/node_modules/accord/lib/adapters/swig/1.x.js
+++ /dev/null
@@ -1,103 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Swig, UglifyJS, W, fs, path,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- path = require('path');
-
- fs = require('fs');
-
- W = require('when');
-
- UglifyJS = require('uglify-js');
-
- Swig = (function(superClass) {
- var compile;
-
- extend(Swig, superClass);
-
- function Swig() {
- return Swig.__super__.constructor.apply(this, arguments);
- }
-
- Swig.prototype.name = 'swig';
-
- Swig.prototype.extensions = ['swig'];
-
- Swig.prototype.output = 'html';
-
- Swig.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.render(str, options);
- };
- })(this));
- };
-
- Swig.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compile(str, options);
- };
- })(this));
- };
-
- Swig.prototype._compileClient = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.precompile(str, options).tpl.toString();
- };
- })(this));
- };
-
- Swig.prototype.renderFile = function(path, options) {
- if (options == null) {
- options = {};
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.renderFile(path, options.locals);
- };
- })(this));
- };
-
- Swig.prototype.compileFile = function(path, options) {
- if (options == null) {
- options = {};
- }
- return compile((function(_this) {
- return function() {
- return _this.engine.compileFile(path, options);
- };
- })(this));
- };
-
- Swig.prototype.clientHelpers = function() {
- var runtime_path;
- runtime_path = path.join(this.engine.__accord_path, 'dist/swig.min.js');
- return fs.readFileSync(runtime_path, 'utf8');
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Swig;
-
- })(Adapter);
-
- module.exports = Swig;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/swig/index.js b/node_modules/accord/lib/adapters/swig/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/swig/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/toffee/0.1.x.js b/node_modules/accord/lib/adapters/toffee/0.1.x.js
deleted file mode 100644
index b50289f..0000000
--- a/node_modules/accord/lib/adapters/toffee/0.1.x.js
+++ /dev/null
@@ -1,79 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, Toffee, W, fs,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- fs = require('fs');
-
- Toffee = (function(superClass) {
- var compile;
-
- extend(Toffee, superClass);
-
- function Toffee() {
- return Toffee.__super__.constructor.apply(this, arguments);
- }
-
- Toffee.prototype.name = 'toffee';
-
- Toffee.prototype.extensions = ['toffee'];
-
- Toffee.prototype.output = 'html';
-
- Toffee.prototype.supportedEngines = ['toffee'];
-
- Toffee.prototype._render = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.str_render(str, options, function(err, res) {
- if (res.indexOf("
") !== -1) {
- throw res;
- } else {
- return res;
- }
- });
- };
- })(this));
- };
-
- Toffee.prototype._compile = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.compileStr(str).toString();
- };
- })(this));
- };
-
- Toffee.prototype._compileClient = function(str, options) {
- return compile((function(_this) {
- return function() {
- return _this.engine.configurable_compile(str, options);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return Toffee;
-
- })(Adapter);
-
- module.exports = Toffee;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/toffee/index.js b/node_modules/accord/lib/adapters/toffee/index.js
deleted file mode 100644
index 67df43e..0000000
--- a/node_modules/accord/lib/adapters/toffee/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./0.1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/typescript/1.x.js b/node_modules/accord/lib/adapters/typescript/1.x.js
deleted file mode 100644
index a37780b..0000000
--- a/node_modules/accord/lib/adapters/typescript/1.x.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var Adapter, TypeScript, W,
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
-
- Adapter = require('../../adapter_base');
-
- W = require('when');
-
- TypeScript = (function(superClass) {
- var compile;
-
- extend(TypeScript, superClass);
-
- function TypeScript() {
- return TypeScript.__super__.constructor.apply(this, arguments);
- }
-
- TypeScript.prototype.name = 'typescript';
-
- TypeScript.prototype.engineName = 'typescript-compiler';
-
- TypeScript.prototype.supportedEngines = ['typescript-compiler'];
-
- TypeScript.prototype.extensions = ['ts'];
-
- TypeScript.prototype.output = 'js';
-
- TypeScript.prototype.isolated = true;
-
- TypeScript.prototype._render = function(str, options) {
- var throwOnError;
- throwOnError = function(err) {
- throw err;
- };
- return compile((function(_this) {
- return function() {
- return _this.engine.compileString(str, void 0, options, throwOnError);
- };
- })(this));
- };
-
- compile = function(fn) {
- var err, res;
- try {
- res = fn();
- } catch (error) {
- err = error;
- return W.reject(err);
- }
- return W.resolve({
- result: res
- });
- };
-
- return TypeScript;
-
- })(Adapter);
-
- module.exports = TypeScript;
-
-}).call(this);
diff --git a/node_modules/accord/lib/adapters/typescript/index.js b/node_modules/accord/lib/adapters/typescript/index.js
deleted file mode 100644
index d336eea..0000000
--- a/node_modules/accord/lib/adapters/typescript/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- module.exports = require('./1.x');
-
-}).call(this);
diff --git a/node_modules/accord/lib/index.js b/node_modules/accord/lib/index.js
deleted file mode 100644
index aeae6a2..0000000
--- a/node_modules/accord/lib/index.js
+++ /dev/null
@@ -1,98 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var abstract_mapper, adapter_to_name, fs, get_version, glob, indx, match_version_to_adapter, name_to_adapter, path, resolve, resolve_engine_path, semver, supports;
-
- path = require('path');
-
- fs = require('fs');
-
- glob = require('glob');
-
- indx = require('indx');
-
- resolve = require('resolve');
-
- semver = require('semver');
-
- exports.supports = supports = function(name) {
- name = adapter_to_name(name);
- return !!glob.sync("" + (path.join(__dirname, 'adapters', name))).length;
- };
-
- exports.load = function(name, custom_path, engine_name) {
- var adapter_name, engine_path, version;
- name = adapter_to_name(name);
- engine_path = resolve_engine_path(name, custom_path);
- version = get_version(engine_path);
- adapter_name = match_version_to_adapter(name, version);
- if (!adapter_name) {
- throw new Error(name + " version " + version + " is not currently supported");
- }
- return new (require(adapter_name))(engine_name, engine_path);
- };
-
- exports.all = function() {
- return indx(path.join(__dirname, 'adapters'));
- };
-
- exports.abstract_mapper = abstract_mapper = function(name, direction) {
- var name_maps, res;
- name_maps = [['markdown', 'marked'], ['minify-js', 'uglify-js'], ['minify-css', 'clean-css'], ['minify-html', 'html-minifier'], ['mustache', 'hogan.js'], ['scss', 'node-sass'], ['haml', 'hamljs'], ['escape-html', 'he'], ['jsx', 'react-tools'], ['cjsx', 'coffee-react-transform'], ['babel', 'babel-core'], ['typescript', 'typescript-compiler']];
- res = null;
- name_maps.forEach(function(n) {
- if (direction === 'left' && n[0] === name) {
- res = n[1];
- }
- if (direction === 'right' && n[1] === name) {
- return res = n[0];
- }
- });
- return res || name;
- };
-
- exports.adapter_to_name = adapter_to_name = function(name) {
- return abstract_mapper(name, 'right');
- };
-
- exports.name_to_adapter = name_to_adapter = function(name) {
- return abstract_mapper(name, 'left');
- };
-
- resolve_engine_path = function(name, custom_path) {
- var filepath;
- filepath = custom_path != null ? resolve.sync(name_to_adapter(name), {
- basedir: custom_path
- }) : require.resolve(name_to_adapter(name));
- while (true) {
- if (filepath === '/') {
- throw new Error("cannot resolve root of node module " + name);
- }
- filepath = path.dirname(filepath);
- if (fs.existsSync(path.join(filepath, 'package.json'))) {
- return filepath;
- }
- }
- };
-
- get_version = function(engine_path) {
- var err;
- try {
- return require(engine_path + '/package.json').version;
- } catch (error) {
- err = error;
- }
- };
-
- match_version_to_adapter = function(name, version) {
- var adapter, adapters, i, len;
- adapters = fs.readdirSync(path.join(__dirname, 'adapters', name));
- for (i = 0, len = adapters.length; i < len; i++) {
- adapter = adapters[i];
- adapter = adapter.replace(/\.(?:js|coffee)$/, '');
- if (semver.satisfies(version, adapter)) {
- return path.join(__dirname, 'adapters', name, adapter);
- }
- }
- };
-
-}).call(this);
diff --git a/node_modules/accord/lib/sourcemaps.js b/node_modules/accord/lib/sourcemaps.js
deleted file mode 100644
index 28beaad..0000000
--- a/node_modules/accord/lib/sourcemaps.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Generated by CoffeeScript 1.12.1
-(function() {
- var W, fs, node;
-
- W = require('when');
-
- node = require('when/node');
-
- fs = require('fs');
-
-
- /**
- * Reads a source map's sources and inlines them in the `sourcesContents` key,
- * returning the full map.
- *
- * @param {Object} map - source map v3
- * @return {Promise} a promise for the sourcemap updated with contents
- */
-
- exports.inline_sources = function(map) {
- if (map.sourcesContent) {
- return W.resolve(map);
- }
- return W.map(map.sources, function(source) {
- return node.call(fs.readFile.bind(fs), source, 'utf8');
- }).then(function(contents) {
- map.sourcesContent = contents;
- return map;
- })["catch"](function() {
- return map;
- });
- };
-
-}).call(this);
diff --git a/node_modules/accord/license.md b/node_modules/accord/license.md
deleted file mode 100644
index 6e8272b..0000000
--- a/node_modules/accord/license.md
+++ /dev/null
@@ -1,10 +0,0 @@
-License (MIT)
--------------
-
-Copyright (c) 2013 Jeff Escalante
-
-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/node_modules/accord/node_modules/.bin/semver b/node_modules/accord/node_modules/.bin/semver
deleted file mode 120000
index 317eb29..0000000
--- a/node_modules/accord/node_modules/.bin/semver
+++ /dev/null
@@ -1 +0,0 @@
-../semver/bin/semver
\ No newline at end of file
diff --git a/node_modules/accord/node_modules/convert-source-map/.npmignore b/node_modules/accord/node_modules/convert-source-map/.npmignore
deleted file mode 100644
index de78e27..0000000
--- a/node_modules/accord/node_modules/convert-source-map/.npmignore
+++ /dev/null
@@ -1,16 +0,0 @@
-lib-cov
-*.seed
-*.log
-*.csv
-*.dat
-*.out
-*.pid
-*.gz
-
-pids
-logs
-results
-
-node_modules
-npm-debug.log
-tmp
diff --git a/node_modules/accord/node_modules/convert-source-map/.travis.yml b/node_modules/accord/node_modules/convert-source-map/.travis.yml
deleted file mode 100644
index 86bd200..0000000
--- a/node_modules/accord/node_modules/convert-source-map/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
- - "0.12"
- - "4"
- - "6"
- - "node"
diff --git a/node_modules/accord/node_modules/convert-source-map/LICENSE b/node_modules/accord/node_modules/convert-source-map/LICENSE
deleted file mode 100644
index 41702c5..0000000
--- a/node_modules/accord/node_modules/convert-source-map/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright 2013 Thorsten Lorenz.
-All rights reserved.
-
-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/node_modules/accord/node_modules/convert-source-map/README.md b/node_modules/accord/node_modules/convert-source-map/README.md
deleted file mode 100644
index 33893db..0000000
--- a/node_modules/accord/node_modules/convert-source-map/README.md
+++ /dev/null
@@ -1,125 +0,0 @@
-# convert-source-map [](http://travis-ci.org/thlorenz/convert-source-map)
-
-[](https://nodei.co/npm/convert-source-map/)
-
-Converts a source-map from/to different formats and allows adding/changing properties.
-
-```js
-var convert = require('convert-source-map');
-
-var json = convert
- .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
- .toJSON();
-
-var modified = convert
- .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
- .setProperty('sources', [ 'CONSOLE.LOG("HI");' ])
- .toJSON();
-
-console.log(json);
-console.log(modified);
-```
-
-```json
-{"version":3,"file":"foo.js","sources":["console.log(\"hi\");"],"names":[],"mappings":"AAAA","sourceRoot":"/"}
-{"version":3,"file":"foo.js","sources":["CONSOLE.LOG(\"HI\");"],"names":[],"mappings":"AAAA","sourceRoot":"/"}
-```
-
-## API
-
-### fromObject(obj)
-
-Returns source map converter from given object.
-
-### fromJSON(json)
-
-Returns source map converter from given json string.
-
-### fromBase64(base64)
-
-Returns source map converter from given base64 encoded json string.
-
-### fromComment(comment)
-
-Returns source map converter from given base64 encoded json string prefixed with `//# sourceMappingURL=...`.
-
-### fromMapFileComment(comment, mapFileDir)
-
-Returns source map converter from given `filename` by parsing `//# sourceMappingURL=filename`.
-
-`filename` must point to a file that is found inside the `mapFileDir`. Most tools store this file right next to the
-generated file, i.e. the one containing the source map.
-
-### fromSource(source)
-
-Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was found.
-
-### fromMapFileSource(source, mapFileDir)
-
-Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was
-found.
-
-The sourcemap will be read from the map file found by parsing `# sourceMappingURL=file` comment. For more info see
-fromMapFileComment.
-
-### toObject()
-
-Returns a copy of the underlying source map.
-
-### toJSON([space])
-
-Converts source map to json string. If `space` is given (optional), this will be passed to
-[JSON.stringify](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/stringify) when the
-JSON string is generated.
-
-### toBase64()
-
-Converts source map to base64 encoded json string.
-
-### toComment([options])
-
-Converts source map to an inline comment that can be appended to the source-file.
-
-By default, the comment is formatted like: `//# sourceMappingURL=...`, which you would
-normally see in a JS source file.
-
-When `options.multiline == true`, the comment is formatted like: `/*# sourceMappingURL=... */`, which you would find in a CSS source file.
-
-### addProperty(key, value)
-
-Adds given property to the source map. Throws an error if property already exists.
-
-### setProperty(key, value)
-
-Sets given property to the source map. If property doesn't exist it is added, otherwise its value is updated.
-
-### getProperty(key)
-
-Gets given property of the source map.
-
-### removeComments(src)
-
-Returns `src` with all source map comments removed
-
-### removeMapFileComments(src)
-
-Returns `src` with all source map comments pointing to map files removed.
-
-### commentRegex
-
-Returns the regex used to find source map comments.
-
-### mapFileCommentRegex
-
-Returns the regex used to find source map comments pointing to map files.
-
-### generateMapFileComment(file, [options])
-
-Returns a comment that links to an external source map via `file`.
-
-By default, the comment is formatted like: `//# sourceMappingURL=...`, which you would normally see in a JS source file.
-
-When `options.multiline == true`, the comment is formatted like: `/*# sourceMappingURL=... */`, which you would find in a CSS source file.
-
-
-[](https://bitdeli.com/free "Bitdeli Badge")
diff --git a/node_modules/accord/node_modules/convert-source-map/example/comment-to-json.js b/node_modules/accord/node_modules/convert-source-map/example/comment-to-json.js
deleted file mode 100644
index dfab186..0000000
--- a/node_modules/accord/node_modules/convert-source-map/example/comment-to-json.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var convert = require('..');
-
-var json = convert
- .fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
- .toJSON();
-
-var modified = convert
- .fromComment('//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vLmpzIiwic291cmNlcyI6WyJjb25zb2xlLmxvZyhcImhpXCIpOyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
- .setProperty('sources', [ 'CONSOLE.LOG("HI");' ])
- .toJSON();
-
-console.log(json);
-console.log(modified);
diff --git a/node_modules/accord/node_modules/convert-source-map/index.js b/node_modules/accord/node_modules/convert-source-map/index.js
deleted file mode 100644
index 964f50d..0000000
--- a/node_modules/accord/node_modules/convert-source-map/index.js
+++ /dev/null
@@ -1,140 +0,0 @@
-'use strict';
-var fs = require('fs');
-var path = require('path');
-
-var commentRx = /^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/mg;
-var mapFileCommentRx =
- //Example (Extra space between slashes added to solve Safari bug. Exclude space in production):
- // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */
- /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg
-
-function decodeBase64(base64) {
- return new Buffer(base64, 'base64').toString();
-}
-
-function stripComment(sm) {
- return sm.split(',').pop();
-}
-
-function readFromFileMap(sm, dir) {
- // NOTE: this will only work on the server since it attempts to read the map file
-
- mapFileCommentRx.lastIndex = 0;
- var r = mapFileCommentRx.exec(sm);
-
- // for some odd reason //# .. captures in 1 and /* .. */ in 2
- var filename = r[1] || r[2];
- var filepath = path.resolve(dir, filename);
-
- try {
- return fs.readFileSync(filepath, 'utf8');
- } catch (e) {
- throw new Error('An error occurred while trying to read the map file at ' + filepath + '\n' + e);
- }
-}
-
-function Converter (sm, opts) {
- opts = opts || {};
-
- if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir);
- if (opts.hasComment) sm = stripComment(sm);
- if (opts.isEncoded) sm = decodeBase64(sm);
- if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm);
-
- this.sourcemap = sm;
-}
-
-Converter.prototype.toJSON = function (space) {
- return JSON.stringify(this.sourcemap, null, space);
-};
-
-Converter.prototype.toBase64 = function () {
- var json = this.toJSON();
- return new Buffer(json).toString('base64');
-};
-
-Converter.prototype.toComment = function (options) {
- var base64 = this.toBase64();
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
- return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;
-};
-
-// returns copy instead of original
-Converter.prototype.toObject = function () {
- return JSON.parse(this.toJSON());
-};
-
-Converter.prototype.addProperty = function (key, value) {
- if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead');
- return this.setProperty(key, value);
-};
-
-Converter.prototype.setProperty = function (key, value) {
- this.sourcemap[key] = value;
- return this;
-};
-
-Converter.prototype.getProperty = function (key) {
- return this.sourcemap[key];
-};
-
-exports.fromObject = function (obj) {
- return new Converter(obj);
-};
-
-exports.fromJSON = function (json) {
- return new Converter(json, { isJSON: true });
-};
-
-exports.fromBase64 = function (base64) {
- return new Converter(base64, { isEncoded: true });
-};
-
-exports.fromComment = function (comment) {
- comment = comment
- .replace(/^\/\*/g, '//')
- .replace(/\*\/$/g, '');
-
- return new Converter(comment, { isEncoded: true, hasComment: true });
-};
-
-exports.fromMapFileComment = function (comment, dir) {
- return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true });
-};
-
-// Finds last sourcemap comment in file or returns null if none was found
-exports.fromSource = function (content) {
- var m = content.match(commentRx);
- return m ? exports.fromComment(m.pop()) : null;
-};
-
-// Finds last sourcemap comment in file or returns null if none was found
-exports.fromMapFileSource = function (content, dir) {
- var m = content.match(mapFileCommentRx);
- return m ? exports.fromMapFileComment(m.pop(), dir) : null;
-};
-
-exports.removeComments = function (src) {
- return src.replace(commentRx, '');
-};
-
-exports.removeMapFileComments = function (src) {
- return src.replace(mapFileCommentRx, '');
-};
-
-exports.generateMapFileComment = function (file, options) {
- var data = 'sourceMappingURL=' + file;
- return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;
-};
-
-Object.defineProperty(exports, 'commentRegex', {
- get: function getCommentRegex () {
- return commentRx;
- }
-});
-
-Object.defineProperty(exports, 'mapFileCommentRegex', {
- get: function getMapFileCommentRegex () {
- return mapFileCommentRx;
- }
-});
diff --git a/node_modules/accord/node_modules/convert-source-map/package.json b/node_modules/accord/node_modules/convert-source-map/package.json
deleted file mode 100644
index 6ded0d5..0000000
--- a/node_modules/accord/node_modules/convert-source-map/package.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "convert-source-map@^1.2.0",
- "scope": null,
- "escapedName": "convert-source-map",
- "name": "convert-source-map",
- "rawSpec": "^1.2.0",
- "spec": ">=1.2.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/accord"
- ]
- ],
- "_from": "convert-source-map@>=1.2.0 <2.0.0",
- "_id": "convert-source-map@1.4.0",
- "_inCache": true,
- "_location": "/accord/convert-source-map",
- "_nodeVersion": "6.7.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/convert-source-map-1.4.0.tgz_1487019816877_0.5536009217612445"
- },
- "_npmUser": {
- "name": "thlorenz",
- "email": "thlorenz@gmx.de"
- },
- "_npmVersion": "2.15.11",
- "_phantomChildren": {},
- "_requested": {
- "raw": "convert-source-map@^1.2.0",
- "scope": null,
- "escapedName": "convert-source-map",
- "name": "convert-source-map",
- "rawSpec": "^1.2.0",
- "spec": ">=1.2.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/accord"
- ],
- "_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.4.0.tgz",
- "_shasum": "e3dad195bf61bfe13a7a3c73e9876ec14a0268f3",
- "_shrinkwrap": null,
- "_spec": "convert-source-map@^1.2.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/accord",
- "author": {
- "name": "Thorsten Lorenz",
- "email": "thlorenz@gmx.de",
- "url": "http://thlorenz.com"
- },
- "bugs": {
- "url": "https://github.com/thlorenz/convert-source-map/issues"
- },
- "dependencies": {},
- "description": "Converts a source-map from/to different formats and allows adding/changing properties.",
- "devDependencies": {
- "inline-source-map": "~0.6.2",
- "tap": "~9.0.0"
- },
- "directories": {},
- "dist": {
- "shasum": "e3dad195bf61bfe13a7a3c73e9876ec14a0268f3",
- "tarball": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.4.0.tgz"
- },
- "engine": {
- "node": ">=0.6"
- },
- "gitHead": "fbd66527ab7972eff199a712d8e14ebb07957865",
- "homepage": "https://github.com/thlorenz/convert-source-map",
- "keywords": [
- "convert",
- "sourcemap",
- "source",
- "map",
- "browser",
- "debug"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "thlorenz",
- "email": "thlorenz@gmx.de"
- }
- ],
- "name": "convert-source-map",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/thlorenz/convert-source-map.git"
- },
- "scripts": {
- "test": "tap test/*.js --color"
- },
- "version": "1.4.0"
-}
diff --git a/node_modules/accord/node_modules/convert-source-map/test/comment-regex.js b/node_modules/accord/node_modules/convert-source-map/test/comment-regex.js
deleted file mode 100644
index 16331cc..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/comment-regex.js
+++ /dev/null
@@ -1,138 +0,0 @@
-'use strict';
-/*jshint asi: true */
-
-var test = require('tap').test
- , generator = require('inline-source-map')
- , rx = require('..').commentRegex
- , mapFileRx = require('..').mapFileCommentRegex
-
-function comment(prefix, suffix) {
- rx.lastIndex = 0;
- return rx.test(prefix + 'sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9' + suffix)
-}
-
-function commentWithCharSet(prefix, suffix, sep) {
- sep = sep || ':';
- rx.lastIndex = 0;
- return rx.test(prefix + 'sourceMappingURL=data:application/json;charset' + sep +'utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9' + suffix)
-}
-
-// Source Map v2 Tests
-test('comment regex old spec - @', function (t) {
- [
- '//@ ',
- ' //@ ', // with leading space
- '\t//@ ', // with leading tab
- '//@ ', // with leading text
- '/*@ ', // multi line style
- ' /*@ ', // multi line style with leading spaces
- '\t/*@ ', // multi line style with leading tab
- '/*@ ', // multi line style with leading text
- ].forEach(function (x) {
- t.ok(comment(x, ''), 'matches ' + x)
- t.ok(commentWithCharSet(x, ''), 'matches ' + x + ' with charset')
- t.ok(commentWithCharSet(x, '', '='), 'matches ' + x + ' with charset')
- });
-
- [
- ' @// @',
- ' @/* @',
- ].forEach(function (x) { t.ok(!comment(x, ''), 'should not match ' + x) })
-
- t.end()
-})
-
-test('comment regex new spec - #', function (t) {
- [
- ' //# ', // with leading spaces
- '\t//# ', // with leading tab
- '//# ', // with leading text
- '/*# ', // multi line style
- ' /*# ', // multi line style with leading spaces
- '\t/*# ', // multi line style with leading tab
- '/*# ', // multi line style with leading text
- ].forEach(function (x) {
- t.ok(comment(x, ''), 'matches ' + x)
- t.ok(commentWithCharSet(x, ''), 'matches ' + x + ' with charset')
- t.ok(commentWithCharSet(x, '', '='), 'matches ' + x + ' with charset')
- });
-
- [
- ' #// #',
- ' #/* #',
- ].forEach(function (x) { t.ok(!comment(x, ''), 'should not match ' + x) })
-
- t.end()
-})
-
-function mapFileCommentWrap(s1, s2) {
- mapFileRx.lastIndex = 0;
- return mapFileRx.test(s1 + 'sourceMappingURL=foo.js.map' + s2)
-}
-
-test('mapFileComment regex old spec - @', function (t) {
-
- [
- ['//@ ', ''],
- [' //@ ', ''], // with leading spaces
- ['\t//@ ', ''], // with a leading tab
- ['///@ ', ''], // with a leading text
- [';//@ ', ''], // with a leading text
- ['return//@ ', ''], // with a leading text
- ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) });
-
- [
- [' @// @', ''],
- ['var sm = "//@ ', '"'], // not inside a string
- ['var sm = \'//@ ', '\''], // not inside a string
- ['var sm = \' //@ ', '\''], // not inside a string
- ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) })
- t.end()
-})
-
-test('mapFileComment regex new spec - #', function (t) {
- [
- ['//# ', ''],
- [' //# ', ''], // with leading space
- ['\t//# ', ''], // with leading tab
- ['///# ', ''], // with leading text
- [';//# ', ''], // with leading text
- ['return//# ', ''], // with leading text
- ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) });
-
- [
- [' #// #', ''],
- ['var sm = "//# ', '"'], // not inside a string
- ['var sm = \'//# ', '\''], // not inside a string
- ['var sm = \' //# ', '\''], // not inside a string
- ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) })
- t.end()
-})
-
-test('mapFileComment regex /* */ old spec - @', function (t) {
- [ [ '/*@ ', '*/' ]
- , [' /*@ ', ' */ ' ] // with leading spaces
- , [ '\t/*@ ', ' \t*/\t '] // with a leading tab
- , [ 'leading string/*@ ', '*/' ] // with a leading string
- , [ '/*@ ', ' \t*/\t '] // with trailing whitespace
- ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) });
-
- [ ['/*@ ', ' */ */ ' ], // not the last thing on its line
- ['/*@ ', ' */ more text ' ] // not the last thing on its line
- ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) });
- t.end()
-})
-
-test('mapFileComment regex /* */ new spec - #', function (t) {
- [ [ '/*# ', '*/' ]
- , [' /*# ', ' */ ' ] // with leading spaces
- , [ '\t/*# ', ' \t*/\t '] // with a leading tab
- , [ 'leading string/*# ', '*/' ] // with a leading string
- , [ '/*# ', ' \t*/\t '] // with trailing whitespace
- ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) });
-
- [ ['/*# ', ' */ */ ' ], // not the last thing on its line
- ['/*# ', ' */ more text ' ] // not the last thing on its line
- ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) });
- t.end()
-})
diff --git a/node_modules/accord/node_modules/convert-source-map/test/convert-source-map.js b/node_modules/accord/node_modules/convert-source-map/test/convert-source-map.js
deleted file mode 100644
index f07c9f1..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/convert-source-map.js
+++ /dev/null
@@ -1,213 +0,0 @@
-'use strict';
-/*jshint asi: true */
-
-var test = require('tap').test
- , generator = require('inline-source-map')
- , convert = require('..')
-
-var gen = generator({charset:"utf-8"})
- .addMappings('foo.js', [{ original: { line: 2, column: 3 } , generated: { line: 5, column: 10 } }], { line: 5 })
- .addGeneratedMappings('bar.js', 'var a = 2;\nconsole.log(a)', { line: 23, column: 22 })
-
- , base64 = gen.base64Encode()
- , comment = gen.inlineMappingUrl()
- , json = gen.toString()
- , obj = JSON.parse(json)
-
-test('different formats', function (t) {
-
- t.equal(convert.fromComment(comment).toComment(), comment, 'comment -> comment')
- t.equal(convert.fromComment(comment).toBase64(), base64, 'comment -> base64')
- t.equal(convert.fromComment(comment).toJSON(), json, 'comment -> json')
- t.deepEqual(convert.fromComment(comment).toObject(), obj, 'comment -> object')
-
- t.equal(convert.fromBase64(base64).toBase64(), base64, 'base64 -> base64')
- t.equal(convert.fromBase64(base64).toComment(), comment, 'base64 -> comment')
- t.equal(convert.fromBase64(base64).toJSON(), json, 'base64 -> json')
- t.deepEqual(convert.fromBase64(base64).toObject(), obj, 'base64 -> object')
-
- t.equal(convert.fromJSON(json).toJSON(), json, 'json -> json')
- t.equal(convert.fromJSON(json).toBase64(), base64, 'json -> base64')
- t.equal(convert.fromJSON(json).toComment(), comment, 'json -> comment')
- t.deepEqual(convert.fromJSON(json).toObject(), obj, 'json -> object')
- t.end()
-})
-
-test('to object returns a copy', function (t) {
- var c = convert.fromJSON(json)
- var o = c.toObject()
- o.version = '99';
- t.equal(c.toObject().version, 3, 'setting property on returned object does not affect original')
- t.end()
-})
-
-test('to multi-line map', function (t) {
- var c = convert.fromObject(obj);
- var s = c.toComment({ multiline: true });
- t.similar(s, /^\/\*# sourceMappingURL=.+ \*\/$/);
- t.end();
-})
-
-test('to map file comment', function (t) {
- t.equal(convert.generateMapFileComment('index.js.map'), '//# sourceMappingURL=index.js.map');
- t.equal(convert.generateMapFileComment('index.css.map', { multiline: true }), '/*# sourceMappingURL=index.css.map */');
- t.end();
-})
-
-test('from source', function (t) {
- var foo = [
- 'function foo() {'
- , ' console.log("hello I am foo");'
- , ' console.log("who are you");'
- , '}'
- , ''
- , 'foo();'
- , ''
- ].join('\n')
- , map = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
- , otherMap = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,otherZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
-
- function getComment(src) {
- var map = convert.fromSource(src);
- return map ? map.toComment() : null;
- }
-
- t.equal(getComment(foo), null, 'no comment returns null')
- t.equal(getComment(foo + map), map, 'beginning of last line')
- t.equal(getComment(foo + ' ' + map), map, 'indented of last line')
- t.equal(getComment(foo + ' ' + map + '\n\n'), map, 'indented on last non empty line')
- t.equal(getComment(foo + map + '\nconsole.log("more code");\nfoo()\n'), map, 'in the middle of code')
- t.equal(getComment(foo + otherMap + '\n' + map), map, 'finds last map in source')
- t.end()
-})
-
-test('from source with a large source', function (t) {
- var foo = [
- 'function foo() {'
- , ' console.log("hello I am foo");'
- , ' console.log("who are you");'
- , '}'
- , ''
- , 'foo();'
- , ''
- ].join('\n')
- , map = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
- , otherMap = '//# sourceMappingURL=data:application/json;charset=utf-8;base64,otherZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
-
- function getComment(src) {
- var map = convert.fromSource(src, true);
- return map ? map.toComment() : null;
- }
-
- t.equal(getComment(foo), null, 'no comment returns null')
- t.equal(getComment(foo + map), map, 'beginning of last line')
- t.equal(getComment(foo + ' ' + map), map, 'indented of last line')
- t.equal(getComment(foo + ' ' + map + '\n\n'), map, 'indented on last non empty line')
- t.equal(getComment(foo + map + '\nconsole.log("more code");\nfoo()\n'), map, 'in the middle of code')
- t.equal(getComment(foo + otherMap + '\n' + map), map, 'finds last map in source')
- t.end()
-})
-
-test('remove comments', function (t) {
- var foo = [
- 'function foo() {'
- , ' console.log("hello I am foo");'
- , ' console.log("who are you");'
- , '}'
- , ''
- , 'foo();'
- , ''
- ].join('\n')
- // this one is old spec on purpose
- , map = '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
- , otherMap = '//# sourceMappingURL=data:application/json;base64,ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9'
- , extraCode = '\nconsole.log("more code");\nfoo()\n'
-
- t.equal(convert.removeComments(foo + map), foo, 'from last line')
- t.equal(convert.removeComments(foo + map + extraCode), foo + extraCode, 'from the middle of code')
- t.equal(convert.removeComments(foo + otherMap + extraCode + map), foo + extraCode, 'multiple comments from the middle of code')
- t.end()
-})
-
-test('remove map file comments', function (t) {
- var foo = [
- 'function foo() {'
- , ' console.log("hello I am foo");'
- , ' console.log("who are you");'
- , '}'
- , ''
- , 'foo();'
- , ''
- ].join('\n')
- , fileMap1 = '//# sourceMappingURL=foo.js.map'
- , fileMap2 = '/*# sourceMappingURL=foo.js.map */';
-
- t.equal(convert.removeMapFileComments(foo + fileMap1), foo, '// style filemap comment')
- t.equal(convert.removeMapFileComments(foo + fileMap2), foo, '/* */ style filemap comment')
- t.end()
-})
-
-test('pretty json', function (t) {
- var mod = convert.fromJSON(json).toJSON(2)
- , expected = JSON.stringify(obj, null, 2);
-
- t.equal(
- mod
- , expected
- , 'pretty prints json when space is given')
- t.end()
-})
-
-test('adding properties', function (t) {
- var mod = convert
- .fromJSON(json)
- .addProperty('foo', 'bar')
- .toJSON()
- , expected = JSON.parse(json);
- expected.foo = 'bar';
- t.equal(
- mod
- , JSON.stringify(expected)
- , 'includes added property'
- )
- t.end()
-})
-
-test('setting properties', function (t) {
- var mod = convert
- .fromJSON(json)
- .setProperty('version', '2')
- .setProperty('mappings', ';;;UACG')
- .setProperty('should add', 'this')
- .toJSON()
- , expected = JSON.parse(json);
- expected.version = '2';
- expected.mappings = ';;;UACG';
- expected['should add'] = 'this';
- t.equal(
- mod
- , JSON.stringify(expected)
- , 'includes new property and changes existing properties'
- )
- t.end()
-})
-
-test('getting properties', function (t) {
- var sm = convert.fromJSON(json)
-
- t.equal(sm.getProperty('version'), 3, 'gets version')
- t.deepEqual(sm.getProperty('sources'), ['foo.js', 'bar.js'], 'gets sources')
- t.end()
-})
-
-test('return null fromSource when largeSource is true', function(t) {
- var mod = convert.fromSource('', true)
- , expected = null;
-
- t.equal(
- mod
- , expected
- , 'return value should be null'
- )
- t.end()
-})
diff --git a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css b/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css
deleted file mode 100644
index e777991..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.header {
- background: #444;
- border: solid;
- padding: 10px;
- border-radius: 10px 5px 10px 5px;
- color: #b4b472; }
-
-#main li {
- color: green;
- margin: 10px;
- padding: 10px;
- font-size: 18px; }
-
-//# sourceMappingURL=map-file-comment.css.map
diff --git a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-inline.css b/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-inline.css
deleted file mode 100644
index 1e61b24..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment-inline.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.header {
- background: #444;
- border: solid;
- padding: 10px;
- border-radius: 10px 5px 10px 5px;
- color: #b4b472; }
-
-#main li {
- color: green;
- margin: 10px;
- padding: 10px;
- font-size: 18px; }
-
-/*# sourceMappingURL=data:application/json;base64,ewoidmVyc2lvbiI6ICIzIiwKIm1hcHBpbmdzIjogIkFBQUEsd0JBQXlCO0VBQ3ZCLFVBQVUsRUFBRSxJQUFJO0VBQ2hCLE1BQU0sRUFBRSxLQUFLO0VBQ2IsT0FBTyxFQUFFLElBQUk7RUFDYixhQUFhLEVBQUUsaUJBQWlCO0VBQ2hDLEtBQUssRUFBRSxPQUFrQjs7QUFHM0Isd0JBQXlCO0VBQ3ZCLE9BQU8sRUFBRSxJQUFJOztBQ1RmLGdCQUFpQjtFQUNmLFVBQVUsRUFBRSxJQUFJO0VBQ2hCLEtBQUssRUFBRSxNQUFNOztBQUdmLGtCQUFtQjtFQUNqQixNQUFNLEVBQUUsSUFBSTtFQUNaLE9BQU8sRUFBRSxJQUFJO0VBQ2IsVUFBVSxFQUFFLEtBQUs7RUFDakIsYUFBYSxFQUFFLEdBQUc7RUFDbEIsS0FBSyxFQUFFLEtBQUs7O0FBRWQsa0JBQW1CO0VBQ2pCLEtBQUssRUFBRSxLQUFLOztBQUdkLG1CQUFvQjtFQUNsQixLQUFLLEVBQUUsS0FBSztFQUNaLE1BQU0sRUFBRSxJQUFJO0VBQ1osT0FBTyxFQUFFLElBQUk7RUFDYixTQUFTLEVBQUUsSUFBSSIsCiJzb3VyY2VzIjogWyIuL2NsaWVudC9zYXNzL2NvcmUuc2NzcyIsIi4vY2xpZW50L3Nhc3MvbWFpbi5zY3NzIl0sCiJmaWxlIjogIm1hcC1maWxlLWNvbW1lbnQuY3NzIgp9 */
diff --git a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css b/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css
deleted file mode 100644
index 8b28268..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.header {
- background: #444;
- border: solid;
- padding: 10px;
- border-radius: 10px 5px 10px 5px;
- color: #b4b472; }
-
-#main li {
- color: green;
- margin: 10px;
- padding: 10px;
- font-size: 18px; }
-
-/*# sourceMappingURL=map-file-comment.css.map */
diff --git a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map b/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map
deleted file mode 100644
index 25950ea..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-"version": "3",
-"mappings": "AAAA,wBAAyB;EACvB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,iBAAiB;EAChC,KAAK,EAAE,OAAkB;;AAG3B,wBAAyB;EACvB,OAAO,EAAE,IAAI;;ACTf,gBAAiB;EACf,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,MAAM;;AAGf,kBAAmB;EACjB,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,GAAG;EAClB,KAAK,EAAE,KAAK;;AAEd,kBAAmB;EACjB,KAAK,EAAE,KAAK;;AAGd,mBAAoB;EAClB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI",
-"sources": ["./client/sass/core.scss","./client/sass/main.scss"],
-"file": "map-file-comment.css"
-}
diff --git a/node_modules/accord/node_modules/convert-source-map/test/map-file-comment.js b/node_modules/accord/node_modules/convert-source-map/test/map-file-comment.js
deleted file mode 100644
index b416787..0000000
--- a/node_modules/accord/node_modules/convert-source-map/test/map-file-comment.js
+++ /dev/null
@@ -1,70 +0,0 @@
-'use strict';
-/*jshint asi: true */
-
-var test = require('tap').test
- , rx = require('..')
- , fs = require('fs')
- , convert = require('..')
-
-test('\nresolving a "/*# sourceMappingURL=map-file-comment.css.map*/" style comment inside a given css content', function (t) {
- var css = fs.readFileSync(__dirname + '/fixtures/map-file-comment.css', 'utf8')
- var conv = convert.fromMapFileSource(css, __dirname + '/fixtures');
- var sm = conv.toObject();
-
- t.deepEqual(
- sm.sources
- , [ './client/sass/core.scss',
- './client/sass/main.scss' ]
- , 'resolves paths of original sources'
- )
-
- t.equal(sm.file, 'map-file-comment.css', 'includes filename of generated file')
- t.equal(
- sm.mappings
- , 'AAAA,wBAAyB;EACvB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,iBAAiB;EAChC,KAAK,EAAE,OAAkB;;AAG3B,wBAAyB;EACvB,OAAO,EAAE,IAAI;;ACTf,gBAAiB;EACf,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,MAAM;;AAGf,kBAAmB;EACjB,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,GAAG;EAClB,KAAK,EAAE,KAAK;;AAEd,kBAAmB;EACjB,KAAK,EAAE,KAAK;;AAGd,mBAAoB;EAClB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI'
- , 'includes mappings'
- )
- t.end()
-})
-
-test('\nresolving a "//# sourceMappingURL=map-file-comment.css.map" style comment inside a given css content', function (t) {
- var css = fs.readFileSync(__dirname + '/fixtures/map-file-comment-double-slash.css', 'utf8')
- var conv = convert.fromMapFileSource(css, __dirname + '/fixtures');
- var sm = conv.toObject();
-
- t.deepEqual(
- sm.sources
- , [ './client/sass/core.scss',
- './client/sass/main.scss' ]
- , 'resolves paths of original sources'
- )
-
- t.equal(sm.file, 'map-file-comment.css', 'includes filename of generated file')
- t.equal(
- sm.mappings
- , 'AAAA,wBAAyB;EACvB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,iBAAiB;EAChC,KAAK,EAAE,OAAkB;;AAG3B,wBAAyB;EACvB,OAAO,EAAE,IAAI;;ACTf,gBAAiB;EACf,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,MAAM;;AAGf,kBAAmB;EACjB,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,GAAG;EAClB,KAAK,EAAE,KAAK;;AAEd,kBAAmB;EACjB,KAAK,EAAE,KAAK;;AAGd,mBAAoB;EAClB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI'
- , 'includes mappings'
- )
- t.end()
-})
-
-test('\nresolving a /*# sourceMappingURL=data:application/json;base64,... */ style comment inside a given css content', function(t) {
- var css = fs.readFileSync(__dirname + '/fixtures/map-file-comment-inline.css', 'utf8')
- var conv = convert.fromSource(css, __dirname + '/fixtures')
- var sm = conv.toObject()
-
- t.deepEqual(
- sm.sources
- , [ './client/sass/core.scss',
- './client/sass/main.scss' ]
- , 'resolves paths of original sources'
- )
-
- t.equal(sm.file, 'map-file-comment.css', 'includes filename of generated file')
- t.equal(
- sm.mappings
- , 'AAAA,wBAAyB;EACvB,UAAU,EAAE,IAAI;EAChB,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,IAAI;EACb,aAAa,EAAE,iBAAiB;EAChC,KAAK,EAAE,OAAkB;;AAG3B,wBAAyB;EACvB,OAAO,EAAE,IAAI;;ACTf,gBAAiB;EACf,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,MAAM;;AAGf,kBAAmB;EACjB,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,GAAG;EAClB,KAAK,EAAE,KAAK;;AAEd,kBAAmB;EACjB,KAAK,EAAE,KAAK;;AAGd,mBAAoB;EAClB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI'
- , 'includes mappings'
- )
- t.end()
-})
diff --git a/node_modules/accord/node_modules/lodash.defaults/LICENSE b/node_modules/accord/node_modules/lodash.defaults/LICENSE
deleted file mode 100644
index e0c69d5..0000000
--- a/node_modules/accord/node_modules/lodash.defaults/LICENSE
+++ /dev/null
@@ -1,47 +0,0 @@
-Copyright jQuery Foundation and other contributors
-
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/lodash/lodash
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-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.
-
-====
-
-Copyright and related rights for sample code are waived via CC0. Sample
-code is defined as all source code displayed within the prose of the
-documentation.
-
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
-
-====
-
-Files located in the node_modules and vendor directories are externally
-maintained libraries used by this software which have their own
-licenses; we recommend you read them, as their terms may differ from the
-terms above.
diff --git a/node_modules/accord/node_modules/lodash.defaults/README.md b/node_modules/accord/node_modules/lodash.defaults/README.md
deleted file mode 100644
index a129849..0000000
--- a/node_modules/accord/node_modules/lodash.defaults/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# lodash.defaults v4.2.0
-
-The [lodash](https://lodash.com/) method `_.defaults` exported as a [Node.js](https://nodejs.org/) module.
-
-## Installation
-
-Using npm:
-```bash
-$ {sudo -H} npm i -g npm
-$ npm i --save lodash.defaults
-```
-
-In Node.js:
-```js
-var defaults = require('lodash.defaults');
-```
-
-See the [documentation](https://lodash.com/docs#defaults) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.defaults) for more details.
diff --git a/node_modules/accord/node_modules/lodash.defaults/index.js b/node_modules/accord/node_modules/lodash.defaults/index.js
deleted file mode 100644
index 25eba9c..0000000
--- a/node_modules/accord/node_modules/lodash.defaults/index.js
+++ /dev/null
@@ -1,668 +0,0 @@
-/**
- * lodash (Custom Build)
- * Build: `lodash modularize exports="npm" -o ./`
- * Copyright jQuery Foundation and other contributors
- * Released under MIT license
- * Based on Underscore.js 1.8.3
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]';
-
-/** Used to detect unsigned integer values. */
-var reIsUint = /^(?:0|[1-9]\d*)$/;
-
-/**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
-function apply(func, thisArg, args) {
- switch (args.length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
-}
-
-/**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
-function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
-}
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var objectToString = objectProto.toString;
-
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Creates an array of the enumerable property names of the array-like `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @param {boolean} inherited Specify returning inherited property names.
- * @returns {Array} Returns the array of property names.
- */
-function arrayLikeKeys(value, inherited) {
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
- // Safari 9 makes `arguments.length` enumerable in strict mode.
- var result = (isArray(value) || isArguments(value))
- ? baseTimes(value.length, String)
- : [];
-
- var length = result.length,
- skipIndexes = !!length;
-
- for (var key in value) {
- if ((inherited || hasOwnProperty.call(value, key)) &&
- !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
- result.push(key);
- }
- }
- return result;
-}
-
-/**
- * Used by `_.defaults` to customize its `_.assignIn` use.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
-function assignInDefaults(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
-}
-
-/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- object[key] = value;
- }
-}
-
-/**
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeysIn(object) {
- if (!isObject(object)) {
- return nativeKeysIn(object);
- }
- var isProto = isPrototype(object),
- result = [];
-
- for (var key in object) {
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
-}
-
-/**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
-function baseRest(func, start) {
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = array;
- return apply(func, this, otherArgs);
- };
-}
-
-/**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
-function copyObject(source, props, object, customizer) {
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : undefined;
-
- assignValue(object, key, newValue === undefined ? source[key] : newValue);
- }
- return object;
-}
-
-/**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
-function createAssigner(assigner) {
- return baseRest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
-}
-
-/**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
-function isIndex(value, length) {
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length &&
- (typeof value == 'number' || reIsUint.test(value)) &&
- (value > -1 && value % 1 == 0 && value < length);
-}
-
-/**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
-function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
-}
-
-/**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
-function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
-}
-
-/**
- * This function is like
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * except that it includes inherited enumerable properties.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function nativeKeysIn(object) {
- var result = [];
- if (object != null) {
- for (var key in Object(object)) {
- result.push(key);
- }
- }
- return result;
-}
-
-/**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
-function eq(value, other) {
- return value === other || (value !== value && other !== other);
-}
-
-/**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
-function isArguments(value) {
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
- (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
-}
-
-/**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
-var isArray = Array.isArray;
-
-/**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
-function isArrayLike(value) {
- return value != null && isLength(value.length) && !isFunction(value);
-}
-
-/**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
-function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
-}
-
-/**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
-function isFunction(value) {
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8-9 which returns 'object' for typed array and other constructors.
- var tag = isObject(value) ? objectToString.call(value) : '';
- return tag == funcTag || tag == genTag;
-}
-
-/**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
-function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
-}
-
-/**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
-function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
-}
-
-/**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
-function isObjectLike(value) {
- return !!value && typeof value == 'object';
-}
-
-/**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
-var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
-});
-
-/**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
-var defaults = baseRest(function(args) {
- args.push(undefined, assignInDefaults);
- return apply(assignInWith, undefined, args);
-});
-
-/**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
-function keysIn(object) {
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
-}
-
-module.exports = defaults;
diff --git a/node_modules/accord/node_modules/lodash.defaults/package.json b/node_modules/accord/node_modules/lodash.defaults/package.json
deleted file mode 100644
index 1ee5797..0000000
--- a/node_modules/accord/node_modules/lodash.defaults/package.json
+++ /dev/null
@@ -1,113 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "lodash.defaults@^4.0.1",
- "scope": null,
- "escapedName": "lodash.defaults",
- "name": "lodash.defaults",
- "rawSpec": "^4.0.1",
- "spec": ">=4.0.1 <5.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/accord"
- ]
- ],
- "_from": "lodash.defaults@>=4.0.1 <5.0.0",
- "_id": "lodash.defaults@4.2.0",
- "_inCache": true,
- "_location": "/accord/lodash.defaults",
- "_nodeVersion": "4.4.7",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/lodash.defaults-4.2.0.tgz_1471109872209_0.6277233152650297"
- },
- "_npmUser": {
- "name": "jdalton",
- "email": "john.david.dalton@gmail.com"
- },
- "_npmVersion": "2.15.10",
- "_phantomChildren": {},
- "_requested": {
- "raw": "lodash.defaults@^4.0.1",
- "scope": null,
- "escapedName": "lodash.defaults",
- "name": "lodash.defaults",
- "rawSpec": "^4.0.1",
- "spec": ">=4.0.1 <5.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/accord"
- ],
- "_resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
- "_shasum": "d09178716ffea4dde9e5fb7b37f6f0802274580c",
- "_shrinkwrap": null,
- "_spec": "lodash.defaults@^4.0.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/accord",
- "author": {
- "name": "John-David Dalton",
- "email": "john.david.dalton@gmail.com",
- "url": "http://allyoucanleet.com/"
- },
- "bugs": {
- "url": "https://github.com/lodash/lodash/issues"
- },
- "contributors": [
- {
- "name": "John-David Dalton",
- "email": "john.david.dalton@gmail.com",
- "url": "http://allyoucanleet.com/"
- },
- {
- "name": "Blaine Bublitz",
- "email": "blaine.bublitz@gmail.com",
- "url": "https://github.com/phated"
- },
- {
- "name": "Mathias Bynens",
- "email": "mathias@qiwi.be",
- "url": "https://mathiasbynens.be/"
- }
- ],
- "dependencies": {},
- "description": "The lodash method `_.defaults` exported as a module.",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "d09178716ffea4dde9e5fb7b37f6f0802274580c",
- "tarball": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz"
- },
- "homepage": "https://lodash.com/",
- "icon": "https://lodash.com/icon.svg",
- "keywords": [
- "lodash-modularized",
- "defaults"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "jdalton",
- "email": "john.david.dalton@gmail.com"
- },
- {
- "name": "mathias",
- "email": "mathias@qiwi.be"
- },
- {
- "name": "phated",
- "email": "blaine@iceddev.com"
- }
- ],
- "name": "lodash.defaults",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lodash/lodash.git"
- },
- "scripts": {
- "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
- },
- "version": "4.2.0"
-}
diff --git a/node_modules/accord/node_modules/semver/LICENSE b/node_modules/accord/node_modules/semver/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/accord/node_modules/semver/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/accord/node_modules/semver/README.md b/node_modules/accord/node_modules/semver/README.md
deleted file mode 100644
index cbd9565..0000000
--- a/node_modules/accord/node_modules/semver/README.md
+++ /dev/null
@@ -1,350 +0,0 @@
-semver(1) -- The semantic versioner for npm
-===========================================
-
-## Usage
-
- $ npm install semver
- $ node
- var semver = require('semver')
-
- semver.valid('1.2.3') // '1.2.3'
- semver.valid('a.b.c') // null
- semver.clean(' =v1.2.3 ') // '1.2.3'
- semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
- semver.gt('1.2.3', '9.8.7') // false
- semver.lt('1.2.3', '9.8.7') // true
-
-As a command-line utility:
-
- $ semver -h
-
- SemVer 5.1.0
-
- A JavaScript implementation of the http://semver.org/ specification
- Copyright Isaac Z. Schlueter
-
- Usage: semver [options] [ [...]]
- Prints valid versions sorted by SemVer precedence
-
- Options:
- -r --range
- Print versions that match the specified range.
-
- -i --increment []
- Increment a version by the specified level. Level can
- be one of: major, minor, patch, premajor, preminor,
- prepatch, or prerelease. Default level is 'patch'.
- Only one version may be specified.
-
- --preid
- Identifier to be used to prefix premajor, preminor,
- prepatch or prerelease version increments.
-
- -l --loose
- Interpret versions and ranges loosely
-
- Program exits successfully if any valid version satisfies
- all supplied ranges, and prints all satisfying versions.
-
- If no satisfying versions are found, then exits failure.
-
- Versions are printed in ascending order, so supplying
- multiple versions to the utility will just sort them.
-
-## Versions
-
-A "version" is described by the `v2.0.0` specification found at
-.
-
-A leading `"="` or `"v"` character is stripped off and ignored.
-
-## Ranges
-
-A `version range` is a set of `comparators` which specify versions
-that satisfy the range.
-
-A `comparator` is composed of an `operator` and a `version`. The set
-of primitive `operators` is:
-
-* `<` Less than
-* `<=` Less than or equal to
-* `>` Greater than
-* `>=` Greater than or equal to
-* `=` Equal. If no operator is specified, then equality is assumed,
- so this operator is optional, but MAY be included.
-
-For example, the comparator `>=1.2.7` would match the versions
-`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
-or `1.1.0`.
-
-Comparators can be joined by whitespace to form a `comparator set`,
-which is satisfied by the **intersection** of all of the comparators
-it includes.
-
-A range is composed of one or more comparator sets, joined by `||`. A
-version matches a range if and only if every comparator in at least
-one of the `||`-separated comparator sets is satisfied by the version.
-
-For example, the range `>=1.2.7 <1.3.0` would match the versions
-`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
-or `1.1.0`.
-
-The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
-`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
-
-### Prerelease Tags
-
-If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
-it will only be allowed to satisfy comparator sets if at least one
-comparator with the same `[major, minor, patch]` tuple also has a
-prerelease tag.
-
-For example, the range `>1.2.3-alpha.3` would be allowed to match the
-version `1.2.3-alpha.7`, but it would *not* be satisfied by
-`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
-than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
-range only accepts prerelease tags on the `1.2.3` version. The
-version `3.4.5` *would* satisfy the range, because it does not have a
-prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
-
-The purpose for this behavior is twofold. First, prerelease versions
-frequently are updated very quickly, and contain many breaking changes
-that are (by the author's design) not yet fit for public consumption.
-Therefore, by default, they are excluded from range matching
-semantics.
-
-Second, a user who has opted into using a prerelease version has
-clearly indicated the intent to use *that specific* set of
-alpha/beta/rc versions. By including a prerelease tag in the range,
-the user is indicating that they are aware of the risk. However, it
-is still not appropriate to assume that they have opted into taking a
-similar risk on the *next* set of prerelease versions.
-
-#### Prerelease Identifiers
-
-The method `.inc` takes an additional `identifier` string argument that
-will append the value of the string as a prerelease identifier:
-
-```javascript
-> semver.inc('1.2.3', 'prerelease', 'beta')
-'1.2.4-beta.0'
-```
-
-command-line example:
-
-```shell
-$ semver 1.2.3 -i prerelease --preid beta
-1.2.4-beta.0
-```
-
-Which then can be used to increment further:
-
-```shell
-$ semver 1.2.4-beta.0 -i prerelease
-1.2.4-beta.1
-```
-
-### Advanced Range Syntax
-
-Advanced range syntax desugars to primitive comparators in
-deterministic ways.
-
-Advanced ranges may be combined in the same way as primitive
-comparators using white space or `||`.
-
-#### Hyphen Ranges `X.Y.Z - A.B.C`
-
-Specifies an inclusive set.
-
-* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
-
-If a partial version is provided as the first version in the inclusive
-range, then the missing pieces are replaced with zeroes.
-
-* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
-
-If a partial version is provided as the second version in the
-inclusive range, then all versions that start with the supplied parts
-of the tuple are accepted, but nothing that would be greater than the
-provided tuple parts.
-
-* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
-* `1.2.3 - 2` := `>=1.2.3 <3.0.0`
-
-#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
-
-Any of `X`, `x`, or `*` may be used to "stand in" for one of the
-numeric values in the `[major, minor, patch]` tuple.
-
-* `*` := `>=0.0.0` (Any version satisfies)
-* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
-* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
-
-A partial version range is treated as an X-Range, so the special
-character is in fact optional.
-
-* `""` (empty string) := `*` := `>=0.0.0`
-* `1` := `1.x.x` := `>=1.0.0 <2.0.0`
-* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
-
-#### Tilde Ranges `~1.2.3` `~1.2` `~1`
-
-Allows patch-level changes if a minor version is specified on the
-comparator. Allows minor-level changes if not.
-
-* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
-* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
-* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
-* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
-* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
-* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
-* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-
-#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
-
-Allows changes that do not modify the left-most non-zero digit in the
-`[major, minor, patch]` tuple. In other words, this allows patch and
-minor updates for versions `1.0.0` and above, patch updates for
-versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
-
-Many authors treat a `0.x` version as if the `x` were the major
-"breaking-change" indicator.
-
-Caret ranges are ideal when an author may make breaking changes
-between `0.2.4` and `0.3.0` releases, which is a common practice.
-However, it presumes that there will *not* be breaking changes between
-`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
-additive (but non-breaking), according to commonly observed practices.
-
-* `^1.2.3` := `>=1.2.3 <2.0.0`
-* `^0.2.3` := `>=0.2.3 <0.3.0`
-* `^0.0.3` := `>=0.0.3 <0.0.4`
-* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
- `0.0.3` version *only* will be allowed, if they are greater than or
- equal to `beta`. So, `0.0.3-pr.2` would be allowed.
-
-When parsing caret ranges, a missing `patch` value desugars to the
-number `0`, but will allow flexibility within that value, even if the
-major and minor versions are both `0`.
-
-* `^1.2.x` := `>=1.2.0 <2.0.0`
-* `^0.0.x` := `>=0.0.0 <0.1.0`
-* `^0.0` := `>=0.0.0 <0.1.0`
-
-A missing `minor` and `patch` values will desugar to zero, but also
-allow flexibility within those values, even if the major version is
-zero.
-
-* `^1.x` := `>=1.0.0 <2.0.0`
-* `^0.x` := `>=0.0.0 <1.0.0`
-
-### Range Grammar
-
-Putting all this together, here is a Backus-Naur grammar for ranges,
-for the benefit of parser authors:
-
-```bnf
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
-```
-
-## Functions
-
-All methods and classes take a final `loose` boolean argument that, if
-true, will be more forgiving about not-quite-valid semver strings.
-The resulting output will always be 100% strict, of course.
-
-Strict-mode Comparators and Ranges will be strict about the SemVer
-strings that they parse.
-
-* `valid(v)`: Return the parsed version, or null if it's not valid.
-* `inc(v, release)`: Return the version incremented by the release
- type (`major`, `premajor`, `minor`, `preminor`, `patch`,
- `prepatch`, or `prerelease`), or null if it's not valid
- * `premajor` in one call will bump the version up to the next major
- version and down to a prerelease of that major version.
- `preminor`, and `prepatch` work the same way.
- * If called from a non-prerelease version, the `prerelease` will work the
- same as `prepatch`. It increments the patch version, then makes a
- prerelease. If the input version is already a prerelease it simply
- increments it.
-* `prerelease(v)`: Returns an array of prerelease components, or null
- if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
-* `major(v)`: Return the major version number.
-* `minor(v)`: Return the minor version number.
-* `patch(v)`: Return the patch version number.
-
-### Comparison
-
-* `gt(v1, v2)`: `v1 > v2`
-* `gte(v1, v2)`: `v1 >= v2`
-* `lt(v1, v2)`: `v1 < v2`
-* `lte(v1, v2)`: `v1 <= v2`
-* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
- even if they're not the exact same string. You already know how to
- compare strings.
-* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
-* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
- the corresponding function above. `"==="` and `"!=="` do simple
- string comparison, but are included for completeness. Throws if an
- invalid comparison string is provided.
-* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
- `v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
-* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
- in descending order when passed to `Array.sort()`.
-* `diff(v1, v2)`: Returns difference between two versions by the release type
- (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
- or null if the versions are the same.
-
-
-### Ranges
-
-* `validRange(range)`: Return the valid range or null if it's not valid
-* `satisfies(version, range)`: Return true if the version satisfies the
- range.
-* `maxSatisfying(versions, range)`: Return the highest version in the list
- that satisfies the range, or `null` if none of them do.
-* `minSatisfying(versions, range)`: Return the lowest version in the list
- that satisfies the range, or `null` if none of them do.
-* `gtr(version, range)`: Return `true` if version is greater than all the
- versions possible in the range.
-* `ltr(version, range)`: Return `true` if version is less than all the
- versions possible in the range.
-* `outside(version, range, hilo)`: Return true if the version is outside
- the bounds of the range in either the high or low direction. The
- `hilo` argument must be either the string `'>'` or `'<'`. (This is
- the function called by `gtr` and `ltr`.)
-
-Note that, since ranges may be non-contiguous, a version might not be
-greater than a range, less than a range, *or* satisfy a range! For
-example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
-until `2.0.0`, so the version `1.2.10` would not be greater than the
-range (because `2.0.1` satisfies, which is higher), nor less than the
-range (since `1.2.8` satisfies, which is lower), and it also does not
-satisfy the range.
-
-If you want to know if a version satisfies or does not satisfy a
-range, use the `satisfies(version, range)` function.
diff --git a/node_modules/accord/node_modules/semver/bin/semver b/node_modules/accord/node_modules/semver/bin/semver
deleted file mode 100755
index c5f2e85..0000000
--- a/node_modules/accord/node_modules/semver/bin/semver
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/usr/bin/env node
-// Standalone semver comparison program.
-// Exits successfully and prints matching version(s) if
-// any supplied version is valid and passes all tests.
-
-var argv = process.argv.slice(2)
- , versions = []
- , range = []
- , gt = []
- , lt = []
- , eq = []
- , inc = null
- , version = require("../package.json").version
- , loose = false
- , identifier = undefined
- , semver = require("../semver")
- , reverse = false
-
-main()
-
-function main () {
- if (!argv.length) return help()
- while (argv.length) {
- var a = argv.shift()
- var i = a.indexOf('=')
- if (i !== -1) {
- a = a.slice(0, i)
- argv.unshift(a.slice(i + 1))
- }
- switch (a) {
- case "-rv": case "-rev": case "--rev": case "--reverse":
- reverse = true
- break
- case "-l": case "--loose":
- loose = true
- break
- case "-v": case "--version":
- versions.push(argv.shift())
- break
- case "-i": case "--inc": case "--increment":
- switch (argv[0]) {
- case "major": case "minor": case "patch": case "prerelease":
- case "premajor": case "preminor": case "prepatch":
- inc = argv.shift()
- break
- default:
- inc = "patch"
- break
- }
- break
- case "--preid":
- identifier = argv.shift()
- break
- case "-r": case "--range":
- range.push(argv.shift())
- break
- case "-h": case "--help": case "-?":
- return help()
- default:
- versions.push(a)
- break
- }
- }
-
- versions = versions.filter(function (v) {
- return semver.valid(v, loose)
- })
- if (!versions.length) return fail()
- if (inc && (versions.length !== 1 || range.length))
- return failInc()
-
- for (var i = 0, l = range.length; i < l ; i ++) {
- versions = versions.filter(function (v) {
- return semver.satisfies(v, range[i], loose)
- })
- if (!versions.length) return fail()
- }
- return success(versions)
-}
-
-function failInc () {
- console.error("--inc can only be used on a single version with no range")
- fail()
-}
-
-function fail () { process.exit(1) }
-
-function success () {
- var compare = reverse ? "rcompare" : "compare"
- versions.sort(function (a, b) {
- return semver[compare](a, b, loose)
- }).map(function (v) {
- return semver.clean(v, loose)
- }).map(function (v) {
- return inc ? semver.inc(v, inc, loose, identifier) : v
- }).forEach(function (v,i,_) { console.log(v) })
-}
-
-function help () {
- console.log(["SemVer " + version
- ,""
- ,"A JavaScript implementation of the http://semver.org/ specification"
- ,"Copyright Isaac Z. Schlueter"
- ,""
- ,"Usage: semver [options] [ [...]]"
- ,"Prints valid versions sorted by SemVer precedence"
- ,""
- ,"Options:"
- ,"-r --range "
- ," Print versions that match the specified range."
- ,""
- ,"-i --increment []"
- ," Increment a version by the specified level. Level can"
- ," be one of: major, minor, patch, premajor, preminor,"
- ," prepatch, or prerelease. Default level is 'patch'."
- ," Only one version may be specified."
- ,""
- ,"--preid "
- ," Identifier to be used to prefix premajor, preminor,"
- ," prepatch or prerelease version increments."
- ,""
- ,"-l --loose"
- ," Interpret versions and ranges loosely"
- ,""
- ,"Program exits successfully if any valid version satisfies"
- ,"all supplied ranges, and prints all satisfying versions."
- ,""
- ,"If no satisfying versions are found, then exits failure."
- ,""
- ,"Versions are printed in ascending order, so supplying"
- ,"multiple versions to the utility will just sort them."
- ].join("\n"))
-}
diff --git a/node_modules/accord/node_modules/semver/package.json b/node_modules/accord/node_modules/semver/package.json
deleted file mode 100644
index 1cdb54b..0000000
--- a/node_modules/accord/node_modules/semver/package.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "semver@^5.3.0",
- "scope": null,
- "escapedName": "semver",
- "name": "semver",
- "rawSpec": "^5.3.0",
- "spec": ">=5.3.0 <6.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/accord"
- ]
- ],
- "_from": "semver@>=5.3.0 <6.0.0",
- "_id": "semver@5.3.0",
- "_inCache": true,
- "_location": "/accord/semver",
- "_nodeVersion": "4.4.4",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/semver-5.3.0.tgz_1468515166602_0.9155273644719273"
- },
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "_npmVersion": "3.10.6",
- "_phantomChildren": {},
- "_requested": {
- "raw": "semver@^5.3.0",
- "scope": null,
- "escapedName": "semver",
- "name": "semver",
- "rawSpec": "^5.3.0",
- "spec": ">=5.3.0 <6.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/accord"
- ],
- "_resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
- "_shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f",
- "_shrinkwrap": null,
- "_spec": "semver@^5.3.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/accord",
- "bin": {
- "semver": "./bin/semver"
- },
- "bugs": {
- "url": "https://github.com/npm/node-semver/issues"
- },
- "dependencies": {},
- "description": "The semantic version parser used by npm.",
- "devDependencies": {
- "tap": "^2.0.0"
- },
- "directories": {},
- "dist": {
- "shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f",
- "tarball": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz"
- },
- "files": [
- "bin",
- "range.bnf",
- "semver.js"
- ],
- "gitHead": "d21444a0658224b152ce54965d02dbe0856afb84",
- "homepage": "https://github.com/npm/node-semver#readme",
- "license": "ISC",
- "main": "semver.js",
- "maintainers": [
- {
- "name": "isaacs",
- "email": "isaacs@npmjs.com"
- },
- {
- "name": "othiym23",
- "email": "ogd@aoaioxxysz.net"
- }
- ],
- "name": "semver",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/node-semver.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "5.3.0"
-}
diff --git a/node_modules/accord/node_modules/semver/range.bnf b/node_modules/accord/node_modules/semver/range.bnf
deleted file mode 100644
index 25ebd5c..0000000
--- a/node_modules/accord/node_modules/semver/range.bnf
+++ /dev/null
@@ -1,16 +0,0 @@
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
diff --git a/node_modules/accord/node_modules/semver/semver.js b/node_modules/accord/node_modules/semver/semver.js
deleted file mode 100644
index 5f1a3c5..0000000
--- a/node_modules/accord/node_modules/semver/semver.js
+++ /dev/null
@@ -1,1203 +0,0 @@
-exports = module.exports = SemVer;
-
-// The debug function is excluded entirely from the minified version.
-/* nomin */ var debug;
-/* nomin */ if (typeof process === 'object' &&
- /* nomin */ process.env &&
- /* nomin */ process.env.NODE_DEBUG &&
- /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG))
- /* nomin */ debug = function() {
- /* nomin */ var args = Array.prototype.slice.call(arguments, 0);
- /* nomin */ args.unshift('SEMVER');
- /* nomin */ console.log.apply(console, args);
- /* nomin */ };
-/* nomin */ else
- /* nomin */ debug = function() {};
-
-// Note: this is the semver.org version of the spec that it implements
-// Not necessarily the package version of this code.
-exports.SEMVER_SPEC_VERSION = '2.0.0';
-
-var MAX_LENGTH = 256;
-var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
-
-// The actual regexps go on exports.re
-var re = exports.re = [];
-var src = exports.src = [];
-var R = 0;
-
-// The following Regular Expressions can be used for tokenizing,
-// validating, and parsing SemVer version strings.
-
-// ## Numeric Identifier
-// A single `0`, or a non-zero digit followed by zero or more digits.
-
-var NUMERICIDENTIFIER = R++;
-src[NUMERICIDENTIFIER] = '0|[1-9]\\d*';
-var NUMERICIDENTIFIERLOOSE = R++;
-src[NUMERICIDENTIFIERLOOSE] = '[0-9]+';
-
-
-// ## Non-numeric Identifier
-// Zero or more digits, followed by a letter or hyphen, and then zero or
-// more letters, digits, or hyphens.
-
-var NONNUMERICIDENTIFIER = R++;
-src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*';
-
-
-// ## Main Version
-// Three dot-separated numeric identifiers.
-
-var MAINVERSION = R++;
-src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')';
-
-var MAINVERSIONLOOSE = R++;
-src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')';
-
-// ## Pre-release Version Identifier
-// A numeric identifier, or a non-numeric identifier.
-
-var PRERELEASEIDENTIFIER = R++;
-src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
- '|' + src[NONNUMERICIDENTIFIER] + ')';
-
-var PRERELEASEIDENTIFIERLOOSE = R++;
-src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
- '|' + src[NONNUMERICIDENTIFIER] + ')';
-
-
-// ## Pre-release Version
-// Hyphen, followed by one or more dot-separated pre-release version
-// identifiers.
-
-var PRERELEASE = R++;
-src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
- '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))';
-
-var PRERELEASELOOSE = R++;
-src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
- '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))';
-
-// ## Build Metadata Identifier
-// Any combination of digits, letters, or hyphens.
-
-var BUILDIDENTIFIER = R++;
-src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+';
-
-// ## Build Metadata
-// Plus sign, followed by one or more period-separated build metadata
-// identifiers.
-
-var BUILD = R++;
-src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
- '(?:\\.' + src[BUILDIDENTIFIER] + ')*))';
-
-
-// ## Full Version String
-// A main version, followed optionally by a pre-release version and
-// build metadata.
-
-// Note that the only major, minor, patch, and pre-release sections of
-// the version string are capturing groups. The build metadata is not a
-// capturing group, because it should not ever be used in version
-// comparison.
-
-var FULL = R++;
-var FULLPLAIN = 'v?' + src[MAINVERSION] +
- src[PRERELEASE] + '?' +
- src[BUILD] + '?';
-
-src[FULL] = '^' + FULLPLAIN + '$';
-
-// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
-// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
-// common in the npm registry.
-var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
- src[PRERELEASELOOSE] + '?' +
- src[BUILD] + '?';
-
-var LOOSE = R++;
-src[LOOSE] = '^' + LOOSEPLAIN + '$';
-
-var GTLT = R++;
-src[GTLT] = '((?:<|>)?=?)';
-
-// Something like "2.*" or "1.2.x".
-// Note that "x.x" is a valid xRange identifer, meaning "any version"
-// Only the first item is strictly required.
-var XRANGEIDENTIFIERLOOSE = R++;
-src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*';
-var XRANGEIDENTIFIER = R++;
-src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*';
-
-var XRANGEPLAIN = R++;
-src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:' + src[PRERELEASE] + ')?' +
- src[BUILD] + '?' +
- ')?)?';
-
-var XRANGEPLAINLOOSE = R++;
-src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:' + src[PRERELEASELOOSE] + ')?' +
- src[BUILD] + '?' +
- ')?)?';
-
-var XRANGE = R++;
-src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$';
-var XRANGELOOSE = R++;
-src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$';
-
-// Tilde ranges.
-// Meaning is "reasonably at or greater than"
-var LONETILDE = R++;
-src[LONETILDE] = '(?:~>?)';
-
-var TILDETRIM = R++;
-src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+';
-re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g');
-var tildeTrimReplace = '$1~';
-
-var TILDE = R++;
-src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';
-var TILDELOOSE = R++;
-src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$';
-
-// Caret ranges.
-// Meaning is "at least and backwards compatible with"
-var LONECARET = R++;
-src[LONECARET] = '(?:\\^)';
-
-var CARETTRIM = R++;
-src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+';
-re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g');
-var caretTrimReplace = '$1^';
-
-var CARET = R++;
-src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$';
-var CARETLOOSE = R++;
-src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$';
-
-// A simple gt/lt/eq thing, or just "" to indicate "any version"
-var COMPARATORLOOSE = R++;
-src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$';
-var COMPARATOR = R++;
-src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$';
-
-
-// An expression to strip any whitespace between the gtlt and the thing
-// it modifies, so that `> 1.2.3` ==> `>1.2.3`
-var COMPARATORTRIM = R++;
-src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
- '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
-
-// this one has to use the /g flag
-re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g');
-var comparatorTrimReplace = '$1$2$3';
-
-
-// Something like `1.2.3 - 1.2.4`
-// Note that these all use the loose form, because they'll be
-// checked against either the strict or loose comparator form
-// later.
-var HYPHENRANGE = R++;
-src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAIN] + ')' +
- '\\s*$';
-
-var HYPHENRANGELOOSE = R++;
-src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s*$';
-
-// Star ranges basically just allow anything at all.
-var STAR = R++;
-src[STAR] = '(<|>)?=?\\s*\\*';
-
-// Compile to actual regexp objects.
-// All are flag-free, unless they were created above with a flag.
-for (var i = 0; i < R; i++) {
- debug(i, src[i]);
- if (!re[i])
- re[i] = new RegExp(src[i]);
-}
-
-exports.parse = parse;
-function parse(version, loose) {
- if (version instanceof SemVer)
- return version;
-
- if (typeof version !== 'string')
- return null;
-
- if (version.length > MAX_LENGTH)
- return null;
-
- var r = loose ? re[LOOSE] : re[FULL];
- if (!r.test(version))
- return null;
-
- try {
- return new SemVer(version, loose);
- } catch (er) {
- return null;
- }
-}
-
-exports.valid = valid;
-function valid(version, loose) {
- var v = parse(version, loose);
- return v ? v.version : null;
-}
-
-
-exports.clean = clean;
-function clean(version, loose) {
- var s = parse(version.trim().replace(/^[=v]+/, ''), loose);
- return s ? s.version : null;
-}
-
-exports.SemVer = SemVer;
-
-function SemVer(version, loose) {
- if (version instanceof SemVer) {
- if (version.loose === loose)
- return version;
- else
- version = version.version;
- } else if (typeof version !== 'string') {
- throw new TypeError('Invalid Version: ' + version);
- }
-
- if (version.length > MAX_LENGTH)
- throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
-
- if (!(this instanceof SemVer))
- return new SemVer(version, loose);
-
- debug('SemVer', version, loose);
- this.loose = loose;
- var m = version.trim().match(loose ? re[LOOSE] : re[FULL]);
-
- if (!m)
- throw new TypeError('Invalid Version: ' + version);
-
- this.raw = version;
-
- // these are actually numbers
- this.major = +m[1];
- this.minor = +m[2];
- this.patch = +m[3];
-
- if (this.major > MAX_SAFE_INTEGER || this.major < 0)
- throw new TypeError('Invalid major version')
-
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
- throw new TypeError('Invalid minor version')
-
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
- throw new TypeError('Invalid patch version')
-
- // numberify any prerelease numeric ids
- if (!m[4])
- this.prerelease = [];
- else
- this.prerelease = m[4].split('.').map(function(id) {
- if (/^[0-9]+$/.test(id)) {
- var num = +id;
- if (num >= 0 && num < MAX_SAFE_INTEGER)
- return num;
- }
- return id;
- });
-
- this.build = m[5] ? m[5].split('.') : [];
- this.format();
-}
-
-SemVer.prototype.format = function() {
- this.version = this.major + '.' + this.minor + '.' + this.patch;
- if (this.prerelease.length)
- this.version += '-' + this.prerelease.join('.');
- return this.version;
-};
-
-SemVer.prototype.toString = function() {
- return this.version;
-};
-
-SemVer.prototype.compare = function(other) {
- debug('SemVer.compare', this.version, this.loose, other);
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- return this.compareMain(other) || this.comparePre(other);
-};
-
-SemVer.prototype.compareMain = function(other) {
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- return compareIdentifiers(this.major, other.major) ||
- compareIdentifiers(this.minor, other.minor) ||
- compareIdentifiers(this.patch, other.patch);
-};
-
-SemVer.prototype.comparePre = function(other) {
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- // NOT having a prerelease is > having one
- if (this.prerelease.length && !other.prerelease.length)
- return -1;
- else if (!this.prerelease.length && other.prerelease.length)
- return 1;
- else if (!this.prerelease.length && !other.prerelease.length)
- return 0;
-
- var i = 0;
- do {
- var a = this.prerelease[i];
- var b = other.prerelease[i];
- debug('prerelease compare', i, a, b);
- if (a === undefined && b === undefined)
- return 0;
- else if (b === undefined)
- return 1;
- else if (a === undefined)
- return -1;
- else if (a === b)
- continue;
- else
- return compareIdentifiers(a, b);
- } while (++i);
-};
-
-// preminor will bump the version up to the next minor release, and immediately
-// down to pre-release. premajor and prepatch work the same way.
-SemVer.prototype.inc = function(release, identifier) {
- switch (release) {
- case 'premajor':
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor = 0;
- this.major++;
- this.inc('pre', identifier);
- break;
- case 'preminor':
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor++;
- this.inc('pre', identifier);
- break;
- case 'prepatch':
- // If this is already a prerelease, it will bump to the next version
- // drop any prereleases that might already exist, since they are not
- // relevant at this point.
- this.prerelease.length = 0;
- this.inc('patch', identifier);
- this.inc('pre', identifier);
- break;
- // If the input is a non-prerelease version, this acts the same as
- // prepatch.
- case 'prerelease':
- if (this.prerelease.length === 0)
- this.inc('patch', identifier);
- this.inc('pre', identifier);
- break;
-
- case 'major':
- // If this is a pre-major version, bump up to the same major version.
- // Otherwise increment major.
- // 1.0.0-5 bumps to 1.0.0
- // 1.1.0 bumps to 2.0.0
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0)
- this.major++;
- this.minor = 0;
- this.patch = 0;
- this.prerelease = [];
- break;
- case 'minor':
- // If this is a pre-minor version, bump up to the same minor version.
- // Otherwise increment minor.
- // 1.2.0-5 bumps to 1.2.0
- // 1.2.1 bumps to 1.3.0
- if (this.patch !== 0 || this.prerelease.length === 0)
- this.minor++;
- this.patch = 0;
- this.prerelease = [];
- break;
- case 'patch':
- // If this is not a pre-release version, it will increment the patch.
- // If it is a pre-release it will bump up to the same patch version.
- // 1.2.0-5 patches to 1.2.0
- // 1.2.0 patches to 1.2.1
- if (this.prerelease.length === 0)
- this.patch++;
- this.prerelease = [];
- break;
- // This probably shouldn't be used publicly.
- // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
- case 'pre':
- if (this.prerelease.length === 0)
- this.prerelease = [0];
- else {
- var i = this.prerelease.length;
- while (--i >= 0) {
- if (typeof this.prerelease[i] === 'number') {
- this.prerelease[i]++;
- i = -2;
- }
- }
- if (i === -1) // didn't increment anything
- this.prerelease.push(0);
- }
- if (identifier) {
- // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
- // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
- if (this.prerelease[0] === identifier) {
- if (isNaN(this.prerelease[1]))
- this.prerelease = [identifier, 0];
- } else
- this.prerelease = [identifier, 0];
- }
- break;
-
- default:
- throw new Error('invalid increment argument: ' + release);
- }
- this.format();
- this.raw = this.version;
- return this;
-};
-
-exports.inc = inc;
-function inc(version, release, loose, identifier) {
- if (typeof(loose) === 'string') {
- identifier = loose;
- loose = undefined;
- }
-
- try {
- return new SemVer(version, loose).inc(release, identifier).version;
- } catch (er) {
- return null;
- }
-}
-
-exports.diff = diff;
-function diff(version1, version2) {
- if (eq(version1, version2)) {
- return null;
- } else {
- var v1 = parse(version1);
- var v2 = parse(version2);
- if (v1.prerelease.length || v2.prerelease.length) {
- for (var key in v1) {
- if (key === 'major' || key === 'minor' || key === 'patch') {
- if (v1[key] !== v2[key]) {
- return 'pre'+key;
- }
- }
- }
- return 'prerelease';
- }
- for (var key in v1) {
- if (key === 'major' || key === 'minor' || key === 'patch') {
- if (v1[key] !== v2[key]) {
- return key;
- }
- }
- }
- }
-}
-
-exports.compareIdentifiers = compareIdentifiers;
-
-var numeric = /^[0-9]+$/;
-function compareIdentifiers(a, b) {
- var anum = numeric.test(a);
- var bnum = numeric.test(b);
-
- if (anum && bnum) {
- a = +a;
- b = +b;
- }
-
- return (anum && !bnum) ? -1 :
- (bnum && !anum) ? 1 :
- a < b ? -1 :
- a > b ? 1 :
- 0;
-}
-
-exports.rcompareIdentifiers = rcompareIdentifiers;
-function rcompareIdentifiers(a, b) {
- return compareIdentifiers(b, a);
-}
-
-exports.major = major;
-function major(a, loose) {
- return new SemVer(a, loose).major;
-}
-
-exports.minor = minor;
-function minor(a, loose) {
- return new SemVer(a, loose).minor;
-}
-
-exports.patch = patch;
-function patch(a, loose) {
- return new SemVer(a, loose).patch;
-}
-
-exports.compare = compare;
-function compare(a, b, loose) {
- return new SemVer(a, loose).compare(b);
-}
-
-exports.compareLoose = compareLoose;
-function compareLoose(a, b) {
- return compare(a, b, true);
-}
-
-exports.rcompare = rcompare;
-function rcompare(a, b, loose) {
- return compare(b, a, loose);
-}
-
-exports.sort = sort;
-function sort(list, loose) {
- return list.sort(function(a, b) {
- return exports.compare(a, b, loose);
- });
-}
-
-exports.rsort = rsort;
-function rsort(list, loose) {
- return list.sort(function(a, b) {
- return exports.rcompare(a, b, loose);
- });
-}
-
-exports.gt = gt;
-function gt(a, b, loose) {
- return compare(a, b, loose) > 0;
-}
-
-exports.lt = lt;
-function lt(a, b, loose) {
- return compare(a, b, loose) < 0;
-}
-
-exports.eq = eq;
-function eq(a, b, loose) {
- return compare(a, b, loose) === 0;
-}
-
-exports.neq = neq;
-function neq(a, b, loose) {
- return compare(a, b, loose) !== 0;
-}
-
-exports.gte = gte;
-function gte(a, b, loose) {
- return compare(a, b, loose) >= 0;
-}
-
-exports.lte = lte;
-function lte(a, b, loose) {
- return compare(a, b, loose) <= 0;
-}
-
-exports.cmp = cmp;
-function cmp(a, op, b, loose) {
- var ret;
- switch (op) {
- case '===':
- if (typeof a === 'object') a = a.version;
- if (typeof b === 'object') b = b.version;
- ret = a === b;
- break;
- case '!==':
- if (typeof a === 'object') a = a.version;
- if (typeof b === 'object') b = b.version;
- ret = a !== b;
- break;
- case '': case '=': case '==': ret = eq(a, b, loose); break;
- case '!=': ret = neq(a, b, loose); break;
- case '>': ret = gt(a, b, loose); break;
- case '>=': ret = gte(a, b, loose); break;
- case '<': ret = lt(a, b, loose); break;
- case '<=': ret = lte(a, b, loose); break;
- default: throw new TypeError('Invalid operator: ' + op);
- }
- return ret;
-}
-
-exports.Comparator = Comparator;
-function Comparator(comp, loose) {
- if (comp instanceof Comparator) {
- if (comp.loose === loose)
- return comp;
- else
- comp = comp.value;
- }
-
- if (!(this instanceof Comparator))
- return new Comparator(comp, loose);
-
- debug('comparator', comp, loose);
- this.loose = loose;
- this.parse(comp);
-
- if (this.semver === ANY)
- this.value = '';
- else
- this.value = this.operator + this.semver.version;
-
- debug('comp', this);
-}
-
-var ANY = {};
-Comparator.prototype.parse = function(comp) {
- var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
- var m = comp.match(r);
-
- if (!m)
- throw new TypeError('Invalid comparator: ' + comp);
-
- this.operator = m[1];
- if (this.operator === '=')
- this.operator = '';
-
- // if it literally is just '>' or '' then allow anything.
- if (!m[2])
- this.semver = ANY;
- else
- this.semver = new SemVer(m[2], this.loose);
-};
-
-Comparator.prototype.toString = function() {
- return this.value;
-};
-
-Comparator.prototype.test = function(version) {
- debug('Comparator.test', version, this.loose);
-
- if (this.semver === ANY)
- return true;
-
- if (typeof version === 'string')
- version = new SemVer(version, this.loose);
-
- return cmp(version, this.operator, this.semver, this.loose);
-};
-
-
-exports.Range = Range;
-function Range(range, loose) {
- if ((range instanceof Range) && range.loose === loose)
- return range;
-
- if (!(this instanceof Range))
- return new Range(range, loose);
-
- this.loose = loose;
-
- // First, split based on boolean or ||
- this.raw = range;
- this.set = range.split(/\s*\|\|\s*/).map(function(range) {
- return this.parseRange(range.trim());
- }, this).filter(function(c) {
- // throw out any that are not relevant for whatever reason
- return c.length;
- });
-
- if (!this.set.length) {
- throw new TypeError('Invalid SemVer Range: ' + range);
- }
-
- this.format();
-}
-
-Range.prototype.format = function() {
- this.range = this.set.map(function(comps) {
- return comps.join(' ').trim();
- }).join('||').trim();
- return this.range;
-};
-
-Range.prototype.toString = function() {
- return this.range;
-};
-
-Range.prototype.parseRange = function(range) {
- var loose = this.loose;
- range = range.trim();
- debug('range', range, loose);
- // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
- var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE];
- range = range.replace(hr, hyphenReplace);
- debug('hyphen replace', range);
- // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
- range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace);
- debug('comparator trim', range, re[COMPARATORTRIM]);
-
- // `~ 1.2.3` => `~1.2.3`
- range = range.replace(re[TILDETRIM], tildeTrimReplace);
-
- // `^ 1.2.3` => `^1.2.3`
- range = range.replace(re[CARETTRIM], caretTrimReplace);
-
- // normalize spaces
- range = range.split(/\s+/).join(' ');
-
- // At this point, the range is completely trimmed and
- // ready to be split into comparators.
-
- var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
- var set = range.split(' ').map(function(comp) {
- return parseComparator(comp, loose);
- }).join(' ').split(/\s+/);
- if (this.loose) {
- // in loose mode, throw out any that are not valid comparators
- set = set.filter(function(comp) {
- return !!comp.match(compRe);
- });
- }
- set = set.map(function(comp) {
- return new Comparator(comp, loose);
- });
-
- return set;
-};
-
-// Mostly just for testing and legacy API reasons
-exports.toComparators = toComparators;
-function toComparators(range, loose) {
- return new Range(range, loose).set.map(function(comp) {
- return comp.map(function(c) {
- return c.value;
- }).join(' ').trim().split(' ');
- });
-}
-
-// comprised of xranges, tildes, stars, and gtlt's at this point.
-// already replaced the hyphen ranges
-// turn into a set of JUST comparators.
-function parseComparator(comp, loose) {
- debug('comp', comp);
- comp = replaceCarets(comp, loose);
- debug('caret', comp);
- comp = replaceTildes(comp, loose);
- debug('tildes', comp);
- comp = replaceXRanges(comp, loose);
- debug('xrange', comp);
- comp = replaceStars(comp, loose);
- debug('stars', comp);
- return comp;
-}
-
-function isX(id) {
- return !id || id.toLowerCase() === 'x' || id === '*';
-}
-
-// ~, ~> --> * (any, kinda silly)
-// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
-// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
-// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
-// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
-// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
-function replaceTildes(comp, loose) {
- return comp.trim().split(/\s+/).map(function(comp) {
- return replaceTilde(comp, loose);
- }).join(' ');
-}
-
-function replaceTilde(comp, loose) {
- var r = loose ? re[TILDELOOSE] : re[TILDE];
- return comp.replace(r, function(_, M, m, p, pr) {
- debug('tilde', comp, _, M, m, p, pr);
- var ret;
-
- if (isX(M))
- ret = '';
- else if (isX(m))
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- else if (isX(p))
- // ~1.2 == >=1.2.0 <1.3.0
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- else if (pr) {
- debug('replaceTilde pr', pr);
- if (pr.charAt(0) !== '-')
- pr = '-' + pr;
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- // ~1.2.3 == >=1.2.3 <1.3.0
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0';
-
- debug('tilde return', ret);
- return ret;
- });
-}
-
-// ^ --> * (any, kinda silly)
-// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
-// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
-// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
-// ^1.2.3 --> >=1.2.3 <2.0.0
-// ^1.2.0 --> >=1.2.0 <2.0.0
-function replaceCarets(comp, loose) {
- return comp.trim().split(/\s+/).map(function(comp) {
- return replaceCaret(comp, loose);
- }).join(' ');
-}
-
-function replaceCaret(comp, loose) {
- debug('caret', comp, loose);
- var r = loose ? re[CARETLOOSE] : re[CARET];
- return comp.replace(r, function(_, M, m, p, pr) {
- debug('caret', comp, _, M, m, p, pr);
- var ret;
-
- if (isX(M))
- ret = '';
- else if (isX(m))
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- else if (isX(p)) {
- if (M === '0')
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- else
- ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0';
- } else if (pr) {
- debug('replaceCaret pr', pr);
- if (pr.charAt(0) !== '-')
- pr = '-' + pr;
- if (M === '0') {
- if (m === '0')
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + m + '.' + (+p + 1);
- else
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + (+M + 1) + '.0.0';
- } else {
- debug('no pr');
- if (M === '0') {
- if (m === '0')
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + m + '.' + (+p + 1);
- else
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + (+M + 1) + '.0.0';
- }
-
- debug('caret return', ret);
- return ret;
- });
-}
-
-function replaceXRanges(comp, loose) {
- debug('replaceXRanges', comp, loose);
- return comp.split(/\s+/).map(function(comp) {
- return replaceXRange(comp, loose);
- }).join(' ');
-}
-
-function replaceXRange(comp, loose) {
- comp = comp.trim();
- var r = loose ? re[XRANGELOOSE] : re[XRANGE];
- return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
- debug('xRange', comp, ret, gtlt, M, m, p, pr);
- var xM = isX(M);
- var xm = xM || isX(m);
- var xp = xm || isX(p);
- var anyX = xp;
-
- if (gtlt === '=' && anyX)
- gtlt = '';
-
- if (xM) {
- if (gtlt === '>' || gtlt === '<') {
- // nothing is allowed
- ret = '<0.0.0';
- } else {
- // nothing is forbidden
- ret = '*';
- }
- } else if (gtlt && anyX) {
- // replace X with 0
- if (xm)
- m = 0;
- if (xp)
- p = 0;
-
- if (gtlt === '>') {
- // >1 => >=2.0.0
- // >1.2 => >=1.3.0
- // >1.2.3 => >= 1.2.4
- gtlt = '>=';
- if (xm) {
- M = +M + 1;
- m = 0;
- p = 0;
- } else if (xp) {
- m = +m + 1;
- p = 0;
- }
- } else if (gtlt === '<=') {
- // <=0.7.x is actually <0.8.0, since any 0.7.x should
- // pass. Similarly, <=7.x is actually <8.0.0, etc.
- gtlt = '<';
- if (xm)
- M = +M + 1;
- else
- m = +m + 1;
- }
-
- ret = gtlt + M + '.' + m + '.' + p;
- } else if (xm) {
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- } else if (xp) {
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- }
-
- debug('xRange return', ret);
-
- return ret;
- });
-}
-
-// Because * is AND-ed with everything else in the comparator,
-// and '' means "any version", just remove the *s entirely.
-function replaceStars(comp, loose) {
- debug('replaceStars', comp, loose);
- // Looseness is ignored here. star is always as loose as it gets!
- return comp.trim().replace(re[STAR], '');
-}
-
-// This function is passed to string.replace(re[HYPHENRANGE])
-// M, m, patch, prerelease, build
-// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
-// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
-// 1.2 - 3.4 => >=1.2.0 <3.5.0
-function hyphenReplace($0,
- from, fM, fm, fp, fpr, fb,
- to, tM, tm, tp, tpr, tb) {
-
- if (isX(fM))
- from = '';
- else if (isX(fm))
- from = '>=' + fM + '.0.0';
- else if (isX(fp))
- from = '>=' + fM + '.' + fm + '.0';
- else
- from = '>=' + from;
-
- if (isX(tM))
- to = '';
- else if (isX(tm))
- to = '<' + (+tM + 1) + '.0.0';
- else if (isX(tp))
- to = '<' + tM + '.' + (+tm + 1) + '.0';
- else if (tpr)
- to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr;
- else
- to = '<=' + to;
-
- return (from + ' ' + to).trim();
-}
-
-
-// if ANY of the sets match ALL of its comparators, then pass
-Range.prototype.test = function(version) {
- if (!version)
- return false;
-
- if (typeof version === 'string')
- version = new SemVer(version, this.loose);
-
- for (var i = 0; i < this.set.length; i++) {
- if (testSet(this.set[i], version))
- return true;
- }
- return false;
-};
-
-function testSet(set, version) {
- for (var i = 0; i < set.length; i++) {
- if (!set[i].test(version))
- return false;
- }
-
- if (version.prerelease.length) {
- // Find the set of versions that are allowed to have prereleases
- // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
- // That should allow `1.2.3-pr.2` to pass.
- // However, `1.2.4-alpha.notready` should NOT be allowed,
- // even though it's within the range set by the comparators.
- for (var i = 0; i < set.length; i++) {
- debug(set[i].semver);
- if (set[i].semver === ANY)
- continue;
-
- if (set[i].semver.prerelease.length > 0) {
- var allowed = set[i].semver;
- if (allowed.major === version.major &&
- allowed.minor === version.minor &&
- allowed.patch === version.patch)
- return true;
- }
- }
-
- // Version has a -pre, but it's not one of the ones we like.
- return false;
- }
-
- return true;
-}
-
-exports.satisfies = satisfies;
-function satisfies(version, range, loose) {
- try {
- range = new Range(range, loose);
- } catch (er) {
- return false;
- }
- return range.test(version);
-}
-
-exports.maxSatisfying = maxSatisfying;
-function maxSatisfying(versions, range, loose) {
- return versions.filter(function(version) {
- return satisfies(version, range, loose);
- }).sort(function(a, b) {
- return rcompare(a, b, loose);
- })[0] || null;
-}
-
-exports.minSatisfying = minSatisfying;
-function minSatisfying(versions, range, loose) {
- return versions.filter(function(version) {
- return satisfies(version, range, loose);
- }).sort(function(a, b) {
- return compare(a, b, loose);
- })[0] || null;
-}
-
-exports.validRange = validRange;
-function validRange(range, loose) {
- try {
- // Return '*' instead of '' so that truthiness works.
- // This will throw if it's invalid anyway
- return new Range(range, loose).range || '*';
- } catch (er) {
- return null;
- }
-}
-
-// Determine if version is less than all the versions possible in the range
-exports.ltr = ltr;
-function ltr(version, range, loose) {
- return outside(version, range, '<', loose);
-}
-
-// Determine if version is greater than all the versions possible in the range.
-exports.gtr = gtr;
-function gtr(version, range, loose) {
- return outside(version, range, '>', loose);
-}
-
-exports.outside = outside;
-function outside(version, range, hilo, loose) {
- version = new SemVer(version, loose);
- range = new Range(range, loose);
-
- var gtfn, ltefn, ltfn, comp, ecomp;
- switch (hilo) {
- case '>':
- gtfn = gt;
- ltefn = lte;
- ltfn = lt;
- comp = '>';
- ecomp = '>=';
- break;
- case '<':
- gtfn = lt;
- ltefn = gte;
- ltfn = gt;
- comp = '<';
- ecomp = '<=';
- break;
- default:
- throw new TypeError('Must provide a hilo val of "<" or ">"');
- }
-
- // If it satisifes the range it is not outside
- if (satisfies(version, range, loose)) {
- return false;
- }
-
- // From now on, variable terms are as if we're in "gtr" mode.
- // but note that everything is flipped for the "ltr" function.
-
- for (var i = 0; i < range.set.length; ++i) {
- var comparators = range.set[i];
-
- var high = null;
- var low = null;
-
- comparators.forEach(function(comparator) {
- if (comparator.semver === ANY) {
- comparator = new Comparator('>=0.0.0')
- }
- high = high || comparator;
- low = low || comparator;
- if (gtfn(comparator.semver, high.semver, loose)) {
- high = comparator;
- } else if (ltfn(comparator.semver, low.semver, loose)) {
- low = comparator;
- }
- });
-
- // If the edge version comparator has a operator then our version
- // isn't outside it
- if (high.operator === comp || high.operator === ecomp) {
- return false;
- }
-
- // If the lowest version comparator has an operator and our version
- // is less than it then it isn't higher than the range
- if ((!low.operator || low.operator === comp) &&
- ltefn(version, low.semver)) {
- return false;
- } else if (low.operator === ecomp && ltfn(version, low.semver)) {
- return false;
- }
- }
- return true;
-}
-
-exports.prerelease = prerelease;
-function prerelease(version, loose) {
- var parsed = parse(version, loose);
- return (parsed && parsed.prerelease.length) ? parsed.prerelease : null;
-}
diff --git a/node_modules/accord/package.json b/node_modules/accord/package.json
deleted file mode 100644
index 74fa2e0..0000000
--- a/node_modules/accord/package.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "accord@^0.26.3",
- "scope": null,
- "escapedName": "accord",
- "name": "accord",
- "rawSpec": "^0.26.3",
- "spec": ">=0.26.3 <0.27.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/gulp-less"
- ]
- ],
- "_from": "accord@>=0.26.3 <0.27.0",
- "_id": "accord@0.26.4",
- "_inCache": true,
- "_location": "/accord",
- "_nodeVersion": "6.5.0",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/accord-0.26.4.tgz_1481735761026_0.1164698894135654"
- },
- "_npmUser": {
- "name": "jescalan",
- "email": "npm.je@mailhero.io"
- },
- "_npmVersion": "3.10.9",
- "_phantomChildren": {},
- "_requested": {
- "raw": "accord@^0.26.3",
- "scope": null,
- "escapedName": "accord",
- "name": "accord",
- "rawSpec": "^0.26.3",
- "spec": ">=0.26.3 <0.27.0",
- "type": "range"
- },
- "_requiredBy": [
- "/gulp-less"
- ],
- "_resolved": "https://registry.npmjs.org/accord/-/accord-0.26.4.tgz",
- "_shasum": "fc4c8d3ebab406a07cb28819b859651c44a92e80",
- "_shrinkwrap": null,
- "_spec": "accord@^0.26.3",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-less",
- "author": {
- "name": "Jeff Escalante"
- },
- "bugs": {
- "url": "https://github.com/jescalan/accord"
- },
- "dependencies": {
- "convert-source-map": "^1.2.0",
- "glob": "^7.0.5",
- "indx": "^0.2.3",
- "lodash.clone": "^4.3.2",
- "lodash.defaults": "^4.0.1",
- "lodash.flatten": "^4.2.0",
- "lodash.merge": "^4.4.0",
- "lodash.partialright": "^4.1.4",
- "lodash.pick": "^4.2.1",
- "lodash.uniq": "^4.3.0",
- "resolve": "^1.1.7",
- "semver": "^5.3.0",
- "uglify-js": "^2.7.0",
- "when": "^3.7.7"
- },
- "description": "A unified interface for compiled languages and templates in JavaScript",
- "devDependencies": {
- "LiveScript": "^1.3.1",
- "acorn": "^4.0.0",
- "babel": "^6.5.2",
- "babel-core": "^6.18.1",
- "babel-preset-es2015": "^6.18.0",
- "buble": "^0.14.2",
- "chai": "^3.5.0",
- "clean-css": "^3.4.21",
- "coco": "^0.9.1",
- "coffee-coverage": "^1.0.1",
- "coffee-react-transform": "^5.0.0",
- "coffee-script": "^1.11.0",
- "coveralls": "^2.11.15",
- "css-parse": "^2.0.0",
- "csso": "^2.2.0",
- "dogescript": "^2.3.0",
- "dot": "^1.1.1",
- "eco": "^1.0.3",
- "ejs": "^2.4.2",
- "hamljs": "^0.6.2",
- "handlebars": "^4.0.6",
- "he": "^1.1.0",
- "hogan.js": "^3.0.2",
- "html-minifier": "^3.2.2",
- "istanbul": "^0.4.4",
- "jade": "^1.11.0",
- "less": "^2.7.1",
- "marc": "^0.1.0",
- "marked": "^0.3.5",
- "mocha": "^3.1.2",
- "mocha-lcov-reporter": "^1.2.0",
- "myth": "^1.5.0",
- "node-sass": "^4.0.0",
- "parse5": "^3.0.0",
- "polytest": "0.0.1",
- "postcss": "^5.2.5",
- "postcss-simple-vars": "^3.0.0",
- "react-tools": "^0.13.3",
- "stylus": "^0.54.5",
- "swig": "^1.4.2",
- "toffee": "^0.1.12",
- "typescript-compiler": "^1.4.1"
- },
- "directories": {},
- "dist": {
- "shasum": "fc4c8d3ebab406a07cb28819b859651c44a92e80",
- "tarball": "https://registry.npmjs.org/accord/-/accord-0.26.4.tgz"
- },
- "gitHead": "ecc580bd42554615fc3a48e2bad6d6b355a7780b",
- "homepage": "https://github.com/jescalan/accord",
- "keywords": [
- "compile"
- ],
- "license": "MIT",
- "main": "lib",
- "maintainers": [
- {
- "name": "jescalan",
- "email": "npm.je@mailhero.io"
- }
- ],
- "name": "accord",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jenius/accord.git"
- },
- "scripts": {
- "coverage": "mocha && ./node_modules/.bin/istanbul report && open coverage/lcov-report/index.html",
- "coveralls": "istanbul report && cat ./coverage/lcov.info | coveralls",
- "legacy": "coffee test/legacy.coffee",
- "test": "mocha test/test.coffee"
- },
- "version": "0.26.4"
-}
diff --git a/node_modules/accord/readme.md b/node_modules/accord/readme.md
deleted file mode 100644
index fda88b7..0000000
--- a/node_modules/accord/readme.md
+++ /dev/null
@@ -1,184 +0,0 @@
-accord
-======
-
-[](http://badge.fury.io/js/accord)
-[](https://travis-ci.org/jescalan/accord)
-[](https://coveralls.io/r/jescalan/accord?branch=master)
-[](https://david-dm.org/jescalan/accord)
-
-A unified interface for compiled languages and templates in JavaScript.
-
-> **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.
-
-### Why should you care?
-
-There are two other libraries that already attempt to provide a common compiler interface: [consolidate.js](https://github.com/tj/consolidate.js) and [JSTransformers](https://github.com/jstransformers/jstransformer). After reviewing & using both of them, we designed accord to provide a more maintainable code base and way of writing adapters.
-
-Accord:
-
-- Uses standard JavaScript inheritance (aka: classes in CoffeeScript) in its adapters
-- Supports source maps
-- Lets you use any major version of an adapter
-
-### Installation
-
-`npm install accord`
-
-### Usage
-
-Accord itself exposes only a JavaScript API. If you are interested in using this library from the command line, check out the [accord-cli](https://github.com/carrot/accord-cli) project.
-
-Since some templating engines are async and others are not, accord keeps things consistent by returning a promise for any task (using [when.js](https://github.com/cujojs/when)). Here's an example in CoffeeScript:
-
-```coffee
-fs = require 'fs'
-accord = require 'accord'
-jade = accord.load('jade')
-
-# render a string
-jade.render('body\n .test')
- .done(console.log.bind(console))
-
-# or a file
-jade.renderFile('./example.jade')
- .done(console.log.bind(console))
-
-# or compile a string to a function
-# (only some to-html compilers support this, see below)
-jade.compile('body\n .test')
- .done(console.log.bind(console))
-
-# or a file
-jade.compileFile('./example.jade')
- .done(console.log.bind(console))
-
-# compile a client-side js template
-jade.compileClient('body\n .test')
- .done (res) -> console.log(res.result.toString())
-
-# or a file
-jade.compileFileClient('./example.jade')
- .done (res) -> console.log(res.result.toString())
-
-```
-
-It's also important to note that accord returns an object rather than a string from each of these methods. You can access the compiled result on the `result` property of this object. If the adapter supports source maps, the source map will also be on this object if you have passed in the correct options. Docs below should explain the methods executed in the example above.
-
-### Accord Methods
-
-- `accord.load(string, object)` - loads the compiler named in the first param, npm package with the name must be installed locally, or the optional second param must be the compiler you are after. The second param allows you to load the compiler from elsewhere or load an alternate version if you want, but be careful.
-
-- `accord.supports(string)` - quick test to see if accord supports a certain compiler. accepts a string, which is the name of language (like markdown) or a compiler (like marked), returns a boolean.
-
-### Accord Adapter Methods
-
-- `adapter.name`
-- `adapter.render(string, options)` - render a string to a compiled string
-- `adapter.renderFile(path, options)` - render a file to a compiled string
-- `adapter.compile(string, options)` - compile a string to a function
-- `adapter.compileFile(path, options)` - compile a file to a function
-- `adapter.compileClient(string, options)` - compile a string to a client-side-ready function
-- `adapter.compileFileClient(string, options)` - compile a file to a client-side-ready function
-- `adapter.clientHelpers()` - some adapters that compile for client also need helpers, this method returns a string of minfied JavaScript with all of them
-- `adapter.extensions` - array of all file extensions the compiler should match
-- `adapter.output` - string, expected output extension
-- `adapter.engine` - the actual compiler, no adapter wrapper, if you need it
-
-### Supported Languages
-
-#### HTML
-
-- [jade](http://jade-lang.com/)
-- [eco](https://github.com/sstephenson/eco)
-- [ejs](https://github.com/tj/ejs)
-- [markdown](https://github.com/chjj/marked)
-- [mustache/hogan](https://github.com/twitter/hogan.js)
-- [handlebars](https://github.com/wycats/handlebars.js)
-- [haml](https://github.com/tj/haml.js)
-- [swig](http://paularmstrong.github.io/swig)
-- [marc](https://github.com/bredele/marc)
-- [toffee](https://github.com/malgorithms/toffee)
-- [doT.js](https://github.com/olado/doT)
-
-#### CSS
-
-- [stylus](http://learnboost.github.io/stylus/)
-- [scss](https://github.com/sass/node-sass)
-- [less](https://github.com/less/less.js/)
-- [myth](https://github.com/segmentio/myth)
-- [postcss](https://github.com/postcss/postcss)
-
-#### JavaScript
-
-- [coffeescript](http://coffeescript.org/)
-- [dogescript](https://github.com/dogescript/dogescript)
-- [coco](https://github.com/satyr/coco)
-- [livescript](https://github.com/gkz/LiveScript)
-- [babel](https://github.com/babel/babel)
-- [jsx](https://github.com/facebook/react)
-- [cjsx](https://github.com/jsdf/coffee-react-transform)
-- [typescript](http://www.typescriptlang.org/)
-- [buble](https://buble.surge.sh/guide/)
-
-#### Minifiers
-
-- [minify-js](https://github.com/mishoo/UglifyJS2)
-- [minify-css](https://github.com/jakubpawlowicz/clean-css)
-- [minify-html](https://github.com/kangax/html-minifier)
-- [csso](https://github.com/css/csso)
-
-#### Escapers
-
-- [escape-html](https://github.com/mathiasbynens/he)
-
-### Evergreen Version Support
-
-As of version `0.20.0`, accord ships with a system that can be used to offer full support for any engine across any version, so that the interface remains consistent even in the face of breaking changes to the adapter's API. With this feature in place, you can freely upgrade accord without worrying about any breakage in any libraries you are using, ever.
-
-So for example, if you are using sass and they release a breaking version bump, we will release a new adapter for the new version and cut a new release of accord that includes support for this version. However, if you are still using the old version, it will still work as before so you have as much time as you need to upgrade to the new version.
-
-This does not mean that we immediately support every version of every library infinitely into the past. However, going forward, we will support any new updates to libraries from now on to ensure that nothing breaks for users.
-
-This is a feature that is unique to accord and we are beyond excited to make it available to everyone.
-
-### Languages Supporting Compilation
-
-Accord can also compile templates into JavaScript functions, for some languages. This is really useful for client-side rendering. Languages with compile support are listed below. If you try to compile a language without support for it, you will get an error.
-
-- jade
-- ejs
-- handlebars
-- mustache
-
-We are always looking to add compile support for more languages, but it can be difficult, as client-side template support isn't always the first thing on language authors' minds. Any contributions that help to expand this list are greatly appreciated!
-
-When using a language supporting client-side templates, make sure to check the [docs](docs) for that language for more details. In general, you'll get back a stringified function from the `compileClient` or `compileFileClient` methods, and a string of client helpers from the `clientHelpers` methods. You can take these, organize them, and write them to files however you wish. Usually the best way is to write the helpers to a file first, then iterate through each of the client-compiled functions, assigning them a name so they can be accessed later on.
-
-### Adding Languages
-
-Want to add more languages? We have put extra effort into making the adapter pattern structure understandable and easy to add to and test. Rather than requesting that a language be added, please add a pull request and add it yourself! We are quite responsive and will quickly accept if the implementation is well-tested.
-
-Details on running tests and contributing [can be found here](contributing.md)
-
-### Source Maps
-
-Accord now supports source map generation for any language that also supports source maps. At the moment, this includes the following languages:
-
-- stylus
-- less
-- myth
-- scss
-- coffeescript
-- minify-js
-- 6to5
-- postcss
-
-Accord returns all source maps as javascript objects, and if available will prefer a [v3 sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit) over any other format. You can find the primary sourcemap on the object returned from accord under the `sourcemap` key. If there are multiple sourcemaps generated, alternate ones will be avaiable under different keys, which you can find on the object returned from accord after a compile.
-
-To generate a sourcemap, you can pass `sourcemap: true` as an option to any compiler and you will get back a sourcemap with the file names, sources, and mappings correctly specified, guaranteed. Each compiler also has it's own way of specifying source map options. If you'd like to dive into those details to customize the output, you are welcome to do so, but it is at your own risk.
-
-If there is a language that now supports sourcemaps and you'd like support for them to be added, get a pull request going and we'll make it happen!
-
-### License
-
-Licensed under [MIT](license.md)
diff --git a/node_modules/align-text/LICENSE b/node_modules/align-text/LICENSE
deleted file mode 100644
index 65f90ac..0000000
--- a/node_modules/align-text/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015, Jon Schlinkert.
-
-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/node_modules/align-text/README.md b/node_modules/align-text/README.md
deleted file mode 100644
index 476b97f..0000000
--- a/node_modules/align-text/README.md
+++ /dev/null
@@ -1,236 +0,0 @@
-# align-text [](http://badge.fury.io/js/align-text) [](https://travis-ci.org/jonschlinkert/align-text)
-
-> Align the text in a string.
-
-**Examples**
-
-Align text values in an array:
-
-```js
-align([1, 2, 3, 100]);
-//=> [' 1', ' 2', ' 3', '100']
-```
-
-Or [do stuff like this](./example.js):
-
-[](./example.js)
-
-Visit [the example](./example.js) to see how this works.
-
-## Install
-
-Install with [npm](https://www.npmjs.com/)
-
-```sh
-$ npm i align-text --save
-```
-
-## Usage
-
-```js
-var align = require('align-text');
-align(text, callback_function_or_integer);
-```
-
-**Params**
-
-* `text` can be a **string or array**. If a string is passed, a string will be returned. If an array is passed, an array will be returned.
-* `callback|integer`: if an integer, the text will be indented by that amount. If a function, it must return an integer representing the amount of leading indentation to use as `align` loops over each line.
-
-**Example**
-
-```js
-align(text, 4);
-```
-
-Would align:
-
-```
-abc
-abc
-abc
-```
-
-To:
-
-```
- abc
- abc
- abc
-```
-
-## callback
-
-### params
-
-The callback is used to determine the indentation of each line and gets the following params:
-
-* `len` the length of the "current" line
-* `longest` the length of the longest line
-* `line` the current line (string) being aligned
-* `lines` the array of all lines
-
-### return
-
-The callback may return:
-
-* an integer that represents the number of spaces to use for padding,
-* or an object with the following properties:
- - `indent`: **{Number}** the amount of indentation to use. Default is `0` when an object is returned.
- - `character`: **{String}** the character to use for indentation. Default is `''` (empty string) when an object is returned.
- - `prefix`: **{String}** leading characters to use at the beginning of each line. `''` (empty string) when an object is returned.
-
-**Integer example:**
-
-```js
-// calculate half the difference between the length
-// of the current line and the longest line
-function centerAlign(len, longest, line, lines) {
- return Math.floor((longest - len) / 2);
-}
-```
-
-**Object example:**
-
-```js
-function centerAlign(len, longest, line, lines) {
- return {
- character: '\t',
- indent: Math.floor((longest - len) / 2),
- prefix: '~ ',
- }
-}
-```
-
-## Usage examples
-
-### Center align
-
-Using the `centerAlign` function from above:
-
-```js
-align(text, centerAlign);
-```
-
-Would align this text:
-
-```js
-Lorem ipsum dolor sit amet
-consectetur adipiscin
-elit, sed do eiusmod tempor incididun
-ut labore et dolor
-magna aliqua. Ut enim ad mini
-veniam, quis
-```
-
-Resulting in this:
-
-```
- Lorem ipsum dolor sit amet,
- consectetur adipiscing
-elit, sed do eiusmod tempor incididunt
- ut labore et dolore
- magna aliqua. Ut enim ad minim
- veniam, quis
-```
-
-**Customize**
-
-If you wanted to add more padding on the left, just pass the number in the callback.
-
-For example, to add 4 spaces before every line:
-
-```js
-function centerAlign(len, longest, line, lines) {
- return 4 + Math.floor((longest - len) / 2);
-}
-```
-
-Would result in:
-
-```
- Lorem ipsum dolor sit amet,
- consectetur adipiscing
- elit, sed do eiusmod tempor incididunt
- ut labore et dolore
- magna aliqua. Ut enim ad minim
- veniam, quis
-```
-
-### Bullets
-
-```js
-align(text, function (len, max, line, lines) {
- return {prefix: ' - '};
-});
-```
-
-Would return:
-
-```
-- Lorem ipsum dolor sit amet,
-- consectetur adipiscing
-- elit, sed do eiusmod tempor incididunt
-- ut labore et dolore
-- magna aliqua. Ut enim ad minim
-- veniam, quis
-```
-
-### Different indent character
-
-```js
-align(text, function (len, max, line, lines) {
- return {
- indent: Math.floor((max - len) / 2),
- character: '~',
- };
-});
-```
-
-Would return
-
-```
-~~~~~Lorem ipsum dolor sit amet,
-~~~~~~~~consectetur adipiscing
-elit, sed do eiusmod tempor incididunt
-~~~~~~~~~ut labore et dolore
-~~~~magna aliqua. Ut enim ad minim
-~~~~~~~~~~~~~veniam, quis
-```
-
-## Related projects
-
-* [center-align](https://github.com/jonschlinkert/center-align): Center-align the text in a string.
-* [justify](https://github.com/bahamas10/node-justify): Left or right (or both) justify text using a custom width and character
-* [longest](https://github.com/jonschlinkert/longest): Get the longest item in an array.
-* [right-align](https://github.com/jonschlinkert/right-align): Right-align the text in a string.
-* [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.
-* [word-wrap](https://github.com/jonschlinkert/word-wrap): Wrap words to a specified length.
-
-## Running tests
-
-Install dev dependencies:
-
-```sh
-$ npm i -d && npm test
-```
-
-## Contributing
-
-Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/align-text/issues/new)
-
-## Author
-
-**Jon Schlinkert**
-
-+ [github/jonschlinkert](https://github.com/jonschlinkert)
-+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
-
-## License
-
-Copyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)
-Released under the MIT license.
-
-***
-
-_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 09, 2015._
diff --git a/node_modules/align-text/index.js b/node_modules/align-text/index.js
deleted file mode 100644
index 75902a3..0000000
--- a/node_modules/align-text/index.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/*!
- * align-text
- *
- * Copyright (c) 2015, Jon Schlinkert.
- * Licensed under the MIT License.
- */
-
-'use strict';
-
-var typeOf = require('kind-of');
-var repeat = require('repeat-string');
-var longest = require('longest');
-
-module.exports = function alignText(val, fn) {
- var lines, type = typeOf(val);
-
- if (type === 'array') {
- lines = val;
- } else if (type === 'string') {
- lines = val.split(/(?:\r\n|\n)/);
- } else {
- throw new TypeError('align-text expects a string or array.');
- }
-
- var fnType = typeOf(fn);
- var len = lines.length;
- var max = longest(lines);
- var res = [], i = 0;
-
- while (len--) {
- var line = String(lines[i++]);
- var diff;
-
- if (fnType === 'function') {
- diff = fn(line.length, max.length, line, lines, i);
- } else if (fnType === 'number') {
- diff = fn;
- } else {
- diff = max.length - line.length;
- }
-
- if (typeOf(diff) === 'number') {
- res.push(repeat(' ', diff) + line);
- } else if (typeOf(diff) === 'object') {
- var result = repeat(diff.character || ' ', diff.indent || 0);
- res.push((diff.prefix || '') + result + line);
- }
- }
-
- if (type === 'array') return res;
- return res.join('\n');
-};
diff --git a/node_modules/align-text/package.json b/node_modules/align-text/package.json
deleted file mode 100644
index 04901e1..0000000
--- a/node_modules/align-text/package.json
+++ /dev/null
@@ -1,117 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "align-text@^0.1.3",
- "scope": null,
- "escapedName": "align-text",
- "name": "align-text",
- "rawSpec": "^0.1.3",
- "spec": ">=0.1.3 <0.2.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/center-align"
- ]
- ],
- "_from": "align-text@>=0.1.3 <0.2.0",
- "_id": "align-text@0.1.4",
- "_inCache": true,
- "_location": "/align-text",
- "_nodeVersion": "5.5.0",
- "_npmOperationalInternal": {
- "host": "packages-9-west.internal.npmjs.com",
- "tmp": "tmp/align-text-0.1.4.tgz_1454377856920_0.9624228512402624"
- },
- "_npmUser": {
- "name": "shinnn",
- "email": "snnskwtnb@gmail.com"
- },
- "_npmVersion": "3.6.0",
- "_phantomChildren": {},
- "_requested": {
- "raw": "align-text@^0.1.3",
- "scope": null,
- "escapedName": "align-text",
- "name": "align-text",
- "rawSpec": "^0.1.3",
- "spec": ">=0.1.3 <0.2.0",
- "type": "range"
- },
- "_requiredBy": [
- "/center-align",
- "/right-align"
- ],
- "_resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz",
- "_shasum": "0cd90a561093f35d0a99256c22b7069433fad117",
- "_shrinkwrap": null,
- "_spec": "align-text@^0.1.3",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/center-align",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/align-text/issues"
- },
- "dependencies": {
- "kind-of": "^3.0.2",
- "longest": "^1.0.1",
- "repeat-string": "^1.5.2"
- },
- "description": "Align the text in a string.",
- "devDependencies": {
- "mocha": "*",
- "should": "*",
- "word-wrap": "^1.0.3"
- },
- "directories": {},
- "dist": {
- "shasum": "0cd90a561093f35d0a99256c22b7069433fad117",
- "tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "7f08e823a54c6bda319d875895813537a66a4c5e",
- "homepage": "https://github.com/jonschlinkert/align-text",
- "keywords": [
- "align",
- "align-center",
- "alignment",
- "center",
- "center-align",
- "indent",
- "pad",
- "padding",
- "right",
- "right-align",
- "text",
- "typography"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- },
- {
- "name": "shinnn",
- "email": "snnskwtnb@gmail.com"
- }
- ],
- "name": "align-text",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/jonschlinkert/align-text.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "0.1.4"
-}
diff --git a/node_modules/amdefine/LICENSE b/node_modules/amdefine/LICENSE
deleted file mode 100644
index 9b25ee0..0000000
--- a/node_modules/amdefine/LICENSE
+++ /dev/null
@@ -1,58 +0,0 @@
-amdefine is released under two licenses: new BSD, and MIT. You may pick the
-license that best suits your development needs. The text of both licenses are
-provided below.
-
-
-The "New" BSD License:
-----------------------
-
-Copyright (c) 2011-2016, The Dojo Foundation
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of the Dojo Foundation nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-
-MIT License
------------
-
-Copyright (c) 2011-2016, The Dojo Foundation
-
-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/node_modules/amdefine/README.md b/node_modules/amdefine/README.md
deleted file mode 100644
index 037a6e8..0000000
--- a/node_modules/amdefine/README.md
+++ /dev/null
@@ -1,171 +0,0 @@
-# amdefine
-
-A module that can be used to implement AMD's define() in Node. This allows you
-to code to the AMD API and have the module work in node programs without
-requiring those other programs to use AMD.
-
-## Usage
-
-**1)** Update your package.json to indicate amdefine as a dependency:
-
-```javascript
- "dependencies": {
- "amdefine": ">=0.1.0"
- }
-```
-
-Then run `npm install` to get amdefine into your project.
-
-**2)** At the top of each module that uses define(), place this code:
-
-```javascript
-if (typeof define !== 'function') { var define = require('amdefine')(module) }
-```
-
-**Only use these snippets** when loading amdefine. If you preserve the basic structure,
-with the braces, it will be stripped out when using the [RequireJS optimizer](#optimizer).
-
-You can add spaces, line breaks and even require amdefine with a local path, but
-keep the rest of the structure to get the stripping behavior.
-
-As you may know, because `if` statements in JavaScript don't have their own scope, the var
-declaration in the above snippet is made whether the `if` expression is truthy or not. If
-RequireJS is loaded then the declaration is superfluous because `define` is already already
-declared in the same scope in RequireJS. Fortunately JavaScript handles multiple `var`
-declarations of the same variable in the same scope gracefully.
-
-If you want to deliver amdefine.js with your code rather than specifying it as a dependency
-with npm, then just download the latest release and refer to it using a relative path:
-
-[Latest Version](https://github.com/jrburke/amdefine/raw/latest/amdefine.js)
-
-### amdefine/intercept
-
-Consider this very experimental.
-
-Instead of pasting the piece of text for the amdefine setup of a `define`
-variable in each module you create or consume, you can use `amdefine/intercept`
-instead. It will automatically insert the above snippet in each .js file loaded
-by Node.
-
-**Warning**: you should only use this if you are creating an application that
-is consuming AMD style defined()'d modules that are distributed via npm and want
-to run that code in Node.
-
-For library code where you are not sure if it will be used by others in Node or
-in the browser, then explicitly depending on amdefine and placing the code
-snippet above is suggested path, instead of using `amdefine/intercept`. The
-intercept module affects all .js files loaded in the Node app, and it is
-inconsiderate to modify global state like that unless you are also controlling
-the top level app.
-
-#### Why distribute AMD-style modules via npm?
-
-npm has a lot of weaknesses for front-end use (installed layout is not great,
-should have better support for the `baseUrl + moduleID + '.js' style of loading,
-single file JS installs), but some people want a JS package manager and are
-willing to live with those constraints. If that is you, but still want to author
-in AMD style modules to get dynamic require([]), better direct source usage and
-powerful loader plugin support in the browser, then this tool can help.
-
-#### amdefine/intercept usage
-
-Just require it in your top level app module (for example index.js, server.js):
-
-```javascript
-require('amdefine/intercept');
-```
-
-The module does not return a value, so no need to assign the result to a local
-variable.
-
-Then just require() code as you normally would with Node's require(). Any .js
-loaded after the intercept require will have the amdefine check injected in
-the .js source as it is loaded. It does not modify the source on disk, just
-prepends some content to the text of the module as it is loaded by Node.
-
-#### How amdefine/intercept works
-
-It overrides the `Module._extensions['.js']` in Node to automatically prepend
-the amdefine snippet above. So, it will affect any .js file loaded by your
-app.
-
-## define() usage
-
-It is best if you use the anonymous forms of define() in your module:
-
-```javascript
-define(function (require) {
- var dependency = require('dependency');
-});
-```
-
-or
-
-```javascript
-define(['dependency'], function (dependency) {
-
-});
-```
-
-## RequireJS optimizer integration.
-
-Version 1.0.3 of the [RequireJS optimizer](http://requirejs.org/docs/optimization.html)
-will have support for stripping the `if (typeof define !== 'function')` check
-mentioned above, so you can include this snippet for code that runs in the
-browser, but avoid taking the cost of the if() statement once the code is
-optimized for deployment.
-
-## Node 0.4 Support
-
-If you want to support Node 0.4, then add `require` as the second parameter to amdefine:
-
-```javascript
-//Only if you want Node 0.4. If using 0.5 or later, use the above snippet.
-if (typeof define !== 'function') { var define = require('amdefine')(module, require) }
-```
-
-## Limitations
-
-### Synchronous vs Asynchronous
-
-amdefine creates a define() function that is callable by your code. It will
-execute and trace dependencies and call the factory function *synchronously*,
-to keep the behavior in line with Node's synchronous dependency tracing.
-
-The exception: calling AMD's callback-style require() from inside a factory
-function. The require callback is called on process.nextTick():
-
-```javascript
-define(function (require) {
- require(['a'], function(a) {
- //'a' is loaded synchronously, but
- //this callback is called on process.nextTick().
- });
-});
-```
-
-### Loader Plugins
-
-Loader plugins are supported as long as they call their load() callbacks
-synchronously. So ones that do network requests will not work. However plugins
-like [text](http://requirejs.org/docs/api.html#text) can load text files locally.
-
-The plugin API's `load.fromText()` is **not supported** in amdefine, so this means
-transpiler plugins like the [CoffeeScript loader plugin](https://github.com/jrburke/require-cs)
-will not work. This may be fixable, but it is a bit complex, and I do not have
-enough node-fu to figure it out yet. See the source for amdefine.js if you want
-to get an idea of the issues involved.
-
-## Tests
-
-To run the tests, cd to **tests** and run:
-
-```
-node all.js
-node all-intercept.js
-```
-
-## License
-
-New BSD and MIT. Check the LICENSE file for all the details.
diff --git a/node_modules/amdefine/amdefine.js b/node_modules/amdefine/amdefine.js
deleted file mode 100644
index ca830ba..0000000
--- a/node_modules/amdefine/amdefine.js
+++ /dev/null
@@ -1,301 +0,0 @@
-/** vim: et:ts=4:sw=4:sts=4
- * @license amdefine 1.0.1 Copyright (c) 2011-2016, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/amdefine for details
- */
-
-/*jslint node: true */
-/*global module, process */
-'use strict';
-
-/**
- * Creates a define for node.
- * @param {Object} module the "module" object that is defined by Node for the
- * current module.
- * @param {Function} [requireFn]. Node's require function for the current module.
- * It only needs to be passed in Node versions before 0.5, when module.require
- * did not exist.
- * @returns {Function} a define function that is usable for the current node
- * module.
- */
-function amdefine(module, requireFn) {
- 'use strict';
- var defineCache = {},
- loaderCache = {},
- alreadyCalled = false,
- path = require('path'),
- makeRequire, stringRequire;
-
- /**
- * Trims the . and .. from an array of path segments.
- * It will keep a leading path segment if a .. will become
- * the first path segment, to help with module name lookups,
- * which act like paths, but can be remapped. But the end result,
- * all paths that use this function should look normalized.
- * NOTE: this method MODIFIES the input array.
- * @param {Array} ary the array of path segments.
- */
- function trimDots(ary) {
- var i, part;
- for (i = 0; ary[i]; i+= 1) {
- part = ary[i];
- if (part === '.') {
- ary.splice(i, 1);
- i -= 1;
- } else if (part === '..') {
- if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
- //End of the line. Keep at least one non-dot
- //path segment at the front so it can be mapped
- //correctly to disk. Otherwise, there is likely
- //no path mapping for a path starting with '..'.
- //This can still fail, but catches the most reasonable
- //uses of ..
- break;
- } else if (i > 0) {
- ary.splice(i - 1, 2);
- i -= 2;
- }
- }
- }
- }
-
- function normalize(name, baseName) {
- var baseParts;
-
- //Adjust any relative paths.
- if (name && name.charAt(0) === '.') {
- //If have a base name, try to normalize against it,
- //otherwise, assume it is a top-level require that will
- //be relative to baseUrl in the end.
- if (baseName) {
- baseParts = baseName.split('/');
- baseParts = baseParts.slice(0, baseParts.length - 1);
- baseParts = baseParts.concat(name.split('/'));
- trimDots(baseParts);
- name = baseParts.join('/');
- }
- }
-
- return name;
- }
-
- /**
- * Create the normalize() function passed to a loader plugin's
- * normalize method.
- */
- function makeNormalize(relName) {
- return function (name) {
- return normalize(name, relName);
- };
- }
-
- function makeLoad(id) {
- function load(value) {
- loaderCache[id] = value;
- }
-
- load.fromText = function (id, text) {
- //This one is difficult because the text can/probably uses
- //define, and any relative paths and requires should be relative
- //to that id was it would be found on disk. But this would require
- //bootstrapping a module/require fairly deeply from node core.
- //Not sure how best to go about that yet.
- throw new Error('amdefine does not implement load.fromText');
- };
-
- return load;
- }
-
- makeRequire = function (systemRequire, exports, module, relId) {
- function amdRequire(deps, callback) {
- if (typeof deps === 'string') {
- //Synchronous, single module require('')
- return stringRequire(systemRequire, exports, module, deps, relId);
- } else {
- //Array of dependencies with a callback.
-
- //Convert the dependencies to modules.
- deps = deps.map(function (depName) {
- return stringRequire(systemRequire, exports, module, depName, relId);
- });
-
- //Wait for next tick to call back the require call.
- if (callback) {
- process.nextTick(function () {
- callback.apply(null, deps);
- });
- }
- }
- }
-
- amdRequire.toUrl = function (filePath) {
- if (filePath.indexOf('.') === 0) {
- return normalize(filePath, path.dirname(module.filename));
- } else {
- return filePath;
- }
- };
-
- return amdRequire;
- };
-
- //Favor explicit value, passed in if the module wants to support Node 0.4.
- requireFn = requireFn || function req() {
- return module.require.apply(module, arguments);
- };
-
- function runFactory(id, deps, factory) {
- var r, e, m, result;
-
- if (id) {
- e = loaderCache[id] = {};
- m = {
- id: id,
- uri: __filename,
- exports: e
- };
- r = makeRequire(requireFn, e, m, id);
- } else {
- //Only support one define call per file
- if (alreadyCalled) {
- throw new Error('amdefine with no module ID cannot be called more than once per file.');
- }
- alreadyCalled = true;
-
- //Use the real variables from node
- //Use module.exports for exports, since
- //the exports in here is amdefine exports.
- e = module.exports;
- m = module;
- r = makeRequire(requireFn, e, m, module.id);
- }
-
- //If there are dependencies, they are strings, so need
- //to convert them to dependency values.
- if (deps) {
- deps = deps.map(function (depName) {
- return r(depName);
- });
- }
-
- //Call the factory with the right dependencies.
- if (typeof factory === 'function') {
- result = factory.apply(m.exports, deps);
- } else {
- result = factory;
- }
-
- if (result !== undefined) {
- m.exports = result;
- if (id) {
- loaderCache[id] = m.exports;
- }
- }
- }
-
- stringRequire = function (systemRequire, exports, module, id, relId) {
- //Split the ID by a ! so that
- var index = id.indexOf('!'),
- originalId = id,
- prefix, plugin;
-
- if (index === -1) {
- id = normalize(id, relId);
-
- //Straight module lookup. If it is one of the special dependencies,
- //deal with it, otherwise, delegate to node.
- if (id === 'require') {
- return makeRequire(systemRequire, exports, module, relId);
- } else if (id === 'exports') {
- return exports;
- } else if (id === 'module') {
- return module;
- } else if (loaderCache.hasOwnProperty(id)) {
- return loaderCache[id];
- } else if (defineCache[id]) {
- runFactory.apply(null, defineCache[id]);
- return loaderCache[id];
- } else {
- if(systemRequire) {
- return systemRequire(originalId);
- } else {
- throw new Error('No module with ID: ' + id);
- }
- }
- } else {
- //There is a plugin in play.
- prefix = id.substring(0, index);
- id = id.substring(index + 1, id.length);
-
- plugin = stringRequire(systemRequire, exports, module, prefix, relId);
-
- if (plugin.normalize) {
- id = plugin.normalize(id, makeNormalize(relId));
- } else {
- //Normalize the ID normally.
- id = normalize(id, relId);
- }
-
- if (loaderCache[id]) {
- return loaderCache[id];
- } else {
- plugin.load(id, makeRequire(systemRequire, exports, module, relId), makeLoad(id), {});
-
- return loaderCache[id];
- }
- }
- };
-
- //Create a define function specific to the module asking for amdefine.
- function define(id, deps, factory) {
- if (Array.isArray(id)) {
- factory = deps;
- deps = id;
- id = undefined;
- } else if (typeof id !== 'string') {
- factory = id;
- id = deps = undefined;
- }
-
- if (deps && !Array.isArray(deps)) {
- factory = deps;
- deps = undefined;
- }
-
- if (!deps) {
- deps = ['require', 'exports', 'module'];
- }
-
- //Set up properties for this module. If an ID, then use
- //internal cache. If no ID, then use the external variables
- //for this node module.
- if (id) {
- //Put the module in deep freeze until there is a
- //require call for it.
- defineCache[id] = [id, deps, factory];
- } else {
- runFactory(id, deps, factory);
- }
- }
-
- //define.require, which has access to all the values in the
- //cache. Useful for AMD modules that all have IDs in the file,
- //but need to finally export a value to node based on one of those
- //IDs.
- define.require = function (id) {
- if (loaderCache[id]) {
- return loaderCache[id];
- }
-
- if (defineCache[id]) {
- runFactory.apply(null, defineCache[id]);
- return loaderCache[id];
- }
- };
-
- define.amd = {};
-
- return define;
-}
-
-module.exports = amdefine;
diff --git a/node_modules/amdefine/intercept.js b/node_modules/amdefine/intercept.js
deleted file mode 100644
index 771a983..0000000
--- a/node_modules/amdefine/intercept.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*jshint node: true */
-var inserted,
- Module = require('module'),
- fs = require('fs'),
- existingExtFn = Module._extensions['.js'],
- amdefineRegExp = /amdefine\.js/;
-
-inserted = "if (typeof define !== 'function') {var define = require('amdefine')(module)}";
-
-//From the node/lib/module.js source:
-function stripBOM(content) {
- // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
- // because the buffer-to-string conversion in `fs.readFileSync()`
- // translates it to FEFF, the UTF-16 BOM.
- if (content.charCodeAt(0) === 0xFEFF) {
- content = content.slice(1);
- }
- return content;
-}
-
-//Also adapted from the node/lib/module.js source:
-function intercept(module, filename) {
- var content = stripBOM(fs.readFileSync(filename, 'utf8'));
-
- if (!amdefineRegExp.test(module.id)) {
- content = inserted + content;
- }
-
- module._compile(content, filename);
-}
-
-intercept._id = 'amdefine/intercept';
-
-if (!existingExtFn._id || existingExtFn._id !== intercept._id) {
- Module._extensions['.js'] = intercept;
-}
diff --git a/node_modules/amdefine/package.json b/node_modules/amdefine/package.json
deleted file mode 100644
index 20f988a..0000000
--- a/node_modules/amdefine/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "amdefine@>=0.0.4",
- "scope": null,
- "escapedName": "amdefine",
- "name": "amdefine",
- "rawSpec": ">=0.0.4",
- "spec": ">=0.0.4",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/css/node_modules/source-map"
- ]
- ],
- "_from": "amdefine@>=0.0.4",
- "_id": "amdefine@1.0.1",
- "_inCache": true,
- "_location": "/amdefine",
- "_nodeVersion": "6.7.0",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/amdefine-1.0.1.tgz_1478062849665_0.19916908955201507"
- },
- "_npmUser": {
- "name": "jrburke",
- "email": "jrburke@gmail.com"
- },
- "_npmVersion": "3.10.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "amdefine@>=0.0.4",
- "scope": null,
- "escapedName": "amdefine",
- "name": "amdefine",
- "rawSpec": ">=0.0.4",
- "spec": ">=0.0.4",
- "type": "range"
- },
- "_requiredBy": [
- "/css/source-map"
- ],
- "_resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
- "_shasum": "4a5282ac164729e93619bcfd3ad151f817ce91f5",
- "_shrinkwrap": null,
- "_spec": "amdefine@>=0.0.4",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/css/node_modules/source-map",
- "author": {
- "name": "James Burke",
- "email": "jrburke@gmail.com",
- "url": "http://github.com/jrburke"
- },
- "bugs": {
- "url": "https://github.com/jrburke/amdefine/issues"
- },
- "dependencies": {},
- "description": "Provide AMD's define() API for declaring modules in the AMD format",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "4a5282ac164729e93619bcfd3ad151f817ce91f5",
- "tarball": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz"
- },
- "engines": {
- "node": ">=0.4.2"
- },
- "gitHead": "e59edc9da24404ec7937098e3992f8fb0e260be7",
- "homepage": "http://github.com/jrburke/amdefine",
- "license": "BSD-3-Clause OR MIT",
- "main": "./amdefine.js",
- "maintainers": [
- {
- "name": "jrburke",
- "email": "jrburke@gmail.com"
- }
- ],
- "name": "amdefine",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jrburke/amdefine.git"
- },
- "scripts": {},
- "version": "1.0.1"
-}
diff --git a/node_modules/ansi-escapes/index.js b/node_modules/ansi-escapes/index.js
deleted file mode 100644
index 7f61fc3..0000000
--- a/node_modules/ansi-escapes/index.js
+++ /dev/null
@@ -1,106 +0,0 @@
-'use strict';
-var ESC = '\u001b[';
-var x = module.exports;
-
-x.cursorTo = function (x, y) {
- if (arguments.length === 0) {
- return ESC + 'H';
- }
-
- if (arguments.length === 1) {
- return ESC + (x + 1) + 'G';
- }
-
- return ESC + (y + 1) + ';' + (x + 1) + 'H';
-};
-
-x.cursorMove = function (x, y) {
- var ret = '';
-
- if (x < 0) {
- ret += ESC + (-x) + 'D';
- } else if (x > 0) {
- ret += ESC + x + 'C';
- }
-
- if (y < 0) {
- ret += ESC + (-y) + 'A';
- } else if (y > 0) {
- ret += ESC + y + 'B';
- }
-
- return ret;
-};
-
-x.cursorUp = function (count) {
- return ESC + (typeof count === 'number' ? count : 1) + 'A';
-};
-
-x.cursorDown = function (count) {
- return ESC + (typeof count === 'number' ? count : 1) + 'B';
-};
-
-x.cursorForward = function (count) {
- return ESC + (typeof count === 'number' ? count : 1) + 'C';
-};
-
-x.cursorBackward = function (count) {
- return ESC + (typeof count === 'number' ? count : 1) + 'D';
-};
-
-x.cursorLeft = ESC + '1000D';
-x.cursorSavePosition = ESC + 's';
-x.cursorRestorePosition = ESC + 'u';
-x.cursorGetPosition = ESC + '6n';
-x.cursorNextLine = ESC + 'E';
-x.cursorPrevLine = ESC + 'F';
-x.cursorHide = ESC + '?25l';
-x.cursorShow = ESC + '?25h';
-
-x.eraseLines = function (count) {
- var clear = '';
-
- for (var i = 0; i < count; i++) {
- clear += x.cursorLeft + x.eraseEndLine + (i < count - 1 ? x.cursorUp() : '');
- }
-
- return clear;
-};
-
-x.eraseEndLine = ESC + 'K';
-x.eraseStartLine = ESC + '1K';
-x.eraseLine = ESC + '2K';
-x.eraseDown = ESC + 'J';
-x.eraseUp = ESC + '1J';
-x.eraseScreen = ESC + '2J';
-x.scrollUp = ESC + 'S';
-x.scrollDown = ESC + 'T';
-
-x.clearScreen = '\u001bc';
-x.beep = '\u0007';
-
-x.image = function (buf, opts) {
- opts = opts || {};
-
- var ret = '\u001b]1337;File=inline=1';
-
- if (opts.width) {
- ret += ';width=' + opts.width;
- }
-
- if (opts.height) {
- ret += ';height=' + opts.height;
- }
-
- if (opts.preserveAspectRatio === false) {
- ret += ';preserveAspectRatio=0';
- }
-
- return ret + ':' + buf.toString('base64') + '\u0007';
-};
-
-x.iTerm = {};
-
-x.iTerm.setCwd = function (cwd) {
- return '\u001b]50;CurrentDir=' + (cwd || process.cwd()) + '\u0007';
-};
diff --git a/node_modules/ansi-escapes/license b/node_modules/ansi-escapes/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/ansi-escapes/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/ansi-escapes/package.json b/node_modules/ansi-escapes/package.json
deleted file mode 100644
index 6f728c5..0000000
--- a/node_modules/ansi-escapes/package.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "ansi-escapes@^1.1.0",
- "scope": null,
- "escapedName": "ansi-escapes",
- "name": "ansi-escapes",
- "rawSpec": "^1.1.0",
- "spec": ">=1.1.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/inquirer"
- ]
- ],
- "_from": "ansi-escapes@>=1.1.0 <2.0.0",
- "_id": "ansi-escapes@1.4.0",
- "_inCache": true,
- "_location": "/ansi-escapes",
- "_nodeVersion": "4.4.2",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/ansi-escapes-1.4.0.tgz_1460925437568_0.228597579523921"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.0",
- "_phantomChildren": {},
- "_requested": {
- "raw": "ansi-escapes@^1.1.0",
- "scope": null,
- "escapedName": "ansi-escapes",
- "name": "ansi-escapes",
- "rawSpec": "^1.1.0",
- "spec": ">=1.1.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/inquirer"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz",
- "_shasum": "d3a8a83b319aa67793662b13e761c7911422306e",
- "_shrinkwrap": null,
- "_spec": "ansi-escapes@^1.1.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/inquirer",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/ansi-escapes/issues"
- },
- "dependencies": {},
- "description": "ANSI escape codes for manipulating the terminal",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "d3a8a83b319aa67793662b13e761c7911422306e",
- "tarball": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "763a11847148479dd315c2b9f81b001c94740415",
- "homepage": "https://github.com/sindresorhus/ansi-escapes#readme",
- "keywords": [
- "ansi",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "escapes",
- "formatting",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text",
- "vt100",
- "sequence",
- "control",
- "code",
- "codes",
- "cursor",
- "iterm",
- "iterm2"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "ansi-escapes",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/ansi-escapes.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.4.0"
-}
diff --git a/node_modules/ansi-escapes/readme.md b/node_modules/ansi-escapes/readme.md
deleted file mode 100644
index c1254e9..0000000
--- a/node_modules/ansi-escapes/readme.md
+++ /dev/null
@@ -1,176 +0,0 @@
-# ansi-escapes [](https://travis-ci.org/sindresorhus/ansi-escapes)
-
-> [ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating the terminal
-
-
-## Install
-
-```
-$ npm install --save ansi-escapes
-```
-
-
-## Usage
-
-```js
-const ansiEscapes = require('ansi-escapes');
-
-// moves the cursor two rows up and to the left
-process.stdout.write(ansiEscapes.cursorUp(2) + ansiEscapes.cursorLeft);
-//=> '\u001b[2A\u001b[1000D'
-```
-
-
-## API
-
-### cursorTo([x, [y]])
-
-Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
-
-Specify either both `x` & `y`, only `x`, or nothing.
-
-### cursorMove(x, [y])
-
-Set the position of the cursor relative to its current position.
-
-### cursorUp(count)
-
-Move cursor up a specific amount of rows. Default is `1`.
-
-### cursorDown(count)
-
-Move cursor down a specific amount of rows. Default is `1`.
-
-### cursorForward(count)
-
-Move cursor forward a specific amount of rows. Default is `1`.
-
-### cursorBackward(count)
-
-Move cursor backward a specific amount of rows. Default is `1`.
-
-### cursorLeft
-
-Move cursor to the left side.
-
-### cursorSavePosition
-
-Save cursor position.
-
-### cursorRestorePosition
-
-Restore saved cursor position.
-
-### cursorGetPosition
-
-Get cursor position.
-
-### cursorNextLine
-
-Move cursor to the next line.
-
-### cursorPrevLine
-
-Move cursor to the previous line.
-
-### cursorHide
-
-Hide cursor.
-
-### cursorShow
-
-Show cursor.
-
-### eraseLines(count)
-
-Erase from the current cursor position up the specified amount of rows.
-
-### eraseEndLine
-
-Erase from the current cursor position to the end of the current line.
-
-### eraseStartLine
-
-Erase from the current cursor position to the start of the current line.
-
-### eraseLine
-
-Erase the entire current line.
-
-### eraseDown
-
-Erase the screen from the current line down to the bottom of the screen.
-
-### eraseUp
-
-Erase the screen from the current line up to the top of the screen.
-
-### eraseScreen
-
-Erase the screen and move the cursor the top left position.
-
-### scrollUp
-
-Scroll display up one line.
-
-### scrollDown
-
-Scroll display down one line.
-
-### clearScreen
-
-Clear the terminal screen.
-
-### beep
-
-Output a beeping sound.
-
-### image(input, [options])
-
-Display an image.
-
-*Currently only supported on iTerm >=2.9.*
-
-See [term-img](https://github.com/sindresorhus/term-img) for a higher-level module.
-
-#### input
-
-Type: `buffer`
-
-Buffer of an image. Usually read in with `fs.readFile()`.
-
-#### options
-
-##### width
-##### height
-
-Type: `string` `number`
-
-The width and height are given as a number followed by a unit, or the word "auto".
-
-- `N`: N character cells.
-- `Npx`: N pixels.
-- `N%`: N percent of the session's width or height.
-- `auto`: The image's inherent size will be used to determine an appropriate dimension.
-
-##### preserveAspectRatio
-
-Type: `boolean`
-Default: `true`
-
-### iTerm.setCwd([path])
-
-Type: `string`
-Default: `process.cwd()`
-
-[Inform iTerm](https://www.iterm2.com/documentation-escape-codes.html) of the current directory to help semantic history and enable [Cmd-clicking relative paths](https://coderwall.com/p/b7e82q/quickly-open-files-in-iterm-with-cmd-click).
-
-
-## Related
-
-- [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js
deleted file mode 100644
index b9574ed..0000000
--- a/node_modules/ansi-regex/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-module.exports = function () {
- return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
-};
diff --git a/node_modules/ansi-regex/license b/node_modules/ansi-regex/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/ansi-regex/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json
deleted file mode 100644
index 7c71711..0000000
--- a/node_modules/ansi-regex/package.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "ansi-regex@^2.0.0",
- "scope": null,
- "escapedName": "ansi-regex",
- "name": "ansi-regex",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/has-ansi"
- ]
- ],
- "_from": "ansi-regex@>=2.0.0 <3.0.0",
- "_id": "ansi-regex@2.1.1",
- "_inCache": true,
- "_location": "/ansi-regex",
- "_nodeVersion": "0.10.32",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/ansi-regex-2.1.1.tgz_1484363378013_0.4482989883981645"
- },
- "_npmUser": {
- "name": "qix",
- "email": "i.am.qix@gmail.com"
- },
- "_npmVersion": "2.14.2",
- "_phantomChildren": {},
- "_requested": {
- "raw": "ansi-regex@^2.0.0",
- "scope": null,
- "escapedName": "ansi-regex",
- "name": "ansi-regex",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/has-ansi",
- "/inquirer",
- "/strip-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
- "_shrinkwrap": null,
- "_spec": "ansi-regex@^2.0.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/has-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-regex/issues"
- },
- "dependencies": {},
- "description": "Regular expression for matching ANSI escape codes",
- "devDependencies": {
- "ava": "0.17.0",
- "xo": "0.16.0"
- },
- "directories": {},
- "dist": {
- "shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
- "tarball": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "7c908e7b4eb6cd82bfe1295e33fdf6d166c7ed85",
- "homepage": "https://github.com/chalk/ansi-regex#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "qix",
- "email": "i.am.qix@gmail.com"
- },
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "ansi-regex",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-regex.git"
- },
- "scripts": {
- "test": "xo && ava --verbose",
- "view-supported": "node fixtures/view-codes.js"
- },
- "version": "2.1.1",
- "xo": {
- "rules": {
- "guard-for-in": 0,
- "no-loop-func": 0
- }
- }
-}
diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md
deleted file mode 100644
index 6a928ed..0000000
--- a/node_modules/ansi-regex/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# ansi-regex [](https://travis-ci.org/chalk/ansi-regex)
-
-> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
-
-
-## Install
-
-```
-$ npm install --save ansi-regex
-```
-
-
-## Usage
-
-```js
-const ansiRegex = require('ansi-regex');
-
-ansiRegex().test('\u001b[4mcake\u001b[0m');
-//=> true
-
-ansiRegex().test('cake');
-//=> false
-
-'\u001b[4mcake\u001b[0m'.match(ansiRegex());
-//=> ['\u001b[4m', '\u001b[0m']
-```
-
-## FAQ
-
-### Why do you test for codes not in the ECMA 48 standard?
-
-Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
-
-On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/ansi-styles/index.js b/node_modules/ansi-styles/index.js
deleted file mode 100644
index 7894527..0000000
--- a/node_modules/ansi-styles/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-'use strict';
-
-function assembleStyles () {
- var styles = {
- modifiers: {
- reset: [0, 0],
- bold: [1, 22], // 21 isn't widely supported and 22 does the same thing
- dim: [2, 22],
- italic: [3, 23],
- underline: [4, 24],
- inverse: [7, 27],
- hidden: [8, 28],
- strikethrough: [9, 29]
- },
- colors: {
- black: [30, 39],
- red: [31, 39],
- green: [32, 39],
- yellow: [33, 39],
- blue: [34, 39],
- magenta: [35, 39],
- cyan: [36, 39],
- white: [37, 39],
- gray: [90, 39]
- },
- bgColors: {
- bgBlack: [40, 49],
- bgRed: [41, 49],
- bgGreen: [42, 49],
- bgYellow: [43, 49],
- bgBlue: [44, 49],
- bgMagenta: [45, 49],
- bgCyan: [46, 49],
- bgWhite: [47, 49]
- }
- };
-
- // fix humans
- styles.colors.grey = styles.colors.gray;
-
- Object.keys(styles).forEach(function (groupName) {
- var group = styles[groupName];
-
- Object.keys(group).forEach(function (styleName) {
- var style = group[styleName];
-
- styles[styleName] = group[styleName] = {
- open: '\u001b[' + style[0] + 'm',
- close: '\u001b[' + style[1] + 'm'
- };
- });
-
- Object.defineProperty(styles, groupName, {
- value: group,
- enumerable: false
- });
- });
-
- return styles;
-}
-
-Object.defineProperty(module, 'exports', {
- enumerable: true,
- get: assembleStyles
-});
diff --git a/node_modules/ansi-styles/license b/node_modules/ansi-styles/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/ansi-styles/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json
deleted file mode 100644
index e37307c..0000000
--- a/node_modules/ansi-styles/package.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "ansi-styles@^2.2.1",
- "scope": null,
- "escapedName": "ansi-styles",
- "name": "ansi-styles",
- "rawSpec": "^2.2.1",
- "spec": ">=2.2.1 <3.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/chalk"
- ]
- ],
- "_from": "ansi-styles@>=2.2.1 <3.0.0",
- "_id": "ansi-styles@2.2.1",
- "_inCache": true,
- "_location": "/ansi-styles",
- "_nodeVersion": "4.3.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/ansi-styles-2.2.1.tgz_1459197317833_0.9694824463222176"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "3.8.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "ansi-styles@^2.2.1",
- "scope": null,
- "escapedName": "ansi-styles",
- "name": "ansi-styles",
- "rawSpec": "^2.2.1",
- "spec": ">=2.2.1 <3.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
- "_shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe",
- "_shrinkwrap": null,
- "_spec": "ansi-styles@^2.2.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-styles/issues"
- },
- "dependencies": {},
- "description": "ANSI escape codes for styling strings in the terminal",
- "devDependencies": {
- "mocha": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe",
- "tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "95c59b23be760108b6530ca1c89477c21b258032",
- "homepage": "https://github.com/chalk/ansi-styles#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "ansi-styles",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-styles.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.2.1"
-}
diff --git a/node_modules/ansi-styles/readme.md b/node_modules/ansi-styles/readme.md
deleted file mode 100644
index 3f933f6..0000000
--- a/node_modules/ansi-styles/readme.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# ansi-styles [](https://travis-ci.org/chalk/ansi-styles)
-
-> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
-
-You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
-
-
-
-
-## Install
-
-```
-$ npm install --save ansi-styles
-```
-
-
-## Usage
-
-```js
-var ansi = require('ansi-styles');
-
-console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
-```
-
-
-## API
-
-Each style has an `open` and `close` property.
-
-
-## Styles
-
-### Modifiers
-
-- `reset`
-- `bold`
-- `dim`
-- `italic` *(not widely supported)*
-- `underline`
-- `inverse`
-- `hidden`
-- `strikethrough` *(not widely supported)*
-
-### Colors
-
-- `black`
-- `red`
-- `green`
-- `yellow`
-- `blue`
-- `magenta`
-- `cyan`
-- `white`
-- `gray`
-
-### Background colors
-
-- `bgBlack`
-- `bgRed`
-- `bgGreen`
-- `bgYellow`
-- `bgBlue`
-- `bgMagenta`
-- `bgCyan`
-- `bgWhite`
-
-
-## Advanced usage
-
-By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
-
-- `ansi.modifiers`
-- `ansi.colors`
-- `ansi.bgColors`
-
-
-###### Example
-
-```js
-console.log(ansi.colors.green.open);
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/ansicolors/.npmignore b/node_modules/ansicolors/.npmignore
deleted file mode 100644
index a72b52e..0000000
--- a/node_modules/ansicolors/.npmignore
+++ /dev/null
@@ -1,15 +0,0 @@
-lib-cov
-*.seed
-*.log
-*.csv
-*.dat
-*.out
-*.pid
-*.gz
-
-pids
-logs
-results
-
-npm-debug.log
-node_modules
diff --git a/node_modules/ansicolors/.travis.yml b/node_modules/ansicolors/.travis.yml
deleted file mode 100644
index 895dbd3..0000000
--- a/node_modules/ansicolors/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
diff --git a/node_modules/ansicolors/LICENSE b/node_modules/ansicolors/LICENSE
deleted file mode 100644
index 41702c5..0000000
--- a/node_modules/ansicolors/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright 2013 Thorsten Lorenz.
-All rights reserved.
-
-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/node_modules/ansicolors/README.md b/node_modules/ansicolors/README.md
deleted file mode 100644
index 30b6a52..0000000
--- a/node_modules/ansicolors/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# ansicolors [](http://next.travis-ci.org/thlorenz/ansicolors)
-
-Functions that surround a string with ansicolor codes so it prints in color.
-
-## Installation
-
- npm install ansicolors
-
-## Usage
-
-```js
-var colors = require('ansicolors');
-
-// foreground colors
-var redHerring = colors.red('herring');
-var blueMoon = colors.blue('moon');
-var brighBlueMoon = colors.brightBlue('moon');
-
-console.log(redHerring); // this will print 'herring' in red
-console.log(blueMoon); // this 'moon' in blue
-console.log(brightBlueMoon); // I think you got the idea
-
-// background colors
-console.log(colors.bgYellow('printed on yellow background'));
-console.log(colors.bgBrightBlue('printed on bright blue background'));
-
-// mixing background and foreground colors
-// below two lines have same result (order in which bg and fg are combined doesn't matter)
-console.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));
-console.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));
-```
-
-## Tests
-
-Look at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via:
-
- npm explore ansicolors && npm test
-
-## Alternatives
-
-**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool,
-I'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).
diff --git a/node_modules/ansicolors/ansicolors.js b/node_modules/ansicolors/ansicolors.js
deleted file mode 100644
index b0e18f6..0000000
--- a/node_modules/ansicolors/ansicolors.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// ColorCodes explained: http://www.termsys.demon.co.uk/vtansi.htm
-'use strict';
-
-var colorNums = {
- white : 37
- , black : 30
- , blue : 34
- , cyan : 36
- , green : 32
- , magenta : 35
- , red : 31
- , yellow : 33
- , brightBlack : 90
- , brightRed : 91
- , brightGreen : 92
- , brightYellow : 93
- , brightBlue : 94
- , brightMagenta : 95
- , brightCyan : 96
- , brightWhite : 97
- }
- , backgroundColorNums = {
- bgBlack : 40
- , bgRed : 41
- , bgGreen : 42
- , bgYellow : 43
- , bgBlue : 44
- , bgMagenta : 45
- , bgCyan : 46
- , bgWhite : 47
- , bgBrightBlack : 100
- , bgBrightRed : 101
- , bgBrightGreen : 102
- , bgBrightYellow : 103
- , bgBrightBlue : 104
- , bgBrightMagenta : 105
- , bgBrightCyan : 106
- , bgBrightWhite : 107
- }
- , colors = {};
-
-
-Object.keys(colorNums).forEach(function (k) {
- colors[k] = function (s) {
- return '\u001b[' + colorNums[k] + 'm' + s + '\u001b[39m';
- };
-});
-
-Object.keys(backgroundColorNums).forEach(function (k) {
- colors[k] = function (s) {
- return '\u001b[' + backgroundColorNums[k] + 'm' + s + '\u001b[49m';
- };
-});
-
-module.exports = colors;
diff --git a/node_modules/ansicolors/package.json b/node_modules/ansicolors/package.json
deleted file mode 100644
index 2030328..0000000
--- a/node_modules/ansicolors/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "ansicolors@~0.2.1",
- "scope": null,
- "escapedName": "ansicolors",
- "name": "ansicolors",
- "rawSpec": "~0.2.1",
- "spec": ">=0.2.1 <0.3.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/cardinal"
- ]
- ],
- "_from": "ansicolors@>=0.2.1 <0.3.0",
- "_id": "ansicolors@0.2.1",
- "_inCache": true,
- "_location": "/ansicolors",
- "_npmUser": {
- "name": "thlorenz",
- "email": "thlorenz@gmx.de"
- },
- "_npmVersion": "1.1.69",
- "_phantomChildren": {},
- "_requested": {
- "raw": "ansicolors@~0.2.1",
- "scope": null,
- "escapedName": "ansicolors",
- "name": "ansicolors",
- "rawSpec": "~0.2.1",
- "spec": ">=0.2.1 <0.3.0",
- "type": "range"
- },
- "_requiredBy": [
- "/cardinal"
- ],
- "_resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz",
- "_shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
- "_shrinkwrap": null,
- "_spec": "ansicolors@~0.2.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/cardinal",
- "author": {
- "name": "Thorsten Lorenz",
- "email": "thlorenz@gmx.de",
- "url": "thlorenz.com"
- },
- "bugs": {
- "url": "https://github.com/thlorenz/ansicolors/issues"
- },
- "dependencies": {},
- "description": "Functions that surround a string with ansicolor codes so it prints in color.",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
- "tarball": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz"
- },
- "gitHead": "858847ca28e8b360d9b70eee0592700fa2ab087d",
- "homepage": "https://github.com/thlorenz/ansicolors#readme",
- "keywords": [
- "ansi",
- "colors",
- "highlight",
- "string"
- ],
- "license": "MIT",
- "main": "ansicolors.js",
- "maintainers": [
- {
- "name": "thlorenz",
- "email": "thlorenz@gmx.de"
- }
- ],
- "name": "ansicolors",
- "optionalDependencies": {},
- "readme": "# ansicolors [](http://next.travis-ci.org/thlorenz/ansicolors)\n\nFunctions that surround a string with ansicolor codes so it prints in color.\n\n## Installation\n\n npm install ansicolors\n\n## Usage\n\n```js\nvar colors = require('ansicolors');\n\n// foreground colors\nvar redHerring = colors.red('herring');\nvar blueMoon = colors.blue('moon');\nvar brighBlueMoon = colors.brightBlue('moon');\n\nconsole.log(redHerring); // this will print 'herring' in red\nconsole.log(blueMoon); // this 'moon' in blue\nconsole.log(brightBlueMoon); // I think you got the idea\n\n// background colors\nconsole.log(colors.bgYellow('printed on yellow background'));\nconsole.log(colors.bgBrightBlue('printed on bright blue background'));\n\n// mixing background and foreground colors\n// below two lines have same result (order in which bg and fg are combined doesn't matter)\nconsole.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));\nconsole.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));\n```\n\n## Tests\n\nLook at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via: \n\n npm explore ansicolors && npm test\n\n## Alternatives\n\n**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool, \nI'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).\n",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git://github.com/thlorenz/ansicolors.git"
- },
- "scripts": {
- "test": "node test/*.js"
- },
- "version": "0.2.1"
-}
diff --git a/node_modules/ansicolors/test/ansicolors.js b/node_modules/ansicolors/test/ansicolors.js
deleted file mode 100644
index 46aec3e..0000000
--- a/node_modules/ansicolors/test/ansicolors.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-var assert = require('assert')
- , colors = require('..');
-
-console.log('Foreground colors ..');
-
-assert.equal(colors.white('printed in white'), '\u001b[37mprinted in white\u001b[39m');
-
-assert.equal(colors.black('printed in black'), '\u001b[30mprinted in black\u001b[39m');
-assert.equal(colors.brightBlack('printed in bright black'), '\u001b[90mprinted in bright black\u001b[39m');
-
-assert.equal(colors.green('printed in green'), '\u001b[32mprinted in green\u001b[39m');
-assert.equal(colors.brightGreen('printed in bright green'), '\u001b[92mprinted in bright green\u001b[39m');
-
-assert.equal(colors.red('printed in red'), '\u001b[31mprinted in red\u001b[39m');
-assert.equal(colors.brightRed('printed in bright red'), '\u001b[91mprinted in bright red\u001b[39m');
-
-console.log('OK');
-
-console.log('Background colors ..');
-
-assert.equal(
- colors.bgBlack('printed with black background')
- , '\u001b[40mprinted with black background\u001b[49m'
-);
-
-assert.equal(
- colors.bgYellow('printed with yellow background')
- , '\u001b[43mprinted with yellow background\u001b[49m'
-);
-assert.equal(
- colors.bgBrightYellow('printed with bright yellow background')
- , '\u001b[103mprinted with bright yellow background\u001b[49m'
-);
-
-assert.equal(
- colors.bgWhite('printed with white background')
- , '\u001b[47mprinted with white background\u001b[49m'
-);
-
-console.log('OK');
-
-console.log('Mixing background and foreground colors ..');
-
-assert.equal(
- colors.blue(colors.bgYellow('printed in blue with yellow background'))
- , '\u001b[34m\u001b[43mprinted in blue with yellow background\u001b[49m\u001b[39m'
-);
-assert.equal(
- colors.bgYellow(colors.blue('printed in blue with yellow background again'))
- , '\u001b[43m\u001b[34mprinted in blue with yellow background again\u001b[39m\u001b[49m'
-);
-
-console.log('OK');
diff --git a/node_modules/anymatch/LICENSE b/node_modules/anymatch/LICENSE
deleted file mode 100644
index bc42470..0000000
--- a/node_modules/anymatch/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) 2014 Elan Shanker
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/anymatch/README.md b/node_modules/anymatch/README.md
deleted file mode 100644
index 0a63292..0000000
--- a/node_modules/anymatch/README.md
+++ /dev/null
@@ -1,91 +0,0 @@
-anymatch [](https://travis-ci.org/es128/anymatch) [](https://coveralls.io/r/es128/anymatch?branch=master)
-======
-Javascript module to match a string against a regular expression, glob, string,
-or function that takes the string as an argument and returns a truthy or falsy
-value. The matcher can also be an array of any or all of these. Useful for
-allowing a very flexible user-defined config to define things like file paths.
-
-[](https://nodei.co/npm/anymatch/)
-[](https://nodei.co/npm-dl/anymatch/)
-
-Usage
------
-```sh
-npm install anymatch --save
-```
-
-#### anymatch (matchers, testString, [returnIndex], [startIndex], [endIndex])
-* __matchers__: (_Array|String|RegExp|Function_)
-String to be directly matched, string with glob patterns, regular expression
-test, function that takes the testString as an argument and returns a truthy
-value if it should be matched, or an array of any number and mix of these types.
-* __testString__: (_String|Array_) The string to test against the matchers. If
-passed as an array, the first element of the array will be used as the
-`testString` for non-function matchers, while the entire array will be applied
-as the arguments for function matchers.
-* __returnIndex__: (_Boolean [optional]_) If true, return the array index of
-the first matcher that that testString matched, or -1 if no match, instead of a
-boolean result.
-* __startIndex, endIndex__: (_Integer [optional]_) Can be used to define a
-subset out of the array of provided matchers to test against. Can be useful
-with bound matcher functions (see below). When used with `returnIndex = true`
-preserves original indexing. Behaves the same as `Array.prototype.slice` (i.e.
-includes array members up to, but not including endIndex).
-
-```js
-var anymatch = require('anymatch');
-
-var matchers = [
- 'path/to/file.js',
- 'path/anyjs/**/*.js',
- /foo.js$/,
- function (string) {
- return string.indexOf('bar') !== -1 && string.length > 10
- }
-];
-
-anymatch(matchers, 'path/to/file.js'); // true
-anymatch(matchers, 'path/anyjs/baz.js'); // true
-anymatch(matchers, 'path/to/foo.js'); // true
-anymatch(matchers, 'path/to/bar.js'); // true
-anymatch(matchers, 'bar.js'); // false
-
-// returnIndex = true
-anymatch(matchers, 'foo.js', true); // 2
-anymatch(matchers, 'path/anyjs/foo.js', true); // 1
-
-// skip matchers
-anymatch(matchers, 'path/to/file.js', false, 1); // false
-anymatch(matchers, 'path/anyjs/foo.js', true, 2, 3); // 2
-anymatch(matchers, 'path/to/bar.js', true, 0, 3); // -1
-```
-
-#### anymatch (matchers)
-You can also pass in only your matcher(s) to get a curried function that has
-already been bound to the provided matching criteria. This can be used as an
-`Array.prototype.filter` callback.
-
-```js
-var matcher = anymatch(matchers);
-
-matcher('path/to/file.js'); // true
-matcher('path/anyjs/baz.js', true); // 1
-matcher('path/anyjs/baz.js', true, 2); // -1
-
-['foo.js', 'bar.js'].filter(matcher); // ['foo.js']
-```
-
-Change Log
-----------
-[See release notes page on GitHub](https://github.com/es128/anymatch/releases)
-
-NOTE: As of v1.2.0, anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch)
-for glob pattern matching. The glob matching behavior should be functionally
-equivalent to the commonly used [minimatch](https://github.com/isaacs/minimatch)
-library (aside from some fixed bugs and greater performance), so a major
-version bump wasn't merited. Issues with glob pattern matching should be
-reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues).
-
-License
--------
-[ISC](https://raw.github.com/es128/anymatch/master/LICENSE)
diff --git a/node_modules/anymatch/index.js b/node_modules/anymatch/index.js
deleted file mode 100644
index fd70ba0..0000000
--- a/node_modules/anymatch/index.js
+++ /dev/null
@@ -1,64 +0,0 @@
-'use strict';
-
-var arrify = require('arrify');
-var micromatch = require('micromatch');
-var path = require('path');
-
-var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) {
- criteria = arrify(criteria);
- value = arrify(value);
- if (arguments.length === 1) {
- return anymatch.bind(null, criteria.map(function(criterion) {
- return typeof criterion === 'string' && criterion[0] !== '!' ?
- micromatch.matcher(criterion) : criterion;
- }));
- }
- startIndex = startIndex || 0;
- var string = value[0];
- var altString;
- var matched = false;
- var matchIndex = -1;
- function testCriteria (criterion, index) {
- var result;
- switch (toString.call(criterion)) {
- case '[object String]':
- result = string === criterion || altString && altString === criterion;
- result = result || micromatch.isMatch(string, criterion);
- break;
- case '[object RegExp]':
- result = criterion.test(string) || altString && criterion.test(altString);
- break;
- case '[object Function]':
- result = criterion.apply(null, value);
- break;
- default:
- result = false;
- }
- if (result) {
- matchIndex = index + startIndex;
- }
- return result;
- }
- var crit = criteria;
- var negGlobs = crit.reduce(function(arr, criterion, index) {
- if (typeof criterion === 'string' && criterion[0] === '!') {
- if (crit === criteria) {
- // make a copy before modifying
- crit = crit.slice();
- }
- crit[index] = null;
- arr.push(criterion.substr(1));
- }
- return arr;
- }, []);
- if (!negGlobs.length || !micromatch.any(string, negGlobs)) {
- if (path.sep === '\\' && typeof string === 'string') {
- altString = string.split('\\').join('/');
- altString = altString === string ? null : altString;
- }
- matched = crit.slice(startIndex, endIndex).some(testCriteria);
- }
- return returnIndex === true ? matchIndex : matched;
-};
-
-module.exports = anymatch;
diff --git a/node_modules/anymatch/package.json b/node_modules/anymatch/package.json
deleted file mode 100644
index 90ef1e3..0000000
--- a/node_modules/anymatch/package.json
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "anymatch@^1.3.0",
- "scope": null,
- "escapedName": "anymatch",
- "name": "anymatch",
- "rawSpec": "^1.3.0",
- "spec": ">=1.3.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/gulp-watch"
- ]
- ],
- "_from": "anymatch@>=1.3.0 <2.0.0",
- "_id": "anymatch@1.3.0",
- "_inCache": true,
- "_location": "/anymatch",
- "_nodeVersion": "1.6.2",
- "_npmUser": {
- "name": "es128",
- "email": "elan.shanker+npm@gmail.com"
- },
- "_npmVersion": "2.7.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "anymatch@^1.3.0",
- "scope": null,
- "escapedName": "anymatch",
- "name": "anymatch",
- "rawSpec": "^1.3.0",
- "spec": ">=1.3.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/chokidar",
- "/gulp-watch"
- ],
- "_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.0.tgz",
- "_shasum": "a3e52fa39168c825ff57b0248126ce5a8ff95507",
- "_shrinkwrap": null,
- "_spec": "anymatch@^1.3.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-watch",
- "author": {
- "name": "Elan Shanker",
- "url": "http://github.com/es128"
- },
- "bugs": {
- "url": "https://github.com/es128/anymatch/issues"
- },
- "dependencies": {
- "arrify": "^1.0.0",
- "micromatch": "^2.1.5"
- },
- "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions",
- "devDependencies": {
- "coveralls": "^2.11.2",
- "istanbul": "^0.3.13",
- "mocha": "^2.2.4"
- },
- "directories": {},
- "dist": {
- "shasum": "a3e52fa39168c825ff57b0248126ce5a8ff95507",
- "tarball": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.0.tgz"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "253d2ad42f644ed18557f561312a7f8426daca84",
- "homepage": "https://github.com/es128/anymatch",
- "keywords": [
- "match",
- "any",
- "string",
- "file",
- "fs",
- "list",
- "glob",
- "regex",
- "regexp",
- "regular",
- "expression",
- "function"
- ],
- "license": "ISC",
- "maintainers": [
- {
- "name": "es128",
- "email": "elan.shanker+npm@gmail.com"
- }
- ],
- "name": "anymatch",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/es128/anymatch.git"
- },
- "scripts": {
- "test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls"
- },
- "version": "1.3.0"
-}
diff --git a/node_modules/archy/.travis.yml b/node_modules/archy/.travis.yml
deleted file mode 100644
index 895dbd3..0000000
--- a/node_modules/archy/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
diff --git a/node_modules/archy/LICENSE b/node_modules/archy/LICENSE
deleted file mode 100644
index ee27ba4..0000000
--- a/node_modules/archy/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-This software is released under the 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/node_modules/archy/examples/beep.js b/node_modules/archy/examples/beep.js
deleted file mode 100644
index 9c07047..0000000
--- a/node_modules/archy/examples/beep.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var archy = require('../');
-var s = archy({
- label : 'beep',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny' ]
- },
- 'human'
- ]
- },
- 'party\ntime!'
- ]
- }
- ]
-});
-console.log(s);
diff --git a/node_modules/archy/examples/multi_line.js b/node_modules/archy/examples/multi_line.js
deleted file mode 100644
index 8afdfad..0000000
--- a/node_modules/archy/examples/multi_line.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var archy = require('../');
-
-var s = archy({
- label : 'beep\none\ntwo',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O\nwheee',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny\nmeat' ]
- },
- 'creature'
- ]
- },
- 'party\ntime!'
- ]
- }
- ]
-});
-console.log(s);
diff --git a/node_modules/archy/index.js b/node_modules/archy/index.js
deleted file mode 100644
index 869d64e..0000000
--- a/node_modules/archy/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = function archy (obj, prefix, opts) {
- if (prefix === undefined) prefix = '';
- if (!opts) opts = {};
- var chr = function (s) {
- var chars = {
- '│' : '|',
- '└' : '`',
- '├' : '+',
- '─' : '-',
- '┬' : '-'
- };
- return opts.unicode === false ? chars[s] : s;
- };
-
- if (typeof obj === 'string') obj = { label : obj };
-
- var nodes = obj.nodes || [];
- var lines = (obj.label || '').split('\n');
- var splitter = '\n' + prefix + (nodes.length ? chr('│') : ' ') + ' ';
-
- return prefix
- + lines.join(splitter) + '\n'
- + nodes.map(function (node, ix) {
- var last = ix === nodes.length - 1;
- var more = node.nodes && node.nodes.length;
- var prefix_ = prefix + (last ? ' ' : chr('│')) + ' ';
-
- return prefix
- + (last ? chr('└') : chr('├')) + chr('─')
- + (more ? chr('┬') : chr('─')) + ' '
- + archy(node, prefix_, opts).slice(prefix.length + 2)
- ;
- }).join('')
- ;
-};
diff --git a/node_modules/archy/package.json b/node_modules/archy/package.json
deleted file mode 100644
index a5a958f..0000000
--- a/node_modules/archy/package.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "archy@^1.0.0",
- "scope": null,
- "escapedName": "archy",
- "name": "archy",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/gulp"
- ]
- ],
- "_from": "archy@>=1.0.0 <2.0.0",
- "_id": "archy@1.0.0",
- "_inCache": true,
- "_location": "/archy",
- "_npmUser": {
- "name": "substack",
- "email": "mail@substack.net"
- },
- "_npmVersion": "1.4.25",
- "_phantomChildren": {},
- "_requested": {
- "raw": "archy@^1.0.0",
- "scope": null,
- "escapedName": "archy",
- "name": "archy",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/gulp"
- ],
- "_resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz",
- "_shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40",
- "_shrinkwrap": null,
- "_spec": "archy@^1.0.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bugs": {
- "url": "https://github.com/substack/node-archy/issues"
- },
- "dependencies": {},
- "description": "render nested hierarchies `npm ls` style with unicode pipes",
- "devDependencies": {
- "tap": "~0.3.3",
- "tape": "~0.1.1"
- },
- "directories": {},
- "dist": {
- "shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40",
- "tarball": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz"
- },
- "gitHead": "30223c16191e877bf027b15b12daf077b9b55b84",
- "homepage": "https://github.com/substack/node-archy",
- "keywords": [
- "hierarchy",
- "npm ls",
- "unicode",
- "pretty",
- "print"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "substack",
- "email": "mail@substack.net"
- }
- ],
- "name": "archy",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/substack/node-archy.git"
- },
- "scripts": {
- "test": "tap test"
- },
- "testling": {
- "files": "test/*.js",
- "browsers": {
- "iexplore": [
- "6.0",
- "7.0",
- "8.0",
- "9.0"
- ],
- "chrome": [
- "20.0"
- ],
- "firefox": [
- "10.0",
- "15.0"
- ],
- "safari": [
- "5.1"
- ],
- "opera": [
- "12.0"
- ]
- }
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/archy/readme.markdown b/node_modules/archy/readme.markdown
deleted file mode 100644
index ef7a5cf..0000000
--- a/node_modules/archy/readme.markdown
+++ /dev/null
@@ -1,88 +0,0 @@
-# archy
-
-Render nested hierarchies `npm ls` style with unicode pipes.
-
-[](http://ci.testling.com/substack/node-archy)
-
-[](http://travis-ci.org/substack/node-archy)
-
-# example
-
-``` js
-var archy = require('archy');
-var s = archy({
- label : 'beep',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny' ]
- },
- 'human'
- ]
- },
- 'party\ntime!'
- ]
- }
- ]
-});
-console.log(s);
-```
-
-output
-
-```
-beep
-├── ity
-└─┬ boop
- ├─┬ o_O
- │ ├─┬ oh
- │ │ ├── hello
- │ │ └── puny
- │ └── human
- └── party
- time!
-```
-
-# methods
-
-var archy = require('archy')
-
-## archy(obj, prefix='', opts={})
-
-Return a string representation of `obj` with unicode pipe characters like how
-`npm ls` looks.
-
-`obj` should be a tree of nested objects with `'label'` and `'nodes'` fields.
-`'label'` is a string of text to display at a node level and `'nodes'` is an
-array of the descendents of the current node.
-
-If a node is a string, that string will be used as the `'label'` and an empty
-array of `'nodes'` will be used.
-
-`prefix` gets prepended to all the lines and is used by the algorithm to
-recursively update.
-
-If `'label'` has newlines they will be indented at the present indentation level
-with the current prefix.
-
-To disable unicode results in favor of all-ansi output set `opts.unicode` to
-`false`.
-
-# install
-
-With [npm](http://npmjs.org) do:
-
-```
-npm install archy
-```
-
-# license
-
-MIT
diff --git a/node_modules/archy/test/beep.js b/node_modules/archy/test/beep.js
deleted file mode 100644
index 4ea74f9..0000000
--- a/node_modules/archy/test/beep.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var test = require('tape');
-var archy = require('../');
-
-test('beep', function (t) {
- var s = archy({
- label : 'beep',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny' ]
- },
- 'human'
- ]
- },
- 'party!'
- ]
- }
- ]
- });
- t.equal(s, [
- 'beep',
- '├── ity',
- '└─┬ boop',
- ' ├─┬ o_O',
- ' │ ├─┬ oh',
- ' │ │ ├── hello',
- ' │ │ └── puny',
- ' │ └── human',
- ' └── party!',
- ''
- ].join('\n'));
- t.end();
-});
diff --git a/node_modules/archy/test/multi_line.js b/node_modules/archy/test/multi_line.js
deleted file mode 100644
index 2cf2154..0000000
--- a/node_modules/archy/test/multi_line.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var test = require('tape');
-var archy = require('../');
-
-test('multi-line', function (t) {
- var s = archy({
- label : 'beep\none\ntwo',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O\nwheee',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny\nmeat' ]
- },
- 'creature'
- ]
- },
- 'party\ntime!'
- ]
- }
- ]
- });
- t.equal(s, [
- 'beep',
- '│ one',
- '│ two',
- '├── ity',
- '└─┬ boop',
- ' ├─┬ o_O',
- ' │ │ wheee',
- ' │ ├─┬ oh',
- ' │ │ ├── hello',
- ' │ │ └── puny',
- ' │ │ meat',
- ' │ └── creature',
- ' └── party',
- ' time!',
- ''
- ].join('\n'));
- t.end();
-});
diff --git a/node_modules/archy/test/non_unicode.js b/node_modules/archy/test/non_unicode.js
deleted file mode 100644
index 7204d33..0000000
--- a/node_modules/archy/test/non_unicode.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var test = require('tape');
-var archy = require('../');
-
-test('beep', function (t) {
- var s = archy({
- label : 'beep',
- nodes : [
- 'ity',
- {
- label : 'boop',
- nodes : [
- {
- label : 'o_O',
- nodes : [
- {
- label : 'oh',
- nodes : [ 'hello', 'puny' ]
- },
- 'human'
- ]
- },
- 'party!'
- ]
- }
- ]
- }, '', { unicode : false });
- t.equal(s, [
- 'beep',
- '+-- ity',
- '`-- boop',
- ' +-- o_O',
- ' | +-- oh',
- ' | | +-- hello',
- ' | | `-- puny',
- ' | `-- human',
- ' `-- party!',
- ''
- ].join('\n'));
- t.end();
-});
diff --git a/node_modules/argparse/CHANGELOG.md b/node_modules/argparse/CHANGELOG.md
deleted file mode 100644
index e422115..0000000
--- a/node_modules/argparse/CHANGELOG.md
+++ /dev/null
@@ -1,179 +0,0 @@
-1.0.9 / 2016-09-29
-------------------
-
-- Rerelease after 1.0.8 - deps cleanup.
-
-
-1.0.8 / 2016-09-29
-------------------
-
-- Maintenance (deps bump, fix node 6.5+ tests, coverage report).
-
-
-1.0.7 / 2016-03-17
-------------------
-
-- Teach `addArgument` to accept string arg names. #97, @tomxtobin.
-
-
-1.0.6 / 2016-02-06
-------------------
-
-- Maintenance: moved to eslint & updated CS.
-
-
-1.0.5 / 2016-02-05
-------------------
-
-- Removed lodash dependency to significantly reduce install size.
- Thanks to @mourner.
-
-
-1.0.4 / 2016-01-17
-------------------
-
-- Maintenance: lodash update to 4.0.0.
-
-
-1.0.3 / 2015-10-27
-------------------
-
-- Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple.
-
-
-1.0.2 / 2015-03-22
-------------------
-
-- Relaxed lodash version dependency.
-
-
-1.0.1 / 2015-02-20
-------------------
-
-- Changed dependencies to be compatible with ancient nodejs.
-
-
-1.0.0 / 2015-02-19
-------------------
-
-- Maintenance release.
-- Replaced `underscore` with `lodash`.
-- Bumped version to 1.0.0 to better reflect semver meaning.
-- HISTORY.md -> CHANGELOG.md
-
-
-0.1.16 / 2013-12-01
--------------------
-
-- Maintenance release. Updated dependencies and docs.
-
-
-0.1.15 / 2013-05-13
--------------------
-
-- Fixed #55, @trebor89
-
-
-0.1.14 / 2013-05-12
--------------------
-
-- Fixed #62, @maxtaco
-
-
-0.1.13 / 2013-04-08
--------------------
-
-- Added `.npmignore` to reduce package size
-
-
-0.1.12 / 2013-02-10
--------------------
-
-- Fixed conflictHandler (#46), @hpaulj
-
-
-0.1.11 / 2013-02-07
--------------------
-
-- Multiple bugfixes, @hpaulj
-- Added 70+ tests (ported from python), @hpaulj
-- Added conflictHandler, @applepicke
-- Added fromfilePrefixChar, @hpaulj
-
-
-0.1.10 / 2012-12-30
--------------------
-
-- Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
- support, thanks to @hpaulj
-- Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj
-
-
-0.1.9 / 2012-12-27
-------------------
-
-- Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
-- Fixed default value behavior with `*` positionals, thanks to @hpaulj
-- Improve `getDefault()` behavior, thanks to @hpaulj
-- Imrove negative argument parsing, thanks to @hpaulj
-
-
-0.1.8 / 2012-12-01
-------------------
-
-- Fixed parser parents (issue #19), thanks to @hpaulj
-- Fixed negative argument parse (issue #20), thanks to @hpaulj
-
-
-0.1.7 / 2012-10-14
-------------------
-
-- Fixed 'choices' argument parse (issue #16)
-- Fixed stderr output (issue #15)
-
-
-0.1.6 / 2012-09-09
-------------------
-
-- Fixed check for conflict of options (thanks to @tomxtobin)
-
-
-0.1.5 / 2012-09-03
-------------------
-
-- Fix parser #setDefaults method (thanks to @tomxtobin)
-
-
-0.1.4 / 2012-07-30
-------------------
-
-- Fixed pseudo-argument support (thanks to @CGamesPlay)
-- Fixed addHelp default (should be true), if not set (thanks to @benblank)
-
-
-0.1.3 / 2012-06-27
-------------------
-
-- Fixed formatter api name: Formatter -> HelpFormatter
-
-
-0.1.2 / 2012-05-29
-------------------
-
-- Added basic tests
-- Removed excess whitespace in help
-- Fixed error reporting, when parcer with subcommands
- called with empty arguments
-
-
-0.1.1 / 2012-05-23
-------------------
-
-- Fixed line wrapping in help formatter
-- Added better error reporting on invalid arguments
-
-
-0.1.0 / 2012-05-16
-------------------
-
-- First release.
diff --git a/node_modules/argparse/LICENSE b/node_modules/argparse/LICENSE
deleted file mode 100644
index 1afdae5..0000000
--- a/node_modules/argparse/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-(The MIT License)
-
-Copyright (C) 2012 by Vitaly Puzrin
-
-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/node_modules/argparse/README.md b/node_modules/argparse/README.md
deleted file mode 100644
index 2d0bcab..0000000
--- a/node_modules/argparse/README.md
+++ /dev/null
@@ -1,253 +0,0 @@
-argparse
-========
-
-[](http://travis-ci.org/nodeca/argparse)
-[](https://www.npmjs.org/package/argparse)
-
-CLI arguments parser for node.js. Javascript port of python's
-[argparse](http://docs.python.org/dev/library/argparse.html) module
-(original version 3.2). That's a full port, except some very rare options,
-recorded in issue tracker.
-
-**NB. Difference with original.**
-
-- Method names changed to camelCase. See [generated docs](http://nodeca.github.com/argparse/).
-- Use `defaultValue` instead of `default`.
-
-
-Example
-=======
-
-test.js file:
-
-```javascript
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp:true,
- description: 'Argparse example'
-});
-parser.addArgument(
- [ '-f', '--foo' ],
- {
- help: 'foo bar'
- }
-);
-parser.addArgument(
- [ '-b', '--bar' ],
- {
- help: 'bar foo'
- }
-);
-parser.addArgument(
- '--baz',
- {
- help: 'baz bar'
- }
-);
-var args = parser.parseArgs();
-console.dir(args);
-```
-
-Display help:
-
-```
-$ ./test.js -h
-usage: example.js [-h] [-v] [-f FOO] [-b BAR] [--baz BAZ]
-
-Argparse example
-
-Optional arguments:
- -h, --help Show this help message and exit.
- -v, --version Show program's version number and exit.
- -f FOO, --foo FOO foo bar
- -b BAR, --bar BAR bar foo
- --baz BAZ baz bar
-```
-
-Parse arguments:
-
-```
-$ ./test.js -f=3 --bar=4 --baz 5
-{ foo: '3', bar: '4', baz: '5' }
-```
-
-More [examples](https://github.com/nodeca/argparse/tree/master/examples).
-
-
-ArgumentParser objects
-======================
-
-```
-new ArgumentParser({paramters hash});
-```
-
-Creates a new ArgumentParser object.
-
-**Supported params:**
-
-- ```description``` - Text to display before the argument help.
-- ```epilog``` - Text to display after the argument help.
-- ```addHelp``` - Add a -h/–help option to the parser. (default: true)
-- ```argumentDefault``` - Set the global default value for arguments. (default: null)
-- ```parents``` - A list of ArgumentParser objects whose arguments should also be included.
-- ```prefixChars``` - The set of characters that prefix optional arguments. (default: ‘-‘)
-- ```formatterClass``` - A class for customizing the help output.
-- ```prog``` - The name of the program (default: `path.basename(process.argv[1])`)
-- ```usage``` - The string describing the program usage (default: generated)
-- ```conflictHandler``` - Usually unnecessary, defines strategy for resolving conflicting optionals.
-
-**Not supportied yet**
-
-- ```fromfilePrefixChars``` - The set of characters that prefix files from which additional arguments should be read.
-
-
-Details in [original ArgumentParser guide](http://docs.python.org/dev/library/argparse.html#argumentparser-objects)
-
-
-addArgument() method
-====================
-
-```
-ArgumentParser.addArgument(name or flag or [name] or [flags...], {options})
-```
-
-Defines how a single command-line argument should be parsed.
-
-- ```name or flag or [name] or [flags...]``` - Either a positional name
- (e.g., `'foo'`), a single option (e.g., `'-f'` or `'--foo'`), an array
- of a single positional name (e.g., `['foo']`), or an array of options
- (e.g., `['-f', '--foo']`).
-
-Options:
-
-- ```action``` - The basic type of action to be taken when this argument is encountered at the command line.
-- ```nargs```- The number of command-line arguments that should be consumed.
-- ```constant``` - A constant value required by some action and nargs selections.
-- ```defaultValue``` - The value produced if the argument is absent from the command line.
-- ```type``` - The type to which the command-line argument should be converted.
-- ```choices``` - A container of the allowable values for the argument.
-- ```required``` - Whether or not the command-line option may be omitted (optionals only).
-- ```help``` - A brief description of what the argument does.
-- ```metavar``` - A name for the argument in usage messages.
-- ```dest``` - The name of the attribute to be added to the object returned by parseArgs().
-
-Details in [original add_argument guide](http://docs.python.org/dev/library/argparse.html#the-add-argument-method)
-
-
-Action (some details)
-================
-
-ArgumentParser objects associate command-line arguments with actions.
-These actions can do just about anything with the command-line arguments associated
-with them, though most actions simply add an attribute to the object returned by
-parseArgs(). The action keyword argument specifies how the command-line arguments
-should be handled. The supported actions are:
-
-- ```store``` - Just stores the argument’s value. This is the default action.
-- ```storeConst``` - Stores value, specified by the const keyword argument.
- (Note that the const keyword argument defaults to the rather unhelpful None.)
- The 'storeConst' action is most commonly used with optional arguments, that
- specify some sort of flag.
-- ```storeTrue``` and ```storeFalse``` - Stores values True and False
- respectively. These are special cases of 'storeConst'.
-- ```append``` - Stores a list, and appends each argument value to the list.
- This is useful to allow an option to be specified multiple times.
-- ```appendConst``` - Stores a list, and appends value, specified by the
- const keyword argument to the list. (Note, that the const keyword argument defaults
- is None.) The 'appendConst' action is typically used when multiple arguments need
- to store constants to the same list.
-- ```count``` - Counts the number of times a keyword argument occurs. For example,
- used for increasing verbosity levels.
-- ```help``` - Prints a complete help message for all the options in the current
- parser and then exits. By default a help action is automatically added to the parser.
- See ArgumentParser for details of how the output is created.
-- ```version``` - Prints version information and exit. Expects a `version=`
- keyword argument in the addArgument() call.
-
-Details in [original action guide](http://docs.python.org/dev/library/argparse.html#action)
-
-
-Sub-commands
-============
-
-ArgumentParser.addSubparsers()
-
-Many programs split their functionality into a number of sub-commands, for
-example, the svn program can invoke sub-commands like `svn checkout`, `svn update`,
-and `svn commit`. Splitting up functionality this way can be a particularly good
-idea when a program performs several different functions which require different
-kinds of command-line arguments. `ArgumentParser` supports creation of such
-sub-commands with `addSubparsers()` method. The `addSubparsers()` method is
-normally called with no arguments and returns an special action object.
-This object has a single method `addParser()`, which takes a command name and
-any `ArgumentParser` constructor arguments, and returns an `ArgumentParser` object
-that can be modified as usual.
-
-Example:
-
-sub_commands.js
-```javascript
-#!/usr/bin/env node
-'use strict';
-
-var ArgumentParser = require('../lib/argparse').ArgumentParser;
-var parser = new ArgumentParser({
- version: '0.0.1',
- addHelp:true,
- description: 'Argparse examples: sub-commands',
-});
-
-var subparsers = parser.addSubparsers({
- title:'subcommands',
- dest:"subcommand_name"
-});
-
-var bar = subparsers.addParser('c1', {addHelp:true});
-bar.addArgument(
- [ '-f', '--foo' ],
- {
- action: 'store',
- help: 'foo3 bar3'
- }
-);
-var bar = subparsers.addParser(
- 'c2',
- {aliases:['co'], addHelp:true}
-);
-bar.addArgument(
- [ '-b', '--bar' ],
- {
- action: 'store',
- type: 'int',
- help: 'foo3 bar3'
- }
-);
-
-var args = parser.parseArgs();
-console.dir(args);
-
-```
-
-Details in [original sub-commands guide](http://docs.python.org/dev/library/argparse.html#sub-commands)
-
-
-Contributors
-============
-
-- [Eugene Shkuropat](https://github.com/shkuropat)
-- [Paul Jacobson](https://github.com/hpaulj)
-
-[others](https://github.com/nodeca/argparse/graphs/contributors)
-
-License
-=======
-
-Copyright (c) 2012 [Vitaly Puzrin](https://github.com/puzrin).
-Released under the MIT license. See
-[LICENSE](https://github.com/nodeca/argparse/blob/master/LICENSE) for details.
-
-
diff --git a/node_modules/argparse/index.js b/node_modules/argparse/index.js
deleted file mode 100644
index 3bbc143..0000000
--- a/node_modules/argparse/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./lib/argparse');
diff --git a/node_modules/argparse/lib/action.js b/node_modules/argparse/lib/action.js
deleted file mode 100644
index ef35989..0000000
--- a/node_modules/argparse/lib/action.js
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * class Action
- *
- * Base class for all actions
- * Do not call in your code, use this class only for inherits your own action
- *
- * Information about how to convert command line strings to Javascript objects.
- * Action objects are used by an ArgumentParser to represent the information
- * needed to parse a single argument from one or more strings from the command
- * line. The keyword arguments to the Action constructor are also all attributes
- * of Action instances.
- *
- * #####Alowed keywords:
- *
- * - `store`
- * - `storeConstant`
- * - `storeTrue`
- * - `storeFalse`
- * - `append`
- * - `appendConstant`
- * - `count`
- * - `help`
- * - `version`
- *
- * Information about action options see [[Action.new]]
- *
- * See also [original guide](http://docs.python.org/dev/library/argparse.html#action)
- *
- **/
-
-'use strict';
-
-
-// Constants
-var c = require('./const');
-
-
-/**
- * new Action(options)
- *
- * Base class for all actions. Used only for inherits
- *
- *
- * ##### Options:
- *
- * - `optionStrings` A list of command-line option strings for the action.
- * - `dest` Attribute to hold the created object(s)
- * - `nargs` The number of command-line arguments that should be consumed.
- * By default, one argument will be consumed and a single value will be
- * produced.
- * - `constant` Default value for an action with no value.
- * - `defaultValue` The value to be produced if the option is not specified.
- * - `type` Cast to 'string'|'int'|'float'|'complex'|function (string). If
- * None, 'string'.
- * - `choices` The choices available.
- * - `required` True if the action must always be specified at the command
- * line.
- * - `help` The help describing the argument.
- * - `metavar` The name to be used for the option's argument with the help
- * string. If None, the 'dest' value will be used as the name.
- *
- * ##### nargs supported values:
- *
- * - `N` (an integer) consumes N arguments (and produces a list)
- * - `?` consumes zero or one arguments
- * - `*` consumes zero or more arguments (and produces a list)
- * - `+` consumes one or more arguments (and produces a list)
- *
- * Note: that the difference between the default and nargs=1 is that with the
- * default, a single value will be produced, while with nargs=1, a list
- * containing a single value will be produced.
- **/
-var Action = module.exports = function Action(options) {
- options = options || {};
- this.optionStrings = options.optionStrings || [];
- this.dest = options.dest;
- this.nargs = typeof options.nargs !== 'undefined' ? options.nargs : null;
- this.constant = typeof options.constant !== 'undefined' ? options.constant : null;
- this.defaultValue = options.defaultValue;
- this.type = typeof options.type !== 'undefined' ? options.type : null;
- this.choices = typeof options.choices !== 'undefined' ? options.choices : null;
- this.required = typeof options.required !== 'undefined' ? options.required : false;
- this.help = typeof options.help !== 'undefined' ? options.help : null;
- this.metavar = typeof options.metavar !== 'undefined' ? options.metavar : null;
-
- if (!(this.optionStrings instanceof Array)) {
- throw new Error('optionStrings should be an array');
- }
- if (typeof this.required !== 'undefined' && typeof this.required !== 'boolean') {
- throw new Error('required should be a boolean');
- }
-};
-
-/**
- * Action#getName -> String
- *
- * Tells action name
- **/
-Action.prototype.getName = function () {
- if (this.optionStrings.length > 0) {
- return this.optionStrings.join('/');
- } else if (this.metavar !== null && this.metavar !== c.SUPPRESS) {
- return this.metavar;
- } else if (typeof this.dest !== 'undefined' && this.dest !== c.SUPPRESS) {
- return this.dest;
- }
- return null;
-};
-
-/**
- * Action#isOptional -> Boolean
- *
- * Return true if optional
- **/
-Action.prototype.isOptional = function () {
- return !this.isPositional();
-};
-
-/**
- * Action#isPositional -> Boolean
- *
- * Return true if positional
- **/
-Action.prototype.isPositional = function () {
- return (this.optionStrings.length === 0);
-};
-
-/**
- * Action#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Should be implemented in inherited classes
- *
- * ##### Example
- *
- * ActionCount.prototype.call = function (parser, namespace, values, optionString) {
- * namespace.set(this.dest, (namespace[this.dest] || 0) + 1);
- * };
- *
- **/
-Action.prototype.call = function () {
- throw new Error('.call() not defined');// Not Implemented error
-};
diff --git a/node_modules/argparse/lib/action/append.js b/node_modules/argparse/lib/action/append.js
deleted file mode 100644
index b5da0de..0000000
--- a/node_modules/argparse/lib/action/append.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*:nodoc:*
- * class ActionAppend
- *
- * This action stores a list, and appends each argument value to the list.
- * This is useful to allow an option to be specified multiple times.
- * This class inherided from [[Action]]
- *
- **/
-
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var c = require('../const');
-
-/*:nodoc:*
- * new ActionAppend(options)
- * - options (object): options hash see [[Action.new]]
- *
- * Note: options.nargs should be optional for constants
- * and more then zero for other
- **/
-var ActionAppend = module.exports = function ActionAppend(options) {
- options = options || {};
- if (this.nargs <= 0) {
- throw new Error('nargs for append actions must be > 0; if arg ' +
- 'strings are not supplying the value to append, ' +
- 'the append const action may be more appropriate');
- }
- if (!!this.constant && this.nargs !== c.OPTIONAL) {
- throw new Error('nargs must be OPTIONAL to supply const');
- }
- Action.call(this, options);
-};
-util.inherits(ActionAppend, Action);
-
-/*:nodoc:*
- * ActionAppend#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionAppend.prototype.call = function (parser, namespace, values) {
- var items = (namespace[this.dest] || []).slice();
- items.push(values);
- namespace.set(this.dest, items);
-};
diff --git a/node_modules/argparse/lib/action/append/constant.js b/node_modules/argparse/lib/action/append/constant.js
deleted file mode 100644
index 313f5d2..0000000
--- a/node_modules/argparse/lib/action/append/constant.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*:nodoc:*
- * class ActionAppendConstant
- *
- * This stores a list, and appends the value specified by
- * the const keyword argument to the list.
- * (Note that the const keyword argument defaults to null.)
- * The 'appendConst' action is typically useful when multiple
- * arguments need to store constants to the same list.
- *
- * This class inherited from [[Action]]
- **/
-
-'use strict';
-
-var util = require('util');
-
-var Action = require('../../action');
-
-/*:nodoc:*
- * new ActionAppendConstant(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionAppendConstant = module.exports = function ActionAppendConstant(options) {
- options = options || {};
- options.nargs = 0;
- if (typeof options.constant === 'undefined') {
- throw new Error('constant option is required for appendAction');
- }
- Action.call(this, options);
-};
-util.inherits(ActionAppendConstant, Action);
-
-/*:nodoc:*
- * ActionAppendConstant#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionAppendConstant.prototype.call = function (parser, namespace) {
- var items = [].concat(namespace[this.dest] || []);
- items.push(this.constant);
- namespace.set(this.dest, items);
-};
diff --git a/node_modules/argparse/lib/action/count.js b/node_modules/argparse/lib/action/count.js
deleted file mode 100644
index d6a5899..0000000
--- a/node_modules/argparse/lib/action/count.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*:nodoc:*
- * class ActionCount
- *
- * This counts the number of times a keyword argument occurs.
- * For example, this is useful for increasing verbosity levels
- *
- * This class inherided from [[Action]]
- *
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-/*:nodoc:*
- * new ActionCount(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionCount = module.exports = function ActionCount(options) {
- options = options || {};
- options.nargs = 0;
-
- Action.call(this, options);
-};
-util.inherits(ActionCount, Action);
-
-/*:nodoc:*
- * ActionCount#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionCount.prototype.call = function (parser, namespace) {
- namespace.set(this.dest, (namespace[this.dest] || 0) + 1);
-};
diff --git a/node_modules/argparse/lib/action/help.js b/node_modules/argparse/lib/action/help.js
deleted file mode 100644
index b40e05a..0000000
--- a/node_modules/argparse/lib/action/help.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*:nodoc:*
- * class ActionHelp
- *
- * Support action for printing help
- * This class inherided from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var c = require('../const');
-
-/*:nodoc:*
- * new ActionHelp(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionHelp = module.exports = function ActionHelp(options) {
- options = options || {};
- if (options.defaultValue !== null) {
- options.defaultValue = options.defaultValue;
- } else {
- options.defaultValue = c.SUPPRESS;
- }
- options.dest = (options.dest !== null ? options.dest : c.SUPPRESS);
- options.nargs = 0;
- Action.call(this, options);
-
-};
-util.inherits(ActionHelp, Action);
-
-/*:nodoc:*
- * ActionHelp#call(parser, namespace, values, optionString)
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Print help and exit
- **/
-ActionHelp.prototype.call = function (parser) {
- parser.printHelp();
- parser.exit();
-};
diff --git a/node_modules/argparse/lib/action/store.js b/node_modules/argparse/lib/action/store.js
deleted file mode 100644
index 283b860..0000000
--- a/node_modules/argparse/lib/action/store.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*:nodoc:*
- * class ActionStore
- *
- * This action just stores the argument’s value. This is the default action.
- *
- * This class inherited from [[Action]]
- *
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-// Constants
-var c = require('../const');
-
-
-/*:nodoc:*
- * new ActionStore(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStore = module.exports = function ActionStore(options) {
- options = options || {};
- if (this.nargs <= 0) {
- throw new Error('nargs for store actions must be > 0; if you ' +
- 'have nothing to store, actions such as store ' +
- 'true or store const may be more appropriate');
-
- }
- if (typeof this.constant !== 'undefined' && this.nargs !== c.OPTIONAL) {
- throw new Error('nargs must be OPTIONAL to supply const');
- }
- Action.call(this, options);
-};
-util.inherits(ActionStore, Action);
-
-/*:nodoc:*
- * ActionStore#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionStore.prototype.call = function (parser, namespace, values) {
- namespace.set(this.dest, values);
-};
diff --git a/node_modules/argparse/lib/action/store/constant.js b/node_modules/argparse/lib/action/store/constant.js
deleted file mode 100644
index 23caa89..0000000
--- a/node_modules/argparse/lib/action/store/constant.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*:nodoc:*
- * class ActionStoreConstant
- *
- * This action stores the value specified by the const keyword argument.
- * (Note that the const keyword argument defaults to the rather unhelpful null.)
- * The 'store_const' action is most commonly used with optional
- * arguments that specify some sort of flag.
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../../action');
-
-/*:nodoc:*
- * new ActionStoreConstant(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStoreConstant = module.exports = function ActionStoreConstant(options) {
- options = options || {};
- options.nargs = 0;
- if (typeof options.constant === 'undefined') {
- throw new Error('constant option is required for storeAction');
- }
- Action.call(this, options);
-};
-util.inherits(ActionStoreConstant, Action);
-
-/*:nodoc:*
- * ActionStoreConstant#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Save result in namespace object
- **/
-ActionStoreConstant.prototype.call = function (parser, namespace) {
- namespace.set(this.dest, this.constant);
-};
diff --git a/node_modules/argparse/lib/action/store/false.js b/node_modules/argparse/lib/action/store/false.js
deleted file mode 100644
index 9924f46..0000000
--- a/node_modules/argparse/lib/action/store/false.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*:nodoc:*
- * class ActionStoreFalse
- *
- * This action store the values False respectively.
- * This is special cases of 'storeConst'
- *
- * This class inherited from [[Action]]
- **/
-
-'use strict';
-
-var util = require('util');
-
-var ActionStoreConstant = require('./constant');
-
-/*:nodoc:*
- * new ActionStoreFalse(options)
- * - options (object): hash of options see [[Action.new]]
- *
- **/
-var ActionStoreFalse = module.exports = function ActionStoreFalse(options) {
- options = options || {};
- options.constant = false;
- options.defaultValue = options.defaultValue !== null ? options.defaultValue : true;
- ActionStoreConstant.call(this, options);
-};
-util.inherits(ActionStoreFalse, ActionStoreConstant);
diff --git a/node_modules/argparse/lib/action/store/true.js b/node_modules/argparse/lib/action/store/true.js
deleted file mode 100644
index 9e22f7d..0000000
--- a/node_modules/argparse/lib/action/store/true.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*:nodoc:*
- * class ActionStoreTrue
- *
- * This action store the values True respectively.
- * This isspecial cases of 'storeConst'
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ActionStoreConstant = require('./constant');
-
-/*:nodoc:*
- * new ActionStoreTrue(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionStoreTrue = module.exports = function ActionStoreTrue(options) {
- options = options || {};
- options.constant = true;
- options.defaultValue = options.defaultValue !== null ? options.defaultValue : false;
- ActionStoreConstant.call(this, options);
-};
-util.inherits(ActionStoreTrue, ActionStoreConstant);
diff --git a/node_modules/argparse/lib/action/subparsers.js b/node_modules/argparse/lib/action/subparsers.js
deleted file mode 100644
index 99dfedd..0000000
--- a/node_modules/argparse/lib/action/subparsers.js
+++ /dev/null
@@ -1,149 +0,0 @@
-/** internal
- * class ActionSubparsers
- *
- * Support the creation of such sub-commands with the addSubparsers()
- *
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-var format = require('util').format;
-
-
-var Action = require('../action');
-
-// Constants
-var c = require('../const');
-
-// Errors
-var argumentErrorHelper = require('../argument/error');
-
-
-/*:nodoc:*
- * new ChoicesPseudoAction(name, help)
- *
- * Create pseudo action for correct help text
- *
- **/
-function ChoicesPseudoAction(name, help) {
- var options = {
- optionStrings: [],
- dest: name,
- help: help
- };
-
- Action.call(this, options);
-}
-
-util.inherits(ChoicesPseudoAction, Action);
-
-/**
- * new ActionSubparsers(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-function ActionSubparsers(options) {
- options = options || {};
- options.dest = options.dest || c.SUPPRESS;
- options.nargs = c.PARSER;
-
- this.debug = (options.debug === true);
-
- this._progPrefix = options.prog;
- this._parserClass = options.parserClass;
- this._nameParserMap = {};
- this._choicesActions = [];
-
- options.choices = this._nameParserMap;
- Action.call(this, options);
-}
-
-util.inherits(ActionSubparsers, Action);
-
-/*:nodoc:*
- * ActionSubparsers#addParser(name, options) -> ArgumentParser
- * - name (string): sub-command name
- * - options (object): see [[ArgumentParser.new]]
- *
- * Note:
- * addParser supports an additional aliases option,
- * which allows multiple strings to refer to the same subparser.
- * This example, like svn, aliases co as a shorthand for checkout
- *
- **/
-ActionSubparsers.prototype.addParser = function (name, options) {
- var parser;
-
- var self = this;
-
- options = options || {};
-
- options.debug = (this.debug === true);
-
- // set program from the existing prefix
- if (!options.prog) {
- options.prog = this._progPrefix + ' ' + name;
- }
-
- var aliases = options.aliases || [];
-
- // create a pseudo-action to hold the choice help
- if (!!options.help || typeof options.help === 'string') {
- var help = options.help;
- delete options.help;
-
- var choiceAction = new ChoicesPseudoAction(name, help);
- this._choicesActions.push(choiceAction);
- }
-
- // create the parser and add it to the map
- parser = new this._parserClass(options);
- this._nameParserMap[name] = parser;
-
- // make parser available under aliases also
- aliases.forEach(function (alias) {
- self._nameParserMap[alias] = parser;
- });
-
- return parser;
-};
-
-ActionSubparsers.prototype._getSubactions = function () {
- return this._choicesActions;
-};
-
-/*:nodoc:*
- * ActionSubparsers#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Call the action. Parse input aguments
- **/
-ActionSubparsers.prototype.call = function (parser, namespace, values) {
- var parserName = values[0];
- var argStrings = values.slice(1);
-
- // set the parser name if requested
- if (this.dest !== c.SUPPRESS) {
- namespace[this.dest] = parserName;
- }
-
- // select the parser
- if (this._nameParserMap[parserName]) {
- parser = this._nameParserMap[parserName];
- } else {
- throw argumentErrorHelper(format(
- 'Unknown parser "%s" (choices: [%s]).',
- parserName,
- Object.keys(this._nameParserMap).join(', ')
- ));
- }
-
- // parse all the remaining options into the namespace
- parser.parseArgs(argStrings, namespace);
-};
-
-module.exports = ActionSubparsers;
diff --git a/node_modules/argparse/lib/action/version.js b/node_modules/argparse/lib/action/version.js
deleted file mode 100644
index 8053328..0000000
--- a/node_modules/argparse/lib/action/version.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*:nodoc:*
- * class ActionVersion
- *
- * Support action for printing program version
- * This class inherited from [[Action]]
- **/
-'use strict';
-
-var util = require('util');
-
-var Action = require('../action');
-
-//
-// Constants
-//
-var c = require('../const');
-
-/*:nodoc:*
- * new ActionVersion(options)
- * - options (object): options hash see [[Action.new]]
- *
- **/
-var ActionVersion = module.exports = function ActionVersion(options) {
- options = options || {};
- options.defaultValue = (options.defaultValue ? options.defaultValue : c.SUPPRESS);
- options.dest = (options.dest || c.SUPPRESS);
- options.nargs = 0;
- this.version = options.version;
- Action.call(this, options);
-};
-util.inherits(ActionVersion, Action);
-
-/*:nodoc:*
- * ActionVersion#call(parser, namespace, values, optionString) -> Void
- * - parser (ArgumentParser): current parser
- * - namespace (Namespace): namespace for output data
- * - values (Array): parsed values
- * - optionString (Array): input option string(not parsed)
- *
- * Print version and exit
- **/
-ActionVersion.prototype.call = function (parser) {
- var version = this.version || parser.version;
- var formatter = parser._getFormatter();
- formatter.addText(version);
- parser.exit(0, formatter.formatHelp());
-};
diff --git a/node_modules/argparse/lib/action_container.js b/node_modules/argparse/lib/action_container.js
deleted file mode 100644
index 6f1237b..0000000
--- a/node_modules/argparse/lib/action_container.js
+++ /dev/null
@@ -1,482 +0,0 @@
-/** internal
- * class ActionContainer
- *
- * Action container. Parent for [[ArgumentParser]] and [[ArgumentGroup]]
- **/
-
-'use strict';
-
-var format = require('util').format;
-
-// Constants
-var c = require('./const');
-
-var $$ = require('./utils');
-
-//Actions
-var ActionHelp = require('./action/help');
-var ActionAppend = require('./action/append');
-var ActionAppendConstant = require('./action/append/constant');
-var ActionCount = require('./action/count');
-var ActionStore = require('./action/store');
-var ActionStoreConstant = require('./action/store/constant');
-var ActionStoreTrue = require('./action/store/true');
-var ActionStoreFalse = require('./action/store/false');
-var ActionVersion = require('./action/version');
-var ActionSubparsers = require('./action/subparsers');
-
-// Errors
-var argumentErrorHelper = require('./argument/error');
-
-/**
- * new ActionContainer(options)
- *
- * Action container. Parent for [[ArgumentParser]] and [[ArgumentGroup]]
- *
- * ##### Options:
- *
- * - `description` -- A description of what the program does
- * - `prefixChars` -- Characters that prefix optional arguments
- * - `argumentDefault` -- The default value for all arguments
- * - `conflictHandler` -- The conflict handler to use for duplicate arguments
- **/
-var ActionContainer = module.exports = function ActionContainer(options) {
- options = options || {};
-
- this.description = options.description;
- this.argumentDefault = options.argumentDefault;
- this.prefixChars = options.prefixChars || '';
- this.conflictHandler = options.conflictHandler;
-
- // set up registries
- this._registries = {};
-
- // register actions
- this.register('action', null, ActionStore);
- this.register('action', 'store', ActionStore);
- this.register('action', 'storeConst', ActionStoreConstant);
- this.register('action', 'storeTrue', ActionStoreTrue);
- this.register('action', 'storeFalse', ActionStoreFalse);
- this.register('action', 'append', ActionAppend);
- this.register('action', 'appendConst', ActionAppendConstant);
- this.register('action', 'count', ActionCount);
- this.register('action', 'help', ActionHelp);
- this.register('action', 'version', ActionVersion);
- this.register('action', 'parsers', ActionSubparsers);
-
- // raise an exception if the conflict handler is invalid
- this._getHandler();
-
- // action storage
- this._actions = [];
- this._optionStringActions = {};
-
- // groups
- this._actionGroups = [];
- this._mutuallyExclusiveGroups = [];
-
- // defaults storage
- this._defaults = {};
-
- // determines whether an "option" looks like a negative number
- // -1, -1.5 -5e+4
- this._regexpNegativeNumber = new RegExp('^[-]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$');
-
- // whether or not there are any optionals that look like negative
- // numbers -- uses a list so it can be shared and edited
- this._hasNegativeNumberOptionals = [];
-};
-
-// Groups must be required, then ActionContainer already defined
-var ArgumentGroup = require('./argument/group');
-var MutuallyExclusiveGroup = require('./argument/exclusive');
-
-//
-// Registration methods
-//
-
-/**
- * ActionContainer#register(registryName, value, object) -> Void
- * - registryName (String) : object type action|type
- * - value (string) : keyword
- * - object (Object|Function) : handler
- *
- * Register handlers
- **/
-ActionContainer.prototype.register = function (registryName, value, object) {
- this._registries[registryName] = this._registries[registryName] || {};
- this._registries[registryName][value] = object;
-};
-
-ActionContainer.prototype._registryGet = function (registryName, value, defaultValue) {
- if (arguments.length < 3) {
- defaultValue = null;
- }
- return this._registries[registryName][value] || defaultValue;
-};
-
-//
-// Namespace default accessor methods
-//
-
-/**
- * ActionContainer#setDefaults(options) -> Void
- * - options (object):hash of options see [[Action.new]]
- *
- * Set defaults
- **/
-ActionContainer.prototype.setDefaults = function (options) {
- options = options || {};
- for (var property in options) {
- if ($$.has(options, property)) {
- this._defaults[property] = options[property];
- }
- }
-
- // if these defaults match any existing arguments, replace the previous
- // default on the object with the new one
- this._actions.forEach(function (action) {
- if ($$.has(options, action.dest)) {
- action.defaultValue = options[action.dest];
- }
- });
-};
-
-/**
- * ActionContainer#getDefault(dest) -> Mixed
- * - dest (string): action destination
- *
- * Return action default value
- **/
-ActionContainer.prototype.getDefault = function (dest) {
- var result = $$.has(this._defaults, dest) ? this._defaults[dest] : null;
-
- this._actions.forEach(function (action) {
- if (action.dest === dest && $$.has(action, 'defaultValue')) {
- result = action.defaultValue;
- }
- });
-
- return result;
-};
-//
-// Adding argument actions
-//
-
-/**
- * ActionContainer#addArgument(args, options) -> Object
- * - args (String|Array): argument key, or array of argument keys
- * - options (Object): action objects see [[Action.new]]
- *
- * #### Examples
- * - addArgument([ '-f', '--foo' ], { action: 'store', defaultValue: 1, ... })
- * - addArgument([ 'bar' ], { action: 'store', nargs: 1, ... })
- * - addArgument('--baz', { action: 'store', nargs: 1, ... })
- **/
-ActionContainer.prototype.addArgument = function (args, options) {
- args = args;
- options = options || {};
-
- if (typeof args === 'string') {
- args = [ args ];
- }
- if (!Array.isArray(args)) {
- throw new TypeError('addArgument first argument should be a string or an array');
- }
- if (typeof options !== 'object' || Array.isArray(options)) {
- throw new TypeError('addArgument second argument should be a hash');
- }
-
- // if no positional args are supplied or only one is supplied and
- // it doesn't look like an option string, parse a positional argument
- if (!args || args.length === 1 && this.prefixChars.indexOf(args[0][0]) < 0) {
- if (args && !!options.dest) {
- throw new Error('dest supplied twice for positional argument');
- }
- options = this._getPositional(args, options);
-
- // otherwise, we're adding an optional argument
- } else {
- options = this._getOptional(args, options);
- }
-
- // if no default was supplied, use the parser-level default
- if (typeof options.defaultValue === 'undefined') {
- var dest = options.dest;
- if ($$.has(this._defaults, dest)) {
- options.defaultValue = this._defaults[dest];
- } else if (typeof this.argumentDefault !== 'undefined') {
- options.defaultValue = this.argumentDefault;
- }
- }
-
- // create the action object, and add it to the parser
- var ActionClass = this._popActionClass(options);
- if (typeof ActionClass !== 'function') {
- throw new Error(format('Unknown action "%s".', ActionClass));
- }
- var action = new ActionClass(options);
-
- // throw an error if the action type is not callable
- var typeFunction = this._registryGet('type', action.type, action.type);
- if (typeof typeFunction !== 'function') {
- throw new Error(format('"%s" is not callable', typeFunction));
- }
-
- return this._addAction(action);
-};
-
-/**
- * ActionContainer#addArgumentGroup(options) -> ArgumentGroup
- * - options (Object): hash of options see [[ArgumentGroup.new]]
- *
- * Create new arguments groups
- **/
-ActionContainer.prototype.addArgumentGroup = function (options) {
- var group = new ArgumentGroup(this, options);
- this._actionGroups.push(group);
- return group;
-};
-
-/**
- * ActionContainer#addMutuallyExclusiveGroup(options) -> ArgumentGroup
- * - options (Object): {required: false}
- *
- * Create new mutual exclusive groups
- **/
-ActionContainer.prototype.addMutuallyExclusiveGroup = function (options) {
- var group = new MutuallyExclusiveGroup(this, options);
- this._mutuallyExclusiveGroups.push(group);
- return group;
-};
-
-ActionContainer.prototype._addAction = function (action) {
- var self = this;
-
- // resolve any conflicts
- this._checkConflict(action);
-
- // add to actions list
- this._actions.push(action);
- action.container = this;
-
- // index the action by any option strings it has
- action.optionStrings.forEach(function (optionString) {
- self._optionStringActions[optionString] = action;
- });
-
- // set the flag if any option strings look like negative numbers
- action.optionStrings.forEach(function (optionString) {
- if (optionString.match(self._regexpNegativeNumber)) {
- if (!self._hasNegativeNumberOptionals.some(Boolean)) {
- self._hasNegativeNumberOptionals.push(true);
- }
- }
- });
-
- // return the created action
- return action;
-};
-
-ActionContainer.prototype._removeAction = function (action) {
- var actionIndex = this._actions.indexOf(action);
- if (actionIndex >= 0) {
- this._actions.splice(actionIndex, 1);
- }
-};
-
-ActionContainer.prototype._addContainerActions = function (container) {
- // collect groups by titles
- var titleGroupMap = {};
- this._actionGroups.forEach(function (group) {
- if (titleGroupMap[group.title]) {
- throw new Error(format('Cannot merge actions - two groups are named "%s".', group.title));
- }
- titleGroupMap[group.title] = group;
- });
-
- // map each action to its group
- var groupMap = {};
- function actionHash(action) {
- // unique (hopefully?) string suitable as dictionary key
- return action.getName();
- }
- container._actionGroups.forEach(function (group) {
- // if a group with the title exists, use that, otherwise
- // create a new group matching the container's group
- if (!titleGroupMap[group.title]) {
- titleGroupMap[group.title] = this.addArgumentGroup({
- title: group.title,
- description: group.description
- });
- }
-
- // map the actions to their new group
- group._groupActions.forEach(function (action) {
- groupMap[actionHash(action)] = titleGroupMap[group.title];
- });
- }, this);
-
- // add container's mutually exclusive groups
- // NOTE: if add_mutually_exclusive_group ever gains title= and
- // description= then this code will need to be expanded as above
- var mutexGroup;
- container._mutuallyExclusiveGroups.forEach(function (group) {
- mutexGroup = this.addMutuallyExclusiveGroup({
- required: group.required
- });
- // map the actions to their new mutex group
- group._groupActions.forEach(function (action) {
- groupMap[actionHash(action)] = mutexGroup;
- });
- }, this); // forEach takes a 'this' argument
-
- // add all actions to this container or their group
- container._actions.forEach(function (action) {
- var key = actionHash(action);
- if (groupMap[key]) {
- groupMap[key]._addAction(action);
- } else {
- this._addAction(action);
- }
- });
-};
-
-ActionContainer.prototype._getPositional = function (dest, options) {
- if (Array.isArray(dest)) {
- dest = dest[0];
- }
- // make sure required is not specified
- if (options.required) {
- throw new Error('"required" is an invalid argument for positionals.');
- }
-
- // mark positional arguments as required if at least one is
- // always required
- if (options.nargs !== c.OPTIONAL && options.nargs !== c.ZERO_OR_MORE) {
- options.required = true;
- }
- if (options.nargs === c.ZERO_OR_MORE && typeof options.defaultValue === 'undefined') {
- options.required = true;
- }
-
- // return the keyword arguments with no option strings
- options.dest = dest;
- options.optionStrings = [];
- return options;
-};
-
-ActionContainer.prototype._getOptional = function (args, options) {
- var prefixChars = this.prefixChars;
- var optionStrings = [];
- var optionStringsLong = [];
-
- // determine short and long option strings
- args.forEach(function (optionString) {
- // error on strings that don't start with an appropriate prefix
- if (prefixChars.indexOf(optionString[0]) < 0) {
- throw new Error(format('Invalid option string "%s": must start with a "%s".',
- optionString,
- prefixChars
- ));
- }
-
- // strings starting with two prefix characters are long options
- optionStrings.push(optionString);
- if (optionString.length > 1 && prefixChars.indexOf(optionString[1]) >= 0) {
- optionStringsLong.push(optionString);
- }
- });
-
- // infer dest, '--foo-bar' -> 'foo_bar' and '-x' -> 'x'
- var dest = options.dest || null;
- delete options.dest;
-
- if (!dest) {
- var optionStringDest = optionStringsLong.length ? optionStringsLong[0] : optionStrings[0];
- dest = $$.trimChars(optionStringDest, this.prefixChars);
-
- if (dest.length === 0) {
- throw new Error(
- format('dest= is required for options like "%s"', optionStrings.join(', '))
- );
- }
- dest = dest.replace(/-/g, '_');
- }
-
- // return the updated keyword arguments
- options.dest = dest;
- options.optionStrings = optionStrings;
-
- return options;
-};
-
-ActionContainer.prototype._popActionClass = function (options, defaultValue) {
- defaultValue = defaultValue || null;
-
- var action = (options.action || defaultValue);
- delete options.action;
-
- var actionClass = this._registryGet('action', action, action);
- return actionClass;
-};
-
-ActionContainer.prototype._getHandler = function () {
- var handlerString = this.conflictHandler;
- var handlerFuncName = '_handleConflict' + $$.capitalize(handlerString);
- var func = this[handlerFuncName];
- if (typeof func === 'undefined') {
- var msg = 'invalid conflict resolution value: ' + handlerString;
- throw new Error(msg);
- } else {
- return func;
- }
-};
-
-ActionContainer.prototype._checkConflict = function (action) {
- var optionStringActions = this._optionStringActions;
- var conflictOptionals = [];
-
- // find all options that conflict with this option
- // collect pairs, the string, and an existing action that it conflicts with
- action.optionStrings.forEach(function (optionString) {
- var conflOptional = optionStringActions[optionString];
- if (typeof conflOptional !== 'undefined') {
- conflictOptionals.push([ optionString, conflOptional ]);
- }
- });
-
- if (conflictOptionals.length > 0) {
- var conflictHandler = this._getHandler();
- conflictHandler.call(this, action, conflictOptionals);
- }
-};
-
-ActionContainer.prototype._handleConflictError = function (action, conflOptionals) {
- var conflicts = conflOptionals.map(function (pair) { return pair[0]; });
- conflicts = conflicts.join(', ');
- throw argumentErrorHelper(
- action,
- format('Conflicting option string(s): %s', conflicts)
- );
-};
-
-ActionContainer.prototype._handleConflictResolve = function (action, conflOptionals) {
- // remove all conflicting options
- var self = this;
- conflOptionals.forEach(function (pair) {
- var optionString = pair[0];
- var conflictingAction = pair[1];
- // remove the conflicting option string
- var i = conflictingAction.optionStrings.indexOf(optionString);
- if (i >= 0) {
- conflictingAction.optionStrings.splice(i, 1);
- }
- delete self._optionStringActions[optionString];
- // if the option now has no option string, remove it from the
- // container holding it
- if (conflictingAction.optionStrings.length === 0) {
- conflictingAction.container._removeAction(conflictingAction);
- }
- });
-};
diff --git a/node_modules/argparse/lib/argparse.js b/node_modules/argparse/lib/argparse.js
deleted file mode 100644
index f2a2c51..0000000
--- a/node_modules/argparse/lib/argparse.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports.ArgumentParser = require('./argument_parser.js');
-module.exports.Namespace = require('./namespace');
-module.exports.Action = require('./action');
-module.exports.HelpFormatter = require('./help/formatter.js');
-module.exports.Const = require('./const.js');
-
-module.exports.ArgumentDefaultsHelpFormatter =
- require('./help/added_formatters.js').ArgumentDefaultsHelpFormatter;
-module.exports.RawDescriptionHelpFormatter =
- require('./help/added_formatters.js').RawDescriptionHelpFormatter;
-module.exports.RawTextHelpFormatter =
- require('./help/added_formatters.js').RawTextHelpFormatter;
diff --git a/node_modules/argparse/lib/argument/error.js b/node_modules/argparse/lib/argument/error.js
deleted file mode 100644
index c8a02a0..0000000
--- a/node_modules/argparse/lib/argument/error.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-
-var format = require('util').format;
-
-
-var ERR_CODE = 'ARGError';
-
-/*:nodoc:*
- * argumentError(argument, message) -> TypeError
- * - argument (Object): action with broken argument
- * - message (String): error message
- *
- * Error format helper. An error from creating or using an argument
- * (optional or positional). The string value of this exception
- * is the message, augmented with information
- * about the argument that caused it.
- *
- * #####Example
- *
- * var argumentErrorHelper = require('./argument/error');
- * if (conflictOptionals.length > 0) {
- * throw argumentErrorHelper(
- * action,
- * format('Conflicting option string(s): %s', conflictOptionals.join(', '))
- * );
- * }
- *
- **/
-module.exports = function (argument, message) {
- var argumentName = null;
- var errMessage;
- var err;
-
- if (argument.getName) {
- argumentName = argument.getName();
- } else {
- argumentName = '' + argument;
- }
-
- if (!argumentName) {
- errMessage = message;
- } else {
- errMessage = format('argument "%s": %s', argumentName, message);
- }
-
- err = new TypeError(errMessage);
- err.code = ERR_CODE;
- return err;
-};
diff --git a/node_modules/argparse/lib/argument/exclusive.js b/node_modules/argparse/lib/argument/exclusive.js
deleted file mode 100644
index 8287e00..0000000
--- a/node_modules/argparse/lib/argument/exclusive.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/** internal
- * class MutuallyExclusiveGroup
- *
- * Group arguments.
- * By default, ArgumentParser groups command-line arguments
- * into “positional arguments” and “optional arguments”
- * when displaying help messages. When there is a better
- * conceptual grouping of arguments than this default one,
- * appropriate groups can be created using the addArgumentGroup() method
- *
- * This class inherited from [[ArgumentContainer]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ArgumentGroup = require('./group');
-
-/**
- * new MutuallyExclusiveGroup(container, options)
- * - container (object): main container
- * - options (object): options.required -> true/false
- *
- * `required` could be an argument itself, but making it a property of
- * the options argument is more consistent with the JS adaptation of the Python)
- **/
-var MutuallyExclusiveGroup = module.exports = function MutuallyExclusiveGroup(container, options) {
- var required;
- options = options || {};
- required = options.required || false;
- ArgumentGroup.call(this, container);
- this.required = required;
-
-};
-util.inherits(MutuallyExclusiveGroup, ArgumentGroup);
-
-
-MutuallyExclusiveGroup.prototype._addAction = function (action) {
- var msg;
- if (action.required) {
- msg = 'mutually exclusive arguments must be optional';
- throw new Error(msg);
- }
- action = this._container._addAction(action);
- this._groupActions.push(action);
- return action;
-};
-
-
-MutuallyExclusiveGroup.prototype._removeAction = function (action) {
- this._container._removeAction(action);
- this._groupActions.remove(action);
-};
-
diff --git a/node_modules/argparse/lib/argument/group.js b/node_modules/argparse/lib/argument/group.js
deleted file mode 100644
index 58b271f..0000000
--- a/node_modules/argparse/lib/argument/group.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/** internal
- * class ArgumentGroup
- *
- * Group arguments.
- * By default, ArgumentParser groups command-line arguments
- * into “positional arguments” and “optional arguments”
- * when displaying help messages. When there is a better
- * conceptual grouping of arguments than this default one,
- * appropriate groups can be created using the addArgumentGroup() method
- *
- * This class inherited from [[ArgumentContainer]]
- **/
-'use strict';
-
-var util = require('util');
-
-var ActionContainer = require('../action_container');
-
-
-/**
- * new ArgumentGroup(container, options)
- * - container (object): main container
- * - options (object): hash of group options
- *
- * #### options
- * - **prefixChars** group name prefix
- * - **argumentDefault** default argument value
- * - **title** group title
- * - **description** group description
- *
- **/
-var ArgumentGroup = module.exports = function ArgumentGroup(container, options) {
-
- options = options || {};
-
- // add any missing keyword arguments by checking the container
- options.conflictHandler = (options.conflictHandler || container.conflictHandler);
- options.prefixChars = (options.prefixChars || container.prefixChars);
- options.argumentDefault = (options.argumentDefault || container.argumentDefault);
-
- ActionContainer.call(this, options);
-
- // group attributes
- this.title = options.title;
- this._groupActions = [];
-
- // share most attributes with the container
- this._container = container;
- this._registries = container._registries;
- this._actions = container._actions;
- this._optionStringActions = container._optionStringActions;
- this._defaults = container._defaults;
- this._hasNegativeNumberOptionals = container._hasNegativeNumberOptionals;
- this._mutuallyExclusiveGroups = container._mutuallyExclusiveGroups;
-};
-util.inherits(ArgumentGroup, ActionContainer);
-
-
-ArgumentGroup.prototype._addAction = function (action) {
- // Parent add action
- action = ActionContainer.prototype._addAction.call(this, action);
- this._groupActions.push(action);
- return action;
-};
-
-
-ArgumentGroup.prototype._removeAction = function (action) {
- // Parent remove action
- ActionContainer.prototype._removeAction.call(this, action);
- var actionIndex = this._groupActions.indexOf(action);
- if (actionIndex >= 0) {
- this._groupActions.splice(actionIndex, 1);
- }
-};
-
diff --git a/node_modules/argparse/lib/argument_parser.js b/node_modules/argparse/lib/argument_parser.js
deleted file mode 100644
index bd9a59a..0000000
--- a/node_modules/argparse/lib/argument_parser.js
+++ /dev/null
@@ -1,1161 +0,0 @@
-/**
- * class ArgumentParser
- *
- * Object for parsing command line strings into js objects.
- *
- * Inherited from [[ActionContainer]]
- **/
-'use strict';
-
-var util = require('util');
-var format = require('util').format;
-var Path = require('path');
-var sprintf = require('sprintf-js').sprintf;
-
-// Constants
-var c = require('./const');
-
-var $$ = require('./utils');
-
-var ActionContainer = require('./action_container');
-
-// Errors
-var argumentErrorHelper = require('./argument/error');
-
-var HelpFormatter = require('./help/formatter');
-
-var Namespace = require('./namespace');
-
-
-/**
- * new ArgumentParser(options)
- *
- * Create a new ArgumentParser object.
- *
- * ##### Options:
- * - `prog` The name of the program (default: Path.basename(process.argv[1]))
- * - `usage` A usage message (default: auto-generated from arguments)
- * - `description` A description of what the program does
- * - `epilog` Text following the argument descriptions
- * - `parents` Parsers whose arguments should be copied into this one
- * - `formatterClass` HelpFormatter class for printing help messages
- * - `prefixChars` Characters that prefix optional arguments
- * - `fromfilePrefixChars` Characters that prefix files containing additional arguments
- * - `argumentDefault` The default value for all arguments
- * - `addHelp` Add a -h/-help option
- * - `conflictHandler` Specifies how to handle conflicting argument names
- * - `debug` Enable debug mode. Argument errors throw exception in
- * debug mode and process.exit in normal. Used for development and
- * testing (default: false)
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#argumentparser-objects
- **/
-function ArgumentParser(options) {
- if (!(this instanceof ArgumentParser)) {
- return new ArgumentParser(options);
- }
- var self = this;
- options = options || {};
-
- options.description = (options.description || null);
- options.argumentDefault = (options.argumentDefault || null);
- options.prefixChars = (options.prefixChars || '-');
- options.conflictHandler = (options.conflictHandler || 'error');
- ActionContainer.call(this, options);
-
- options.addHelp = typeof options.addHelp === 'undefined' || !!options.addHelp;
- options.parents = options.parents || [];
- // default program name
- options.prog = (options.prog || Path.basename(process.argv[1]));
- this.prog = options.prog;
- this.usage = options.usage;
- this.epilog = options.epilog;
- this.version = options.version;
-
- this.debug = (options.debug === true);
-
- this.formatterClass = (options.formatterClass || HelpFormatter);
- this.fromfilePrefixChars = options.fromfilePrefixChars || null;
- this._positionals = this.addArgumentGroup({ title: 'Positional arguments' });
- this._optionals = this.addArgumentGroup({ title: 'Optional arguments' });
- this._subparsers = null;
-
- // register types
- function FUNCTION_IDENTITY(o) {
- return o;
- }
- this.register('type', 'auto', FUNCTION_IDENTITY);
- this.register('type', null, FUNCTION_IDENTITY);
- this.register('type', 'int', function (x) {
- var result = parseInt(x, 10);
- if (isNaN(result)) {
- throw new Error(x + ' is not a valid integer.');
- }
- return result;
- });
- this.register('type', 'float', function (x) {
- var result = parseFloat(x);
- if (isNaN(result)) {
- throw new Error(x + ' is not a valid float.');
- }
- return result;
- });
- this.register('type', 'string', function (x) {
- return '' + x;
- });
-
- // add help and version arguments if necessary
- var defaultPrefix = (this.prefixChars.indexOf('-') > -1) ? '-' : this.prefixChars[0];
- if (options.addHelp) {
- this.addArgument(
- [ defaultPrefix + 'h', defaultPrefix + defaultPrefix + 'help' ],
- {
- action: 'help',
- defaultValue: c.SUPPRESS,
- help: 'Show this help message and exit.'
- }
- );
- }
- if (typeof this.version !== 'undefined') {
- this.addArgument(
- [ defaultPrefix + 'v', defaultPrefix + defaultPrefix + 'version' ],
- {
- action: 'version',
- version: this.version,
- defaultValue: c.SUPPRESS,
- help: "Show program's version number and exit."
- }
- );
- }
-
- // add parent arguments and defaults
- options.parents.forEach(function (parent) {
- self._addContainerActions(parent);
- if (typeof parent._defaults !== 'undefined') {
- for (var defaultKey in parent._defaults) {
- if (parent._defaults.hasOwnProperty(defaultKey)) {
- self._defaults[defaultKey] = parent._defaults[defaultKey];
- }
- }
- }
- });
-}
-
-util.inherits(ArgumentParser, ActionContainer);
-
-/**
- * ArgumentParser#addSubparsers(options) -> [[ActionSubparsers]]
- * - options (object): hash of options see [[ActionSubparsers.new]]
- *
- * See also [subcommands][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#sub-commands
- **/
-ArgumentParser.prototype.addSubparsers = function (options) {
- if (this._subparsers) {
- this.error('Cannot have multiple subparser arguments.');
- }
-
- options = options || {};
- options.debug = (this.debug === true);
- options.optionStrings = [];
- options.parserClass = (options.parserClass || ArgumentParser);
-
-
- if (!!options.title || !!options.description) {
-
- this._subparsers = this.addArgumentGroup({
- title: (options.title || 'subcommands'),
- description: options.description
- });
- delete options.title;
- delete options.description;
-
- } else {
- this._subparsers = this._positionals;
- }
-
- // prog defaults to the usage message of this parser, skipping
- // optional arguments and with no "usage:" prefix
- if (!options.prog) {
- var formatter = this._getFormatter();
- var positionals = this._getPositionalActions();
- var groups = this._mutuallyExclusiveGroups;
- formatter.addUsage(this.usage, positionals, groups, '');
- options.prog = formatter.formatHelp().trim();
- }
-
- // create the parsers action and add it to the positionals list
- var ParsersClass = this._popActionClass(options, 'parsers');
- var action = new ParsersClass(options);
- this._subparsers._addAction(action);
-
- // return the created parsers action
- return action;
-};
-
-ArgumentParser.prototype._addAction = function (action) {
- if (action.isOptional()) {
- this._optionals._addAction(action);
- } else {
- this._positionals._addAction(action);
- }
- return action;
-};
-
-ArgumentParser.prototype._getOptionalActions = function () {
- return this._actions.filter(function (action) {
- return action.isOptional();
- });
-};
-
-ArgumentParser.prototype._getPositionalActions = function () {
- return this._actions.filter(function (action) {
- return action.isPositional();
- });
-};
-
-
-/**
- * ArgumentParser#parseArgs(args, namespace) -> Namespace|Object
- * - args (array): input elements
- * - namespace (Namespace|Object): result object
- *
- * Parsed args and throws error if some arguments are not recognized
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#the-parse-args-method
- **/
-ArgumentParser.prototype.parseArgs = function (args, namespace) {
- var argv;
- var result = this.parseKnownArgs(args, namespace);
-
- args = result[0];
- argv = result[1];
- if (argv && argv.length > 0) {
- this.error(
- format('Unrecognized arguments: %s.', argv.join(' '))
- );
- }
- return args;
-};
-
-/**
- * ArgumentParser#parseKnownArgs(args, namespace) -> array
- * - args (array): input options
- * - namespace (Namespace|Object): result object
- *
- * Parse known arguments and return tuple of result object
- * and unknown args
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#partial-parsing
- **/
-ArgumentParser.prototype.parseKnownArgs = function (args, namespace) {
- var self = this;
-
- // args default to the system args
- args = args || process.argv.slice(2);
-
- // default Namespace built from parser defaults
- namespace = namespace || new Namespace();
-
- self._actions.forEach(function (action) {
- if (action.dest !== c.SUPPRESS) {
- if (!$$.has(namespace, action.dest)) {
- if (action.defaultValue !== c.SUPPRESS) {
- var defaultValue = action.defaultValue;
- if (typeof action.defaultValue === 'string') {
- defaultValue = self._getValue(action, defaultValue);
- }
- namespace[action.dest] = defaultValue;
- }
- }
- }
- });
-
- Object.keys(self._defaults).forEach(function (dest) {
- namespace[dest] = self._defaults[dest];
- });
-
- // parse the arguments and exit if there are any errors
- try {
- var res = this._parseKnownArgs(args, namespace);
-
- namespace = res[0];
- args = res[1];
- if ($$.has(namespace, c._UNRECOGNIZED_ARGS_ATTR)) {
- args = $$.arrayUnion(args, namespace[c._UNRECOGNIZED_ARGS_ATTR]);
- delete namespace[c._UNRECOGNIZED_ARGS_ATTR];
- }
- return [ namespace, args ];
- } catch (e) {
- this.error(e);
- }
-};
-
-ArgumentParser.prototype._parseKnownArgs = function (argStrings, namespace) {
- var self = this;
-
- var extras = [];
-
- // replace arg strings that are file references
- if (this.fromfilePrefixChars !== null) {
- argStrings = this._readArgsFromFiles(argStrings);
- }
- // map all mutually exclusive arguments to the other arguments
- // they can't occur with
- // Python has 'conflicts = action_conflicts.setdefault(mutex_action, [])'
- // though I can't conceive of a way in which an action could be a member
- // of two different mutually exclusive groups.
-
- function actionHash(action) {
- // some sort of hashable key for this action
- // action itself cannot be a key in actionConflicts
- // I think getName() (join of optionStrings) is unique enough
- return action.getName();
- }
-
- var conflicts, key;
- var actionConflicts = {};
-
- this._mutuallyExclusiveGroups.forEach(function (mutexGroup) {
- mutexGroup._groupActions.forEach(function (mutexAction, i, groupActions) {
- key = actionHash(mutexAction);
- if (!$$.has(actionConflicts, key)) {
- actionConflicts[key] = [];
- }
- conflicts = actionConflicts[key];
- conflicts.push.apply(conflicts, groupActions.slice(0, i));
- conflicts.push.apply(conflicts, groupActions.slice(i + 1));
- });
- });
-
- // find all option indices, and determine the arg_string_pattern
- // which has an 'O' if there is an option at an index,
- // an 'A' if there is an argument, or a '-' if there is a '--'
- var optionStringIndices = {};
-
- var argStringPatternParts = [];
-
- argStrings.forEach(function (argString, argStringIndex) {
- if (argString === '--') {
- argStringPatternParts.push('-');
- while (argStringIndex < argStrings.length) {
- argStringPatternParts.push('A');
- argStringIndex++;
- }
- } else {
- // otherwise, add the arg to the arg strings
- // and note the index if it was an option
- var pattern;
- var optionTuple = self._parseOptional(argString);
- if (!optionTuple) {
- pattern = 'A';
- } else {
- optionStringIndices[argStringIndex] = optionTuple;
- pattern = 'O';
- }
- argStringPatternParts.push(pattern);
- }
- });
- var argStringsPattern = argStringPatternParts.join('');
-
- var seenActions = [];
- var seenNonDefaultActions = [];
-
-
- function takeAction(action, argumentStrings, optionString) {
- seenActions.push(action);
- var argumentValues = self._getValues(action, argumentStrings);
-
- // error if this argument is not allowed with other previously
- // seen arguments, assuming that actions that use the default
- // value don't really count as "present"
- if (argumentValues !== action.defaultValue) {
- seenNonDefaultActions.push(action);
- if (actionConflicts[actionHash(action)]) {
- actionConflicts[actionHash(action)].forEach(function (actionConflict) {
- if (seenNonDefaultActions.indexOf(actionConflict) >= 0) {
- throw argumentErrorHelper(
- action,
- format('Not allowed with argument "%s".', actionConflict.getName())
- );
- }
- });
- }
- }
-
- if (argumentValues !== c.SUPPRESS) {
- action.call(self, namespace, argumentValues, optionString);
- }
- }
-
- function consumeOptional(startIndex) {
- // get the optional identified at this index
- var optionTuple = optionStringIndices[startIndex];
- var action = optionTuple[0];
- var optionString = optionTuple[1];
- var explicitArg = optionTuple[2];
-
- // identify additional optionals in the same arg string
- // (e.g. -xyz is the same as -x -y -z if no args are required)
- var actionTuples = [];
-
- var args, argCount, start, stop;
-
- for (;;) {
- if (!action) {
- extras.push(argStrings[startIndex]);
- return startIndex + 1;
- }
- if (explicitArg) {
- argCount = self._matchArgument(action, 'A');
-
- // if the action is a single-dash option and takes no
- // arguments, try to parse more single-dash options out
- // of the tail of the option string
- var chars = self.prefixChars;
- if (argCount === 0 && chars.indexOf(optionString[1]) < 0) {
- actionTuples.push([ action, [], optionString ]);
- optionString = optionString[0] + explicitArg[0];
- var newExplicitArg = explicitArg.slice(1) || null;
- var optionalsMap = self._optionStringActions;
-
- if (Object.keys(optionalsMap).indexOf(optionString) >= 0) {
- action = optionalsMap[optionString];
- explicitArg = newExplicitArg;
- } else {
- throw argumentErrorHelper(action, sprintf('ignored explicit argument %r', explicitArg));
- }
- } else if (argCount === 1) {
- // if the action expect exactly one argument, we've
- // successfully matched the option; exit the loop
- stop = startIndex + 1;
- args = [ explicitArg ];
- actionTuples.push([ action, args, optionString ]);
- break;
- } else {
- // error if a double-dash option did not use the
- // explicit argument
- throw argumentErrorHelper(action, sprintf('ignored explicit argument %r', explicitArg));
- }
- } else {
- // if there is no explicit argument, try to match the
- // optional's string arguments with the following strings
- // if successful, exit the loop
-
- start = startIndex + 1;
- var selectedPatterns = argStringsPattern.substr(start);
-
- argCount = self._matchArgument(action, selectedPatterns);
- stop = start + argCount;
-
-
- args = argStrings.slice(start, stop);
-
- actionTuples.push([ action, args, optionString ]);
- break;
- }
-
- }
-
- // add the Optional to the list and return the index at which
- // the Optional's string args stopped
- if (actionTuples.length < 1) {
- throw new Error('length should be > 0');
- }
- for (var i = 0; i < actionTuples.length; i++) {
- takeAction.apply(self, actionTuples[i]);
- }
- return stop;
- }
-
- // the list of Positionals left to be parsed; this is modified
- // by consume_positionals()
- var positionals = self._getPositionalActions();
-
- function consumePositionals(startIndex) {
- // match as many Positionals as possible
- var selectedPattern = argStringsPattern.substr(startIndex);
- var argCounts = self._matchArgumentsPartial(positionals, selectedPattern);
-
- // slice off the appropriate arg strings for each Positional
- // and add the Positional and its args to the list
- for (var i = 0; i < positionals.length; i++) {
- var action = positionals[i];
- var argCount = argCounts[i];
- if (typeof argCount === 'undefined') {
- continue;
- }
- var args = argStrings.slice(startIndex, startIndex + argCount);
-
- startIndex += argCount;
- takeAction(action, args);
- }
-
- // slice off the Positionals that we just parsed and return the
- // index at which the Positionals' string args stopped
- positionals = positionals.slice(argCounts.length);
- return startIndex;
- }
-
- // consume Positionals and Optionals alternately, until we have
- // passed the last option string
- var startIndex = 0;
- var position;
-
- var maxOptionStringIndex = -1;
-
- Object.keys(optionStringIndices).forEach(function (position) {
- maxOptionStringIndex = Math.max(maxOptionStringIndex, parseInt(position, 10));
- });
-
- var positionalsEndIndex, nextOptionStringIndex;
-
- while (startIndex <= maxOptionStringIndex) {
- // consume any Positionals preceding the next option
- nextOptionStringIndex = null;
- for (position in optionStringIndices) {
- if (!optionStringIndices.hasOwnProperty(position)) { continue; }
-
- position = parseInt(position, 10);
- if (position >= startIndex) {
- if (nextOptionStringIndex !== null) {
- nextOptionStringIndex = Math.min(nextOptionStringIndex, position);
- } else {
- nextOptionStringIndex = position;
- }
- }
- }
-
- if (startIndex !== nextOptionStringIndex) {
- positionalsEndIndex = consumePositionals(startIndex);
- // only try to parse the next optional if we didn't consume
- // the option string during the positionals parsing
- if (positionalsEndIndex > startIndex) {
- startIndex = positionalsEndIndex;
- continue;
- } else {
- startIndex = positionalsEndIndex;
- }
- }
-
- // if we consumed all the positionals we could and we're not
- // at the index of an option string, there were extra arguments
- if (!optionStringIndices[startIndex]) {
- var strings = argStrings.slice(startIndex, nextOptionStringIndex);
- extras = extras.concat(strings);
- startIndex = nextOptionStringIndex;
- }
- // consume the next optional and any arguments for it
- startIndex = consumeOptional(startIndex);
- }
-
- // consume any positionals following the last Optional
- var stopIndex = consumePositionals(startIndex);
-
- // if we didn't consume all the argument strings, there were extras
- extras = extras.concat(argStrings.slice(stopIndex));
-
- // if we didn't use all the Positional objects, there were too few
- // arg strings supplied.
- if (positionals.length > 0) {
- self.error('too few arguments');
- }
-
- // make sure all required actions were present
- self._actions.forEach(function (action) {
- if (action.required) {
- if (seenActions.indexOf(action) < 0) {
- self.error(format('Argument "%s" is required', action.getName()));
- }
- }
- });
-
- // make sure all required groups have one option present
- var actionUsed = false;
- self._mutuallyExclusiveGroups.forEach(function (group) {
- if (group.required) {
- actionUsed = group._groupActions.some(function (action) {
- return seenNonDefaultActions.indexOf(action) !== -1;
- });
-
- // if no actions were used, report the error
- if (!actionUsed) {
- var names = [];
- group._groupActions.forEach(function (action) {
- if (action.help !== c.SUPPRESS) {
- names.push(action.getName());
- }
- });
- names = names.join(' ');
- var msg = 'one of the arguments ' + names + ' is required';
- self.error(msg);
- }
- }
- });
-
- // return the updated namespace and the extra arguments
- return [ namespace, extras ];
-};
-
-ArgumentParser.prototype._readArgsFromFiles = function (argStrings) {
- // expand arguments referencing files
- var self = this;
- var fs = require('fs');
- var newArgStrings = [];
- argStrings.forEach(function (argString) {
- if (self.fromfilePrefixChars.indexOf(argString[0]) < 0) {
- // for regular arguments, just add them back into the list
- newArgStrings.push(argString);
- } else {
- // replace arguments referencing files with the file content
- try {
- var argstrs = [];
- var filename = argString.slice(1);
- var content = fs.readFileSync(filename, 'utf8');
- content = content.trim().split('\n');
- content.forEach(function (argLine) {
- self.convertArgLineToArgs(argLine).forEach(function (arg) {
- argstrs.push(arg);
- });
- argstrs = self._readArgsFromFiles(argstrs);
- });
- newArgStrings.push.apply(newArgStrings, argstrs);
- } catch (error) {
- return self.error(error.message);
- }
- }
- });
- return newArgStrings;
-};
-
-ArgumentParser.prototype.convertArgLineToArgs = function (argLine) {
- return [ argLine ];
-};
-
-ArgumentParser.prototype._matchArgument = function (action, regexpArgStrings) {
-
- // match the pattern for this action to the arg strings
- var regexpNargs = new RegExp('^' + this._getNargsPattern(action));
- var matches = regexpArgStrings.match(regexpNargs);
- var message;
-
- // throw an exception if we weren't able to find a match
- if (!matches) {
- switch (action.nargs) {
- /*eslint-disable no-undefined*/
- case undefined:
- case null:
- message = 'Expected one argument.';
- break;
- case c.OPTIONAL:
- message = 'Expected at most one argument.';
- break;
- case c.ONE_OR_MORE:
- message = 'Expected at least one argument.';
- break;
- default:
- message = 'Expected %s argument(s)';
- }
-
- throw argumentErrorHelper(
- action,
- format(message, action.nargs)
- );
- }
- // return the number of arguments matched
- return matches[1].length;
-};
-
-ArgumentParser.prototype._matchArgumentsPartial = function (actions, regexpArgStrings) {
- // progressively shorten the actions list by slicing off the
- // final actions until we find a match
- var self = this;
- var result = [];
- var actionSlice, pattern, matches;
- var i, j;
-
- function getLength(string) {
- return string.length;
- }
-
- for (i = actions.length; i > 0; i--) {
- pattern = '';
- actionSlice = actions.slice(0, i);
- for (j = 0; j < actionSlice.length; j++) {
- pattern += self._getNargsPattern(actionSlice[j]);
- }
-
- pattern = new RegExp('^' + pattern);
- matches = regexpArgStrings.match(pattern);
-
- if (matches && matches.length > 0) {
- // need only groups
- matches = matches.splice(1);
- result = result.concat(matches.map(getLength));
- break;
- }
- }
-
- // return the list of arg string counts
- return result;
-};
-
-ArgumentParser.prototype._parseOptional = function (argString) {
- var action, optionString, argExplicit, optionTuples;
-
- // if it's an empty string, it was meant to be a positional
- if (!argString) {
- return null;
- }
-
- // if it doesn't start with a prefix, it was meant to be positional
- if (this.prefixChars.indexOf(argString[0]) < 0) {
- return null;
- }
-
- // if the option string is present in the parser, return the action
- if (this._optionStringActions[argString]) {
- return [ this._optionStringActions[argString], argString, null ];
- }
-
- // if it's just a single character, it was meant to be positional
- if (argString.length === 1) {
- return null;
- }
-
- // if the option string before the "=" is present, return the action
- if (argString.indexOf('=') >= 0) {
- optionString = argString.split('=', 1)[0];
- argExplicit = argString.slice(optionString.length + 1);
-
- if (this._optionStringActions[optionString]) {
- action = this._optionStringActions[optionString];
- return [ action, optionString, argExplicit ];
- }
- }
-
- // search through all possible prefixes of the option string
- // and all actions in the parser for possible interpretations
- optionTuples = this._getOptionTuples(argString);
-
- // if multiple actions match, the option string was ambiguous
- if (optionTuples.length > 1) {
- var optionStrings = optionTuples.map(function (optionTuple) {
- return optionTuple[1];
- });
- this.error(format(
- 'Ambiguous option: "%s" could match %s.',
- argString, optionStrings.join(', ')
- ));
- // if exactly one action matched, this segmentation is good,
- // so return the parsed action
- } else if (optionTuples.length === 1) {
- return optionTuples[0];
- }
-
- // if it was not found as an option, but it looks like a negative
- // number, it was meant to be positional
- // unless there are negative-number-like options
- if (argString.match(this._regexpNegativeNumber)) {
- if (!this._hasNegativeNumberOptionals.some(Boolean)) {
- return null;
- }
- }
- // if it contains a space, it was meant to be a positional
- if (argString.search(' ') >= 0) {
- return null;
- }
-
- // it was meant to be an optional but there is no such option
- // in this parser (though it might be a valid option in a subparser)
- return [ null, argString, null ];
-};
-
-ArgumentParser.prototype._getOptionTuples = function (optionString) {
- var result = [];
- var chars = this.prefixChars;
- var optionPrefix;
- var argExplicit;
- var action;
- var actionOptionString;
-
- // option strings starting with two prefix characters are only split at
- // the '='
- if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) >= 0) {
- if (optionString.indexOf('=') >= 0) {
- var optionStringSplit = optionString.split('=', 1);
-
- optionPrefix = optionStringSplit[0];
- argExplicit = optionStringSplit[1];
- } else {
- optionPrefix = optionString;
- argExplicit = null;
- }
-
- for (actionOptionString in this._optionStringActions) {
- if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
- action = this._optionStringActions[actionOptionString];
- result.push([ action, actionOptionString, argExplicit ]);
- }
- }
-
- // single character options can be concatenated with their arguments
- // but multiple character options always have to have their argument
- // separate
- } else if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) < 0) {
- optionPrefix = optionString;
- argExplicit = null;
- var optionPrefixShort = optionString.substr(0, 2);
- var argExplicitShort = optionString.substr(2);
-
- for (actionOptionString in this._optionStringActions) {
- if (!$$.has(this._optionStringActions, actionOptionString)) continue;
-
- action = this._optionStringActions[actionOptionString];
- if (actionOptionString === optionPrefixShort) {
- result.push([ action, actionOptionString, argExplicitShort ]);
- } else if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
- result.push([ action, actionOptionString, argExplicit ]);
- }
- }
-
- // shouldn't ever get here
- } else {
- throw new Error(format('Unexpected option string: %s.', optionString));
- }
- // return the collected option tuples
- return result;
-};
-
-ArgumentParser.prototype._getNargsPattern = function (action) {
- // in all examples below, we have to allow for '--' args
- // which are represented as '-' in the pattern
- var regexpNargs;
-
- switch (action.nargs) {
- // the default (null) is assumed to be a single argument
- case undefined:
- case null:
- regexpNargs = '(-*A-*)';
- break;
- // allow zero or more arguments
- case c.OPTIONAL:
- regexpNargs = '(-*A?-*)';
- break;
- // allow zero or more arguments
- case c.ZERO_OR_MORE:
- regexpNargs = '(-*[A-]*)';
- break;
- // allow one or more arguments
- case c.ONE_OR_MORE:
- regexpNargs = '(-*A[A-]*)';
- break;
- // allow any number of options or arguments
- case c.REMAINDER:
- regexpNargs = '([-AO]*)';
- break;
- // allow one argument followed by any number of options or arguments
- case c.PARSER:
- regexpNargs = '(-*A[-AO]*)';
- break;
- // all others should be integers
- default:
- regexpNargs = '(-*' + $$.repeat('-*A', action.nargs) + '-*)';
- }
-
- // if this is an optional action, -- is not allowed
- if (action.isOptional()) {
- regexpNargs = regexpNargs.replace(/-\*/g, '');
- regexpNargs = regexpNargs.replace(/-/g, '');
- }
-
- // return the pattern
- return regexpNargs;
-};
-
-//
-// Value conversion methods
-//
-
-ArgumentParser.prototype._getValues = function (action, argStrings) {
- var self = this;
-
- // for everything but PARSER args, strip out '--'
- if (action.nargs !== c.PARSER && action.nargs !== c.REMAINDER) {
- argStrings = argStrings.filter(function (arrayElement) {
- return arrayElement !== '--';
- });
- }
-
- var value, argString;
-
- // optional argument produces a default when not present
- if (argStrings.length === 0 && action.nargs === c.OPTIONAL) {
-
- value = (action.isOptional()) ? action.constant : action.defaultValue;
-
- if (typeof (value) === 'string') {
- value = this._getValue(action, value);
- this._checkValue(action, value);
- }
-
- // when nargs='*' on a positional, if there were no command-line
- // args, use the default if it is anything other than None
- } else if (argStrings.length === 0 && action.nargs === c.ZERO_OR_MORE &&
- action.optionStrings.length === 0) {
-
- value = (action.defaultValue || argStrings);
- this._checkValue(action, value);
-
- // single argument or optional argument produces a single value
- } else if (argStrings.length === 1 &&
- (!action.nargs || action.nargs === c.OPTIONAL)) {
-
- argString = argStrings[0];
- value = this._getValue(action, argString);
- this._checkValue(action, value);
-
- // REMAINDER arguments convert all values, checking none
- } else if (action.nargs === c.REMAINDER) {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
-
- // PARSER arguments convert all values, but check only the first
- } else if (action.nargs === c.PARSER) {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
- this._checkValue(action, value[0]);
-
- // all other types of nargs produce a list
- } else {
- value = argStrings.map(function (v) {
- return self._getValue(action, v);
- });
- value.forEach(function (v) {
- self._checkValue(action, v);
- });
- }
-
- // return the converted value
- return value;
-};
-
-ArgumentParser.prototype._getValue = function (action, argString) {
- var result;
-
- var typeFunction = this._registryGet('type', action.type, action.type);
- if (typeof typeFunction !== 'function') {
- var message = format('%s is not callable', typeFunction);
- throw argumentErrorHelper(action, message);
- }
-
- // convert the value to the appropriate type
- try {
- result = typeFunction(argString);
-
- // ArgumentTypeErrors indicate errors
- // If action.type is not a registered string, it is a function
- // Try to deduce its name for inclusion in the error message
- // Failing that, include the error message it raised.
- } catch (e) {
- var name = null;
- if (typeof action.type === 'string') {
- name = action.type;
- } else {
- name = action.type.name || action.type.displayName || '';
- }
- var msg = format('Invalid %s value: %s', name, argString);
- if (name === '') { msg += '\n' + e.message; }
- throw argumentErrorHelper(action, msg);
- }
- // return the converted value
- return result;
-};
-
-ArgumentParser.prototype._checkValue = function (action, value) {
- // converted value must be one of the choices (if specified)
- var choices = action.choices;
- if (choices) {
- // choise for argument can by array or string
- if ((typeof choices === 'string' || Array.isArray(choices)) &&
- choices.indexOf(value) !== -1) {
- return;
- }
- // choise for subparsers can by only hash
- if (typeof choices === 'object' && !Array.isArray(choices) && choices[value]) {
- return;
- }
-
- if (typeof choices === 'string') {
- choices = choices.split('').join(', ');
- } else if (Array.isArray(choices)) {
- choices = choices.join(', ');
- } else {
- choices = Object.keys(choices).join(', ');
- }
- var message = format('Invalid choice: %s (choose from [%s])', value, choices);
- throw argumentErrorHelper(action, message);
- }
-};
-
-//
-// Help formatting methods
-//
-
-/**
- * ArgumentParser#formatUsage -> string
- *
- * Return usage string
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.formatUsage = function () {
- var formatter = this._getFormatter();
- formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
- return formatter.formatHelp();
-};
-
-/**
- * ArgumentParser#formatHelp -> string
- *
- * Return help
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.formatHelp = function () {
- var formatter = this._getFormatter();
-
- // usage
- formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
-
- // description
- formatter.addText(this.description);
-
- // positionals, optionals and user-defined groups
- this._actionGroups.forEach(function (actionGroup) {
- formatter.startSection(actionGroup.title);
- formatter.addText(actionGroup.description);
- formatter.addArguments(actionGroup._groupActions);
- formatter.endSection();
- });
-
- // epilog
- formatter.addText(this.epilog);
-
- // determine help from format above
- return formatter.formatHelp();
-};
-
-ArgumentParser.prototype._getFormatter = function () {
- var FormatterClass = this.formatterClass;
- var formatter = new FormatterClass({ prog: this.prog });
- return formatter;
-};
-
-//
-// Print functions
-//
-
-/**
- * ArgumentParser#printUsage() -> Void
- *
- * Print usage
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.printUsage = function () {
- this._printMessage(this.formatUsage());
-};
-
-/**
- * ArgumentParser#printHelp() -> Void
- *
- * Print help
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#printing-help
- **/
-ArgumentParser.prototype.printHelp = function () {
- this._printMessage(this.formatHelp());
-};
-
-ArgumentParser.prototype._printMessage = function (message, stream) {
- if (!stream) {
- stream = process.stdout;
- }
- if (message) {
- stream.write('' + message);
- }
-};
-
-//
-// Exit functions
-//
-
-/**
- * ArgumentParser#exit(status=0, message) -> Void
- * - status (int): exit status
- * - message (string): message
- *
- * Print message in stderr/stdout and exit program
- **/
-ArgumentParser.prototype.exit = function (status, message) {
- if (message) {
- if (status === 0) {
- this._printMessage(message);
- } else {
- this._printMessage(message, process.stderr);
- }
- }
-
- process.exit(status);
-};
-
-/**
- * ArgumentParser#error(message) -> Void
- * - err (Error|string): message
- *
- * Error method Prints a usage message incorporating the message to stderr and
- * exits. If you override this in a subclass,
- * it should not return -- it should
- * either exit or throw an exception.
- *
- **/
-ArgumentParser.prototype.error = function (err) {
- var message;
- if (err instanceof Error) {
- if (this.debug === true) {
- throw err;
- }
- message = err.message;
- } else {
- message = err;
- }
- var msg = format('%s: error: %s', this.prog, message) + c.EOL;
-
- if (this.debug === true) {
- throw new Error(msg);
- }
-
- this.printUsage(process.stderr);
-
- return this.exit(2, msg);
-};
-
-module.exports = ArgumentParser;
diff --git a/node_modules/argparse/lib/const.js b/node_modules/argparse/lib/const.js
deleted file mode 100644
index b1fd4ce..0000000
--- a/node_modules/argparse/lib/const.js
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// Constants
-//
-
-'use strict';
-
-module.exports.EOL = '\n';
-
-module.exports.SUPPRESS = '==SUPPRESS==';
-
-module.exports.OPTIONAL = '?';
-
-module.exports.ZERO_OR_MORE = '*';
-
-module.exports.ONE_OR_MORE = '+';
-
-module.exports.PARSER = 'A...';
-
-module.exports.REMAINDER = '...';
-
-module.exports._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args';
diff --git a/node_modules/argparse/lib/help/added_formatters.js b/node_modules/argparse/lib/help/added_formatters.js
deleted file mode 100644
index f8e4299..0000000
--- a/node_modules/argparse/lib/help/added_formatters.js
+++ /dev/null
@@ -1,87 +0,0 @@
-'use strict';
-
-var util = require('util');
-
-// Constants
-var c = require('../const');
-
-var $$ = require('../utils');
-var HelpFormatter = require('./formatter.js');
-
-/**
- * new RawDescriptionHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawDescriptionHelpFormatter, ...})
- *
- * Help message formatter which adds default values to argument help.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-function ArgumentDefaultsHelpFormatter(options) {
- HelpFormatter.call(this, options);
-}
-
-util.inherits(ArgumentDefaultsHelpFormatter, HelpFormatter);
-
-ArgumentDefaultsHelpFormatter.prototype._getHelpString = function (action) {
- var help = action.help;
- if (action.help.indexOf('%(defaultValue)s') === -1) {
- if (action.defaultValue !== c.SUPPRESS) {
- var defaulting_nargs = [ c.OPTIONAL, c.ZERO_OR_MORE ];
- if (action.isOptional() || (defaulting_nargs.indexOf(action.nargs) >= 0)) {
- help += ' (default: %(defaultValue)s)';
- }
- }
- }
- return help;
-};
-
-module.exports.ArgumentDefaultsHelpFormatter = ArgumentDefaultsHelpFormatter;
-
-/**
- * new RawDescriptionHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawDescriptionHelpFormatter, ...})
- *
- * Help message formatter which retains any formatting in descriptions.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-function RawDescriptionHelpFormatter(options) {
- HelpFormatter.call(this, options);
-}
-
-util.inherits(RawDescriptionHelpFormatter, HelpFormatter);
-
-RawDescriptionHelpFormatter.prototype._fillText = function (text, width, indent) {
- var lines = text.split('\n');
- lines = lines.map(function (line) {
- return $$.trimEnd(indent + line);
- });
- return lines.join('\n');
-};
-module.exports.RawDescriptionHelpFormatter = RawDescriptionHelpFormatter;
-
-/**
- * new RawTextHelpFormatter(options)
- * new ArgumentParser({formatterClass: argparse.RawTextHelpFormatter, ...})
- *
- * Help message formatter which retains formatting of all help text.
- *
- * Only the name of this class is considered a public API. All the methods
- * provided by the class are considered an implementation detail.
- **/
-
-function RawTextHelpFormatter(options) {
- RawDescriptionHelpFormatter.call(this, options);
-}
-
-util.inherits(RawTextHelpFormatter, RawDescriptionHelpFormatter);
-
-RawTextHelpFormatter.prototype._splitLines = function (text) {
- return text.split('\n');
-};
-
-module.exports.RawTextHelpFormatter = RawTextHelpFormatter;
diff --git a/node_modules/argparse/lib/help/formatter.js b/node_modules/argparse/lib/help/formatter.js
deleted file mode 100644
index a8e4148..0000000
--- a/node_modules/argparse/lib/help/formatter.js
+++ /dev/null
@@ -1,795 +0,0 @@
-/**
- * class HelpFormatter
- *
- * Formatter for generating usage messages and argument help strings. Only the
- * name of this class is considered a public API. All the methods provided by
- * the class are considered an implementation detail.
- *
- * Do not call in your code, use this class only for inherits your own forvatter
- *
- * ToDo add [additonal formatters][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#formatter-class
- **/
-'use strict';
-
-var sprintf = require('sprintf-js').sprintf;
-
-// Constants
-var c = require('../const');
-
-var $$ = require('../utils');
-
-
-/*:nodoc:* internal
- * new Support(parent, heding)
- * - parent (object): parent section
- * - heading (string): header string
- *
- **/
-function Section(parent, heading) {
- this._parent = parent;
- this._heading = heading;
- this._items = [];
-}
-
-/*:nodoc:* internal
- * Section#addItem(callback) -> Void
- * - callback (array): tuple with function and args
- *
- * Add function for single element
- **/
-Section.prototype.addItem = function (callback) {
- this._items.push(callback);
-};
-
-/*:nodoc:* internal
- * Section#formatHelp(formatter) -> string
- * - formatter (HelpFormatter): current formatter
- *
- * Form help section string
- *
- **/
-Section.prototype.formatHelp = function (formatter) {
- var itemHelp, heading;
-
- // format the indented section
- if (this._parent) {
- formatter._indent();
- }
-
- itemHelp = this._items.map(function (item) {
- var obj, func, args;
-
- obj = formatter;
- func = item[0];
- args = item[1];
- return func.apply(obj, args);
- });
- itemHelp = formatter._joinParts(itemHelp);
-
- if (this._parent) {
- formatter._dedent();
- }
-
- // return nothing if the section was empty
- if (!itemHelp) {
- return '';
- }
-
- // add the heading if the section was non-empty
- heading = '';
- if (this._heading && this._heading !== c.SUPPRESS) {
- var currentIndent = formatter.currentIndent;
- heading = $$.repeat(' ', currentIndent) + this._heading + ':' + c.EOL;
- }
-
- // join the section-initialize newline, the heading and the help
- return formatter._joinParts([ c.EOL, heading, itemHelp, c.EOL ]);
-};
-
-/**
- * new HelpFormatter(options)
- *
- * #### Options:
- * - `prog`: program name
- * - `indentIncriment`: indent step, default value 2
- * - `maxHelpPosition`: max help position, default value = 24
- * - `width`: line width
- *
- **/
-var HelpFormatter = module.exports = function HelpFormatter(options) {
- options = options || {};
-
- this._prog = options.prog;
-
- this._maxHelpPosition = options.maxHelpPosition || 24;
- this._width = (options.width || ((process.env.COLUMNS || 80) - 2));
-
- this._currentIndent = 0;
- this._indentIncriment = options.indentIncriment || 2;
- this._level = 0;
- this._actionMaxLength = 0;
-
- this._rootSection = new Section(null);
- this._currentSection = this._rootSection;
-
- this._whitespaceMatcher = new RegExp('\\s+', 'g');
- this._longBreakMatcher = new RegExp(c.EOL + c.EOL + c.EOL + '+', 'g');
-};
-
-HelpFormatter.prototype._indent = function () {
- this._currentIndent += this._indentIncriment;
- this._level += 1;
-};
-
-HelpFormatter.prototype._dedent = function () {
- this._currentIndent -= this._indentIncriment;
- this._level -= 1;
- if (this._currentIndent < 0) {
- throw new Error('Indent decreased below 0.');
- }
-};
-
-HelpFormatter.prototype._addItem = function (func, args) {
- this._currentSection.addItem([ func, args ]);
-};
-
-//
-// Message building methods
-//
-
-/**
- * HelpFormatter#startSection(heading) -> Void
- * - heading (string): header string
- *
- * Start new help section
- *
- * See alse [code example][1]
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.startSection = function (heading) {
- this._indent();
- var section = new Section(this._currentSection, heading);
- var func = section.formatHelp.bind(section);
- this._addItem(func, [ this ]);
- this._currentSection = section;
-};
-
-/**
- * HelpFormatter#endSection -> Void
- *
- * End help section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- **/
-HelpFormatter.prototype.endSection = function () {
- this._currentSection = this._currentSection._parent;
- this._dedent();
-};
-
-/**
- * HelpFormatter#addText(text) -> Void
- * - text (string): plain text
- *
- * Add plain text into current section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.addText = function (text) {
- if (text && text !== c.SUPPRESS) {
- this._addItem(this._formatText, [ text ]);
- }
-};
-
-/**
- * HelpFormatter#addUsage(usage, actions, groups, prefix) -> Void
- * - usage (string): usage text
- * - actions (array): actions list
- * - groups (array): groups list
- * - prefix (string): usage prefix
- *
- * Add usage data into current section
- *
- * ##### Example
- *
- * formatter.addUsage(this.usage, this._actions, []);
- * return formatter.formatHelp();
- *
- **/
-HelpFormatter.prototype.addUsage = function (usage, actions, groups, prefix) {
- if (usage !== c.SUPPRESS) {
- this._addItem(this._formatUsage, [ usage, actions, groups, prefix ]);
- }
-};
-
-/**
- * HelpFormatter#addArgument(action) -> Void
- * - action (object): action
- *
- * Add argument into current section
- *
- * Single variant of [[HelpFormatter#addArguments]]
- **/
-HelpFormatter.prototype.addArgument = function (action) {
- if (action.help !== c.SUPPRESS) {
- var self = this;
-
- // find all invocations
- var invocations = [ this._formatActionInvocation(action) ];
- var invocationLength = invocations[0].length;
-
- var actionLength;
-
- if (action._getSubactions) {
- this._indent();
- action._getSubactions().forEach(function (subaction) {
-
- var invocationNew = self._formatActionInvocation(subaction);
- invocations.push(invocationNew);
- invocationLength = Math.max(invocationLength, invocationNew.length);
-
- });
- this._dedent();
- }
-
- // update the maximum item length
- actionLength = invocationLength + this._currentIndent;
- this._actionMaxLength = Math.max(this._actionMaxLength, actionLength);
-
- // add the item to the list
- this._addItem(this._formatAction, [ action ]);
- }
-};
-
-/**
- * HelpFormatter#addArguments(actions) -> Void
- * - actions (array): actions list
- *
- * Mass add arguments into current section
- *
- * ##### Example
- *
- * formatter.startSection(actionGroup.title);
- * formatter.addText(actionGroup.description);
- * formatter.addArguments(actionGroup._groupActions);
- * formatter.endSection();
- *
- **/
-HelpFormatter.prototype.addArguments = function (actions) {
- var self = this;
- actions.forEach(function (action) {
- self.addArgument(action);
- });
-};
-
-//
-// Help-formatting methods
-//
-
-/**
- * HelpFormatter#formatHelp -> string
- *
- * Format help
- *
- * ##### Example
- *
- * formatter.addText(this.epilog);
- * return formatter.formatHelp();
- *
- **/
-HelpFormatter.prototype.formatHelp = function () {
- var help = this._rootSection.formatHelp(this);
- if (help) {
- help = help.replace(this._longBreakMatcher, c.EOL + c.EOL);
- help = $$.trimChars(help, c.EOL) + c.EOL;
- }
- return help;
-};
-
-HelpFormatter.prototype._joinParts = function (partStrings) {
- return partStrings.filter(function (part) {
- return (part && part !== c.SUPPRESS);
- }).join('');
-};
-
-HelpFormatter.prototype._formatUsage = function (usage, actions, groups, prefix) {
- if (!prefix && typeof prefix !== 'string') {
- prefix = 'usage: ';
- }
-
- actions = actions || [];
- groups = groups || [];
-
-
- // if usage is specified, use that
- if (usage) {
- usage = sprintf(usage, { prog: this._prog });
-
- // if no optionals or positionals are available, usage is just prog
- } else if (!usage && actions.length === 0) {
- usage = this._prog;
-
- // if optionals and positionals are available, calculate usage
- } else if (!usage) {
- var prog = this._prog;
- var optionals = [];
- var positionals = [];
- var actionUsage;
- var textWidth;
-
- // split optionals from positionals
- actions.forEach(function (action) {
- if (action.isOptional()) {
- optionals.push(action);
- } else {
- positionals.push(action);
- }
- });
-
- // build full usage string
- actionUsage = this._formatActionsUsage([].concat(optionals, positionals), groups);
- usage = [ prog, actionUsage ].join(' ');
-
- // wrap the usage parts if it's too long
- textWidth = this._width - this._currentIndent;
- if ((prefix.length + usage.length) > textWidth) {
-
- // break usage into wrappable parts
- var regexpPart = new RegExp('\\(.*?\\)+|\\[.*?\\]+|\\S+', 'g');
- var optionalUsage = this._formatActionsUsage(optionals, groups);
- var positionalUsage = this._formatActionsUsage(positionals, groups);
-
-
- var optionalParts = optionalUsage.match(regexpPart);
- var positionalParts = positionalUsage.match(regexpPart) || [];
-
- if (optionalParts.join(' ') !== optionalUsage) {
- throw new Error('assert "optionalParts.join(\' \') === optionalUsage"');
- }
- if (positionalParts.join(' ') !== positionalUsage) {
- throw new Error('assert "positionalParts.join(\' \') === positionalUsage"');
- }
-
- // helper for wrapping lines
- /*eslint-disable func-style*/ // node 0.10 compat
- var _getLines = function (parts, indent, prefix) {
- var lines = [];
- var line = [];
-
- var lineLength = prefix ? prefix.length - 1 : indent.length - 1;
-
- parts.forEach(function (part) {
- if (lineLength + 1 + part.length > textWidth) {
- lines.push(indent + line.join(' '));
- line = [];
- lineLength = indent.length - 1;
- }
- line.push(part);
- lineLength += part.length + 1;
- });
-
- if (line) {
- lines.push(indent + line.join(' '));
- }
- if (prefix) {
- lines[0] = lines[0].substr(indent.length);
- }
- return lines;
- };
-
- var lines, indent, parts;
- // if prog is short, follow it with optionals or positionals
- if (prefix.length + prog.length <= 0.75 * textWidth) {
- indent = $$.repeat(' ', (prefix.length + prog.length + 1));
- if (optionalParts) {
- lines = [].concat(
- _getLines([ prog ].concat(optionalParts), indent, prefix),
- _getLines(positionalParts, indent)
- );
- } else if (positionalParts) {
- lines = _getLines([ prog ].concat(positionalParts), indent, prefix);
- } else {
- lines = [ prog ];
- }
-
- // if prog is long, put it on its own line
- } else {
- indent = $$.repeat(' ', prefix.length);
- parts = optionalParts + positionalParts;
- lines = _getLines(parts, indent);
- if (lines.length > 1) {
- lines = [].concat(
- _getLines(optionalParts, indent),
- _getLines(positionalParts, indent)
- );
- }
- lines = [ prog ] + lines;
- }
- // join lines into usage
- usage = lines.join(c.EOL);
- }
- }
-
- // prefix with 'usage:'
- return prefix + usage + c.EOL + c.EOL;
-};
-
-HelpFormatter.prototype._formatActionsUsage = function (actions, groups) {
- // find group indices and identify actions in groups
- var groupActions = [];
- var inserts = [];
- var self = this;
-
- groups.forEach(function (group) {
- var end;
- var i;
-
- var start = actions.indexOf(group._groupActions[0]);
- if (start >= 0) {
- end = start + group._groupActions.length;
-
- //if (actions.slice(start, end) === group._groupActions) {
- if ($$.arrayEqual(actions.slice(start, end), group._groupActions)) {
- group._groupActions.forEach(function (action) {
- groupActions.push(action);
- });
-
- if (!group.required) {
- if (inserts[start]) {
- inserts[start] += ' [';
- } else {
- inserts[start] = '[';
- }
- inserts[end] = ']';
- } else {
- if (inserts[start]) {
- inserts[start] += ' (';
- } else {
- inserts[start] = '(';
- }
- inserts[end] = ')';
- }
- for (i = start + 1; i < end; i += 1) {
- inserts[i] = '|';
- }
- }
- }
- });
-
- // collect all actions format strings
- var parts = [];
-
- actions.forEach(function (action, actionIndex) {
- var part;
- var optionString;
- var argsDefault;
- var argsString;
-
- // suppressed arguments are marked with None
- // remove | separators for suppressed arguments
- if (action.help === c.SUPPRESS) {
- parts.push(null);
- if (inserts[actionIndex] === '|') {
- inserts.splice(actionIndex, actionIndex);
- } else if (inserts[actionIndex + 1] === '|') {
- inserts.splice(actionIndex + 1, actionIndex + 1);
- }
-
- // produce all arg strings
- } else if (!action.isOptional()) {
- part = self._formatArgs(action, action.dest);
-
- // if it's in a group, strip the outer []
- if (groupActions.indexOf(action) >= 0) {
- if (part[0] === '[' && part[part.length - 1] === ']') {
- part = part.slice(1, -1);
- }
- }
- // add the action string to the list
- parts.push(part);
-
- // produce the first way to invoke the option in brackets
- } else {
- optionString = action.optionStrings[0];
-
- // if the Optional doesn't take a value, format is: -s or --long
- if (action.nargs === 0) {
- part = '' + optionString;
-
- // if the Optional takes a value, format is: -s ARGS or --long ARGS
- } else {
- argsDefault = action.dest.toUpperCase();
- argsString = self._formatArgs(action, argsDefault);
- part = optionString + ' ' + argsString;
- }
- // make it look optional if it's not required or in a group
- if (!action.required && groupActions.indexOf(action) < 0) {
- part = '[' + part + ']';
- }
- // add the action string to the list
- parts.push(part);
- }
- });
-
- // insert things at the necessary indices
- for (var i = inserts.length - 1; i >= 0; --i) {
- if (inserts[i] !== null) {
- parts.splice(i, 0, inserts[i]);
- }
- }
-
- // join all the action items with spaces
- var text = parts.filter(function (part) {
- return !!part;
- }).join(' ');
-
- // clean up separators for mutually exclusive groups
- text = text.replace(/([\[(]) /g, '$1'); // remove spaces
- text = text.replace(/ ([\])])/g, '$1');
- text = text.replace(/\[ *\]/g, ''); // remove empty groups
- text = text.replace(/\( *\)/g, '');
- text = text.replace(/\(([^|]*)\)/g, '$1'); // remove () from single action groups
-
- text = text.trim();
-
- // return the text
- return text;
-};
-
-HelpFormatter.prototype._formatText = function (text) {
- text = sprintf(text, { prog: this._prog });
- var textWidth = this._width - this._currentIndent;
- var indentIncriment = $$.repeat(' ', this._currentIndent);
- return this._fillText(text, textWidth, indentIncriment) + c.EOL + c.EOL;
-};
-
-HelpFormatter.prototype._formatAction = function (action) {
- var self = this;
-
- var helpText;
- var helpLines;
- var parts;
- var indentFirst;
-
- // determine the required width and the entry label
- var helpPosition = Math.min(this._actionMaxLength + 2, this._maxHelpPosition);
- var helpWidth = this._width - helpPosition;
- var actionWidth = helpPosition - this._currentIndent - 2;
- var actionHeader = this._formatActionInvocation(action);
-
- // no help; start on same line and add a final newline
- if (!action.help) {
- actionHeader = $$.repeat(' ', this._currentIndent) + actionHeader + c.EOL;
-
- // short action name; start on the same line and pad two spaces
- } else if (actionHeader.length <= actionWidth) {
- actionHeader = $$.repeat(' ', this._currentIndent) +
- actionHeader +
- ' ' +
- $$.repeat(' ', actionWidth - actionHeader.length);
- indentFirst = 0;
-
- // long action name; start on the next line
- } else {
- actionHeader = $$.repeat(' ', this._currentIndent) + actionHeader + c.EOL;
- indentFirst = helpPosition;
- }
-
- // collect the pieces of the action help
- parts = [ actionHeader ];
-
- // if there was help for the action, add lines of help text
- if (action.help) {
- helpText = this._expandHelp(action);
- helpLines = this._splitLines(helpText, helpWidth);
- parts.push($$.repeat(' ', indentFirst) + helpLines[0] + c.EOL);
- helpLines.slice(1).forEach(function (line) {
- parts.push($$.repeat(' ', helpPosition) + line + c.EOL);
- });
-
- // or add a newline if the description doesn't end with one
- } else if (actionHeader.charAt(actionHeader.length - 1) !== c.EOL) {
- parts.push(c.EOL);
- }
- // if there are any sub-actions, add their help as well
- if (action._getSubactions) {
- this._indent();
- action._getSubactions().forEach(function (subaction) {
- parts.push(self._formatAction(subaction));
- });
- this._dedent();
- }
- // return a single string
- return this._joinParts(parts);
-};
-
-HelpFormatter.prototype._formatActionInvocation = function (action) {
- if (!action.isOptional()) {
- var format_func = this._metavarFormatter(action, action.dest);
- var metavars = format_func(1);
- return metavars[0];
- }
-
- var parts = [];
- var argsDefault;
- var argsString;
-
- // if the Optional doesn't take a value, format is: -s, --long
- if (action.nargs === 0) {
- parts = parts.concat(action.optionStrings);
-
- // if the Optional takes a value, format is: -s ARGS, --long ARGS
- } else {
- argsDefault = action.dest.toUpperCase();
- argsString = this._formatArgs(action, argsDefault);
- action.optionStrings.forEach(function (optionString) {
- parts.push(optionString + ' ' + argsString);
- });
- }
- return parts.join(', ');
-};
-
-HelpFormatter.prototype._metavarFormatter = function (action, metavarDefault) {
- var result;
-
- if (action.metavar || action.metavar === '') {
- result = action.metavar;
- } else if (action.choices) {
- var choices = action.choices;
-
- if (typeof choices === 'string') {
- choices = choices.split('').join(', ');
- } else if (Array.isArray(choices)) {
- choices = choices.join(',');
- } else {
- choices = Object.keys(choices).join(',');
- }
- result = '{' + choices + '}';
- } else {
- result = metavarDefault;
- }
-
- return function (size) {
- if (Array.isArray(result)) {
- return result;
- }
-
- var metavars = [];
- for (var i = 0; i < size; i += 1) {
- metavars.push(result);
- }
- return metavars;
- };
-};
-
-HelpFormatter.prototype._formatArgs = function (action, metavarDefault) {
- var result;
- var metavars;
-
- var buildMetavar = this._metavarFormatter(action, metavarDefault);
-
- switch (action.nargs) {
- /*eslint-disable no-undefined*/
- case undefined:
- case null:
- metavars = buildMetavar(1);
- result = '' + metavars[0];
- break;
- case c.OPTIONAL:
- metavars = buildMetavar(1);
- result = '[' + metavars[0] + ']';
- break;
- case c.ZERO_OR_MORE:
- metavars = buildMetavar(2);
- result = '[' + metavars[0] + ' [' + metavars[1] + ' ...]]';
- break;
- case c.ONE_OR_MORE:
- metavars = buildMetavar(2);
- result = '' + metavars[0] + ' [' + metavars[1] + ' ...]';
- break;
- case c.REMAINDER:
- result = '...';
- break;
- case c.PARSER:
- metavars = buildMetavar(1);
- result = metavars[0] + ' ...';
- break;
- default:
- metavars = buildMetavar(action.nargs);
- result = metavars.join(' ');
- }
- return result;
-};
-
-HelpFormatter.prototype._expandHelp = function (action) {
- var params = { prog: this._prog };
-
- Object.keys(action).forEach(function (actionProperty) {
- var actionValue = action[actionProperty];
-
- if (actionValue !== c.SUPPRESS) {
- params[actionProperty] = actionValue;
- }
- });
-
- if (params.choices) {
- if (typeof params.choices === 'string') {
- params.choices = params.choices.split('').join(', ');
- } else if (Array.isArray(params.choices)) {
- params.choices = params.choices.join(', ');
- } else {
- params.choices = Object.keys(params.choices).join(', ');
- }
- }
-
- return sprintf(this._getHelpString(action), params);
-};
-
-HelpFormatter.prototype._splitLines = function (text, width) {
- var lines = [];
- var delimiters = [ ' ', '.', ',', '!', '?' ];
- var re = new RegExp('[' + delimiters.join('') + '][^' + delimiters.join('') + ']*$');
-
- text = text.replace(/[\n\|\t]/g, ' ');
-
- text = text.trim();
- text = text.replace(this._whitespaceMatcher, ' ');
-
- // Wraps the single paragraph in text (a string) so every line
- // is at most width characters long.
- text.split(c.EOL).forEach(function (line) {
- if (width >= line.length) {
- lines.push(line);
- return;
- }
-
- var wrapStart = 0;
- var wrapEnd = width;
- var delimiterIndex = 0;
- while (wrapEnd <= line.length) {
- if (wrapEnd !== line.length && delimiters.indexOf(line[wrapEnd] < -1)) {
- delimiterIndex = (re.exec(line.substring(wrapStart, wrapEnd)) || {}).index;
- wrapEnd = wrapStart + delimiterIndex + 1;
- }
- lines.push(line.substring(wrapStart, wrapEnd));
- wrapStart = wrapEnd;
- wrapEnd += width;
- }
- if (wrapStart < line.length) {
- lines.push(line.substring(wrapStart, wrapEnd));
- }
- });
-
- return lines;
-};
-
-HelpFormatter.prototype._fillText = function (text, width, indent) {
- var lines = this._splitLines(text, width);
- lines = lines.map(function (line) {
- return indent + line;
- });
- return lines.join(c.EOL);
-};
-
-HelpFormatter.prototype._getHelpString = function (action) {
- return action.help;
-};
diff --git a/node_modules/argparse/lib/namespace.js b/node_modules/argparse/lib/namespace.js
deleted file mode 100644
index a860de9..0000000
--- a/node_modules/argparse/lib/namespace.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * class Namespace
- *
- * Simple object for storing attributes. Implements equality by attribute names
- * and values, and provides a simple string representation.
- *
- * See also [original guide][1]
- *
- * [1]:http://docs.python.org/dev/library/argparse.html#the-namespace-object
- **/
-'use strict';
-
-var $$ = require('./utils');
-
-/**
- * new Namespace(options)
- * - options(object): predefined propertis for result object
- *
- **/
-var Namespace = module.exports = function Namespace(options) {
- $$.extend(this, options);
-};
-
-/**
- * Namespace#isset(key) -> Boolean
- * - key (string|number): property name
- *
- * Tells whenever `namespace` contains given `key` or not.
- **/
-Namespace.prototype.isset = function (key) {
- return $$.has(this, key);
-};
-
-/**
- * Namespace#set(key, value) -> self
- * -key (string|number|object): propery name
- * -value (mixed): new property value
- *
- * Set the property named key with value.
- * If key object then set all key properties to namespace object
- **/
-Namespace.prototype.set = function (key, value) {
- if (typeof (key) === 'object') {
- $$.extend(this, key);
- } else {
- this[key] = value;
- }
- return this;
-};
-
-/**
- * Namespace#get(key, defaultValue) -> mixed
- * - key (string|number): property name
- * - defaultValue (mixed): default value
- *
- * Return the property key or defaulValue if not set
- **/
-Namespace.prototype.get = function (key, defaultValue) {
- return !this[key] ? defaultValue : this[key];
-};
-
-/**
- * Namespace#unset(key, defaultValue) -> mixed
- * - key (string|number): property name
- * - defaultValue (mixed): default value
- *
- * Return data[key](and delete it) or defaultValue
- **/
-Namespace.prototype.unset = function (key, defaultValue) {
- var value = this[key];
- if (value !== null) {
- delete this[key];
- return value;
- }
- return defaultValue;
-};
diff --git a/node_modules/argparse/lib/utils.js b/node_modules/argparse/lib/utils.js
deleted file mode 100644
index 4a9cf3e..0000000
--- a/node_modules/argparse/lib/utils.js
+++ /dev/null
@@ -1,57 +0,0 @@
-'use strict';
-
-exports.repeat = function (str, num) {
- var result = '';
- for (var i = 0; i < num; i++) { result += str; }
- return result;
-};
-
-exports.arrayEqual = function (a, b) {
- if (a.length !== b.length) { return false; }
- for (var i = 0; i < a.length; i++) {
- if (a[i] !== b[i]) { return false; }
- }
- return true;
-};
-
-exports.trimChars = function (str, chars) {
- var start = 0;
- var end = str.length - 1;
- while (chars.indexOf(str.charAt(start)) >= 0) { start++; }
- while (chars.indexOf(str.charAt(end)) >= 0) { end--; }
- return str.slice(start, end + 1);
-};
-
-exports.capitalize = function (str) {
- return str.charAt(0).toUpperCase() + str.slice(1);
-};
-
-exports.arrayUnion = function () {
- var result = [];
- for (var i = 0, values = {}; i < arguments.length; i++) {
- var arr = arguments[i];
- for (var j = 0; j < arr.length; j++) {
- if (!values[arr[j]]) {
- values[arr[j]] = true;
- result.push(arr[j]);
- }
- }
- }
- return result;
-};
-
-function has(obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
-}
-
-exports.has = has;
-
-exports.extend = function (dest, src) {
- for (var i in src) {
- if (has(src, i)) { dest[i] = src[i]; }
- }
-};
-
-exports.trimEnd = function (str) {
- return str.replace(/\s+$/g, '');
-};
diff --git a/node_modules/argparse/package.json b/node_modules/argparse/package.json
deleted file mode 100644
index 530afaa..0000000
--- a/node_modules/argparse/package.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "argparse@^1.0.7",
- "scope": null,
- "escapedName": "argparse",
- "name": "argparse",
- "rawSpec": "^1.0.7",
- "spec": ">=1.0.7 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/yamljs"
- ]
- ],
- "_from": "argparse@>=1.0.7 <2.0.0",
- "_id": "argparse@1.0.9",
- "_inCache": true,
- "_location": "/argparse",
- "_nodeVersion": "6.5.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/argparse-1.0.9.tgz_1475177461025_0.33920647646300495"
- },
- "_npmUser": {
- "name": "vitaly",
- "email": "vitaly@rcdesign.ru"
- },
- "_npmVersion": "3.10.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "argparse@^1.0.7",
- "scope": null,
- "escapedName": "argparse",
- "name": "argparse",
- "rawSpec": "^1.0.7",
- "spec": ">=1.0.7 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/yamljs"
- ],
- "_resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz",
- "_shasum": "73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86",
- "_shrinkwrap": null,
- "_spec": "argparse@^1.0.7",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/yamljs",
- "bugs": {
- "url": "https://github.com/nodeca/argparse/issues"
- },
- "contributors": [
- {
- "name": "Eugene Shkuropat"
- },
- {
- "name": "Paul Jacobson"
- }
- ],
- "dependencies": {
- "sprintf-js": "~1.0.2"
- },
- "description": "Very powerful CLI arguments parser. Native port of argparse - python's options parsing library",
- "devDependencies": {
- "eslint": "^2.13.1",
- "istanbul": "^0.4.5",
- "mocha": "^3.1.0",
- "ndoc": "^5.0.1"
- },
- "directories": {},
- "dist": {
- "shasum": "73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86",
- "tarball": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz"
- },
- "files": [
- "index.js",
- "lib/"
- ],
- "gitHead": "acb39f2d726b90d2eadf9e6574a938d6250ad248",
- "homepage": "https://github.com/nodeca/argparse#readme",
- "keywords": [
- "cli",
- "parser",
- "argparse",
- "option",
- "args"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "vitaly",
- "email": "vitaly@rcdesign.ru"
- }
- ],
- "name": "argparse",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/nodeca/argparse.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "1.0.9"
-}
diff --git a/node_modules/arr-diff/LICENSE b/node_modules/arr-diff/LICENSE
deleted file mode 100755
index fa30c4c..0000000
--- a/node_modules/arr-diff/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2015, Jon Schlinkert.
-
-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/node_modules/arr-diff/README.md b/node_modules/arr-diff/README.md
deleted file mode 100644
index 7705c6c..0000000
--- a/node_modules/arr-diff/README.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# arr-diff [](https://www.npmjs.com/package/arr-diff) [](https://travis-ci.org/jonschlinkert/base)
-
-> Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.
-
-## Install
-
-Install with [npm](https://www.npmjs.com/)
-
-```sh
-$ npm i arr-diff --save
-```
-Install with [bower](http://bower.io/)
-
-```sh
-$ bower install arr-diff --save
-```
-
-## API
-
-### [diff](index.js#L33)
-
-Return the difference between the first array and additional arrays.
-
-**Params**
-
-* `a` **{Array}**
-* `b` **{Array}**
-* `returns` **{Array}**
-
-**Example**
-
-```js
-var diff = require('arr-diff');
-
-var a = ['a', 'b', 'c', 'd'];
-var b = ['b', 'c'];
-
-console.log(diff(a, b))
-//=> ['a', 'd']
-```
-
-## Related projects
-
-* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten)
-* [array-filter](https://www.npmjs.com/package/array-filter): Array#filter for older browsers. | [homepage](https://github.com/juliangruber/array-filter)
-* [array-intersection](https://www.npmjs.com/package/array-intersection): Return an array with the unique values present in _all_ given arrays using strict equality… [more](https://www.npmjs.com/package/array-intersection) | [homepage](https://github.com/jonschlinkert/array-intersection)
-
-## Running tests
-
-Install dev dependencies:
-
-```sh
-$ npm i -d && npm test
-```
-
-## Contributing
-
-Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/arr-diff/issues/new).
-
-## Author
-
-**Jon Schlinkert**
-
-+ [github/jonschlinkert](https://github.com/jonschlinkert)
-+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
-
-## License
-
-Copyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)
-Released under the MIT license.
-
-***
-
-_This file was generated by [verb](https://github.com/verbose/verb) on Sat Dec 05 2015 23:24:53 GMT-0500 (EST)._
diff --git a/node_modules/arr-diff/index.js b/node_modules/arr-diff/index.js
deleted file mode 100644
index bc7200d..0000000
--- a/node_modules/arr-diff/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*!
- * arr-diff
- *
- * Copyright (c) 2014 Jon Schlinkert, contributors.
- * Licensed under the MIT License
- */
-
-'use strict';
-
-var flatten = require('arr-flatten');
-var slice = [].slice;
-
-/**
- * Return the difference between the first array and
- * additional arrays.
- *
- * ```js
- * var diff = require('{%= name %}');
- *
- * var a = ['a', 'b', 'c', 'd'];
- * var b = ['b', 'c'];
- *
- * console.log(diff(a, b))
- * //=> ['a', 'd']
- * ```
- *
- * @param {Array} `a`
- * @param {Array} `b`
- * @return {Array}
- * @api public
- */
-
-function diff(arr, arrays) {
- var argsLen = arguments.length;
- var len = arr.length, i = -1;
- var res = [], arrays;
-
- if (argsLen === 1) {
- return arr;
- }
-
- if (argsLen > 2) {
- arrays = flatten(slice.call(arguments, 1));
- }
-
- while (++i < len) {
- if (!~arrays.indexOf(arr[i])) {
- res.push(arr[i]);
- }
- }
- return res;
-}
-
-/**
- * Expose `diff`
- */
-
-module.exports = diff;
diff --git a/node_modules/arr-diff/package.json b/node_modules/arr-diff/package.json
deleted file mode 100644
index f2e1e96..0000000
--- a/node_modules/arr-diff/package.json
+++ /dev/null
@@ -1,119 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "arr-diff@^2.0.0",
- "scope": null,
- "escapedName": "arr-diff",
- "name": "arr-diff",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/micromatch"
- ]
- ],
- "_from": "arr-diff@>=2.0.0 <3.0.0",
- "_id": "arr-diff@2.0.0",
- "_inCache": true,
- "_location": "/arr-diff",
- "_nodeVersion": "5.0.0",
- "_npmUser": {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- },
- "_npmVersion": "3.3.6",
- "_phantomChildren": {},
- "_requested": {
- "raw": "arr-diff@^2.0.0",
- "scope": null,
- "escapedName": "arr-diff",
- "name": "arr-diff",
- "rawSpec": "^2.0.0",
- "spec": ">=2.0.0 <3.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/micromatch"
- ],
- "_resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
- "_shasum": "8f3b827f955a8bd669697e4a4256ac3ceae356cf",
- "_shrinkwrap": null,
- "_spec": "arr-diff@^2.0.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/micromatch",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/arr-diff/issues"
- },
- "dependencies": {
- "arr-flatten": "^1.0.1"
- },
- "description": "Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.",
- "devDependencies": {
- "array-differ": "^1.0.0",
- "array-slice": "^0.2.3",
- "benchmarked": "^0.1.4",
- "chalk": "^1.1.1",
- "mocha": "*",
- "should": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "8f3b827f955a8bd669697e4a4256ac3ceae356cf",
- "tarball": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "b89f54eb88ca51afd0e0ea6be9a4a63e5ccecf27",
- "homepage": "https://github.com/jonschlinkert/arr-diff",
- "keywords": [
- "arr",
- "array",
- "diff",
- "differ",
- "difference"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "doowb",
- "email": "brian.woodward@gmail.com"
- },
- {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- },
- {
- "name": "paulmillr",
- "email": "paul@paulmillr.com"
- }
- ],
- "name": "arr-diff",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jonschlinkert/arr-diff.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "verb": {
- "related": {
- "list": [
- "arr-flatten",
- "array-filter",
- "array-intersection"
- ]
- }
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/arr-flatten/LICENSE b/node_modules/arr-flatten/LICENSE
deleted file mode 100755
index fa30c4c..0000000
--- a/node_modules/arr-flatten/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2015, Jon Schlinkert.
-
-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/node_modules/arr-flatten/README.md b/node_modules/arr-flatten/README.md
deleted file mode 100755
index bd696e6..0000000
--- a/node_modules/arr-flatten/README.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# arr-flatten [](http://badge.fury.io/js/arr-flatten) [](https://travis-ci.org/jonschlinkert/arr-flatten)
-
-> Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
-
-Why another flatten utility? I wanted the fastest implementation I could find, with implementation choices that should work for 95% of use cases, but no cruft to cover the other 5%.
-
-## Run benchmarks
-
-```bash
-npm run benchmarks
-```
-
-Benchmark results comparing this library to [array-flatten]:
-
-```bash
-#1: large.js
- arr-flatten.js x 487,030 ops/sec ±0.67% (92 runs sampled)
- array-flatten.js x 347,020 ops/sec ±0.57% (98 runs sampled)
-
-#2: medium.js
- arr-flatten.js x 1,914,516 ops/sec ±0.76% (94 runs sampled)
- array-flatten.js x 1,391,661 ops/sec ±0.63% (96 runs sampled)
-
-#3: small.js
- arr-flatten.js x 5,158,980 ops/sec ±0.85% (94 runs sampled)
- array-flatten.js x 3,683,173 ops/sec ±0.79% (97 runs sampled)
-```
-
-## Run tests
-
-Install dev dependencies:
-
-```bash
-npm i -d && npm test
-```
-
-## Install with [npm](npmjs.org)
-
-```bash
-npm i arr-flatten --save
-```
-### Install with [bower](https://github.com/bower/bower)
-
-```bash
-bower install arr-flatten --save
-```
-
-
-## Usage
-
-```js
-var flatten = require('arr-flatten');
-
-flatten(['a', ['b', ['c']], 'd', ['e']]);
-//=> ['a', 'b', 'c', 'd', 'e']
-```
-
-## Author
-
-**Jon Schlinkert**
-
-+ [github/jonschlinkert](https://github.com/jonschlinkert)
-+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
-
-## License
-Copyright (c) 2014-2015 Jon Schlinkert
-Released under the MIT license
-
-***
-
-_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 11, 2015._
-
-[array-flatten]: https://github.com/blakeembrey/array-flatten
\ No newline at end of file
diff --git a/node_modules/arr-flatten/index.js b/node_modules/arr-flatten/index.js
deleted file mode 100755
index f74e48c..0000000
--- a/node_modules/arr-flatten/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*!
- * arr-flatten
- *
- * Copyright (c) 2014-2015, Jon Schlinkert.
- * Licensed under the MIT License.
- */
-
-'use strict';
-
-module.exports = function flatten(arr) {
- return flat(arr, []);
-};
-
-function flat(arr, res) {
- var len = arr.length;
- var i = -1;
-
- while (len--) {
- var cur = arr[++i];
- if (Array.isArray(cur)) {
- flat(cur, res);
- } else {
- res.push(cur);
- }
- }
- return res;
-}
\ No newline at end of file
diff --git a/node_modules/arr-flatten/package.json b/node_modules/arr-flatten/package.json
deleted file mode 100755
index e4d2c1d..0000000
--- a/node_modules/arr-flatten/package.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "arr-flatten@^1.0.1",
- "scope": null,
- "escapedName": "arr-flatten",
- "name": "arr-flatten",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/arr-diff"
- ]
- ],
- "_from": "arr-flatten@>=1.0.1 <2.0.0",
- "_id": "arr-flatten@1.0.1",
- "_inCache": true,
- "_location": "/arr-flatten",
- "_nodeVersion": "0.12.0",
- "_npmUser": {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- },
- "_npmVersion": "2.5.1",
- "_phantomChildren": {},
- "_requested": {
- "raw": "arr-flatten@^1.0.1",
- "scope": null,
- "escapedName": "arr-flatten",
- "name": "arr-flatten",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/arr-diff"
- ],
- "_resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz",
- "_shasum": "e5ffe54d45e19f32f216e91eb99c8ce892bb604b",
- "_shrinkwrap": null,
- "_spec": "arr-flatten@^1.0.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/arr-diff",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/arr-flatten/issues"
- },
- "dependencies": {},
- "description": "Recursively flatten an array or arrays. This is the fastest implementation of array flatten.",
- "devDependencies": {
- "array-flatten": "^1.0.2",
- "array-slice": "^0.2.2",
- "benchmarked": "^0.1.3",
- "chalk": "^0.5.1",
- "glob": "^4.3.5",
- "kind-of": "^1.0.0"
- },
- "directories": {},
- "dist": {
- "shasum": "e5ffe54d45e19f32f216e91eb99c8ce892bb604b",
- "tarball": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "7b3706eaa0093d8f5ba65af8ed590b6fcb3fe7cf",
- "homepage": "https://github.com/jonschlinkert/arr-flatten",
- "keywords": [
- "arr",
- "array",
- "elements",
- "flat",
- "flatten",
- "nested",
- "recurse",
- "recursive",
- "recursively"
- ],
- "license": {
- "type": "MIT",
- "url": "https://github.com/jonschlinkert/arr-flatten/blob/master/LICENSE"
- },
- "main": "index.js",
- "maintainers": [
- {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- }
- ],
- "name": "arr-flatten",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/jonschlinkert/arr-flatten.git"
- },
- "scripts": {
- "benchmarks": "node benchmark",
- "test": "mocha"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/array-differ/index.js b/node_modules/array-differ/index.js
deleted file mode 100644
index fbe2ed2..0000000
--- a/node_modules/array-differ/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-module.exports = function (arr) {
- var rest = [].concat.apply([], [].slice.call(arguments, 1));
- return arr.filter(function (el) {
- return rest.indexOf(el) === -1;
- });
-};
diff --git a/node_modules/array-differ/package.json b/node_modules/array-differ/package.json
deleted file mode 100644
index e1f7bc6..0000000
--- a/node_modules/array-differ/package.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "array-differ@^1.0.0",
- "scope": null,
- "escapedName": "array-differ",
- "name": "array-differ",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/gulp-util"
- ]
- ],
- "_from": "array-differ@>=1.0.0 <2.0.0",
- "_id": "array-differ@1.0.0",
- "_inCache": true,
- "_location": "/array-differ",
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "1.4.14",
- "_phantomChildren": {},
- "_requested": {
- "raw": "array-differ@^1.0.0",
- "scope": null,
- "escapedName": "array-differ",
- "name": "array-differ",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/gulp-util"
- ],
- "_resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
- "_shasum": "eff52e3758249d33be402b8bb8e564bb2b5d4031",
- "_shrinkwrap": null,
- "_spec": "array-differ@^1.0.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/array-differ/issues"
- },
- "dependencies": {},
- "description": "Create an array with values that are present in the first input array but not additional ones",
- "devDependencies": {
- "mocha": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "eff52e3758249d33be402b8bb8e564bb2b5d4031",
- "tarball": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "e91802976c4710eef8dea2090d48e48525cf41b1",
- "homepage": "https://github.com/sindresorhus/array-differ",
- "keywords": [
- "array",
- "difference",
- "diff",
- "differ",
- "filter",
- "exclude"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "array-differ",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/sindresorhus/array-differ.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/array-differ/readme.md b/node_modules/array-differ/readme.md
deleted file mode 100644
index 68f5d36..0000000
--- a/node_modules/array-differ/readme.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# array-differ [](https://travis-ci.org/sindresorhus/array-differ)
-
-> Create an array with values that are present in the first input array but not additional ones
-
-
-## Install
-
-```sh
-$ npm install --save array-differ
-```
-
-
-## Usage
-
-```js
-var arrayDiffer = require('array-differ');
-
-arrayDiffer([2, 3, 4], [3, 50]);
-//=> [2, 4]
-```
-
-## API
-
-### arrayDiffer(input, values, [values, ...])
-
-Returns the new array.
-
-#### input
-
-Type: `array`
-
-#### values
-
-Type: `array`
-
-Arrays of values to exclude.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/array-find-index/index.js b/node_modules/array-find-index/index.js
deleted file mode 100644
index e2dcd9a..0000000
--- a/node_modules/array-find-index/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-module.exports = function (arr, predicate, ctx) {
- if (typeof Array.prototype.findIndex === 'function') {
- return arr.findIndex(predicate, ctx);
- }
-
- if (typeof predicate !== 'function') {
- throw new TypeError('predicate must be a function');
- }
-
- var list = Object(arr);
- var len = list.length;
-
- if (len === 0) {
- return -1;
- }
-
- for (var i = 0; i < len; i++) {
- if (predicate.call(ctx, list[i], i, list)) {
- return i;
- }
- }
-
- return -1;
-};
diff --git a/node_modules/array-find-index/license b/node_modules/array-find-index/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/array-find-index/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/array-find-index/package.json b/node_modules/array-find-index/package.json
deleted file mode 100644
index ac29658..0000000
--- a/node_modules/array-find-index/package.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "array-find-index@^1.0.1",
- "scope": null,
- "escapedName": "array-find-index",
- "name": "array-find-index",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/currently-unhandled"
- ]
- ],
- "_from": "array-find-index@>=1.0.1 <2.0.0",
- "_id": "array-find-index@1.0.2",
- "_inCache": true,
- "_location": "/array-find-index",
- "_nodeVersion": "4.5.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/array-find-index-1.0.2.tgz_1475224789159_0.7274378235451877"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.9",
- "_phantomChildren": {},
- "_requested": {
- "raw": "array-find-index@^1.0.1",
- "scope": null,
- "escapedName": "array-find-index",
- "name": "array-find-index",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/currently-unhandled"
- ],
- "_resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
- "_shasum": "df010aa1287e164bbda6f9723b0a96a1ec4187a1",
- "_shrinkwrap": null,
- "_spec": "array-find-index@^1.0.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/currently-unhandled",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/array-find-index/issues"
- },
- "dependencies": {},
- "description": "ES2015 `Array#findIndex()` ponyfill",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "df010aa1287e164bbda6f9723b0a96a1ec4187a1",
- "tarball": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "983f4c827ad22fa0353182b1ddcbfaecd4412859",
- "homepage": "https://github.com/sindresorhus/array-find-index#readme",
- "keywords": [
- "es2015",
- "ponyfill",
- "polyfill",
- "shim",
- "find",
- "index",
- "findindex",
- "array"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "array-find-index",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/array-find-index.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/array-find-index/readme.md b/node_modules/array-find-index/readme.md
deleted file mode 100644
index 3166341..0000000
--- a/node_modules/array-find-index/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# array-find-index [](https://travis-ci.org/sindresorhus/array-find-index)
-
-> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save array-find-index
-```
-
-
-## Usage
-
-```js
-const arrayFindIndex = require('array-find-index');
-
-arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
-//=> 1
-```
-
-
-## API
-
-Same as `Array#findIndex()`, but with the input array as the first argument.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/array-union/index.js b/node_modules/array-union/index.js
deleted file mode 100644
index e33f38a..0000000
--- a/node_modules/array-union/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-var arrayUniq = require('array-uniq');
-
-module.exports = function () {
- return arrayUniq([].concat.apply([], arguments));
-};
diff --git a/node_modules/array-union/license b/node_modules/array-union/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/array-union/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/array-union/package.json b/node_modules/array-union/package.json
deleted file mode 100644
index a3baa4d..0000000
--- a/node_modules/array-union/package.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "array-union@^1.0.1",
- "scope": null,
- "escapedName": "array-union",
- "name": "array-union",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/globby"
- ]
- ],
- "_from": "array-union@>=1.0.1 <2.0.0",
- "_id": "array-union@1.0.2",
- "_inCache": true,
- "_location": "/array-union",
- "_nodeVersion": "4.4.2",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/array-union-1.0.2.tgz_1466079411551_0.23353995219804347"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.0",
- "_phantomChildren": {},
- "_requested": {
- "raw": "array-union@^1.0.1",
- "scope": null,
- "escapedName": "array-union",
- "name": "array-union",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/globby",
- "/rework-import/globby"
- ],
- "_resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
- "_shasum": "9a34410e4f4e3da23dea375be5be70f24778ec39",
- "_shrinkwrap": null,
- "_spec": "array-union@^1.0.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/globby",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/array-union/issues"
- },
- "dependencies": {
- "array-uniq": "^1.0.1"
- },
- "description": "Create an array of unique values, in order, from the input arrays",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "9a34410e4f4e3da23dea375be5be70f24778ec39",
- "tarball": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "34e1d6a80baa4eac9723795a0674c14119ace1bd",
- "homepage": "https://github.com/sindresorhus/array-union#readme",
- "keywords": [
- "array",
- "arr",
- "set",
- "uniq",
- "unique",
- "duplicate",
- "remove",
- "union",
- "combine",
- "merge"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "array-union",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/array-union.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/array-union/readme.md b/node_modules/array-union/readme.md
deleted file mode 100644
index ea472dd..0000000
--- a/node_modules/array-union/readme.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# array-union [](https://travis-ci.org/sindresorhus/array-union)
-
-> Create an array of unique values, in order, from the input arrays
-
-
-## Install
-
-```
-$ npm install --save array-union
-```
-
-
-## Usage
-
-```js
-const arrayUnion = require('array-union');
-
-arrayUnion([1, 1, 2, 3], [2, 3]);
-//=> [1, 2, 3]
-
-arrayUnion(['foo', 'foo', 'bar'], ['foo']);
-//=> ['foo', 'bar']
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/array-uniq/index.js b/node_modules/array-uniq/index.js
deleted file mode 100644
index edd09f8..0000000
--- a/node_modules/array-uniq/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-'use strict';
-
-// there's 3 implementations written in increasing order of efficiency
-
-// 1 - no Set type is defined
-function uniqNoSet(arr) {
- var ret = [];
-
- for (var i = 0; i < arr.length; i++) {
- if (ret.indexOf(arr[i]) === -1) {
- ret.push(arr[i]);
- }
- }
-
- return ret;
-}
-
-// 2 - a simple Set type is defined
-function uniqSet(arr) {
- var seen = new Set();
- return arr.filter(function (el) {
- if (!seen.has(el)) {
- seen.add(el);
- return true;
- }
-
- return false;
- });
-}
-
-// 3 - a standard Set type is defined and it has a forEach method
-function uniqSetWithForEach(arr) {
- var ret = [];
-
- (new Set(arr)).forEach(function (el) {
- ret.push(el);
- });
-
- return ret;
-}
-
-// V8 currently has a broken implementation
-// https://github.com/joyent/node/issues/8449
-function doesForEachActuallyWork() {
- var ret = false;
-
- (new Set([true])).forEach(function (el) {
- ret = el;
- });
-
- return ret === true;
-}
-
-if ('Set' in global) {
- if (typeof Set.prototype.forEach === 'function' && doesForEachActuallyWork()) {
- module.exports = uniqSetWithForEach;
- } else {
- module.exports = uniqSet;
- }
-} else {
- module.exports = uniqNoSet;
-}
diff --git a/node_modules/array-uniq/license b/node_modules/array-uniq/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/array-uniq/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/array-uniq/package.json b/node_modules/array-uniq/package.json
deleted file mode 100644
index 6c3032d..0000000
--- a/node_modules/array-uniq/package.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "array-uniq@^1.0.1",
- "scope": null,
- "escapedName": "array-uniq",
- "name": "array-uniq",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/array-union"
- ]
- ],
- "_from": "array-uniq@>=1.0.1 <2.0.0",
- "_id": "array-uniq@1.0.3",
- "_inCache": true,
- "_location": "/array-uniq",
- "_nodeVersion": "4.4.2",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/array-uniq-1.0.3.tgz_1466079716839_0.9139188586268574"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.0",
- "_phantomChildren": {},
- "_requested": {
- "raw": "array-uniq@^1.0.1",
- "scope": null,
- "escapedName": "array-uniq",
- "name": "array-uniq",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/array-union",
- "/get-imports",
- "/gulp-util"
- ],
- "_resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
- "_shasum": "af6ac877a25cc7f74e058894753858dfdb24fdb6",
- "_shrinkwrap": null,
- "_spec": "array-uniq@^1.0.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/array-union",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/array-uniq/issues"
- },
- "dependencies": {},
- "description": "Create an array without duplicates",
- "devDependencies": {
- "ava": "*",
- "es6-set": "^0.1.0",
- "require-uncached": "^1.0.2",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "af6ac877a25cc7f74e058894753858dfdb24fdb6",
- "tarball": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "3b5bf5a90a585b3950284d575f33d09663f6083a",
- "homepage": "https://github.com/sindresorhus/array-uniq#readme",
- "keywords": [
- "array",
- "arr",
- "set",
- "uniq",
- "unique",
- "es6",
- "duplicate",
- "remove"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "array-uniq",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/array-uniq.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.3"
-}
diff --git a/node_modules/array-uniq/readme.md b/node_modules/array-uniq/readme.md
deleted file mode 100644
index f0bd98c..0000000
--- a/node_modules/array-uniq/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# array-uniq [](https://travis-ci.org/sindresorhus/array-uniq)
-
-> Create an array without duplicates
-
-It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays).
-
-
-## Install
-
-```
-$ npm install --save array-uniq
-```
-
-
-## Usage
-
-```js
-const arrayUniq = require('array-uniq');
-
-arrayUniq([1, 1, 2, 3, 3]);
-//=> [1, 2, 3]
-
-arrayUniq(['foo', 'foo', 'bar', 'foo']);
-//=> ['foo', 'bar']
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/array-unique/LICENSE b/node_modules/array-unique/LICENSE
deleted file mode 100755
index fa30c4c..0000000
--- a/node_modules/array-unique/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2015, Jon Schlinkert.
-
-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/node_modules/array-unique/README.md b/node_modules/array-unique/README.md
deleted file mode 100755
index 2e28774..0000000
--- a/node_modules/array-unique/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# array-unique [](http://badge.fury.io/js/array-unique) [](https://travis-ci.org/jonschlinkert/array-unique)
-
-> Return an array free of duplicate values. Fastest ES5 implementation.
-
-## Install with [npm](npmjs.org)
-
-```bash
-npm i array-unique --save
-```
-
-## Usage
-
-```js
-var unique = require('array-unique');
-
-unique(['a', 'b', 'c', 'c']);
-//=> ['a', 'b', 'c']
-```
-
-## Related
-* [arr-diff](https://github.com/jonschlinkert/arr-diff): Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.
-* [arr-union](https://github.com/jonschlinkert/arr-union): Returns an array of unique values using strict equality for comparisons.
-* [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
-* [arr-reduce](https://github.com/jonschlinkert/arr-reduce): Fast array reduce that also loops over sparse elements.
-* [arr-map](https://github.com/jonschlinkert/arr-map): Faster, node.js focused alternative to JavaScript's native array map.
-* [arr-pluck](https://github.com/jonschlinkert/arr-pluck): Retrieves the value of a specified property from all elements in the collection.
-
-## Run tests
-Install dev dependencies.
-
-```bash
-npm i -d && npm test
-```
-
-## Contributing
-Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-unique/issues)
-
-## Author
-
-**Jon Schlinkert**
-
-+ [github/jonschlinkert](https://github.com/jonschlinkert)
-+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
-
-## License
-Copyright (c) 2015 Jon Schlinkert
-Released under the MIT license
-
-***
-
-_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 24, 2015._
\ No newline at end of file
diff --git a/node_modules/array-unique/index.js b/node_modules/array-unique/index.js
deleted file mode 100755
index 7fa75af..0000000
--- a/node_modules/array-unique/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*!
- * array-unique
- *
- * Copyright (c) 2014-2015, Jon Schlinkert.
- * Licensed under the MIT License.
- */
-
-'use strict';
-
-module.exports = function unique(arr) {
- if (!Array.isArray(arr)) {
- throw new TypeError('array-unique expects an array.');
- }
-
- var len = arr.length;
- var i = -1;
-
- while (i++ < len) {
- var j = i + 1;
-
- for (; j < arr.length; ++j) {
- if (arr[i] === arr[j]) {
- arr.splice(j--, 1);
- }
- }
- }
- return arr;
-};
diff --git a/node_modules/array-unique/package.json b/node_modules/array-unique/package.json
deleted file mode 100755
index 7c44b52..0000000
--- a/node_modules/array-unique/package.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "array-unique@^0.2.1",
- "scope": null,
- "escapedName": "array-unique",
- "name": "array-unique",
- "rawSpec": "^0.2.1",
- "spec": ">=0.2.1 <0.3.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/micromatch"
- ]
- ],
- "_from": "array-unique@>=0.2.1 <0.3.0",
- "_id": "array-unique@0.2.1",
- "_inCache": true,
- "_location": "/array-unique",
- "_nodeVersion": "1.6.2",
- "_npmUser": {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- },
- "_npmVersion": "2.7.1",
- "_phantomChildren": {},
- "_requested": {
- "raw": "array-unique@^0.2.1",
- "scope": null,
- "escapedName": "array-unique",
- "name": "array-unique",
- "rawSpec": "^0.2.1",
- "spec": ">=0.2.1 <0.3.0",
- "type": "range"
- },
- "_requiredBy": [
- "/micromatch"
- ],
- "_resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
- "_shasum": "a1d97ccafcbc2625cc70fadceb36a50c58b01a53",
- "_shrinkwrap": null,
- "_spec": "array-unique@^0.2.1",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/micromatch",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/array-unique/issues"
- },
- "dependencies": {},
- "description": "Return an array free of duplicate values. Fastest ES5 implementation.",
- "devDependencies": {
- "array-uniq": "^1.0.2",
- "benchmarked": "^0.1.3",
- "mocha": "*",
- "should": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "a1d97ccafcbc2625cc70fadceb36a50c58b01a53",
- "tarball": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "36fde8e586fb7cf880b8b3aa6515df889e64ed85",
- "homepage": "https://github.com/jonschlinkert/array-unique",
- "license": {
- "type": "MIT",
- "url": "https://github.com/jonschlinkert/array-unique/blob/master/LICENSE"
- },
- "main": "index.js",
- "maintainers": [
- {
- "name": "jonschlinkert",
- "email": "github@sellside.com"
- }
- ],
- "name": "array-unique",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/jonschlinkert/array-unique.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "0.2.1"
-}
diff --git a/node_modules/arrify/index.js b/node_modules/arrify/index.js
deleted file mode 100644
index 2a2fdee..0000000
--- a/node_modules/arrify/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-module.exports = function (val) {
- if (val === null || val === undefined) {
- return [];
- }
-
- return Array.isArray(val) ? val : [val];
-};
diff --git a/node_modules/arrify/license b/node_modules/arrify/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/arrify/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus (sindresorhus.com)
-
-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/node_modules/arrify/package.json b/node_modules/arrify/package.json
deleted file mode 100644
index cf34b06..0000000
--- a/node_modules/arrify/package.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "arrify@^1.0.0",
- "scope": null,
- "escapedName": "arrify",
- "name": "arrify",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/globby"
- ]
- ],
- "_from": "arrify@>=1.0.0 <2.0.0",
- "_id": "arrify@1.0.1",
- "_inCache": true,
- "_location": "/arrify",
- "_nodeVersion": "4.2.1",
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "3.5.2",
- "_phantomChildren": {},
- "_requested": {
- "raw": "arrify@^1.0.0",
- "scope": null,
- "escapedName": "arrify",
- "name": "arrify",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/anymatch",
- "/globby"
- ],
- "_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
- "_shasum": "898508da2226f380df904728456849c1501a4b0d",
- "_shrinkwrap": null,
- "_spec": "arrify@^1.0.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/globby",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/arrify/issues"
- },
- "dependencies": {},
- "description": "Convert a value to an array",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "898508da2226f380df904728456849c1501a4b0d",
- "tarball": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "087edee1a58d5adaac6cae5a107886121ef43783",
- "homepage": "https://github.com/sindresorhus/arrify#readme",
- "keywords": [
- "array",
- "arr",
- "arrify",
- "arrayify",
- "convert",
- "value"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
- "name": "arrify",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/arrify.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/arrify/readme.md b/node_modules/arrify/readme.md
deleted file mode 100644
index 183d075..0000000
--- a/node_modules/arrify/readme.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# arrify [](https://travis-ci.org/sindresorhus/arrify)
-
-> Convert a value to an array
-
-
-## Install
-
-```
-$ npm install --save arrify
-```
-
-
-## Usage
-
-```js
-const arrify = require('arrify');
-
-arrify('unicorn');
-//=> ['unicorn']
-
-arrify(['unicorn']);
-//=> ['unicorn']
-
-arrify(null);
-//=> []
-
-arrify(undefined);
-//=> []
-```
-
-*Supplying `null` or `undefined` results in an empty array.*
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/asap/CHANGES.md b/node_modules/asap/CHANGES.md
deleted file mode 100644
index e9ffa46..0000000
--- a/node_modules/asap/CHANGES.md
+++ /dev/null
@@ -1,64 +0,0 @@
-
-## 2.0.3
-
-Version 2.0.3 fixes a bug when adjusting the capacity of the task queue.
-
-## 2.0.1-2.02
-
-Version 2.0.1 fixes a bug in the way redirects were expressed that affected the
-function of Browserify, but which Mr would tolerate.
-
-## 2.0.0
-
-Version 2 of ASAP is a full rewrite with a few salient changes.
-First, the ASAP source is CommonJS only and designed with [Browserify][] and
-[Browserify-compatible][Mr] module loaders in mind.
-
-[Browserify]: https://github.com/substack/node-browserify
-[Mr]: https://github.com/montagejs/mr
-
-The new version has been refactored in two dimensions.
-Support for Node.js and browsers have been separated, using Browserify
-redirects and ASAP has been divided into two modules.
-The "raw" layer depends on the tasks to catch thrown exceptions and unravel
-Node.js domains.
-
-The full implementation of ASAP is loadable as `require("asap")` in both Node.js
-and browsers.
-
-The raw layer that lacks exception handling overhead is loadable as
-`require("asap/raw")`.
-The interface is the same for both layers.
-
-Tasks are no longer required to be functions, but can rather be any object that
-implements `task.call()`.
-With this feature you can recycle task objects to avoid garbage collector churn
-and avoid closures in general.
-
-The implementation has been rigorously documented so that our successors can
-understand the scope of the problem that this module solves and all of its
-nuances, ensuring that the next generation of implementations know what details
-are essential.
-
-- [asap.js](https://github.com/kriskowal/asap/blob/master/asap.js)
-- [raw.js](https://github.com/kriskowal/asap/blob/master/raw.js)
-- [browser-asap.js](https://github.com/kriskowal/asap/blob/master/browser-asap.js)
-- [browser-raw.js](https://github.com/kriskowal/asap/blob/master/browser-raw.js)
-
-The new version has also been rigorously tested across a broad spectrum of
-browsers, in both the window and worker context.
-The following charts capture the browser test results for the most recent
-release.
-The first chart shows test results for ASAP running in the main window context.
-The second chart shows test results for ASAP running in a web worker context.
-Test results are inconclusive (grey) on browsers that do not support web
-workers.
-These data are captured automatically by [Continuous
-Integration][].
-
-
-
-
-
-[Continuous Integration]: https://github.com/kriskowal/asap/blob/master/CONTRIBUTING.md
-
diff --git a/node_modules/asap/LICENSE.md b/node_modules/asap/LICENSE.md
deleted file mode 100644
index ba18c61..0000000
--- a/node_modules/asap/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-
-Copyright 2009–2014 Contributors. All rights reserved.
-
-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/node_modules/asap/README.md b/node_modules/asap/README.md
deleted file mode 100644
index 452fd8c..0000000
--- a/node_modules/asap/README.md
+++ /dev/null
@@ -1,237 +0,0 @@
-# ASAP
-
-[](https://travis-ci.org/kriskowal/asap)
-
-Promise and asynchronous observer libraries, as well as hand-rolled callback
-programs and libraries, often need a mechanism to postpone the execution of a
-callback until the next available event.
-(See [Designing API’s for Asynchrony][Zalgo].)
-The `asap` function executes a task **as soon as possible** but not before it
-returns, waiting only for the completion of the current event and previously
-scheduled tasks.
-
-```javascript
-asap(function () {
- // ...
-});
-```
-
-[Zalgo]: http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony
-
-This CommonJS package provides an `asap` module that exports a function that
-executes a task function *as soon as possible*.
-
-ASAP strives to schedule events to occur before yielding for IO, reflow,
-or redrawing.
-Each event receives an independent stack, with only platform code in parent
-frames and the events run in the order they are scheduled.
-
-ASAP provides a fast event queue that will execute tasks until it is
-empty before yielding to the JavaScript engine's underlying event-loop.
-When a task gets added to a previously empty event queue, ASAP schedules a flush
-event, preferring for that event to occur before the JavaScript engine has an
-opportunity to perform IO tasks or rendering, thus making the first task and
-subsequent tasks semantically indistinguishable.
-ASAP uses a variety of techniques to preserve this invariant on different
-versions of browsers and Node.js.
-
-By design, ASAP prevents input events from being handled until the task
-queue is empty.
-If the process is busy enough, this may cause incoming connection requests to be
-dropped, and may cause existing connections to inform the sender to reduce the
-transmission rate or stall.
-ASAP allows this on the theory that, if there is enough work to do, there is no
-sense in looking for trouble.
-As a consequence, ASAP can interfere with smooth animation.
-If your task should be tied to the rendering loop, consider using
-`requestAnimationFrame` instead.
-A long sequence of tasks can also effect the long running script dialog.
-If this is a problem, you may be able to use ASAP’s cousin `setImmediate` to
-break long processes into shorter intervals and periodically allow the browser
-to breathe.
-`setImmediate` will yield for IO, reflow, and repaint events.
-It also returns a handler and can be canceled.
-For a `setImmediate` shim, consider [YuzuJS setImmediate][setImmediate].
-
-[setImmediate]: https://github.com/YuzuJS/setImmediate
-
-Take care.
-ASAP can sustain infinite recursive calls without warning.
-It will not halt from a stack overflow, and it will not consume unbounded
-memory.
-This is behaviorally equivalent to an infinite loop.
-Just as with infinite loops, you can monitor a Node.js process for this behavior
-with a heart-beat signal.
-As with infinite loops, a very small amount of caution goes a long way to
-avoiding problems.
-
-```javascript
-function loop() {
- asap(loop);
-}
-loop();
-```
-
-In browsers, if a task throws an exception, it will not interrupt the flushing
-of high-priority tasks.
-The exception will be postponed to a later, low-priority event to avoid
-slow-downs.
-In Node.js, if a task throws an exception, ASAP will resume flushing only if—and
-only after—the error is handled by `domain.on("error")` or
-`process.on("uncaughtException")`.
-
-## Raw ASAP
-
-Checking for exceptions comes at a cost.
-The package also provides an `asap/raw` module that exports the underlying
-implementation which is faster but stalls if a task throws an exception.
-This internal version of the ASAP function does not check for errors.
-If a task does throw an error, it will stall the event queue unless you manually
-call `rawAsap.requestFlush()` before throwing the error, or any time after.
-
-In Node.js, `asap/raw` also runs all tasks outside any domain.
-If you need a task to be bound to your domain, you will have to do it manually.
-
-```js
-if (process.domain) {
- task = process.domain.bind(task);
-}
-rawAsap(task);
-```
-
-## Tasks
-
-A task may be any object that implements `call()`.
-A function will suffice, but closures tend not to be reusable and can cause
-garbage collector churn.
-Both `asap` and `rawAsap` accept task objects to give you the option of
-recycling task objects or using higher callable object abstractions.
-See the `asap` source for an illustration.
-
-
-## Compatibility
-
-ASAP is tested on Node.js v0.10 and in a broad spectrum of web browsers.
-The following charts capture the browser test results for the most recent
-release.
-The first chart shows test results for ASAP running in the main window context.
-The second chart shows test results for ASAP running in a web worker context.
-Test results are inconclusive (grey) on browsers that do not support web
-workers.
-These data are captured automatically by [Continuous
-Integration][].
-
-[Continuous Integration]: https://github.com/kriskowal/asap/blob/master/CONTRIBUTING.md
-
-
-
-
-
-## Caveats
-
-When a task is added to an empty event queue, it is not always possible to
-guarantee that the task queue will begin flushing immediately after the current
-event.
-However, once the task queue begins flushing, it will not yield until the queue
-is empty, even if the queue grows while executing tasks.
-
-The following browsers allow the use of [DOM mutation observers][] to access
-the HTML [microtask queue][], and thus begin flushing ASAP's task queue
-immediately at the end of the current event loop turn, before any rendering or
-IO:
-
-[microtask queue]: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#microtask-queue
-[DOM mutation observers]: http://dom.spec.whatwg.org/#mutation-observers
-
-- Android 4–4.3
-- Chrome 26–34
-- Firefox 14–29
-- Internet Explorer 11
-- iPad Safari 6–7.1
-- iPhone Safari 7–7.1
-- Safari 6–7
-
-In the absense of mutation observers, there are a few browsers, and situations
-like web workers in some of the above browsers, where [message channels][]
-would be a useful way to avoid falling back to timers.
-Message channels give direct access to the HTML [task queue][], so the ASAP
-task queue would flush after any already queued rendering and IO tasks, but
-without having the minimum delay imposed by timers.
-However, among these browsers, Internet Explorer 10 and Safari do not reliably
-dispatch messages, so they are not worth the trouble to implement.
-
-[message channels]: http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html#message-channels
-[task queue]: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#concept-task
-
-- Internet Explorer 10
-- Safair 5.0-1
-- Opera 11-12
-
-In the absense of mutation observers, these browsers and the following browsers
-all fall back to using `setTimeout` and `setInterval` to ensure that a `flush`
-occurs.
-The implementation uses both and cancels whatever handler loses the race, since
-`setTimeout` tends to occasionally skip tasks in unisolated circumstances.
-Timers generally delay the flushing of ASAP's task queue for four milliseconds.
-
-- Firefox 3–13
-- Internet Explorer 6–10
-- iPad Safari 4.3
-- Lynx 2.8.7
-
-
-## Heritage
-
-ASAP has been factored out of the [Q][] asynchronous promise library.
-It originally had a naïve implementation in terms of `setTimeout`, but
-[Malte Ubl][NonBlocking] provided an insight that `postMessage` might be
-useful for creating a high-priority, no-delay event dispatch hack.
-Since then, Internet Explorer proposed and implemented `setImmediate`.
-Robert Katić began contributing to Q by measuring the performance of
-the internal implementation of `asap`, paying particular attention to
-error recovery.
-Domenic, Robert, and Kris Kowal collectively settled on the current strategy of
-unrolling the high-priority event queue internally regardless of what strategy
-we used to dispatch the potentially lower-priority flush event.
-Domenic went on to make ASAP cooperate with Node.js domains.
-
-[Q]: https://github.com/kriskowal/q
-[NonBlocking]: http://www.nonblocking.io/2011/06/windownexttick.html
-
-For further reading, Nicholas Zakas provided a thorough article on [The
-Case for setImmediate][NCZ].
-
-[NCZ]: http://www.nczonline.net/blog/2013/07/09/the-case-for-setimmediate/
-
-Ember’s RSVP promise implementation later [adopted][RSVP ASAP] the name ASAP but
-further developed the implentation.
-Particularly, The `MessagePort` implementation was abandoned due to interaction
-[problems with Mobile Internet Explorer][IE Problems] in favor of an
-implementation backed on the newer and more reliable DOM `MutationObserver`
-interface.
-These changes were back-ported into this library.
-
-[IE Problems]: https://github.com/cujojs/when/issues/197
-[RSVP ASAP]: https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js
-
-In addition, ASAP factored into `asap` and `asap/raw`, such that `asap` remained
-exception-safe, but `asap/raw` provided a tight kernel that could be used for
-tasks that guaranteed that they would not throw exceptions.
-This core is useful for promise implementations that capture thrown errors in
-rejected promises and do not need a second safety net.
-At the same time, the exception handling in `asap` was factored into separate
-implementations for Node.js and browsers, using the the [Browserify][Browser
-Config] `browser` property in `package.json` to instruct browser module loaders
-and bundlers, including [Browserify][], [Mr][], and [Mop][], to use the
-browser-only implementation.
-
-[Browser Config]: https://gist.github.com/defunctzombie/4339901
-[Browserify]: https://github.com/substack/node-browserify
-[Mr]: https://github.com/montagejs/mr
-[Mop]: https://github.com/montagejs/mop
-
-## License
-
-Copyright 2009-2014 by Contributors
-MIT License (enclosed)
-
diff --git a/node_modules/asap/asap.js b/node_modules/asap/asap.js
deleted file mode 100644
index f04fcd5..0000000
--- a/node_modules/asap/asap.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-
-var rawAsap = require("./raw");
-var freeTasks = [];
-
-/**
- * Calls a task as soon as possible after returning, in its own event, with
- * priority over IO events. An exception thrown in a task can be handled by
- * `process.on("uncaughtException") or `domain.on("error")`, but will otherwise
- * crash the process. If the error is handled, all subsequent tasks will
- * resume.
- *
- * @param {{call}} task A callable object, typically a function that takes no
- * arguments.
- */
-module.exports = asap;
-function asap(task) {
- var rawTask;
- if (freeTasks.length) {
- rawTask = freeTasks.pop();
- } else {
- rawTask = new RawTask();
- }
- rawTask.task = task;
- rawTask.domain = process.domain;
- rawAsap(rawTask);
-}
-
-function RawTask() {
- this.task = null;
- this.domain = null;
-}
-
-RawTask.prototype.call = function () {
- if (this.domain) {
- this.domain.enter();
- }
- var threw = true;
- try {
- this.task.call();
- threw = false;
- // If the task throws an exception (presumably) Node.js restores the
- // domain stack for the next event.
- if (this.domain) {
- this.domain.exit();
- }
- } finally {
- // We use try/finally and a threw flag to avoid messing up stack traces
- // when we catch and release errors.
- if (threw) {
- // In Node.js, uncaught exceptions are considered fatal errors.
- // Re-throw them to interrupt flushing!
- // Ensure that flushing continues if an uncaught exception is
- // suppressed listening process.on("uncaughtException") or
- // domain.on("error").
- rawAsap.requestFlush();
- }
- // If the task threw an error, we do not want to exit the domain here.
- // Exiting the domain would prevent the domain from catching the error.
- this.task = null;
- this.domain = null;
- freeTasks.push(this);
- }
-};
-
diff --git a/node_modules/asap/browser-asap.js b/node_modules/asap/browser-asap.js
deleted file mode 100644
index 805c982..0000000
--- a/node_modules/asap/browser-asap.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-
-// rawAsap provides everything we need except exception management.
-var rawAsap = require("./raw");
-// RawTasks are recycled to reduce GC churn.
-var freeTasks = [];
-// We queue errors to ensure they are thrown in right order (FIFO).
-// Array-as-queue is good enough here, since we are just dealing with exceptions.
-var pendingErrors = [];
-var requestErrorThrow = rawAsap.makeRequestCallFromTimer(throwFirstError);
-
-function throwFirstError() {
- if (pendingErrors.length) {
- throw pendingErrors.shift();
- }
-}
-
-/**
- * Calls a task as soon as possible after returning, in its own event, with priority
- * over other events like animation, reflow, and repaint. An error thrown from an
- * event will not interrupt, nor even substantially slow down the processing of
- * other events, but will be rather postponed to a lower priority event.
- * @param {{call}} task A callable object, typically a function that takes no
- * arguments.
- */
-module.exports = asap;
-function asap(task) {
- var rawTask;
- if (freeTasks.length) {
- rawTask = freeTasks.pop();
- } else {
- rawTask = new RawTask();
- }
- rawTask.task = task;
- rawAsap(rawTask);
-}
-
-// We wrap tasks with recyclable task objects. A task object implements
-// `call`, just like a function.
-function RawTask() {
- this.task = null;
-}
-
-// The sole purpose of wrapping the task is to catch the exception and recycle
-// the task object after its single use.
-RawTask.prototype.call = function () {
- try {
- this.task.call();
- } catch (error) {
- if (asap.onerror) {
- // This hook exists purely for testing purposes.
- // Its name will be periodically randomized to break any code that
- // depends on its existence.
- asap.onerror(error);
- } else {
- // In a web browser, exceptions are not fatal. However, to avoid
- // slowing down the queue of pending tasks, we rethrow the error in a
- // lower priority turn.
- pendingErrors.push(error);
- requestErrorThrow();
- }
- } finally {
- this.task = null;
- freeTasks[freeTasks.length] = this;
- }
-};
diff --git a/node_modules/asap/browser-raw.js b/node_modules/asap/browser-raw.js
deleted file mode 100644
index 9cee7e3..0000000
--- a/node_modules/asap/browser-raw.js
+++ /dev/null
@@ -1,223 +0,0 @@
-"use strict";
-
-// Use the fastest means possible to execute a task in its own turn, with
-// priority over other events including IO, animation, reflow, and redraw
-// events in browsers.
-//
-// An exception thrown by a task will permanently interrupt the processing of
-// subsequent tasks. The higher level `asap` function ensures that if an
-// exception is thrown by a task, that the task queue will continue flushing as
-// soon as possible, but if you use `rawAsap` directly, you are responsible to
-// either ensure that no exceptions are thrown from your task, or to manually
-// call `rawAsap.requestFlush` if an exception is thrown.
-module.exports = rawAsap;
-function rawAsap(task) {
- if (!queue.length) {
- requestFlush();
- flushing = true;
- }
- // Equivalent to push, but avoids a function call.
- queue[queue.length] = task;
-}
-
-var queue = [];
-// Once a flush has been requested, no further calls to `requestFlush` are
-// necessary until the next `flush` completes.
-var flushing = false;
-// `requestFlush` is an implementation-specific method that attempts to kick
-// off a `flush` event as quickly as possible. `flush` will attempt to exhaust
-// the event queue before yielding to the browser's own event loop.
-var requestFlush;
-// The position of the next task to execute in the task queue. This is
-// preserved between calls to `flush` so that it can be resumed if
-// a task throws an exception.
-var index = 0;
-// If a task schedules additional tasks recursively, the task queue can grow
-// unbounded. To prevent memory exhaustion, the task queue will periodically
-// truncate already-completed tasks.
-var capacity = 1024;
-
-// The flush function processes all tasks that have been scheduled with
-// `rawAsap` unless and until one of those tasks throws an exception.
-// If a task throws an exception, `flush` ensures that its state will remain
-// consistent and will resume where it left off when called again.
-// However, `flush` does not make any arrangements to be called again if an
-// exception is thrown.
-function flush() {
- while (index < queue.length) {
- var currentIndex = index;
- // Advance the index before calling the task. This ensures that we will
- // begin flushing on the next task the task throws an error.
- index = index + 1;
- queue[currentIndex].call();
- // Prevent leaking memory for long chains of recursive calls to `asap`.
- // If we call `asap` within tasks scheduled by `asap`, the queue will
- // grow, but to avoid an O(n) walk for every task we execute, we don't
- // shift tasks off the queue after they have been executed.
- // Instead, we periodically shift 1024 tasks off the queue.
- if (index > capacity) {
- // Manually shift all values starting at the index back to the
- // beginning of the queue.
- for (var scan = 0, newLength = queue.length - index; scan < newLength; scan++) {
- queue[scan] = queue[scan + index];
- }
- queue.length -= index;
- index = 0;
- }
- }
- queue.length = 0;
- index = 0;
- flushing = false;
-}
-
-// `requestFlush` is implemented using a strategy based on data collected from
-// every available SauceLabs Selenium web driver worker at time of writing.
-// https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593
-
-// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that
-// have WebKitMutationObserver but not un-prefixed MutationObserver.
-// Must use `global` or `self` instead of `window` to work in both frames and web
-// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.
-
-/* globals self */
-var scope = typeof global !== "undefined" ? global : self;
-var BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;
-
-// MutationObservers are desirable because they have high priority and work
-// reliably everywhere they are implemented.
-// They are implemented in all modern browsers.
-//
-// - Android 4-4.3
-// - Chrome 26-34
-// - Firefox 14-29
-// - Internet Explorer 11
-// - iPad Safari 6-7.1
-// - iPhone Safari 7-7.1
-// - Safari 6-7
-if (typeof BrowserMutationObserver === "function") {
- requestFlush = makeRequestCallFromMutationObserver(flush);
-
-// MessageChannels are desirable because they give direct access to the HTML
-// task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
-// 11-12, and in web workers in many engines.
-// Although message channels yield to any queued rendering and IO tasks, they
-// would be better than imposing the 4ms delay of timers.
-// However, they do not work reliably in Internet Explorer or Safari.
-
-// Internet Explorer 10 is the only browser that has setImmediate but does
-// not have MutationObservers.
-// Although setImmediate yields to the browser's renderer, it would be
-// preferrable to falling back to setTimeout since it does not have
-// the minimum 4ms penalty.
-// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and
-// Desktop to a lesser extent) that renders both setImmediate and
-// MessageChannel useless for the purposes of ASAP.
-// https://github.com/kriskowal/q/issues/396
-
-// Timers are implemented universally.
-// We fall back to timers in workers in most engines, and in foreground
-// contexts in the following browsers.
-// However, note that even this simple case requires nuances to operate in a
-// broad spectrum of browsers.
-//
-// - Firefox 3-13
-// - Internet Explorer 6-9
-// - iPad Safari 4.3
-// - Lynx 2.8.7
-} else {
- requestFlush = makeRequestCallFromTimer(flush);
-}
-
-// `requestFlush` requests that the high priority event queue be flushed as
-// soon as possible.
-// This is useful to prevent an error thrown in a task from stalling the event
-// queue if the exception handled by Node.js’s
-// `process.on("uncaughtException")` or by a domain.
-rawAsap.requestFlush = requestFlush;
-
-// To request a high priority event, we induce a mutation observer by toggling
-// the text of a text node between "1" and "-1".
-function makeRequestCallFromMutationObserver(callback) {
- var toggle = 1;
- var observer = new BrowserMutationObserver(callback);
- var node = document.createTextNode("");
- observer.observe(node, {characterData: true});
- return function requestCall() {
- toggle = -toggle;
- node.data = toggle;
- };
-}
-
-// The message channel technique was discovered by Malte Ubl and was the
-// original foundation for this library.
-// http://www.nonblocking.io/2011/06/windownexttick.html
-
-// Safari 6.0.5 (at least) intermittently fails to create message ports on a
-// page's first load. Thankfully, this version of Safari supports
-// MutationObservers, so we don't need to fall back in that case.
-
-// function makeRequestCallFromMessageChannel(callback) {
-// var channel = new MessageChannel();
-// channel.port1.onmessage = callback;
-// return function requestCall() {
-// channel.port2.postMessage(0);
-// };
-// }
-
-// For reasons explained above, we are also unable to use `setImmediate`
-// under any circumstances.
-// Even if we were, there is another bug in Internet Explorer 10.
-// It is not sufficient to assign `setImmediate` to `requestFlush` because
-// `setImmediate` must be called *by name* and therefore must be wrapped in a
-// closure.
-// Never forget.
-
-// function makeRequestCallFromSetImmediate(callback) {
-// return function requestCall() {
-// setImmediate(callback);
-// };
-// }
-
-// Safari 6.0 has a problem where timers will get lost while the user is
-// scrolling. This problem does not impact ASAP because Safari 6.0 supports
-// mutation observers, so that implementation is used instead.
-// However, if we ever elect to use timers in Safari, the prevalent work-around
-// is to add a scroll event listener that calls for a flush.
-
-// `setTimeout` does not call the passed callback if the delay is less than
-// approximately 7 in web workers in Firefox 8 through 18, and sometimes not
-// even then.
-
-function makeRequestCallFromTimer(callback) {
- return function requestCall() {
- // We dispatch a timeout with a specified delay of 0 for engines that
- // can reliably accommodate that request. This will usually be snapped
- // to a 4 milisecond delay, but once we're flushing, there's no delay
- // between events.
- var timeoutHandle = setTimeout(handleTimer, 0);
- // However, since this timer gets frequently dropped in Firefox
- // workers, we enlist an interval handle that will try to fire
- // an event 20 times per second until it succeeds.
- var intervalHandle = setInterval(handleTimer, 50);
-
- function handleTimer() {
- // Whichever timer succeeds will cancel both timers and
- // execute the callback.
- clearTimeout(timeoutHandle);
- clearInterval(intervalHandle);
- callback();
- }
- };
-}
-
-// This is for `asap.js` only.
-// Its name will be periodically randomized to break any code that depends on
-// its existence.
-rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer;
-
-// ASAP was originally a nextTick shim included in Q. This was factored out
-// into this ASAP package. It was later adapted to RSVP which made further
-// amendments. These decisions, particularly to marginalize MessageChannel and
-// to capture the MutationObserver implementation in a closure, were integrated
-// back into ASAP proper.
-// https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js
diff --git a/node_modules/asap/package.json b/node_modules/asap/package.json
deleted file mode 100644
index 6ab503c..0000000
--- a/node_modules/asap/package.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "asap@~2.0.3",
- "scope": null,
- "escapedName": "asap",
- "name": "asap",
- "rawSpec": "~2.0.3",
- "spec": ">=2.0.3 <2.1.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/promise"
- ]
- ],
- "_from": "asap@>=2.0.3 <2.1.0",
- "_id": "asap@2.0.5",
- "_inCache": true,
- "_location": "/asap",
- "_nodeVersion": "0.10.32",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/asap-2.0.5.tgz_1474846549990_0.794441896257922"
- },
- "_npmUser": {
- "name": "kriskowal",
- "email": "kris.kowal@cixar.com"
- },
- "_npmVersion": "2.14.7",
- "_phantomChildren": {},
- "_requested": {
- "raw": "asap@~2.0.3",
- "scope": null,
- "escapedName": "asap",
- "name": "asap",
- "rawSpec": "~2.0.3",
- "spec": ">=2.0.3 <2.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/promise"
- ],
- "_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz",
- "_shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f",
- "_shrinkwrap": null,
- "_spec": "asap@~2.0.3",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/promise",
- "browser": {
- "./asap": "./browser-asap.js",
- "./asap.js": "./browser-asap.js",
- "./raw": "./browser-raw.js",
- "./raw.js": "./browser-raw.js",
- "./test/domain.js": "./test/browser-domain.js"
- },
- "bugs": {
- "url": "https://github.com/kriskowal/asap/issues"
- },
- "dependencies": {},
- "description": "High-priority task queue for Node.js and browsers",
- "devDependencies": {
- "benchmark": "^1.0.0",
- "events": "^1.0.1",
- "jshint": "^2.5.1",
- "knox": "^0.8.10",
- "mr": "^2.0.5",
- "opener": "^1.3.0",
- "q": "^2.0.3",
- "q-io": "^2.0.3",
- "saucelabs": "^0.1.1",
- "wd": "^0.2.21",
- "weak-map": "^1.0.5"
- },
- "directories": {},
- "dist": {
- "shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f",
- "tarball": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz"
- },
- "files": [
- "raw.js",
- "asap.js",
- "browser-raw.js",
- "browser-asap.js"
- ],
- "gitHead": "e7f3d29eed4967ecfcaddbfc9542e2ee12b76227",
- "homepage": "https://github.com/kriskowal/asap#readme",
- "keywords": [
- "event",
- "task",
- "queue"
- ],
- "license": "MIT",
- "main": "./asap.js",
- "maintainers": [
- {
- "name": "kriskowal",
- "email": "kris.kowal@cixar.com"
- },
- {
- "name": "forbeslindesay",
- "email": "forbes@lindesay.co.uk"
- }
- ],
- "name": "asap",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/kriskowal/asap.git"
- },
- "scripts": {
- "benchmarks": "node benchmarks",
- "lint": "jshint raw.js asap.js browser-raw.js browser-asap.js $(find scripts -name '*.js' | grep -v gauntlet)",
- "test": "npm run lint && npm run test-node",
- "test-browser": "node scripts/publish-bundle.js test/asap-test.js | xargs opener",
- "test-node": "node test/asap-test.js",
- "test-publish": "node scripts/publish-bundle.js test/asap-test.js | pbcopy",
- "test-saucelabs": "node scripts/saucelabs.js test/asap-test.js scripts/saucelabs-spot-configurations.json",
- "test-saucelabs-all": "node scripts/saucelabs.js test/asap-test.js scripts/saucelabs-all-configurations.json",
- "test-saucelabs-worker": "node scripts/saucelabs-worker-test.js scripts/saucelabs-spot-configurations.json",
- "test-saucelabs-worker-all": "node scripts/saucelabs-worker-test.js scripts/saucelabs-all-configurations.json",
- "test-travis": "npm run lint && npm run test-node && npm run test-saucelabs && npm run test-saucelabs-worker"
- },
- "version": "2.0.5"
-}
diff --git a/node_modules/asap/raw.js b/node_modules/asap/raw.js
deleted file mode 100644
index ae3b892..0000000
--- a/node_modules/asap/raw.js
+++ /dev/null
@@ -1,101 +0,0 @@
-"use strict";
-
-var domain; // The domain module is executed on demand
-var hasSetImmediate = typeof setImmediate === "function";
-
-// Use the fastest means possible to execute a task in its own turn, with
-// priority over other events including network IO events in Node.js.
-//
-// An exception thrown by a task will permanently interrupt the processing of
-// subsequent tasks. The higher level `asap` function ensures that if an
-// exception is thrown by a task, that the task queue will continue flushing as
-// soon as possible, but if you use `rawAsap` directly, you are responsible to
-// either ensure that no exceptions are thrown from your task, or to manually
-// call `rawAsap.requestFlush` if an exception is thrown.
-module.exports = rawAsap;
-function rawAsap(task) {
- if (!queue.length) {
- requestFlush();
- flushing = true;
- }
- // Avoids a function call
- queue[queue.length] = task;
-}
-
-var queue = [];
-// Once a flush has been requested, no further calls to `requestFlush` are
-// necessary until the next `flush` completes.
-var flushing = false;
-// The position of the next task to execute in the task queue. This is
-// preserved between calls to `flush` so that it can be resumed if
-// a task throws an exception.
-var index = 0;
-// If a task schedules additional tasks recursively, the task queue can grow
-// unbounded. To prevent memory excaustion, the task queue will periodically
-// truncate already-completed tasks.
-var capacity = 1024;
-
-// The flush function processes all tasks that have been scheduled with
-// `rawAsap` unless and until one of those tasks throws an exception.
-// If a task throws an exception, `flush` ensures that its state will remain
-// consistent and will resume where it left off when called again.
-// However, `flush` does not make any arrangements to be called again if an
-// exception is thrown.
-function flush() {
- while (index < queue.length) {
- var currentIndex = index;
- // Advance the index before calling the task. This ensures that we will
- // begin flushing on the next task the task throws an error.
- index = index + 1;
- queue[currentIndex].call();
- // Prevent leaking memory for long chains of recursive calls to `asap`.
- // If we call `asap` within tasks scheduled by `asap`, the queue will
- // grow, but to avoid an O(n) walk for every task we execute, we don't
- // shift tasks off the queue after they have been executed.
- // Instead, we periodically shift 1024 tasks off the queue.
- if (index > capacity) {
- // Manually shift all values starting at the index back to the
- // beginning of the queue.
- for (var scan = 0, newLength = queue.length - index; scan < newLength; scan++) {
- queue[scan] = queue[scan + index];
- }
- queue.length -= index;
- index = 0;
- }
- }
- queue.length = 0;
- index = 0;
- flushing = false;
-}
-
-rawAsap.requestFlush = requestFlush;
-function requestFlush() {
- // Ensure flushing is not bound to any domain.
- // It is not sufficient to exit the domain, because domains exist on a stack.
- // To execute code outside of any domain, the following dance is necessary.
- var parentDomain = process.domain;
- if (parentDomain) {
- if (!domain) {
- // Lazy execute the domain module.
- // Only employed if the user elects to use domains.
- domain = require("domain");
- }
- domain.active = process.domain = null;
- }
-
- // `setImmediate` is slower that `process.nextTick`, but `process.nextTick`
- // cannot handle recursion.
- // `requestFlush` will only be called recursively from `asap.js`, to resume
- // flushing after an error is thrown into a domain.
- // Conveniently, `setImmediate` was introduced in the same version
- // `process.nextTick` started throwing recursion errors.
- if (flushing && hasSetImmediate) {
- setImmediate(flush);
- } else {
- process.nextTick(flush);
- }
-
- if (parentDomain) {
- domain.active = process.domain = parentDomain;
- }
-}
diff --git a/node_modules/asn1/.npmignore b/node_modules/asn1/.npmignore
deleted file mode 100644
index eb03e3e..0000000
--- a/node_modules/asn1/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules
-*.log
diff --git a/node_modules/asn1/.travis.yml b/node_modules/asn1/.travis.yml
deleted file mode 100644
index 09d3ef3..0000000
--- a/node_modules/asn1/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.8
- - 0.10
diff --git a/node_modules/asn1/LICENSE b/node_modules/asn1/LICENSE
deleted file mode 100644
index 9b5dcdb..0000000
--- a/node_modules/asn1/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Mark Cavage, All rights reserved.
-
-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/node_modules/asn1/README.md b/node_modules/asn1/README.md
deleted file mode 100644
index 7cebf7a..0000000
--- a/node_modules/asn1/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.
-Currently BER encoding is supported; at some point I'll likely have to do DER.
-
-## Usage
-
-Mostly, if you're *actually* needing to read and write ASN.1, you probably don't
-need this readme to explain what and why. If you have no idea what ASN.1 is,
-see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc
-
-The source is pretty much self-explanatory, and has read/write methods for the
-common types out there.
-
-### Decoding
-
-The following reads an ASN.1 sequence with a boolean.
-
- var Ber = require('asn1').Ber;
-
- var reader = new Ber.Reader(new Buffer([0x30, 0x03, 0x01, 0x01, 0xff]));
-
- reader.readSequence();
- console.log('Sequence len: ' + reader.length);
- if (reader.peek() === Ber.Boolean)
- console.log(reader.readBoolean());
-
-### Encoding
-
-The following generates the same payload as above.
-
- var Ber = require('asn1').Ber;
-
- var writer = new Ber.Writer();
-
- writer.startSequence();
- writer.writeBoolean(true);
- writer.endSequence();
-
- console.log(writer.buffer);
-
-## Installation
-
- npm install asn1
-
-## License
-
-MIT.
-
-## Bugs
-
-See .
diff --git a/node_modules/asn1/lib/ber/errors.js b/node_modules/asn1/lib/ber/errors.js
deleted file mode 100644
index ff21d4f..0000000
--- a/node_modules/asn1/lib/ber/errors.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-
-module.exports = {
-
- newInvalidAsn1Error: function(msg) {
- var e = new Error();
- e.name = 'InvalidAsn1Error';
- e.message = msg || '';
- return e;
- }
-
-};
diff --git a/node_modules/asn1/lib/ber/index.js b/node_modules/asn1/lib/ber/index.js
deleted file mode 100644
index 4fb90ae..0000000
--- a/node_modules/asn1/lib/ber/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-var errors = require('./errors');
-var types = require('./types');
-
-var Reader = require('./reader');
-var Writer = require('./writer');
-
-
-///--- Exports
-
-module.exports = {
-
- Reader: Reader,
-
- Writer: Writer
-
-};
-
-for (var t in types) {
- if (types.hasOwnProperty(t))
- module.exports[t] = types[t];
-}
-for (var e in errors) {
- if (errors.hasOwnProperty(e))
- module.exports[e] = errors[e];
-}
diff --git a/node_modules/asn1/lib/ber/reader.js b/node_modules/asn1/lib/ber/reader.js
deleted file mode 100644
index 0a00e98..0000000
--- a/node_modules/asn1/lib/ber/reader.js
+++ /dev/null
@@ -1,261 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-var assert = require('assert');
-
-var ASN1 = require('./types');
-var errors = require('./errors');
-
-
-///--- Globals
-
-var newInvalidAsn1Error = errors.newInvalidAsn1Error;
-
-
-
-///--- API
-
-function Reader(data) {
- if (!data || !Buffer.isBuffer(data))
- throw new TypeError('data must be a node Buffer');
-
- this._buf = data;
- this._size = data.length;
-
- // These hold the "current" state
- this._len = 0;
- this._offset = 0;
-}
-
-Object.defineProperty(Reader.prototype, 'length', {
- enumerable: true,
- get: function () { return (this._len); }
-});
-
-Object.defineProperty(Reader.prototype, 'offset', {
- enumerable: true,
- get: function () { return (this._offset); }
-});
-
-Object.defineProperty(Reader.prototype, 'remain', {
- get: function () { return (this._size - this._offset); }
-});
-
-Object.defineProperty(Reader.prototype, 'buffer', {
- get: function () { return (this._buf.slice(this._offset)); }
-});
-
-
-/**
- * Reads a single byte and advances offset; you can pass in `true` to make this
- * a "peek" operation (i.e., get the byte, but don't advance the offset).
- *
- * @param {Boolean} peek true means don't move offset.
- * @return {Number} the next byte, null if not enough data.
- */
-Reader.prototype.readByte = function(peek) {
- if (this._size - this._offset < 1)
- return null;
-
- var b = this._buf[this._offset] & 0xff;
-
- if (!peek)
- this._offset += 1;
-
- return b;
-};
-
-
-Reader.prototype.peek = function() {
- return this.readByte(true);
-};
-
-
-/**
- * Reads a (potentially) variable length off the BER buffer. This call is
- * not really meant to be called directly, as callers have to manipulate
- * the internal buffer afterwards.
- *
- * As a result of this call, you can call `Reader.length`, until the
- * next thing called that does a readLength.
- *
- * @return {Number} the amount of offset to advance the buffer.
- * @throws {InvalidAsn1Error} on bad ASN.1
- */
-Reader.prototype.readLength = function(offset) {
- if (offset === undefined)
- offset = this._offset;
-
- if (offset >= this._size)
- return null;
-
- var lenB = this._buf[offset++] & 0xff;
- if (lenB === null)
- return null;
-
- if ((lenB & 0x80) == 0x80) {
- lenB &= 0x7f;
-
- if (lenB == 0)
- throw newInvalidAsn1Error('Indefinite length not supported');
-
- if (lenB > 4)
- throw newInvalidAsn1Error('encoding too long');
-
- if (this._size - offset < lenB)
- return null;
-
- this._len = 0;
- for (var i = 0; i < lenB; i++)
- this._len = (this._len << 8) + (this._buf[offset++] & 0xff);
-
- } else {
- // Wasn't a variable length
- this._len = lenB;
- }
-
- return offset;
-};
-
-
-/**
- * Parses the next sequence in this BER buffer.
- *
- * To get the length of the sequence, call `Reader.length`.
- *
- * @return {Number} the sequence's tag.
- */
-Reader.prototype.readSequence = function(tag) {
- var seq = this.peek();
- if (seq === null)
- return null;
- if (tag !== undefined && tag !== seq)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + seq.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
- if (o === null)
- return null;
-
- this._offset = o;
- return seq;
-};
-
-
-Reader.prototype.readInt = function() {
- return this._readTag(ASN1.Integer);
-};
-
-
-Reader.prototype.readBoolean = function() {
- return (this._readTag(ASN1.Boolean) === 0 ? false : true);
-};
-
-
-Reader.prototype.readEnumeration = function() {
- return this._readTag(ASN1.Enumeration);
-};
-
-
-Reader.prototype.readString = function(tag, retbuf) {
- if (!tag)
- tag = ASN1.OctetString;
-
- var b = this.peek();
- if (b === null)
- return null;
-
- if (b !== tag)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + b.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
-
- if (o === null)
- return null;
-
- if (this.length > this._size - o)
- return null;
-
- this._offset = o;
-
- if (this.length === 0)
- return retbuf ? new Buffer(0) : '';
-
- var str = this._buf.slice(this._offset, this._offset + this.length);
- this._offset += this.length;
-
- return retbuf ? str : str.toString('utf8');
-};
-
-Reader.prototype.readOID = function(tag) {
- if (!tag)
- tag = ASN1.OID;
-
- var b = this.readString(tag, true);
- if (b === null)
- return null;
-
- var values = [];
- var value = 0;
-
- for (var i = 0; i < b.length; i++) {
- var byte = b[i] & 0xff;
-
- value <<= 7;
- value += byte & 0x7f;
- if ((byte & 0x80) == 0) {
- values.push(value);
- value = 0;
- }
- }
-
- value = values.shift();
- values.unshift(value % 40);
- values.unshift((value / 40) >> 0);
-
- return values.join('.');
-};
-
-
-Reader.prototype._readTag = function(tag) {
- assert.ok(tag !== undefined);
-
- var b = this.peek();
-
- if (b === null)
- return null;
-
- if (b !== tag)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + b.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
- if (o === null)
- return null;
-
- if (this.length > 4)
- throw newInvalidAsn1Error('Integer too long: ' + this.length);
-
- if (this.length > this._size - o)
- return null;
- this._offset = o;
-
- var fb = this._buf[this._offset];
- var value = 0;
-
- for (var i = 0; i < this.length; i++) {
- value <<= 8;
- value |= (this._buf[this._offset++] & 0xff);
- }
-
- if ((fb & 0x80) == 0x80 && i !== 4)
- value -= (1 << (i * 8));
-
- return value >> 0;
-};
-
-
-
-///--- Exported API
-
-module.exports = Reader;
diff --git a/node_modules/asn1/lib/ber/types.js b/node_modules/asn1/lib/ber/types.js
deleted file mode 100644
index 8aea000..0000000
--- a/node_modules/asn1/lib/ber/types.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-
-module.exports = {
- EOC: 0,
- Boolean: 1,
- Integer: 2,
- BitString: 3,
- OctetString: 4,
- Null: 5,
- OID: 6,
- ObjectDescriptor: 7,
- External: 8,
- Real: 9, // float
- Enumeration: 10,
- PDV: 11,
- Utf8String: 12,
- RelativeOID: 13,
- Sequence: 16,
- Set: 17,
- NumericString: 18,
- PrintableString: 19,
- T61String: 20,
- VideotexString: 21,
- IA5String: 22,
- UTCTime: 23,
- GeneralizedTime: 24,
- GraphicString: 25,
- VisibleString: 26,
- GeneralString: 28,
- UniversalString: 29,
- CharacterString: 30,
- BMPString: 31,
- Constructor: 32,
- Context: 128
-};
diff --git a/node_modules/asn1/lib/ber/writer.js b/node_modules/asn1/lib/ber/writer.js
deleted file mode 100644
index d9d99af..0000000
--- a/node_modules/asn1/lib/ber/writer.js
+++ /dev/null
@@ -1,316 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-var assert = require('assert');
-var ASN1 = require('./types');
-var errors = require('./errors');
-
-
-///--- Globals
-
-var newInvalidAsn1Error = errors.newInvalidAsn1Error;
-
-var DEFAULT_OPTS = {
- size: 1024,
- growthFactor: 8
-};
-
-
-///--- Helpers
-
-function merge(from, to) {
- assert.ok(from);
- assert.equal(typeof(from), 'object');
- assert.ok(to);
- assert.equal(typeof(to), 'object');
-
- var keys = Object.getOwnPropertyNames(from);
- keys.forEach(function(key) {
- if (to[key])
- return;
-
- var value = Object.getOwnPropertyDescriptor(from, key);
- Object.defineProperty(to, key, value);
- });
-
- return to;
-}
-
-
-
-///--- API
-
-function Writer(options) {
- options = merge(DEFAULT_OPTS, options || {});
-
- this._buf = new Buffer(options.size || 1024);
- this._size = this._buf.length;
- this._offset = 0;
- this._options = options;
-
- // A list of offsets in the buffer where we need to insert
- // sequence tag/len pairs.
- this._seq = [];
-}
-
-Object.defineProperty(Writer.prototype, 'buffer', {
- get: function () {
- if (this._seq.length)
- throw new InvalidAsn1Error(this._seq.length + ' unended sequence(s)');
-
- return (this._buf.slice(0, this._offset));
- }
-});
-
-Writer.prototype.writeByte = function(b) {
- if (typeof(b) !== 'number')
- throw new TypeError('argument must be a Number');
-
- this._ensure(1);
- this._buf[this._offset++] = b;
-};
-
-
-Writer.prototype.writeInt = function(i, tag) {
- if (typeof(i) !== 'number')
- throw new TypeError('argument must be a Number');
- if (typeof(tag) !== 'number')
- tag = ASN1.Integer;
-
- var sz = 4;
-
- while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000 >> 0)) &&
- (sz > 1)) {
- sz--;
- i <<= 8;
- }
-
- if (sz > 4)
- throw new InvalidAsn1Error('BER ints cannot be > 0xffffffff');
-
- this._ensure(2 + sz);
- this._buf[this._offset++] = tag;
- this._buf[this._offset++] = sz;
-
- while (sz-- > 0) {
- this._buf[this._offset++] = ((i & 0xff000000) >>> 24);
- i <<= 8;
- }
-
-};
-
-
-Writer.prototype.writeNull = function() {
- this.writeByte(ASN1.Null);
- this.writeByte(0x00);
-};
-
-
-Writer.prototype.writeEnumeration = function(i, tag) {
- if (typeof(i) !== 'number')
- throw new TypeError('argument must be a Number');
- if (typeof(tag) !== 'number')
- tag = ASN1.Enumeration;
-
- return this.writeInt(i, tag);
-};
-
-
-Writer.prototype.writeBoolean = function(b, tag) {
- if (typeof(b) !== 'boolean')
- throw new TypeError('argument must be a Boolean');
- if (typeof(tag) !== 'number')
- tag = ASN1.Boolean;
-
- this._ensure(3);
- this._buf[this._offset++] = tag;
- this._buf[this._offset++] = 0x01;
- this._buf[this._offset++] = b ? 0xff : 0x00;
-};
-
-
-Writer.prototype.writeString = function(s, tag) {
- if (typeof(s) !== 'string')
- throw new TypeError('argument must be a string (was: ' + typeof(s) + ')');
- if (typeof(tag) !== 'number')
- tag = ASN1.OctetString;
-
- var len = Buffer.byteLength(s);
- this.writeByte(tag);
- this.writeLength(len);
- if (len) {
- this._ensure(len);
- this._buf.write(s, this._offset);
- this._offset += len;
- }
-};
-
-
-Writer.prototype.writeBuffer = function(buf, tag) {
- if (typeof(tag) !== 'number')
- throw new TypeError('tag must be a number');
- if (!Buffer.isBuffer(buf))
- throw new TypeError('argument must be a buffer');
-
- this.writeByte(tag);
- this.writeLength(buf.length);
- this._ensure(buf.length);
- buf.copy(this._buf, this._offset, 0, buf.length);
- this._offset += buf.length;
-};
-
-
-Writer.prototype.writeStringArray = function(strings) {
- if ((!strings instanceof Array))
- throw new TypeError('argument must be an Array[String]');
-
- var self = this;
- strings.forEach(function(s) {
- self.writeString(s);
- });
-};
-
-// This is really to solve DER cases, but whatever for now
-Writer.prototype.writeOID = function(s, tag) {
- if (typeof(s) !== 'string')
- throw new TypeError('argument must be a string');
- if (typeof(tag) !== 'number')
- tag = ASN1.OID;
-
- if (!/^([0-9]+\.){3,}[0-9]+$/.test(s))
- throw new Error('argument is not a valid OID string');
-
- function encodeOctet(bytes, octet) {
- if (octet < 128) {
- bytes.push(octet);
- } else if (octet < 16384) {
- bytes.push((octet >>> 7) | 0x80);
- bytes.push(octet & 0x7F);
- } else if (octet < 2097152) {
- bytes.push((octet >>> 14) | 0x80);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- } else if (octet < 268435456) {
- bytes.push((octet >>> 21) | 0x80);
- bytes.push(((octet >>> 14) | 0x80) & 0xFF);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- } else {
- bytes.push(((octet >>> 28) | 0x80) & 0xFF);
- bytes.push(((octet >>> 21) | 0x80) & 0xFF);
- bytes.push(((octet >>> 14) | 0x80) & 0xFF);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- }
- }
-
- var tmp = s.split('.');
- var bytes = [];
- bytes.push(parseInt(tmp[0], 10) * 40 + parseInt(tmp[1], 10));
- tmp.slice(2).forEach(function(b) {
- encodeOctet(bytes, parseInt(b, 10));
- });
-
- var self = this;
- this._ensure(2 + bytes.length);
- this.writeByte(tag);
- this.writeLength(bytes.length);
- bytes.forEach(function(b) {
- self.writeByte(b);
- });
-};
-
-
-Writer.prototype.writeLength = function(len) {
- if (typeof(len) !== 'number')
- throw new TypeError('argument must be a Number');
-
- this._ensure(4);
-
- if (len <= 0x7f) {
- this._buf[this._offset++] = len;
- } else if (len <= 0xff) {
- this._buf[this._offset++] = 0x81;
- this._buf[this._offset++] = len;
- } else if (len <= 0xffff) {
- this._buf[this._offset++] = 0x82;
- this._buf[this._offset++] = len >> 8;
- this._buf[this._offset++] = len;
- } else if (len <= 0xffffff) {
- this._buf[this._offset++] = 0x83;
- this._buf[this._offset++] = len >> 16;
- this._buf[this._offset++] = len >> 8;
- this._buf[this._offset++] = len;
- } else {
- throw new InvalidAsn1ERror('Length too long (> 4 bytes)');
- }
-};
-
-Writer.prototype.startSequence = function(tag) {
- if (typeof(tag) !== 'number')
- tag = ASN1.Sequence | ASN1.Constructor;
-
- this.writeByte(tag);
- this._seq.push(this._offset);
- this._ensure(3);
- this._offset += 3;
-};
-
-
-Writer.prototype.endSequence = function() {
- var seq = this._seq.pop();
- var start = seq + 3;
- var len = this._offset - start;
-
- if (len <= 0x7f) {
- this._shift(start, len, -2);
- this._buf[seq] = len;
- } else if (len <= 0xff) {
- this._shift(start, len, -1);
- this._buf[seq] = 0x81;
- this._buf[seq + 1] = len;
- } else if (len <= 0xffff) {
- this._buf[seq] = 0x82;
- this._buf[seq + 1] = len >> 8;
- this._buf[seq + 2] = len;
- } else if (len <= 0xffffff) {
- this._shift(start, len, 1);
- this._buf[seq] = 0x83;
- this._buf[seq + 1] = len >> 16;
- this._buf[seq + 2] = len >> 8;
- this._buf[seq + 3] = len;
- } else {
- throw new InvalidAsn1Error('Sequence too long');
- }
-};
-
-
-Writer.prototype._shift = function(start, len, shift) {
- assert.ok(start !== undefined);
- assert.ok(len !== undefined);
- assert.ok(shift);
-
- this._buf.copy(this._buf, start + shift, start, start + len);
- this._offset += shift;
-};
-
-Writer.prototype._ensure = function(len) {
- assert.ok(len);
-
- if (this._size - this._offset < len) {
- var sz = this._size * this._options.growthFactor;
- if (sz - this._offset < len)
- sz += len;
-
- var buf = new Buffer(sz);
-
- this._buf.copy(buf, 0, 0, this._offset);
- this._buf = buf;
- this._size = sz;
- }
-};
-
-
-
-///--- Exported API
-
-module.exports = Writer;
diff --git a/node_modules/asn1/lib/index.js b/node_modules/asn1/lib/index.js
deleted file mode 100644
index d1766e7..0000000
--- a/node_modules/asn1/lib/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-// If you have no idea what ASN.1 or BER is, see this:
-// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc
-
-var Ber = require('./ber/index');
-
-
-
-///--- Exported API
-
-module.exports = {
-
- Ber: Ber,
-
- BerReader: Ber.Reader,
-
- BerWriter: Ber.Writer
-
-};
diff --git a/node_modules/asn1/package.json b/node_modules/asn1/package.json
deleted file mode 100644
index cb81cb2..0000000
--- a/node_modules/asn1/package.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "asn1@~0.2.3",
- "scope": null,
- "escapedName": "asn1",
- "name": "asn1",
- "rawSpec": "~0.2.3",
- "spec": ">=0.2.3 <0.3.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/sshpk"
- ]
- ],
- "_from": "asn1@>=0.2.3 <0.3.0",
- "_id": "asn1@0.2.3",
- "_inCache": true,
- "_location": "/asn1",
- "_npmUser": {
- "name": "pfmooney",
- "email": "patrick.f.mooney@gmail.com"
- },
- "_npmVersion": "1.4.28",
- "_phantomChildren": {},
- "_requested": {
- "raw": "asn1@~0.2.3",
- "scope": null,
- "escapedName": "asn1",
- "name": "asn1",
- "rawSpec": "~0.2.3",
- "spec": ">=0.2.3 <0.3.0",
- "type": "range"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
- "_shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
- "_shrinkwrap": null,
- "_spec": "asn1@~0.2.3",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/sshpk",
- "author": {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/mcavage/node-asn1/issues"
- },
- "contributors": [
- {
- "name": "David Gwynne",
- "email": "loki@animata.net"
- },
- {
- "name": "Yunong Xiao",
- "email": "yunong@joyent.com"
- },
- {
- "name": "Alex Wilson",
- "email": "alex.wilson@joyent.com"
- }
- ],
- "dependencies": {},
- "description": "Contains parsers and serializers for ASN.1 (currently BER only)",
- "devDependencies": {
- "tap": "0.4.8"
- },
- "directories": {},
- "dist": {
- "shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
- "tarball": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz"
- },
- "homepage": "https://github.com/mcavage/node-asn1",
- "license": "MIT",
- "main": "lib/index.js",
- "maintainers": [
- {
- "name": "mcavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "pfmooney",
- "email": "patrick.f.mooney@gmail.com"
- }
- ],
- "name": "asn1",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/mcavage/node-asn1.git"
- },
- "scripts": {
- "test": "tap ./tst"
- },
- "version": "0.2.3"
-}
diff --git a/node_modules/asn1/tst/ber/reader.test.js b/node_modules/asn1/tst/ber/reader.test.js
deleted file mode 100644
index 062fd7e..0000000
--- a/node_modules/asn1/tst/ber/reader.test.js
+++ /dev/null
@@ -1,208 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-var test = require('tap').test;
-
-
-
-///--- Globals
-
-var BerReader;
-
-
-
-///--- Tests
-
-test('load library', function(t) {
- BerReader = require('../../lib/index').BerReader;
- t.ok(BerReader);
- try {
- new BerReader();
- t.fail('Should have thrown');
- } catch (e) {
- t.ok(e instanceof TypeError, 'Should have been a type error');
- }
- t.end();
-});
-
-
-test('read byte', function(t) {
- var reader = new BerReader(new Buffer([0xde]));
- t.ok(reader);
- t.equal(reader.readByte(), 0xde, 'wrong value');
- t.end();
-});
-
-
-test('read 1 byte int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x01, 0x03]));
- t.ok(reader);
- t.equal(reader.readInt(), 0x03, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('read 2 byte int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x02, 0x7e, 0xde]));
- t.ok(reader);
- t.equal(reader.readInt(), 0x7ede, 'wrong value');
- t.equal(reader.length, 0x02, 'wrong length');
- t.end();
-});
-
-
-test('read 3 byte int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x03, 0x7e, 0xde, 0x03]));
- t.ok(reader);
- t.equal(reader.readInt(), 0x7ede03, 'wrong value');
- t.equal(reader.length, 0x03, 'wrong length');
- t.end();
-});
-
-
-test('read 4 byte int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x04, 0x7e, 0xde, 0x03, 0x01]));
- t.ok(reader);
- t.equal(reader.readInt(), 0x7ede0301, 'wrong value');
- t.equal(reader.length, 0x04, 'wrong length');
- t.end();
-});
-
-
-test('read 1 byte negative int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x01, 0xdc]));
- t.ok(reader);
- t.equal(reader.readInt(), -36, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('read 2 byte negative int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x02, 0xc0, 0x4e]));
- t.ok(reader);
- t.equal(reader.readInt(), -16306, 'wrong value');
- t.equal(reader.length, 0x02, 'wrong length');
- t.end();
-});
-
-
-test('read 3 byte negative int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x03, 0xff, 0x00, 0x19]));
- t.ok(reader);
- t.equal(reader.readInt(), -65511, 'wrong value');
- t.equal(reader.length, 0x03, 'wrong length');
- t.end();
-});
-
-
-test('read 4 byte negative int', function(t) {
- var reader = new BerReader(new Buffer([0x02, 0x04, 0x91, 0x7c, 0x22, 0x1f]));
- t.ok(reader);
- t.equal(reader.readInt(), -1854135777, 'wrong value');
- t.equal(reader.length, 0x04, 'wrong length');
- t.end();
-});
-
-
-test('read boolean true', function(t) {
- var reader = new BerReader(new Buffer([0x01, 0x01, 0xff]));
- t.ok(reader);
- t.equal(reader.readBoolean(), true, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('read boolean false', function(t) {
- var reader = new BerReader(new Buffer([0x01, 0x01, 0x00]));
- t.ok(reader);
- t.equal(reader.readBoolean(), false, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('read enumeration', function(t) {
- var reader = new BerReader(new Buffer([0x0a, 0x01, 0x20]));
- t.ok(reader);
- t.equal(reader.readEnumeration(), 0x20, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('read string', function(t) {
- var dn = 'cn=foo,ou=unit,o=test';
- var buf = new Buffer(dn.length + 2);
- buf[0] = 0x04;
- buf[1] = Buffer.byteLength(dn);
- buf.write(dn, 2);
- var reader = new BerReader(buf);
- t.ok(reader);
- t.equal(reader.readString(), dn, 'wrong value');
- t.equal(reader.length, dn.length, 'wrong length');
- t.end();
-});
-
-
-test('read sequence', function(t) {
- var reader = new BerReader(new Buffer([0x30, 0x03, 0x01, 0x01, 0xff]));
- t.ok(reader);
- t.equal(reader.readSequence(), 0x30, 'wrong value');
- t.equal(reader.length, 0x03, 'wrong length');
- t.equal(reader.readBoolean(), true, 'wrong value');
- t.equal(reader.length, 0x01, 'wrong length');
- t.end();
-});
-
-
-test('anonymous LDAPv3 bind', function(t) {
- var BIND = new Buffer(14);
- BIND[0] = 0x30; // Sequence
- BIND[1] = 12; // len
- BIND[2] = 0x02; // ASN.1 Integer
- BIND[3] = 1; // len
- BIND[4] = 0x04; // msgid (make up 4)
- BIND[5] = 0x60; // Bind Request
- BIND[6] = 7; // len
- BIND[7] = 0x02; // ASN.1 Integer
- BIND[8] = 1; // len
- BIND[9] = 0x03; // v3
- BIND[10] = 0x04; // String (bind dn)
- BIND[11] = 0; // len
- BIND[12] = 0x80; // ContextSpecific (choice)
- BIND[13] = 0; // simple bind
-
- // Start testing ^^
- var ber = new BerReader(BIND);
- t.equal(ber.readSequence(), 48, 'Not an ASN.1 Sequence');
- t.equal(ber.length, 12, 'Message length should be 12');
- t.equal(ber.readInt(), 4, 'Message id should have been 4');
- t.equal(ber.readSequence(), 96, 'Bind Request should have been 96');
- t.equal(ber.length, 7, 'Bind length should have been 7');
- t.equal(ber.readInt(), 3, 'LDAP version should have been 3');
- t.equal(ber.readString(), '', 'Bind DN should have been empty');
- t.equal(ber.length, 0, 'string length should have been 0');
- t.equal(ber.readByte(), 0x80, 'Should have been ContextSpecific (choice)');
- t.equal(ber.readByte(), 0, 'Should have been simple bind');
- t.equal(null, ber.readByte(), 'Should be out of data');
- t.end();
-});
-
-
-test('long string', function(t) {
- var buf = new Buffer(256);
- var o;
- var s =
- '2;649;CN=Red Hat CS 71GA Demo,O=Red Hat CS 71GA Demo,C=US;' +
- 'CN=RHCS Agent - admin01,UID=admin01,O=redhat,C=US [1] This is ' +
- 'Teena Vradmin\'s description.';
- buf[0] = 0x04;
- buf[1] = 0x81;
- buf[2] = 0x94;
- buf.write(s, 3);
- var ber = new BerReader(buf.slice(0, 3 + s.length));
- t.equal(ber.readString(), s);
- t.end();
-});
diff --git a/node_modules/asn1/tst/ber/writer.test.js b/node_modules/asn1/tst/ber/writer.test.js
deleted file mode 100644
index d87cb7b..0000000
--- a/node_modules/asn1/tst/ber/writer.test.js
+++ /dev/null
@@ -1,370 +0,0 @@
-// Copyright 2011 Mark Cavage All rights reserved.
-
-var test = require('tap').test;
-var sys = require('sys');
-
-///--- Globals
-
-var BerWriter;
-
-var BerReader;
-
-
-///--- Tests
-
-test('load library', function(t) {
- BerWriter = require('../../lib/index').BerWriter;
- t.ok(BerWriter);
- t.ok(new BerWriter());
- t.end();
-});
-
-
-test('write byte', function(t) {
- var writer = new BerWriter();
-
- writer.writeByte(0xC2);
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 1, 'Wrong length');
- t.equal(ber[0], 0xC2, 'value wrong');
-
- t.end();
-});
-
-
-test('write 1 byte int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(0x7f);
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 3, 'Wrong length for an int: ' + ber.length);
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong (2) -> ' + ber[0]);
- t.equal(ber[1], 0x01, 'length wrong(1) -> ' + ber[1]);
- t.equal(ber[2], 0x7f, 'value wrong(3) -> ' + ber[2]);
-
- t.end();
-});
-
-
-test('write 2 byte int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(0x7ffe);
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 4, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x02, 'length wrong');
- t.equal(ber[2], 0x7f, 'value wrong (byte 1)');
- t.equal(ber[3], 0xfe, 'value wrong (byte 2)');
-
- t.end();
-});
-
-
-test('write 3 byte int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(0x7ffffe);
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 5, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x03, 'length wrong');
- t.equal(ber[2], 0x7f, 'value wrong (byte 1)');
- t.equal(ber[3], 0xff, 'value wrong (byte 2)');
- t.equal(ber[4], 0xfe, 'value wrong (byte 3)');
-
- t.end();
-});
-
-
-test('write 4 byte int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(0x7ffffffe);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 6, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x04, 'length wrong');
- t.equal(ber[2], 0x7f, 'value wrong (byte 1)');
- t.equal(ber[3], 0xff, 'value wrong (byte 2)');
- t.equal(ber[4], 0xff, 'value wrong (byte 3)');
- t.equal(ber[5], 0xfe, 'value wrong (byte 4)');
-
- t.end();
-});
-
-
-test('write 1 byte negative int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(-128);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 3, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x01, 'length wrong');
- t.equal(ber[2], 0x80, 'value wrong (byte 1)');
-
- t.end();
-});
-
-
-test('write 2 byte negative int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(-22400);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 4, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x02, 'length wrong');
- t.equal(ber[2], 0xa8, 'value wrong (byte 1)');
- t.equal(ber[3], 0x80, 'value wrong (byte 2)');
-
- t.end();
-});
-
-
-test('write 3 byte negative int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(-481653);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 5, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x03, 'length wrong');
- t.equal(ber[2], 0xf8, 'value wrong (byte 1)');
- t.equal(ber[3], 0xa6, 'value wrong (byte 2)');
- t.equal(ber[4], 0x8b, 'value wrong (byte 3)');
-
- t.end();
-});
-
-
-test('write 4 byte negative int', function(t) {
- var writer = new BerWriter();
-
- writer.writeInt(-1522904131);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 6, 'Wrong length for an int');
- t.equal(ber[0], 0x02, 'ASN.1 tag wrong');
- t.equal(ber[1], 0x04, 'length wrong');
- t.equal(ber[2], 0xa5, 'value wrong (byte 1)');
- t.equal(ber[3], 0x3a, 'value wrong (byte 2)');
- t.equal(ber[4], 0x53, 'value wrong (byte 3)');
- t.equal(ber[5], 0xbd, 'value wrong (byte 4)');
-
- t.end();
-});
-
-
-test('write boolean', function(t) {
- var writer = new BerWriter();
-
- writer.writeBoolean(true);
- writer.writeBoolean(false);
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 6, 'Wrong length');
- t.equal(ber[0], 0x01, 'tag wrong');
- t.equal(ber[1], 0x01, 'length wrong');
- t.equal(ber[2], 0xff, 'value wrong');
- t.equal(ber[3], 0x01, 'tag wrong');
- t.equal(ber[4], 0x01, 'length wrong');
- t.equal(ber[5], 0x00, 'value wrong');
-
- t.end();
-});
-
-
-test('write string', function(t) {
- var writer = new BerWriter();
- writer.writeString('hello world');
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 13, 'wrong length');
- t.equal(ber[0], 0x04, 'wrong tag');
- t.equal(ber[1], 11, 'wrong length');
- t.equal(ber.slice(2).toString('utf8'), 'hello world', 'wrong value');
-
- t.end();
-});
-
-test('write buffer', function(t) {
- var writer = new BerWriter();
- // write some stuff to start with
- writer.writeString('hello world');
- var ber = writer.buffer;
- var buf = new Buffer([0x04, 0x0b, 0x30, 0x09, 0x02, 0x01, 0x0f, 0x01, 0x01,
- 0xff, 0x01, 0x01, 0xff]);
- writer.writeBuffer(buf.slice(2, buf.length), 0x04);
- ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 26, 'wrong length');
- t.equal(ber[0], 0x04, 'wrong tag');
- t.equal(ber[1], 11, 'wrong length');
- t.equal(ber.slice(2, 13).toString('utf8'), 'hello world', 'wrong value');
- t.equal(ber[13], buf[0], 'wrong tag');
- t.equal(ber[14], buf[1], 'wrong length');
- for (var i = 13, j = 0; i < ber.length && j < buf.length; i++, j++) {
- t.equal(ber[i], buf[j], 'buffer contents not identical');
- }
- t.end();
-});
-
-test('write string array', function(t) {
- var writer = new BerWriter();
- writer.writeStringArray(['hello world', 'fubar!']);
- var ber = writer.buffer;
-
- t.ok(ber);
-
- t.equal(ber.length, 21, 'wrong length');
- t.equal(ber[0], 0x04, 'wrong tag');
- t.equal(ber[1], 11, 'wrong length');
- t.equal(ber.slice(2, 13).toString('utf8'), 'hello world', 'wrong value');
-
- t.equal(ber[13], 0x04, 'wrong tag');
- t.equal(ber[14], 6, 'wrong length');
- t.equal(ber.slice(15).toString('utf8'), 'fubar!', 'wrong value');
-
- t.end();
-});
-
-
-test('resize internal buffer', function(t) {
- var writer = new BerWriter({size: 2});
- writer.writeString('hello world');
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 13, 'wrong length');
- t.equal(ber[0], 0x04, 'wrong tag');
- t.equal(ber[1], 11, 'wrong length');
- t.equal(ber.slice(2).toString('utf8'), 'hello world', 'wrong value');
-
- t.end();
-});
-
-
-test('sequence', function(t) {
- var writer = new BerWriter({size: 25});
- writer.startSequence();
- writer.writeString('hello world');
- writer.endSequence();
- var ber = writer.buffer;
-
- t.ok(ber);
- console.log(ber);
- t.equal(ber.length, 15, 'wrong length');
- t.equal(ber[0], 0x30, 'wrong tag');
- t.equal(ber[1], 13, 'wrong length');
- t.equal(ber[2], 0x04, 'wrong tag');
- t.equal(ber[3], 11, 'wrong length');
- t.equal(ber.slice(4).toString('utf8'), 'hello world', 'wrong value');
-
- t.end();
-});
-
-
-test('nested sequence', function(t) {
- var writer = new BerWriter({size: 25});
- writer.startSequence();
- writer.writeString('hello world');
- writer.startSequence();
- writer.writeString('hello world');
- writer.endSequence();
- writer.endSequence();
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 30, 'wrong length');
- t.equal(ber[0], 0x30, 'wrong tag');
- t.equal(ber[1], 28, 'wrong length');
- t.equal(ber[2], 0x04, 'wrong tag');
- t.equal(ber[3], 11, 'wrong length');
- t.equal(ber.slice(4, 15).toString('utf8'), 'hello world', 'wrong value');
- t.equal(ber[15], 0x30, 'wrong tag');
- t.equal(ber[16], 13, 'wrong length');
- t.equal(ber[17], 0x04, 'wrong tag');
- t.equal(ber[18], 11, 'wrong length');
- t.equal(ber.slice(19, 30).toString('utf8'), 'hello world', 'wrong value');
-
- t.end();
-});
-
-
-test('LDAP bind message', function(t) {
- var dn = 'cn=foo,ou=unit,o=test';
- var writer = new BerWriter();
- writer.startSequence();
- writer.writeInt(3); // msgid = 3
- writer.startSequence(0x60); // ldap bind
- writer.writeInt(3); // ldap v3
- writer.writeString(dn);
- writer.writeByte(0x80);
- writer.writeByte(0x00);
- writer.endSequence();
- writer.endSequence();
- var ber = writer.buffer;
-
- t.ok(ber);
- t.equal(ber.length, 35, 'wrong length (buffer)');
- t.equal(ber[0], 0x30, 'wrong tag');
- t.equal(ber[1], 33, 'wrong length');
- t.equal(ber[2], 0x02, 'wrong tag');
- t.equal(ber[3], 1, 'wrong length');
- t.equal(ber[4], 0x03, 'wrong value');
- t.equal(ber[5], 0x60, 'wrong tag');
- t.equal(ber[6], 28, 'wrong length');
- t.equal(ber[7], 0x02, 'wrong tag');
- t.equal(ber[8], 1, 'wrong length');
- t.equal(ber[9], 0x03, 'wrong value');
- t.equal(ber[10], 0x04, 'wrong tag');
- t.equal(ber[11], dn.length, 'wrong length');
- t.equal(ber.slice(12, 33).toString('utf8'), dn, 'wrong value');
- t.equal(ber[33], 0x80, 'wrong tag');
- t.equal(ber[34], 0x00, 'wrong len');
-
- t.end();
-});
-
-
-test('Write OID', function(t) {
- var oid = '1.2.840.113549.1.1.1';
- var writer = new BerWriter();
- writer.writeOID(oid);
-
- var ber = writer.buffer;
- t.ok(ber);
- console.log(require('util').inspect(ber));
- console.log(require('util').inspect(new Buffer([0x06, 0x09, 0x2a, 0x86,
- 0x48, 0x86, 0xf7, 0x0d,
- 0x01, 0x01, 0x01])));
-
- t.end();
-});
diff --git a/node_modules/assert-plus/AUTHORS b/node_modules/assert-plus/AUTHORS
deleted file mode 100644
index 1923524..0000000
--- a/node_modules/assert-plus/AUTHORS
+++ /dev/null
@@ -1,6 +0,0 @@
-Dave Eddy
-Fred Kuo
-Lars-Magnus Skog
-Mark Cavage
-Patrick Mooney
-Rob Gulewich
diff --git a/node_modules/assert-plus/CHANGES.md b/node_modules/assert-plus/CHANGES.md
deleted file mode 100644
index d249d9b..0000000
--- a/node_modules/assert-plus/CHANGES.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# assert-plus Changelog
-
-## 0.2.0
-
-- Fix `assert.object(null)` so it throws
-- Fix optional/arrayOf exports for non-type-of asserts
-- Add optiona/arrayOf exports for Stream/Date/Regex/uuid
-- Add basic unit test coverage
diff --git a/node_modules/assert-plus/README.md b/node_modules/assert-plus/README.md
deleted file mode 100644
index 0b39593..0000000
--- a/node_modules/assert-plus/README.md
+++ /dev/null
@@ -1,155 +0,0 @@
-# assert-plus
-
-This library is a super small wrapper over node's assert module that has two
-things: (1) the ability to disable assertions with the environment variable
-NODE\_NDEBUG, and (2) some API wrappers for argument testing. Like
-`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks
-like this:
-
-```javascript
- var assert = require('assert-plus');
-
- function fooAccount(options, callback) {
- assert.object(options, 'options');
- assert.number(options.id, 'options.id');
- assert.bool(options.isManager, 'options.isManager');
- assert.string(options.name, 'options.name');
- assert.arrayOfString(options.email, 'options.email');
- assert.func(callback, 'callback');
-
- // Do stuff
- callback(null, {});
- }
-```
-
-# API
-
-All methods that *aren't* part of node's core assert API are simply assumed to
-take an argument, and then a string 'name' that's not a message; `AssertionError`
-will be thrown if the assertion fails with a message like:
-
- AssertionError: foo (string) is required
- at test (/home/mark/work/foo/foo.js:3:9)
- at Object. (/home/mark/work/foo/foo.js:15:1)
- at Module._compile (module.js:446:26)
- at Object..js (module.js:464:10)
- at Module.load (module.js:353:31)
- at Function._load (module.js:311:12)
- at Array.0 (module.js:484:10)
- at EventEmitter._tickCallback (node.js:190:38)
-
-from:
-
-```javascript
- function test(foo) {
- assert.string(foo, 'foo');
- }
-```
-
-There you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`:
-
-```javascript
- function test(foo) {
- assert.arrayOfString(foo, 'foo');
- }
-```
-
-You can assert IFF an argument is not `undefined` (i.e., an optional arg):
-
-```javascript
- assert.optionalString(foo, 'foo');
-```
-
-Lastly, you can opt-out of assertion checking altogether by setting the
-environment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have
-lots of assertions, and don't want to pay `typeof ()` taxes to v8 in
-production. Be advised: The standard functions re-exported from `assert` are
-also disabled in assert-plus if NDEBUG is specified. Using them directly from
-the `assert` module avoids this behavior.
-
-The complete list of APIs is:
-
-* assert.array
-* assert.bool
-* assert.buffer
-* assert.func
-* assert.number
-* assert.object
-* assert.string
-* assert.stream
-* assert.date
-* assert.regex
-* assert.uuid
-* assert.arrayOfArray
-* assert.arrayOfBool
-* assert.arrayOfBuffer
-* assert.arrayOfFunc
-* assert.arrayOfNumber
-* assert.arrayOfObject
-* assert.arrayOfString
-* assert.arrayOfStream
-* assert.arrayOfDate
-* assert.arrayOfUuid
-* assert.optionalArray
-* assert.optionalBool
-* assert.optionalBuffer
-* assert.optionalFunc
-* assert.optionalNumber
-* assert.optionalObject
-* assert.optionalString
-* assert.optionalStream
-* assert.optionalDate
-* assert.optionalUuid
-* assert.optionalArrayOfArray
-* assert.optionalArrayOfBool
-* assert.optionalArrayOfBuffer
-* assert.optionalArrayOfFunc
-* assert.optionalArrayOfNumber
-* assert.optionalArrayOfObject
-* assert.optionalArrayOfString
-* assert.optionalArrayOfStream
-* assert.optionalArrayOfDate
-* assert.optionalArrayOfUuid
-* assert.AssertionError
-* assert.fail
-* assert.ok
-* assert.equal
-* assert.notEqual
-* assert.deepEqual
-* assert.notDeepEqual
-* assert.strictEqual
-* assert.notStrictEqual
-* assert.throws
-* assert.doesNotThrow
-* assert.ifError
-
-# Installation
-
- npm install assert-plus
-
-## License
-
-The MIT License (MIT)
-Copyright (c) 2012 Mark Cavage
-
-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.
-
-## Bugs
-
-See .
diff --git a/node_modules/assert-plus/assert.js b/node_modules/assert-plus/assert.js
deleted file mode 100644
index 6bce4d8..0000000
--- a/node_modules/assert-plus/assert.js
+++ /dev/null
@@ -1,206 +0,0 @@
-// Copyright (c) 2012, Mark Cavage. All rights reserved.
-// Copyright 2015 Joyent, Inc.
-
-var assert = require('assert');
-var Stream = require('stream').Stream;
-var util = require('util');
-
-
-///--- Globals
-
-/* JSSTYLED */
-var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
-
-
-///--- Internal
-
-function _capitalize(str) {
- return (str.charAt(0).toUpperCase() + str.slice(1));
-}
-
-function _toss(name, expected, oper, arg, actual) {
- throw new assert.AssertionError({
- message: util.format('%s (%s) is required', name, expected),
- actual: (actual === undefined) ? typeof (arg) : actual(arg),
- expected: expected,
- operator: oper || '===',
- stackStartFunction: _toss.caller
- });
-}
-
-function _getClass(arg) {
- return (Object.prototype.toString.call(arg).slice(8, -1));
-}
-
-function noop() {
- // Why even bother with asserts?
-}
-
-
-///--- Exports
-
-var types = {
- bool: {
- check: function (arg) { return typeof (arg) === 'boolean'; }
- },
- func: {
- check: function (arg) { return typeof (arg) === 'function'; }
- },
- string: {
- check: function (arg) { return typeof (arg) === 'string'; }
- },
- object: {
- check: function (arg) {
- return typeof (arg) === 'object' && arg !== null;
- }
- },
- number: {
- check: function (arg) {
- return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg);
- }
- },
- buffer: {
- check: function (arg) { return Buffer.isBuffer(arg); },
- operator: 'Buffer.isBuffer'
- },
- array: {
- check: function (arg) { return Array.isArray(arg); },
- operator: 'Array.isArray'
- },
- stream: {
- check: function (arg) { return arg instanceof Stream; },
- operator: 'instanceof',
- actual: _getClass
- },
- date: {
- check: function (arg) { return arg instanceof Date; },
- operator: 'instanceof',
- actual: _getClass
- },
- regexp: {
- check: function (arg) { return arg instanceof RegExp; },
- operator: 'instanceof',
- actual: _getClass
- },
- uuid: {
- check: function (arg) {
- return typeof (arg) === 'string' && UUID_REGEXP.test(arg);
- },
- operator: 'isUUID'
- }
-};
-
-function _setExports(ndebug) {
- var keys = Object.keys(types);
- var out;
-
- /* re-export standard assert */
- if (process.env.NODE_NDEBUG) {
- out = noop;
- } else {
- out = function (arg, msg) {
- if (!arg) {
- _toss(msg, 'true', arg);
- }
- };
- }
-
- /* standard checks */
- keys.forEach(function (k) {
- if (ndebug) {
- out[k] = noop;
- return;
- }
- var type = types[k];
- out[k] = function (arg, msg) {
- if (!type.check(arg)) {
- _toss(msg, k, type.operator, arg, type.actual);
- }
- };
- });
-
- /* optional checks */
- keys.forEach(function (k) {
- var name = 'optional' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- out[name] = function (arg, msg) {
- if (arg === undefined || arg === null) {
- return;
- }
- if (!type.check(arg)) {
- _toss(msg, k, type.operator, arg, type.actual);
- }
- };
- });
-
- /* arrayOf checks */
- keys.forEach(function (k) {
- var name = 'arrayOf' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- var expected = '[' + k + ']';
- out[name] = function (arg, msg) {
- if (!Array.isArray(arg)) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- var i;
- for (i = 0; i < arg.length; i++) {
- if (!type.check(arg[i])) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- }
- };
- });
-
- /* optionalArrayOf checks */
- keys.forEach(function (k) {
- var name = 'optionalArrayOf' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- var expected = '[' + k + ']';
- out[name] = function (arg, msg) {
- if (arg === undefined || arg === null) {
- return;
- }
- if (!Array.isArray(arg)) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- var i;
- for (i = 0; i < arg.length; i++) {
- if (!type.check(arg[i])) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- }
- };
- });
-
- /* re-export built-in assertions */
- Object.keys(assert).forEach(function (k) {
- if (k === 'AssertionError') {
- out[k] = assert[k];
- return;
- }
- if (ndebug) {
- out[k] = noop;
- return;
- }
- out[k] = assert[k];
- });
-
- /* export ourselves (for unit tests _only_) */
- out._setExports = _setExports;
-
- return out;
-}
-
-module.exports = _setExports(process.env.NODE_NDEBUG);
diff --git a/node_modules/assert-plus/package.json b/node_modules/assert-plus/package.json
deleted file mode 100644
index 9f1c038..0000000
--- a/node_modules/assert-plus/package.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "assert-plus@^0.2.0",
- "scope": null,
- "escapedName": "assert-plus",
- "name": "assert-plus",
- "rawSpec": "^0.2.0",
- "spec": ">=0.2.0 <0.3.0",
- "type": "range"
- },
- "/Users/jose/Documents/GitHub/About/node_modules/http-signature"
- ]
- ],
- "_from": "assert-plus@>=0.2.0 <0.3.0",
- "_id": "assert-plus@0.2.0",
- "_inCache": true,
- "_location": "/assert-plus",
- "_nodeVersion": "0.10.36",
- "_npmUser": {
- "name": "pfmooney",
- "email": "patrick.f.mooney@gmail.com"
- },
- "_npmVersion": "3.3.8",
- "_phantomChildren": {},
- "_requested": {
- "raw": "assert-plus@^0.2.0",
- "scope": null,
- "escapedName": "assert-plus",
- "name": "assert-plus",
- "rawSpec": "^0.2.0",
- "spec": ">=0.2.0 <0.3.0",
- "type": "range"
- },
- "_requiredBy": [
- "/http-signature"
- ],
- "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
- "_shasum": "d74e1b87e7affc0db8aadb7021f3fe48101ab234",
- "_shrinkwrap": null,
- "_spec": "assert-plus@^0.2.0",
- "_where": "/Users/jose/Documents/GitHub/About/node_modules/http-signature",
- "author": {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/mcavage/node-assert-plus/issues"
- },
- "contributors": [
- {
- "name": "Dave Eddy",
- "email": "dave@daveeddy.com"
- },
- {
- "name": "Fred Kuo",
- "email": "fred.kuo@joyent.com"
- },
- {
- "name": "Lars-Magnus Skog",
- "email": "ralphtheninja@riseup.net"
- },
- {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "Patrick Mooney",
- "email": "pmooney@pfmooney.com"
- },
- {
- "name": "Rob Gulewich",
- "email": "robert.gulewich@joyent.com"
- }
- ],
- "dependencies": {},
- "description": "Extra assertions on top of node's assert module",
- "devDependencies": {
- "faucet": "0.0.1",
- "tape": "4.2.2"
- },
- "directories": {},
- "dist": {
- "shasum": "d74e1b87e7affc0db8aadb7021f3fe48101ab234",
- "tarball": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz"
- },
- "engines": {
- "node": ">=0.8"
- },
- "homepage": "https://github.com/mcavage/node-assert-plus#readme",
- "license": "MIT",
- "main": "./assert.js",
- "maintainers": [
- {
- "name": "mcavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "pfmooney",
- "email": "patrick.f.mooney@gmail.com"
- }
- ],
- "name": "assert-plus",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mcavage/node-assert-plus.git"
- },
- "scripts": {
- "test": "tape tests/*.js | ./node_modules/.bin/faucet"
- },
- "version": "0.2.0"
-}
diff --git a/node_modules/async-each/.npmignore b/node_modules/async-each/.npmignore
deleted file mode 100644
index 3887b2b..0000000
--- a/node_modules/async-each/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-bower.json
-component.json
-CHANGELOG.md
diff --git a/node_modules/async-each/CHANGELOG.md b/node_modules/async-each/CHANGELOG.md
deleted file mode 100644
index bee2548..0000000
--- a/node_modules/async-each/CHANGELOG.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# async-each 1.0.0 (26 November 2015)
-* Bumped version to 1.0.0 (no functional changes)
-
-# async-each 0.1.6 (5 November 2014)
-* Add license to package.json
-
-# async-each 0.1.5 (22 October 2014)
-* Clean up package.json to fix npm warning about `repo`
-
-# async-each 0.1.4 (12 November 2013)
-* Fixed AMD definition.
-
-# async-each 0.1.3 (25 July 2013)
-* Fixed double wrapping of errors.
-
-# async-each 0.1.2 (7 July 2013)
-* Fixed behaviour on empty arrays.
-
-# async-each 0.1.1 (14 June 2013)
-* Wrapped function in closure, enabled strict mode.
-
-# async-each 0.1.0 (14 June 2013)
-* Initial release.
diff --git a/node_modules/async-each/README.md b/node_modules/async-each/README.md
deleted file mode 100644
index a79cbd7..0000000
--- a/node_modules/async-each/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# async-each
-
-No-bullshit, ultra-simple, 35-lines-of-code async parallel forEach function for JavaScript.
-
-We don't need junky 30K async libs. Really.
-
-For browsers and node.js.
-
-## Installation
-* Just include async-each before your scripts.
-* `npm install async-each` if you’re using node.js.
-* `bower install async-each` if you’re using [Bower](http://bower.io).
-
-## Usage
-
-* `each(array, iterator, callback);` — `Array`, `Function`, `(optional) Function`
-* `iterator(item, next)` receives current item and a callback that will mark the item as done. `next` callback receives optional `error, transformedItem` arguments.
-* `callback(error, transformedArray)` optionally receives first error and transformed result `Array`.
-
-Node.js:
-
-```javascript
-var each = require('async-each');
-each(['a.js', 'b.js', 'c.js'], fs.readFile, function(error, contents) {
- if (error) console.error(error);
- console.log('Contents for a, b and c:', contents);
-});
-```
-
-Browser:
-
-```javascript
-window.asyncEach(list, fn, callback);
-```
-
-## License
-
-[The MIT License](https://raw.githubusercontent.com/paulmillr/mit/master/README.md)
diff --git a/node_modules/async-each/index.js b/node_modules/async-each/index.js
deleted file mode 100644
index 1c51c95..0000000
--- a/node_modules/async-each/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// async-each MIT license (by Paul Miller from http://paulmillr.com).
-(function(globals) {
- 'use strict';
- var each = function(items, next, callback) {
- if (!Array.isArray(items)) throw new TypeError('each() expects array as first argument');
- if (typeof next !== 'function') throw new TypeError('each() expects function as second argument');
- if (typeof callback !== 'function') callback = Function.prototype; // no-op
-
- if (items.length === 0) return callback(undefined, items);
-
- var transformed = new Array(items.length);
- var count = 0;
- var returned = false;
-
- items.forEach(function(item, index) {
- next(item, function(error, transformedItem) {
- if (returned) return;
- if (error) {
- returned = true;
- return callback(error);
- }
- transformed[index] = transformedItem;
- count += 1;
- if (count === items.length) return callback(undefined, transformed);
- });
- });
- };
-
- if (typeof define !== 'undefined' && define.amd) {
- define([], function() {
- return each;
- }); // RequireJS
- } else if (typeof module !== 'undefined' && module.exports) {
- module.exports = each; // CommonJS
- } else {
- globals.asyncEach = each; //
-
-```
-
-## Documentation
-
-Some functions are also available in the following forms:
-* `Series` - the same as `` but runs only a single async operation at a time
-* `Limit` - the same as `` but runs a maximum of `limit` async operations at a time
-
-### Collections
-
-* [`each`](#each), `eachSeries`, `eachLimit`
-* [`forEachOf`](#forEachOf), `forEachOfSeries`, `forEachOfLimit`
-* [`map`](#map), `mapSeries`, `mapLimit`
-* [`filter`](#filter), `filterSeries`, `filterLimit`
-* [`reject`](#reject), `rejectSeries`, `rejectLimit`
-* [`reduce`](#reduce), [`reduceRight`](#reduceRight)
-* [`detect`](#detect), `detectSeries`, `detectLimit`
-* [`sortBy`](#sortBy)
-* [`some`](#some), `someLimit`
-* [`every`](#every), `everyLimit`
-* [`concat`](#concat), `concatSeries`
-
-### Control Flow
-
-* [`series`](#seriestasks-callback)
-* [`parallel`](#parallel), `parallelLimit`
-* [`whilst`](#whilst), [`doWhilst`](#doWhilst)
-* [`until`](#until), [`doUntil`](#doUntil)
-* [`during`](#during), [`doDuring`](#doDuring)
-* [`forever`](#forever)
-* [`waterfall`](#waterfall)
-* [`compose`](#compose)
-* [`seq`](#seq)
-* [`applyEach`](#applyEach), `applyEachSeries`
-* [`queue`](#queue), [`priorityQueue`](#priorityQueue)
-* [`cargo`](#cargo)
-* [`auto`](#auto)
-* [`retry`](#retry)
-* [`iterator`](#iterator)
-* [`times`](#times), `timesSeries`, `timesLimit`
-
-### Utils
-
-* [`apply`](#apply)
-* [`nextTick`](#nextTick)
-* [`memoize`](#memoize)
-* [`unmemoize`](#unmemoize)
-* [`ensureAsync`](#ensureAsync)
-* [`constant`](#constant)
-* [`asyncify`](#asyncify)
-* [`wrapSync`](#wrapSync)
-* [`log`](#log)
-* [`dir`](#dir)
-* [`noConflict`](#noConflict)
-
-## Collections
-
-
-
-### each(arr, iterator, [callback])
-
-Applies the function `iterator` to each item in `arr`, in parallel.
-The `iterator` is called with an item from the list, and a callback for when it
-has finished. If the `iterator` passes an error to its `callback`, the main
-`callback` (for the `each` function) is immediately called with the error.
-
-Note, that since this function applies `iterator` to each item in parallel,
-there is no guarantee that the iterator functions will complete in order.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A function to apply to each item in `arr`.
- The iterator is passed a `callback(err)` which must be called once it has
- completed. If no error has occurred, the `callback` should be run without
- arguments or with an explicit `null` argument. The array index is not passed
- to the iterator. If you need the index, use [`forEachOf`](#forEachOf).
-* `callback(err)` - *Optional* A callback which is called when all `iterator` functions
- have finished, or an error occurs.
-
-__Examples__
-
-
-```js
-// assuming openFiles is an array of file names and saveFile is a function
-// to save the modified contents of that file:
-
-async.each(openFiles, saveFile, function(err){
- // if any of the saves produced an error, err would equal that error
-});
-```
-
-```js
-// assuming openFiles is an array of file names
-
-async.each(openFiles, function(file, callback) {
-
- // Perform operation on file here.
- console.log('Processing file ' + file);
-
- if( file.length > 32 ) {
- console.log('This file name is too long');
- callback('File name too long');
- } else {
- // Do work to process file here
- console.log('File processed');
- callback();
- }
-}, function(err){
- // if any of the file processing produced an error, err would equal that error
- if( err ) {
- // One of the iterations produced an error.
- // All processing will now stop.
- console.log('A file failed to process');
- } else {
- console.log('All files have been processed successfully');
- }
-});
-```
-
-__Related__
-
-* eachSeries(arr, iterator, [callback])
-* eachLimit(arr, limit, iterator, [callback])
-
----------------------------------------
-
-
-
-
-### forEachOf(obj, iterator, [callback])
-
-Like `each`, except that it iterates over objects, and passes the key as the second argument to the iterator.
-
-__Arguments__
-
-* `obj` - An object or array to iterate over.
-* `iterator(item, key, callback)` - A function to apply to each item in `obj`.
-The `key` is the item's key, or index in the case of an array. The iterator is
-passed a `callback(err)` which must be called once it has completed. If no
-error has occurred, the callback should be run without arguments or with an
-explicit `null` argument.
-* `callback(err)` - *Optional* A callback which is called when all `iterator` functions have finished, or an error occurs.
-
-__Example__
-
-```js
-var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
-var configs = {};
-
-async.forEachOf(obj, function (value, key, callback) {
- fs.readFile(__dirname + value, "utf8", function (err, data) {
- if (err) return callback(err);
- try {
- configs[key] = JSON.parse(data);
- } catch (e) {
- return callback(e);
- }
- callback();
- })
-}, function (err) {
- if (err) console.error(err.message);
- // configs is now a map of JSON data
- doSomethingWith(configs);
-})
-```
-
-__Related__
-
-* forEachOfSeries(obj, iterator, [callback])
-* forEachOfLimit(obj, limit, iterator, [callback])
-
----------------------------------------
-
-
-### map(arr, iterator, [callback])
-
-Produces a new array of values by mapping each value in `arr` through
-the `iterator` function. The `iterator` is called with an item from `arr` and a
-callback for when it has finished processing. Each of these callback takes 2 arguments:
-an `error`, and the transformed item from `arr`. If `iterator` passes an error to its
-callback, the main `callback` (for the `map` function) is immediately called with the error.
-
-Note, that since this function applies the `iterator` to each item in parallel,
-there is no guarantee that the `iterator` functions will complete in order.
-However, the results array will be in the same order as the original `arr`.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A function to apply to each item in `arr`.
- The iterator is passed a `callback(err, transformed)` which must be called once
- it has completed with an error (which can be `null`) and a transformed item.
-* `callback(err, results)` - *Optional* A callback which is called when all `iterator`
- functions have finished, or an error occurs. Results is an array of the
- transformed items from the `arr`.
-
-__Example__
-
-```js
-async.map(['file1','file2','file3'], fs.stat, function(err, results){
- // results is now an array of stats for each file
-});
-```
-
-__Related__
-* mapSeries(arr, iterator, [callback])
-* mapLimit(arr, limit, iterator, [callback])
-
----------------------------------------
-
-
-
-### filter(arr, iterator, [callback])
-
-__Alias:__ `select`
-
-Returns a new array of all the values in `arr` which pass an async truth test.
-_The callback for each `iterator` call only accepts a single argument of `true` or
-`false`; it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like `fs.exists`. This operation is
-performed in parallel, but the results array will be in the same order as the
-original.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A truth test to apply to each item in `arr`.
- The `iterator` is passed a `callback(truthValue)`, which must be called with a
- boolean argument once it has completed.
-* `callback(results)` - *Optional* A callback which is called after all the `iterator`
- functions have finished.
-
-__Example__
-
-```js
-async.filter(['file1','file2','file3'], fs.exists, function(results){
- // results now equals an array of the existing files
-});
-```
-
-__Related__
-
-* filterSeries(arr, iterator, [callback])
-* filterLimit(arr, limit, iterator, [callback])
-
----------------------------------------
-
-
-### reject(arr, iterator, [callback])
-
-The opposite of [`filter`](#filter). Removes values that pass an `async` truth test.
-
-__Related__
-
-* rejectSeries(arr, iterator, [callback])
-* rejectLimit(arr, limit, iterator, [callback])
-
----------------------------------------
-
-
-### reduce(arr, memo, iterator, [callback])
-
-__Aliases:__ `inject`, `foldl`
-
-Reduces `arr` into a single value using an async `iterator` to return
-each successive step. `memo` is the initial state of the reduction.
-This function only operates in series.
-
-For performance reasons, it may make sense to split a call to this function into
-a parallel map, and then use the normal `Array.prototype.reduce` on the results.
-This function is for situations where each step in the reduction needs to be async;
-if you can get the data before reducing it, then it's probably a good idea to do so.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `memo` - The initial state of the reduction.
-* `iterator(memo, item, callback)` - A function applied to each item in the
- array to produce the next step in the reduction. The `iterator` is passed a
- `callback(err, reduction)` which accepts an optional error as its first
- argument, and the state of the reduction as the second. If an error is
- passed to the callback, the reduction is stopped and the main `callback` is
- immediately called with the error.
-* `callback(err, result)` - *Optional* A callback which is called after all the `iterator`
- functions have finished. Result is the reduced value.
-
-__Example__
-
-```js
-async.reduce([1,2,3], 0, function(memo, item, callback){
- // pointless async:
- process.nextTick(function(){
- callback(null, memo + item)
- });
-}, function(err, result){
- // result is now equal to the last value of memo, which is 6
-});
-```
-
----------------------------------------
-
-
-### reduceRight(arr, memo, iterator, [callback])
-
-__Alias:__ `foldr`
-
-Same as [`reduce`](#reduce), only operates on `arr` in reverse order.
-
-
----------------------------------------
-
-
-### detect(arr, iterator, [callback])
-
-Returns the first value in `arr` that passes an async truth test. The
-`iterator` is applied in parallel, meaning the first iterator to return `true` will
-fire the detect `callback` with that result. That means the result might not be
-the first item in the original `arr` (in terms of order) that passes the test.
-
-If order within the original `arr` is important, then look at [`detectSeries`](#detectSeries).
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A truth test to apply to each item in `arr`.
- The iterator is passed a `callback(truthValue)` which must be called with a
- boolean argument once it has completed. **Note: this callback does not take an error as its first argument.**
-* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns
- `true`, or after all the `iterator` functions have finished. Result will be
- the first item in the array that passes the truth test (iterator) or the
- value `undefined` if none passed. **Note: this callback does not take an error as its first argument.**
-
-__Example__
-
-```js
-async.detect(['file1','file2','file3'], fs.exists, function(result){
- // result now equals the first file in the list that exists
-});
-```
-
-__Related__
-
-* detectSeries(arr, iterator, [callback])
-* detectLimit(arr, limit, iterator, [callback])
-
----------------------------------------
-
-
-### sortBy(arr, iterator, [callback])
-
-Sorts a list by the results of running each `arr` value through an async `iterator`.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A function to apply to each item in `arr`.
- The iterator is passed a `callback(err, sortValue)` which must be called once it
- has completed with an error (which can be `null`) and a value to use as the sort
- criteria.
-* `callback(err, results)` - *Optional* A callback which is called after all the `iterator`
- functions have finished, or an error occurs. Results is the items from
- the original `arr` sorted by the values returned by the `iterator` calls.
-
-__Example__
-
-```js
-async.sortBy(['file1','file2','file3'], function(file, callback){
- fs.stat(file, function(err, stats){
- callback(err, stats.mtime);
- });
-}, function(err, results){
- // results is now the original array of files sorted by
- // modified date
-});
-```
-
-__Sort Order__
-
-By modifying the callback parameter the sorting order can be influenced:
-
-```js
-//ascending order
-async.sortBy([1,9,3,5], function(x, callback){
- callback(null, x);
-}, function(err,result){
- //result callback
-} );
-
-//descending order
-async.sortBy([1,9,3,5], function(x, callback){
- callback(null, x*-1); //<- x*-1 instead of x, turns the order around
-}, function(err,result){
- //result callback
-} );
-```
-
----------------------------------------
-
-
-### some(arr, iterator, [callback])
-
-__Alias:__ `any`
-
-Returns `true` if at least one element in the `arr` satisfies an async test.
-_The callback for each iterator call only accepts a single argument of `true` or
-`false`; it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like `fs.exists`. Once any iterator
-call returns `true`, the main `callback` is immediately called.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A truth test to apply to each item in the array
- in parallel. The iterator is passed a `callback(truthValue)`` which must be
- called with a boolean argument once it has completed.
-* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns
- `true`, or after all the iterator functions have finished. Result will be
- either `true` or `false` depending on the values of the async tests.
-
- **Note: the callbacks do not take an error as their first argument.**
-__Example__
-
-```js
-async.some(['file1','file2','file3'], fs.exists, function(result){
- // if result is true then at least one of the files exists
-});
-```
-
-__Related__
-
-* someLimit(arr, limit, iterator, callback)
-
----------------------------------------
-
-
-### every(arr, iterator, [callback])
-
-__Alias:__ `all`
-
-Returns `true` if every element in `arr` satisfies an async test.
-_The callback for each `iterator` call only accepts a single argument of `true` or
-`false`; it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like `fs.exists`.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A truth test to apply to each item in the array
- in parallel. The iterator is passed a `callback(truthValue)` which must be
- called with a boolean argument once it has completed.
-* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns
- `false`, or after all the iterator functions have finished. Result will be
- either `true` or `false` depending on the values of the async tests.
-
- **Note: the callbacks do not take an error as their first argument.**
-
-__Example__
-
-```js
-async.every(['file1','file2','file3'], fs.exists, function(result){
- // if result is true then every file exists
-});
-```
-
-__Related__
-
-* everyLimit(arr, limit, iterator, callback)
-
----------------------------------------
-
-
-### concat(arr, iterator, [callback])
-
-Applies `iterator` to each item in `arr`, concatenating the results. Returns the
-concatenated list. The `iterator`s are called in parallel, and the results are
-concatenated as they return. There is no guarantee that the results array will
-be returned in the original order of `arr` passed to the `iterator` function.
-
-__Arguments__
-
-* `arr` - An array to iterate over.
-* `iterator(item, callback)` - A function to apply to each item in `arr`.
- The iterator is passed a `callback(err, results)` which must be called once it
- has completed with an error (which can be `null`) and an array of results.
-* `callback(err, results)` - *Optional* A callback which is called after all the `iterator`
- functions have finished, or an error occurs. Results is an array containing
- the concatenated results of the `iterator` function.
-
-__Example__
-
-```js
-async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files){
- // files is now a list of filenames that exist in the 3 directories
-});
-```
-
-__Related__
-
-* concatSeries(arr, iterator, [callback])
-
-
-## Control Flow
-
-
-### series(tasks, [callback])
-
-Run the functions in the `tasks` array in series, each one running once the previous
-function has completed. If any functions in the series pass an error to its
-callback, no more functions are run, and `callback` is immediately called with the value of the error.
-Otherwise, `callback` receives an array of results when `tasks` have completed.
-
-It is also possible to use an object instead of an array. Each property will be
-run as a function, and the results will be passed to the final `callback` as an object
-instead of an array. This can be a more readable way of handling results from
-[`series`](#series).
-
-**Note** that while many implementations preserve the order of object properties, the
-[ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)
-explicitly states that
-
-> The mechanics and order of enumerating the properties is not specified.
-
-So if you rely on the order in which your series of functions are executed, and want
-this to work on all platforms, consider using an array.
-
-__Arguments__
-
-* `tasks` - An array or object containing functions to run, each function is passed
- a `callback(err, result)` it must call on completion with an error `err` (which can
- be `null`) and an optional `result` value.
-* `callback(err, results)` - An optional callback to run once all the functions
- have completed. This function gets a results array (or object) containing all
- the result arguments passed to the `task` callbacks.
-
-__Example__
-
-```js
-async.series([
- function(callback){
- // do some stuff ...
- callback(null, 'one');
- },
- function(callback){
- // do some more stuff ...
- callback(null, 'two');
- }
-],
-// optional callback
-function(err, results){
- // results is now equal to ['one', 'two']
-});
-
-
-// an example using an object instead of an array
-async.series({
- one: function(callback){
- setTimeout(function(){
- callback(null, 1);
- }, 200);
- },
- two: function(callback){
- setTimeout(function(){
- callback(null, 2);
- }, 100);
- }
-},
-function(err, results) {
- // results is now equal to: {one: 1, two: 2}
-});
-```
-
----------------------------------------
-
-
-### parallel(tasks, [callback])
-
-Run the `tasks` array of functions in parallel, without waiting until the previous
-function has completed. If any of the functions pass an error to its
-callback, the main `callback` is immediately called with the value of the error.
-Once the `tasks` have completed, the results are passed to the final `callback` as an
-array.
-
-**Note:** `parallel` is about kicking-off I/O tasks in parallel, not about parallel execution of code. If your tasks do not use any timers or perform any I/O, they will actually be executed in series. Any synchronous setup sections for each task will happen one after the other. JavaScript remains single-threaded.
-
-It is also possible to use an object instead of an array. Each property will be
-run as a function and the results will be passed to the final `callback` as an object
-instead of an array. This can be a more readable way of handling results from
-[`parallel`](#parallel).
-
-
-__Arguments__
-
-* `tasks` - An array or object containing functions to run. Each function is passed
- a `callback(err, result)` which it must call on completion with an error `err`
- (which can be `null`) and an optional `result` value.
-* `callback(err, results)` - An optional callback to run once all the functions
- have completed successfully. This function gets a results array (or object) containing all
- the result arguments passed to the task callbacks.
-
-__Example__
-
-```js
-async.parallel([
- function(callback){
- setTimeout(function(){
- callback(null, 'one');
- }, 200);
- },
- function(callback){
- setTimeout(function(){
- callback(null, 'two');
- }, 100);
- }
-],
-// optional callback
-function(err, results){
- // the results array will equal ['one','two'] even though
- // the second function had a shorter timeout.
-});
-
-
-// an example using an object instead of an array
-async.parallel({
- one: function(callback){
- setTimeout(function(){
- callback(null, 1);
- }, 200);
- },
- two: function(callback){
- setTimeout(function(){
- callback(null, 2);
- }, 100);
- }
-},
-function(err, results) {
- // results is now equals to: {one: 1, two: 2}
-});
-```
-
-__Related__
-
-* parallelLimit(tasks, limit, [callback])
-
----------------------------------------
-
-
-### whilst(test, fn, callback)
-
-Repeatedly call `fn`, while `test` returns `true`. Calls `callback` when stopped,
-or an error occurs.
-
-__Arguments__
-
-* `test()` - synchronous truth test to perform before each execution of `fn`.
-* `fn(callback)` - A function which is called each time `test` passes. The function is
- passed a `callback(err)`, which must be called once it has completed with an
- optional `err` argument.
-* `callback(err, [results])` - A callback which is called after the test
- function has failed and repeated execution of `fn` has stopped. `callback`
- will be passed an error and any arguments passed to the final `fn`'s callback.
-
-__Example__
-
-```js
-var count = 0;
-
-async.whilst(
- function () { return count < 5; },
- function (callback) {
- count++;
- setTimeout(function () {
- callback(null, count);
- }, 1000);
- },
- function (err, n) {
- // 5 seconds have passed, n = 5
- }
-);
-```
-
----------------------------------------
-
-
-### doWhilst(fn, test, callback)
-
-The post-check version of [`whilst`](#whilst). To reflect the difference in
-the order of operations, the arguments `test` and `fn` are switched.
-
-`doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.
-
----------------------------------------
-
-
-### until(test, fn, callback)
-
-Repeatedly call `fn` until `test` returns `true`. Calls `callback` when stopped,
-or an error occurs. `callback` will be passed an error and any arguments passed
-to the final `fn`'s callback.
-
-The inverse of [`whilst`](#whilst).
-
----------------------------------------
-
-
-### doUntil(fn, test, callback)
-
-Like [`doWhilst`](#doWhilst), except the `test` is inverted. Note the argument ordering differs from `until`.
-
----------------------------------------
-
-
-### during(test, fn, callback)
-
-Like [`whilst`](#whilst), except the `test` is an asynchronous function that is passed a callback in the form of `function (err, truth)`. If error is passed to `test` or `fn`, the main callback is immediately called with the value of the error.
-
-__Example__
-
-```js
-var count = 0;
-
-async.during(
- function (callback) {
- return callback(null, count < 5);
- },
- function (callback) {
- count++;
- setTimeout(callback, 1000);
- },
- function (err) {
- // 5 seconds have passed
- }
-);
-```
-
----------------------------------------
-
-
-### doDuring(fn, test, callback)
-
-The post-check version of [`during`](#during). To reflect the difference in
-the order of operations, the arguments `test` and `fn` are switched.
-
-Also a version of [`doWhilst`](#doWhilst) with asynchronous `test` function.
-
----------------------------------------
-
-
-### forever(fn, [errback])
-
-Calls the asynchronous function `fn` with a callback parameter that allows it to
-call itself again, in series, indefinitely.
-
-If an error is passed to the callback then `errback` is called with the
-error, and execution stops, otherwise it will never be called.
-
-```js
-async.forever(
- function(next) {
- // next is suitable for passing to things that need a callback(err [, whatever]);
- // it will result in this function being called again.
- },
- function(err) {
- // if next is called with a value in its first parameter, it will appear
- // in here as 'err', and execution will stop.
- }
-);
-```
-
----------------------------------------
-
-
-### waterfall(tasks, [callback])
-
-Runs the `tasks` array of functions in series, each passing their results to the next in
-the array. However, if any of the `tasks` pass an error to their own callback, the
-next function is not executed, and the main `callback` is immediately called with
-the error.
-
-__Arguments__
-
-* `tasks` - An array of functions to run, each function is passed a
- `callback(err, result1, result2, ...)` it must call on completion. The first
- argument is an error (which can be `null`) and any further arguments will be
- passed as arguments in order to the next task.
-* `callback(err, [results])` - An optional callback to run once all the functions
- have completed. This will be passed the results of the last task's callback.
-
-
-
-__Example__
-
-```js
-async.waterfall([
- function(callback) {
- callback(null, 'one', 'two');
- },
- function(arg1, arg2, callback) {
- // arg1 now equals 'one' and arg2 now equals 'two'
- callback(null, 'three');
- },
- function(arg1, callback) {
- // arg1 now equals 'three'
- callback(null, 'done');
- }
-], function (err, result) {
- // result now equals 'done'
-});
-```
-Or, with named functions:
-
-```js
-async.waterfall([
- myFirstFunction,
- mySecondFunction,
- myLastFunction,
-], function (err, result) {
- // result now equals 'done'
-});
-function myFirstFunction(callback) {
- callback(null, 'one', 'two');
-}
-function mySecondFunction(arg1, arg2, callback) {
- // arg1 now equals 'one' and arg2 now equals 'two'
- callback(null, 'three');
-}
-function myLastFunction(arg1, callback) {
- // arg1 now equals 'three'
- callback(null, 'done');
-}
-```
-
-Or, if you need to pass any argument to the first function:
-
-```js
-async.waterfall([
- async.apply(myFirstFunction, 'zero'),
- mySecondFunction,
- myLastFunction,
-], function (err, result) {
- // result now equals 'done'
-});
-function myFirstFunction(arg1, callback) {
- // arg1 now equals 'zero'
- callback(null, 'one', 'two');
-}
-function mySecondFunction(arg1, arg2, callback) {
- // arg1 now equals 'one' and arg2 now equals 'two'
- callback(null, 'three');
-}
-function myLastFunction(arg1, callback) {
- // arg1 now equals 'three'
- callback(null, 'done');
-}
-```
-
----------------------------------------
-
-### compose(fn1, fn2...)
-
-Creates a function which is a composition of the passed asynchronous
-functions. Each function consumes the return value of the function that
-follows. Composing functions `f()`, `g()`, and `h()` would produce the result of
-`f(g(h()))`, only this version uses callbacks to obtain the return values.
-
-Each function is executed with the `this` binding of the composed function.
-
-__Arguments__
-
-* `functions...` - the asynchronous functions to compose
-
-
-__Example__
-
-```js
-function add1(n, callback) {
- setTimeout(function () {
- callback(null, n + 1);
- }, 10);
-}
-
-function mul3(n, callback) {
- setTimeout(function () {
- callback(null, n * 3);
- }, 10);
-}
-
-var add1mul3 = async.compose(mul3, add1);
-
-add1mul3(4, function (err, result) {
- // result now equals 15
-});
-```
-
----------------------------------------
-
-### seq(fn1, fn2...)
-
-Version of the compose function that is more natural to read.
-Each function consumes the return value of the previous function.
-It is the equivalent of [`compose`](#compose) with the arguments reversed.
-
-Each function is executed with the `this` binding of the composed function.
-
-__Arguments__
-
-* `functions...` - the asynchronous functions to compose
-
-
-__Example__
-
-```js
-// Requires lodash (or underscore), express3 and dresende's orm2.
-// Part of an app, that fetches cats of the logged user.
-// This example uses `seq` function to avoid overnesting and error
-// handling clutter.
-app.get('/cats', function(request, response) {
- var User = request.models.User;
- async.seq(
- _.bind(User.get, User), // 'User.get' has signature (id, callback(err, data))
- function(user, fn) {
- user.getCats(fn); // 'getCats' has signature (callback(err, data))
- }
- )(req.session.user_id, function (err, cats) {
- if (err) {
- console.error(err);
- response.json({ status: 'error', message: err.message });
- } else {
- response.json({ status: 'ok', message: 'Cats found', data: cats });
- }
- });
-});
-```
-
----------------------------------------
-
-### applyEach(fns, args..., callback)
-
-Applies the provided arguments to each function in the array, calling
-`callback` after all functions have completed. If you only provide the first
-argument, then it will return a function which lets you pass in the
-arguments as if it were a single function call.
-
-__Arguments__
-
-* `fns` - the asynchronous functions to all call with the same arguments
-* `args...` - any number of separate arguments to pass to the function
-* `callback` - the final argument should be the callback, called when all
- functions have completed processing
-
-
-__Example__
-
-```js
-async.applyEach([enableSearch, updateSchema], 'bucket', callback);
-
-// partial application example:
-async.each(
- buckets,
- async.applyEach([enableSearch, updateSchema]),
- callback
-);
-```
-
-__Related__
-
-* applyEachSeries(tasks, args..., [callback])
-
----------------------------------------
-
-
-### queue(worker, [concurrency])
-
-Creates a `queue` object with the specified `concurrency`. Tasks added to the
-`queue` are processed in parallel (up to the `concurrency` limit). If all
-`worker`s are in progress, the task is queued until one becomes available.
-Once a `worker` completes a `task`, that `task`'s callback is called.
-
-__Arguments__
-
-* `worker(task, callback)` - An asynchronous function for processing a queued
- task, which must call its `callback(err)` argument when finished, with an
- optional `error` as an argument. If you want to handle errors from an individual task, pass a callback to `q.push()`.
-* `concurrency` - An `integer` for determining how many `worker` functions should be
- run in parallel. If omitted, the concurrency defaults to `1`. If the concurrency is `0`, an error is thrown.
-
-__Queue objects__
-
-The `queue` object returned by this function has the following properties and
-methods:
-
-* `length()` - a function returning the number of items waiting to be processed.
-* `started` - a function returning whether or not any items have been pushed and processed by the queue
-* `running()` - a function returning the number of items currently being processed.
-* `workersList()` - a function returning the array of items currently being processed.
-* `idle()` - a function returning false if there are items waiting or being processed, or true if not.
-* `concurrency` - an integer for determining how many `worker` functions should be
- run in parallel. This property can be changed after a `queue` is created to
- alter the concurrency on-the-fly.
-* `push(task, [callback])` - add a new task to the `queue`. Calls `callback` once
- the `worker` has finished processing the task. Instead of a single task, a `tasks` array
- can be submitted. The respective callback is used for every task in the list.
-* `unshift(task, [callback])` - add a new task to the front of the `queue`.
-* `saturated` - a callback that is called when the `queue` length hits the `concurrency` limit,
- and further tasks will be queued.
-* `empty` - a callback that is called when the last item from the `queue` is given to a `worker`.
-* `drain` - a callback that is called when the last item from the `queue` has returned from the `worker`.
-* `paused` - a boolean for determining whether the queue is in a paused state
-* `pause()` - a function that pauses the processing of tasks until `resume()` is called.
-* `resume()` - a function that resumes the processing of queued tasks when the queue is paused.
-* `kill()` - a function that removes the `drain` callback and empties remaining tasks from the queue forcing it to go idle.
-
-__Example__
-
-```js
-// create a queue object with concurrency 2
-
-var q = async.queue(function (task, callback) {
- console.log('hello ' + task.name);
- callback();
-}, 2);
-
-
-// assign a callback
-q.drain = function() {
- console.log('all items have been processed');
-}
-
-// add some items to the queue
-
-q.push({name: 'foo'}, function (err) {
- console.log('finished processing foo');
-});
-q.push({name: 'bar'}, function (err) {
- console.log('finished processing bar');
-});
-
-// add some items to the queue (batch-wise)
-
-q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function (err) {
- console.log('finished processing item');
-});
-
-// add some items to the front of the queue
-
-q.unshift({name: 'bar'}, function (err) {
- console.log('finished processing bar');
-});
-```
-
-
----------------------------------------
-
-
-### priorityQueue(worker, concurrency)
-
-The same as [`queue`](#queue) only tasks are assigned a priority and completed in ascending priority order. There are two differences between `queue` and `priorityQueue` objects:
-
-* `push(task, priority, [callback])` - `priority` should be a number. If an array of
- `tasks` is given, all tasks will be assigned the same priority.
-* The `unshift` method was removed.
-
----------------------------------------
-
-
-### cargo(worker, [payload])
-
-Creates a `cargo` object with the specified payload. Tasks added to the
-cargo will be processed altogether (up to the `payload` limit). If the
-`worker` is in progress, the task is queued until it becomes available. Once
-the `worker` has completed some tasks, each callback of those tasks is called.
-Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966) for how `cargo` and `queue` work.
-
-While [queue](#queue) passes only one task to one of a group of workers
-at a time, cargo passes an array of tasks to a single worker, repeating
-when the worker is finished.
-
-__Arguments__
-
-* `worker(tasks, callback)` - An asynchronous function for processing an array of
- queued tasks, which must call its `callback(err)` argument when finished, with
- an optional `err` argument.
-* `payload` - An optional `integer` for determining how many tasks should be
- processed per round; if omitted, the default is unlimited.
-
-__Cargo objects__
-
-The `cargo` object returned by this function has the following properties and
-methods:
-
-* `length()` - A function returning the number of items waiting to be processed.
-* `payload` - An `integer` for determining how many tasks should be
- process per round. This property can be changed after a `cargo` is created to
- alter the payload on-the-fly.
-* `push(task, [callback])` - Adds `task` to the `queue`. The callback is called
- once the `worker` has finished processing the task. Instead of a single task, an array of `tasks`
- can be submitted. The respective callback is used for every task in the list.
-* `saturated` - A callback that is called when the `queue.length()` hits the concurrency and further tasks will be queued.
-* `empty` - A callback that is called when the last item from the `queue` is given to a `worker`.
-* `drain` - A callback that is called when the last item from the `queue` has returned from the `worker`.
-* `idle()`, `pause()`, `resume()`, `kill()` - cargo inherits all of the same methods and event calbacks as [`queue`](#queue)
-
-__Example__
-
-```js
-// create a cargo object with payload 2
-
-var cargo = async.cargo(function (tasks, callback) {
- for(var i=0; i
-### auto(tasks, [concurrency], [callback])
-
-Determines the best order for running the functions in `tasks`, based on their requirements. Each function can optionally depend on other functions being completed first, and each function is run as soon as its requirements are satisfied.
-
-If any of the functions pass an error to their callback, the `auto` sequence will stop. Further tasks will not execute (so any other functions depending on it will not run), and the main `callback` is immediately called with the error. Functions also receive an object containing the results of functions which have completed so far.
-
-Note, all functions are called with a `results` object as a second argument,
-so it is unsafe to pass functions in the `tasks` object which cannot handle the
-extra argument.
-
-For example, this snippet of code:
-
-```js
-async.auto({
- readData: async.apply(fs.readFile, 'data.txt', 'utf-8')
-}, callback);
-```
-
-will have the effect of calling `readFile` with the results object as the last
-argument, which will fail:
-
-```js
-fs.readFile('data.txt', 'utf-8', cb, {});
-```
-
-Instead, wrap the call to `readFile` in a function which does not forward the
-`results` object:
-
-```js
-async.auto({
- readData: function(cb, results){
- fs.readFile('data.txt', 'utf-8', cb);
- }
-}, callback);
-```
-
-__Arguments__
-
-* `tasks` - An object. Each of its properties is either a function or an array of
- requirements, with the function itself the last item in the array. The object's key
- of a property serves as the name of the task defined by that property,
- i.e. can be used when specifying requirements for other tasks.
- The function receives two arguments: (1) a `callback(err, result)` which must be
- called when finished, passing an `error` (which can be `null`) and the result of
- the function's execution, and (2) a `results` object, containing the results of
- the previously executed functions.
-* `concurrency` - An optional `integer` for determining the maximum number of tasks that can be run in parallel. By default, as many as possible.
-* `callback(err, results)` - An optional callback which is called when all the
- tasks have been completed. It receives the `err` argument if any `tasks`
- pass an error to their callback. Results are always returned; however, if
- an error occurs, no further `tasks` will be performed, and the results
- object will only contain partial results.
-
-
-__Example__
-
-```js
-async.auto({
- get_data: function(callback){
- console.log('in get_data');
- // async code to get some data
- callback(null, 'data', 'converted to array');
- },
- make_folder: function(callback){
- console.log('in make_folder');
- // async code to create a directory to store a file in
- // this is run at the same time as getting the data
- callback(null, 'folder');
- },
- write_file: ['get_data', 'make_folder', function(callback, results){
- console.log('in write_file', JSON.stringify(results));
- // once there is some data and the directory exists,
- // write the data to a file in the directory
- callback(null, 'filename');
- }],
- email_link: ['write_file', function(callback, results){
- console.log('in email_link', JSON.stringify(results));
- // once the file is written let's email a link to it...
- // results.write_file contains the filename returned by write_file.
- callback(null, {'file':results.write_file, 'email':'user@example.com'});
- }]
-}, function(err, results) {
- console.log('err = ', err);
- console.log('results = ', results);
-});
-```
-
-This is a fairly trivial example, but to do this using the basic parallel and
-series functions would look like this:
-
-```js
-async.parallel([
- function(callback){
- console.log('in get_data');
- // async code to get some data
- callback(null, 'data', 'converted to array');
- },
- function(callback){
- console.log('in make_folder');
- // async code to create a directory to store a file in
- // this is run at the same time as getting the data
- callback(null, 'folder');
- }
-],
-function(err, results){
- async.series([
- function(callback){
- console.log('in write_file', JSON.stringify(results));
- // once there is some data and the directory exists,
- // write the data to a file in the directory
- results.push('filename');
- callback(null);
- },
- function(callback){
- console.log('in email_link', JSON.stringify(results));
- // once the file is written let's email a link to it...
- callback(null, {'file':results.pop(), 'email':'user@example.com'});
- }
- ]);
-});
-```
-
-For a complicated series of `async` tasks, using the [`auto`](#auto) function makes adding
-new tasks much easier (and the code more readable).
-
-
----------------------------------------
-
-
-### retry([opts = {times: 5, interval: 0}| 5], task, [callback])
-
-Attempts to get a successful response from `task` no more than `times` times before
-returning an error. If the task is successful, the `callback` will be passed the result
-of the successful task. If all attempts fail, the callback will be passed the error and
-result (if any) of the final attempt.
-
-__Arguments__
-
-* `opts` - Can be either an object with `times` and `interval` or a number.
- * `times` - The number of attempts to make before giving up. The default is `5`.
- * `interval` - The time to wait between retries, in milliseconds. The default is `0`.
- * If `opts` is a number, the number specifies the number of times to retry, with the default interval of `0`.
-* `task(callback, results)` - A function which receives two arguments: (1) a `callback(err, result)`
- which must be called when finished, passing `err` (which can be `null`) and the `result` of
- the function's execution, and (2) a `results` object, containing the results of
- the previously executed functions (if nested inside another control flow).
-* `callback(err, results)` - An optional callback which is called when the
- task has succeeded, or after the final failed attempt. It receives the `err` and `result` arguments of the last attempt at completing the `task`.
-
-The [`retry`](#retry) function can be used as a stand-alone control flow by passing a callback, as shown below:
-
-```js
-// try calling apiMethod 3 times
-async.retry(3, apiMethod, function(err, result) {
- // do something with the result
-});
-```
-
-```js
-// try calling apiMethod 3 times, waiting 200 ms between each retry
-async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {
- // do something with the result
-});
-```
-
-```js
-// try calling apiMethod the default 5 times no delay between each retry
-async.retry(apiMethod, function(err, result) {
- // do something with the result
-});
-```
-
-It can also be embedded within other control flow functions to retry individual methods
-that are not as reliable, like this:
-
-```js
-async.auto({
- users: api.getUsers.bind(api),
- payments: async.retry(3, api.getPayments.bind(api))
-}, function(err, results) {
- // do something with the results
-});
-```
-
-
----------------------------------------
-
-
-### iterator(tasks)
-
-Creates an iterator function which calls the next function in the `tasks` array,
-returning a continuation to call the next one after that. It's also possible to
-“peek” at the next iterator with `iterator.next()`.
-
-This function is used internally by the `async` module, but can be useful when
-you want to manually control the flow of functions in series.
-
-__Arguments__
-
-* `tasks` - An array of functions to run.
-
-__Example__
-
-```js
-var iterator = async.iterator([
- function(){ sys.p('one'); },
- function(){ sys.p('two'); },
- function(){ sys.p('three'); }
-]);
-
-node> var iterator2 = iterator();
-'one'
-node> var iterator3 = iterator2();
-'two'
-node> iterator3();
-'three'
-node> var nextfn = iterator2.next();
-node> nextfn();
-'three'
-```
-
----------------------------------------
-
-
-### apply(function, arguments..)
-
-Creates a continuation function with some arguments already applied.
-
-Useful as a shorthand when combined with other control flow functions. Any arguments
-passed to the returned function are added to the arguments originally passed
-to apply.
-
-__Arguments__
-
-* `function` - The function you want to eventually apply all arguments to.
-* `arguments...` - Any number of arguments to automatically apply when the
- continuation is called.
-
-__Example__
-
-```js
-// using apply
-
-async.parallel([
- async.apply(fs.writeFile, 'testfile1', 'test1'),
- async.apply(fs.writeFile, 'testfile2', 'test2'),
-]);
-
-
-// the same process without using apply
-
-async.parallel([
- function(callback){
- fs.writeFile('testfile1', 'test1', callback);
- },
- function(callback){
- fs.writeFile('testfile2', 'test2', callback);
- }
-]);
-```
-
-It's possible to pass any number of additional arguments when calling the
-continuation:
-
-```js
-node> var fn = async.apply(sys.puts, 'one');
-node> fn('two', 'three');
-one
-two
-three
-```
-
----------------------------------------
-
-
-### nextTick(callback), setImmediate(callback)
-
-Calls `callback` on a later loop around the event loop. In Node.js this just
-calls `process.nextTick`; in the browser it falls back to `setImmediate(callback)`
-if available, otherwise `setTimeout(callback, 0)`, which means other higher priority
-events may precede the execution of `callback`.
-
-This is used internally for browser-compatibility purposes.
-
-__Arguments__
-
-* `callback` - The function to call on a later loop around the event loop.
-
-__Example__
-
-```js
-var call_order = [];
-async.nextTick(function(){
- call_order.push('two');
- // call_order now equals ['one','two']
-});
-call_order.push('one')
-```
-
-
-### times(n, iterator, [callback])
-
-Calls the `iterator` function `n` times, and accumulates results in the same manner
-you would use with [`map`](#map).
-
-__Arguments__
-
-* `n` - The number of times to run the function.
-* `iterator` - The function to call `n` times.
-* `callback` - see [`map`](#map)
-
-__Example__
-
-```js
-// Pretend this is some complicated async factory
-var createUser = function(id, callback) {
- callback(null, {
- id: 'user' + id
- })
-}
-// generate 5 users
-async.times(5, function(n, next){
- createUser(n, function(err, user) {
- next(err, user)
- })
-}, function(err, users) {
- // we should now have 5 users
-});
-```
-
-__Related__
-
-* timesSeries(n, iterator, [callback])
-* timesLimit(n, limit, iterator, [callback])
-
-
-## Utils
-
-
-### memoize(fn, [hasher])
-
-Caches the results of an `async` function. When creating a hash to store function
-results against, the callback is omitted from the hash and an optional hash
-function can be used.
-
-If no hash function is specified, the first argument is used as a hash key, which may work reasonably if it is a string or a data type that converts to a distinct string. Note that objects and arrays will not behave reasonably. Neither will cases where the other arguments are significant. In such cases, specify your own hash function.
-
-The cache of results is exposed as the `memo` property of the function returned
-by `memoize`.
-
-__Arguments__
-
-* `fn` - The function to proxy and cache results from.
-* `hasher` - An optional function for generating a custom hash for storing
- results. It has all the arguments applied to it apart from the callback, and
- must be synchronous.
-
-__Example__
-
-```js
-var slow_fn = function (name, callback) {
- // do something
- callback(null, result);
-};
-var fn = async.memoize(slow_fn);
-
-// fn can now be used as if it were slow_fn
-fn('some name', function () {
- // callback
-});
-```
-
-
-### unmemoize(fn)
-
-Undoes a [`memoize`](#memoize)d function, reverting it to the original, unmemoized
-form. Handy for testing.
-
-__Arguments__
-
-* `fn` - the memoized function
-
----------------------------------------
-
-
-### ensureAsync(fn)
-
-Wrap an async function and ensure it calls its callback on a later tick of the event loop. If the function already calls its callback on a next tick, no extra deferral is added. This is useful for preventing stack overflows (`RangeError: Maximum call stack size exceeded`) and generally keeping [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony) contained.
-
-__Arguments__
-
-* `fn` - an async function, one that expects a node-style callback as its last argument
-
-Returns a wrapped function with the exact same call signature as the function passed in.
-
-__Example__
-
-```js
-function sometimesAsync(arg, callback) {
- if (cache[arg]) {
- return callback(null, cache[arg]); // this would be synchronous!!
- } else {
- doSomeIO(arg, callback); // this IO would be asynchronous
- }
-}
-
-// this has a risk of stack overflows if many results are cached in a row
-async.mapSeries(args, sometimesAsync, done);
-
-// this will defer sometimesAsync's callback if necessary,
-// preventing stack overflows
-async.mapSeries(args, async.ensureAsync(sometimesAsync), done);
-
-```
-
----------------------------------------
-
-
-### constant(values...)
-
-Returns a function that when called, calls-back with the values provided. Useful as the first function in a `waterfall`, or for plugging values in to `auto`.
-
-__Example__
-
-```js
-async.waterfall([
- async.constant(42),
- function (value, next) {
- // value === 42
- },
- //...
-], callback);
-
-async.waterfall([
- async.constant(filename, "utf8"),
- fs.readFile,
- function (fileData, next) {
- //...
- }
- //...
-], callback);
-
-async.auto({
- hostname: async.constant("https://server.net/"),
- port: findFreePort,
- launchServer: ["hostname", "port", function (cb, options) {
- startServer(options, cb);
- }],
- //...
-}, callback);
-
-```
-
----------------------------------------
-
-
-
-### asyncify(func)
-
-__Alias:__ `wrapSync`
-
-Take a sync function and make it async, passing its return value to a callback. This is useful for plugging sync functions into a waterfall, series, or other async functions. Any arguments passed to the generated function will be passed to the wrapped function (except for the final callback argument). Errors thrown will be passed to the callback.
-
-__Example__
-
-```js
-async.waterfall([
- async.apply(fs.readFile, filename, "utf8"),
- async.asyncify(JSON.parse),
- function (data, next) {
- // data is the result of parsing the text.
- // If there was a parsing error, it would have been caught.
- }
-], callback)
-```
-
-If the function passed to `asyncify` returns a Promise, that promises's resolved/rejected state will be used to call the callback, rather than simply the synchronous return value. Example:
-
-```js
-async.waterfall([
- async.apply(fs.readFile, filename, "utf8"),
- async.asyncify(function (contents) {
- return db.model.create(contents);
- }),
- function (model, next) {
- // `model` is the instantiated model object.
- // If there was an error, this function would be skipped.
- }
-], callback)
-```
-
-This also means you can asyncify ES2016 `async` functions.
-
-```js
-var q = async.queue(async.asyncify(async function (file) {
- var intermediateStep = await processFile(file);
- return await somePromise(intermediateStep)
-}));
-
-q.push(files);
-```
-
----------------------------------------
-
-
-### log(function, arguments)
-
-Logs the result of an `async` function to the `console`. Only works in Node.js or
-in browsers that support `console.log` and `console.error` (such as FF and Chrome).
-If multiple arguments are returned from the async function, `console.log` is
-called on each argument in order.
-
-__Arguments__
-
-* `function` - The function you want to eventually apply all arguments to.
-* `arguments...` - Any number of arguments to apply to the function.
-
-__Example__
-
-```js
-var hello = function(name, callback){
- setTimeout(function(){
- callback(null, 'hello ' + name);
- }, 1000);
-};
-```
-```js
-node> async.log(hello, 'world');
-'hello world'
-```
-
----------------------------------------
-
-
-### dir(function, arguments)
-
-Logs the result of an `async` function to the `console` using `console.dir` to
-display the properties of the resulting object. Only works in Node.js or
-in browsers that support `console.dir` and `console.error` (such as FF and Chrome).
-If multiple arguments are returned from the async function, `console.dir` is
-called on each argument in order.
-
-__Arguments__
-
-* `function` - The function you want to eventually apply all arguments to.
-* `arguments...` - Any number of arguments to apply to the function.
-
-__Example__
-
-```js
-var hello = function(name, callback){
- setTimeout(function(){
- callback(null, {hello: name});
- }, 1000);
-};
-```
-```js
-node> async.dir(hello, 'world');
-{hello: 'world'}
-```
-
----------------------------------------
-
-
-### noConflict()
-
-Changes the value of `async` back to its original value, returning a reference to the
-`async` object.
diff --git a/node_modules/async/dist/async.js b/node_modules/async/dist/async.js
deleted file mode 100644
index 31e7620..0000000
--- a/node_modules/async/dist/async.js
+++ /dev/null
@@ -1,1265 +0,0 @@
-/*!
- * async
- * https://github.com/caolan/async
- *
- * Copyright 2010-2014 Caolan McMahon
- * Released under the MIT license
- */
-(function () {
-
- var async = {};
- function noop() {}
- function identity(v) {
- return v;
- }
- function toBool(v) {
- return !!v;
- }
- function notId(v) {
- return !v;
- }
-
- // global on the server, window in the browser
- var previous_async;
-
- // Establish the root object, `window` (`self`) in the browser, `global`
- // on the server, or `this` in some virtual machines. We use `self`
- // instead of `window` for `WebWorker` support.
- var root = typeof self === 'object' && self.self === self && self ||
- typeof global === 'object' && global.global === global && global ||
- this;
-
- if (root != null) {
- previous_async = root.async;
- }
-
- async.noConflict = function () {
- root.async = previous_async;
- return async;
- };
-
- function only_once(fn) {
- return function() {
- if (fn === null) throw new Error("Callback was already called.");
- fn.apply(this, arguments);
- fn = null;
- };
- }
-
- function _once(fn) {
- return function() {
- if (fn === null) return;
- fn.apply(this, arguments);
- fn = null;
- };
- }
-
- //// cross-browser compatiblity functions ////
-
- var _toString = Object.prototype.toString;
-
- var _isArray = Array.isArray || function (obj) {
- return _toString.call(obj) === '[object Array]';
- };
-
- // Ported from underscore.js isObject
- var _isObject = function(obj) {
- var type = typeof obj;
- return type === 'function' || type === 'object' && !!obj;
- };
-
- function _isArrayLike(arr) {
- return _isArray(arr) || (
- // has a positive integer length property
- typeof arr.length === "number" &&
- arr.length >= 0 &&
- arr.length % 1 === 0
- );
- }
-
- function _arrayEach(arr, iterator) {
- var index = -1,
- length = arr.length;
-
- while (++index < length) {
- iterator(arr[index], index, arr);
- }
- }
-
- function _map(arr, iterator) {
- var index = -1,
- length = arr.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iterator(arr[index], index, arr);
- }
- return result;
- }
-
- function _range(count) {
- return _map(Array(count), function (v, i) { return i; });
- }
-
- function _reduce(arr, iterator, memo) {
- _arrayEach(arr, function (x, i, a) {
- memo = iterator(memo, x, i, a);
- });
- return memo;
- }
-
- function _forEachOf(object, iterator) {
- _arrayEach(_keys(object), function (key) {
- iterator(object[key], key);
- });
- }
-
- function _indexOf(arr, item) {
- for (var i = 0; i < arr.length; i++) {
- if (arr[i] === item) return i;
- }
- return -1;
- }
-
- var _keys = Object.keys || function (obj) {
- var keys = [];
- for (var k in obj) {
- if (obj.hasOwnProperty(k)) {
- keys.push(k);
- }
- }
- return keys;
- };
-
- function _keyIterator(coll) {
- var i = -1;
- var len;
- var keys;
- if (_isArrayLike(coll)) {
- len = coll.length;
- return function next() {
- i++;
- return i < len ? i : null;
- };
- } else {
- keys = _keys(coll);
- len = keys.length;
- return function next() {
- i++;
- return i < len ? keys[i] : null;
- };
- }
- }
-
- // Similar to ES6's rest param (http://ariya.ofilabs.com/2013/03/es6-and-rest-parameter.html)
- // This accumulates the arguments passed into an array, after a given index.
- // From underscore.js (https://github.com/jashkenas/underscore/pull/2140).
- function _restParam(func, startIndex) {
- startIndex = startIndex == null ? func.length - 1 : +startIndex;
- return function() {
- var length = Math.max(arguments.length - startIndex, 0);
- var rest = Array(length);
- for (var index = 0; index < length; index++) {
- rest[index] = arguments[index + startIndex];
- }
- switch (startIndex) {
- case 0: return func.call(this, rest);
- case 1: return func.call(this, arguments[0], rest);
- }
- // Currently unused but handle cases outside of the switch statement:
- // var args = Array(startIndex + 1);
- // for (index = 0; index < startIndex; index++) {
- // args[index] = arguments[index];
- // }
- // args[startIndex] = rest;
- // return func.apply(this, args);
- };
- }
-
- function _withoutIndex(iterator) {
- return function (value, index, callback) {
- return iterator(value, callback);
- };
- }
-
- //// exported async module functions ////
-
- //// nextTick implementation with browser-compatible fallback ////
-
- // capture the global reference to guard against fakeTimer mocks
- var _setImmediate = typeof setImmediate === 'function' && setImmediate;
-
- var _delay = _setImmediate ? function(fn) {
- // not a direct alias for IE10 compatibility
- _setImmediate(fn);
- } : function(fn) {
- setTimeout(fn, 0);
- };
-
- if (typeof process === 'object' && typeof process.nextTick === 'function') {
- async.nextTick = process.nextTick;
- } else {
- async.nextTick = _delay;
- }
- async.setImmediate = _setImmediate ? _delay : async.nextTick;
-
-
- async.forEach =
- async.each = function (arr, iterator, callback) {
- return async.eachOf(arr, _withoutIndex(iterator), callback);
- };
-
- async.forEachSeries =
- async.eachSeries = function (arr, iterator, callback) {
- return async.eachOfSeries(arr, _withoutIndex(iterator), callback);
- };
-
-
- async.forEachLimit =
- async.eachLimit = function (arr, limit, iterator, callback) {
- return _eachOfLimit(limit)(arr, _withoutIndex(iterator), callback);
- };
-
- async.forEachOf =
- async.eachOf = function (object, iterator, callback) {
- callback = _once(callback || noop);
- object = object || [];
-
- var iter = _keyIterator(object);
- var key, completed = 0;
-
- while ((key = iter()) != null) {
- completed += 1;
- iterator(object[key], key, only_once(done));
- }
-
- if (completed === 0) callback(null);
-
- function done(err) {
- completed--;
- if (err) {
- callback(err);
- }
- // Check key is null in case iterator isn't exhausted
- // and done resolved synchronously.
- else if (key === null && completed <= 0) {
- callback(null);
- }
- }
- };
-
- async.forEachOfSeries =
- async.eachOfSeries = function (obj, iterator, callback) {
- callback = _once(callback || noop);
- obj = obj || [];
- var nextKey = _keyIterator(obj);
- var key = nextKey();
- function iterate() {
- var sync = true;
- if (key === null) {
- return callback(null);
- }
- iterator(obj[key], key, only_once(function (err) {
- if (err) {
- callback(err);
- }
- else {
- key = nextKey();
- if (key === null) {
- return callback(null);
- } else {
- if (sync) {
- async.setImmediate(iterate);
- } else {
- iterate();
- }
- }
- }
- }));
- sync = false;
- }
- iterate();
- };
-
-
-
- async.forEachOfLimit =
- async.eachOfLimit = function (obj, limit, iterator, callback) {
- _eachOfLimit(limit)(obj, iterator, callback);
- };
-
- function _eachOfLimit(limit) {
-
- return function (obj, iterator, callback) {
- callback = _once(callback || noop);
- obj = obj || [];
- var nextKey = _keyIterator(obj);
- if (limit <= 0) {
- return callback(null);
- }
- var done = false;
- var running = 0;
- var errored = false;
-
- (function replenish () {
- if (done && running <= 0) {
- return callback(null);
- }
-
- while (running < limit && !errored) {
- var key = nextKey();
- if (key === null) {
- done = true;
- if (running <= 0) {
- callback(null);
- }
- return;
- }
- running += 1;
- iterator(obj[key], key, only_once(function (err) {
- running -= 1;
- if (err) {
- callback(err);
- errored = true;
- }
- else {
- replenish();
- }
- }));
- }
- })();
- };
- }
-
-
- function doParallel(fn) {
- return function (obj, iterator, callback) {
- return fn(async.eachOf, obj, iterator, callback);
- };
- }
- function doParallelLimit(fn) {
- return function (obj, limit, iterator, callback) {
- return fn(_eachOfLimit(limit), obj, iterator, callback);
- };
- }
- function doSeries(fn) {
- return function (obj, iterator, callback) {
- return fn(async.eachOfSeries, obj, iterator, callback);
- };
- }
-
- function _asyncMap(eachfn, arr, iterator, callback) {
- callback = _once(callback || noop);
- arr = arr || [];
- var results = _isArrayLike(arr) ? [] : {};
- eachfn(arr, function (value, index, callback) {
- iterator(value, function (err, v) {
- results[index] = v;
- callback(err);
- });
- }, function (err) {
- callback(err, results);
- });
- }
-
- async.map = doParallel(_asyncMap);
- async.mapSeries = doSeries(_asyncMap);
- async.mapLimit = doParallelLimit(_asyncMap);
-
- // reduce only has a series version, as doing reduce in parallel won't
- // work in many situations.
- async.inject =
- async.foldl =
- async.reduce = function (arr, memo, iterator, callback) {
- async.eachOfSeries(arr, function (x, i, callback) {
- iterator(memo, x, function (err, v) {
- memo = v;
- callback(err);
- });
- }, function (err) {
- callback(err, memo);
- });
- };
-
- async.foldr =
- async.reduceRight = function (arr, memo, iterator, callback) {
- var reversed = _map(arr, identity).reverse();
- async.reduce(reversed, memo, iterator, callback);
- };
-
- async.transform = function (arr, memo, iterator, callback) {
- if (arguments.length === 3) {
- callback = iterator;
- iterator = memo;
- memo = _isArray(arr) ? [] : {};
- }
-
- async.eachOf(arr, function(v, k, cb) {
- iterator(memo, v, k, cb);
- }, function(err) {
- callback(err, memo);
- });
- };
-
- function _filter(eachfn, arr, iterator, callback) {
- var results = [];
- eachfn(arr, function (x, index, callback) {
- iterator(x, function (v) {
- if (v) {
- results.push({index: index, value: x});
- }
- callback();
- });
- }, function () {
- callback(_map(results.sort(function (a, b) {
- return a.index - b.index;
- }), function (x) {
- return x.value;
- }));
- });
- }
-
- async.select =
- async.filter = doParallel(_filter);
-
- async.selectLimit =
- async.filterLimit = doParallelLimit(_filter);
-
- async.selectSeries =
- async.filterSeries = doSeries(_filter);
-
- function _reject(eachfn, arr, iterator, callback) {
- _filter(eachfn, arr, function(value, cb) {
- iterator(value, function(v) {
- cb(!v);
- });
- }, callback);
- }
- async.reject = doParallel(_reject);
- async.rejectLimit = doParallelLimit(_reject);
- async.rejectSeries = doSeries(_reject);
-
- function _createTester(eachfn, check, getResult) {
- return function(arr, limit, iterator, cb) {
- function done() {
- if (cb) cb(getResult(false, void 0));
- }
- function iteratee(x, _, callback) {
- if (!cb) return callback();
- iterator(x, function (v) {
- if (cb && check(v)) {
- cb(getResult(true, x));
- cb = iterator = false;
- }
- callback();
- });
- }
- if (arguments.length > 3) {
- eachfn(arr, limit, iteratee, done);
- } else {
- cb = iterator;
- iterator = limit;
- eachfn(arr, iteratee, done);
- }
- };
- }
-
- async.any =
- async.some = _createTester(async.eachOf, toBool, identity);
-
- async.someLimit = _createTester(async.eachOfLimit, toBool, identity);
-
- async.all =
- async.every = _createTester(async.eachOf, notId, notId);
-
- async.everyLimit = _createTester(async.eachOfLimit, notId, notId);
-
- function _findGetResult(v, x) {
- return x;
- }
- async.detect = _createTester(async.eachOf, identity, _findGetResult);
- async.detectSeries = _createTester(async.eachOfSeries, identity, _findGetResult);
- async.detectLimit = _createTester(async.eachOfLimit, identity, _findGetResult);
-
- async.sortBy = function (arr, iterator, callback) {
- async.map(arr, function (x, callback) {
- iterator(x, function (err, criteria) {
- if (err) {
- callback(err);
- }
- else {
- callback(null, {value: x, criteria: criteria});
- }
- });
- }, function (err, results) {
- if (err) {
- return callback(err);
- }
- else {
- callback(null, _map(results.sort(comparator), function (x) {
- return x.value;
- }));
- }
-
- });
-
- function comparator(left, right) {
- var a = left.criteria, b = right.criteria;
- return a < b ? -1 : a > b ? 1 : 0;
- }
- };
-
- async.auto = function (tasks, concurrency, callback) {
- if (typeof arguments[1] === 'function') {
- // concurrency is optional, shift the args.
- callback = concurrency;
- concurrency = null;
- }
- callback = _once(callback || noop);
- var keys = _keys(tasks);
- var remainingTasks = keys.length;
- if (!remainingTasks) {
- return callback(null);
- }
- if (!concurrency) {
- concurrency = remainingTasks;
- }
-
- var results = {};
- var runningTasks = 0;
-
- var hasError = false;
-
- var listeners = [];
- function addListener(fn) {
- listeners.unshift(fn);
- }
- function removeListener(fn) {
- var idx = _indexOf(listeners, fn);
- if (idx >= 0) listeners.splice(idx, 1);
- }
- function taskComplete() {
- remainingTasks--;
- _arrayEach(listeners.slice(0), function (fn) {
- fn();
- });
- }
-
- addListener(function () {
- if (!remainingTasks) {
- callback(null, results);
- }
- });
-
- _arrayEach(keys, function (k) {
- if (hasError) return;
- var task = _isArray(tasks[k]) ? tasks[k]: [tasks[k]];
- var taskCallback = _restParam(function(err, args) {
- runningTasks--;
- if (args.length <= 1) {
- args = args[0];
- }
- if (err) {
- var safeResults = {};
- _forEachOf(results, function(val, rkey) {
- safeResults[rkey] = val;
- });
- safeResults[k] = args;
- hasError = true;
-
- callback(err, safeResults);
- }
- else {
- results[k] = args;
- async.setImmediate(taskComplete);
- }
- });
- var requires = task.slice(0, task.length - 1);
- // prevent dead-locks
- var len = requires.length;
- var dep;
- while (len--) {
- if (!(dep = tasks[requires[len]])) {
- throw new Error('Has nonexistent dependency in ' + requires.join(', '));
- }
- if (_isArray(dep) && _indexOf(dep, k) >= 0) {
- throw new Error('Has cyclic dependencies');
- }
- }
- function ready() {
- return runningTasks < concurrency && _reduce(requires, function (a, x) {
- return (a && results.hasOwnProperty(x));
- }, true) && !results.hasOwnProperty(k);
- }
- if (ready()) {
- runningTasks++;
- task[task.length - 1](taskCallback, results);
- }
- else {
- addListener(listener);
- }
- function listener() {
- if (ready()) {
- runningTasks++;
- removeListener(listener);
- task[task.length - 1](taskCallback, results);
- }
- }
- });
- };
-
-
-
- async.retry = function(times, task, callback) {
- var DEFAULT_TIMES = 5;
- var DEFAULT_INTERVAL = 0;
-
- var attempts = [];
-
- var opts = {
- times: DEFAULT_TIMES,
- interval: DEFAULT_INTERVAL
- };
-
- function parseTimes(acc, t){
- if(typeof t === 'number'){
- acc.times = parseInt(t, 10) || DEFAULT_TIMES;
- } else if(typeof t === 'object'){
- acc.times = parseInt(t.times, 10) || DEFAULT_TIMES;
- acc.interval = parseInt(t.interval, 10) || DEFAULT_INTERVAL;
- } else {
- throw new Error('Unsupported argument type for \'times\': ' + typeof t);
- }
- }
-
- var length = arguments.length;
- if (length < 1 || length > 3) {
- throw new Error('Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)');
- } else if (length <= 2 && typeof times === 'function') {
- callback = task;
- task = times;
- }
- if (typeof times !== 'function') {
- parseTimes(opts, times);
- }
- opts.callback = callback;
- opts.task = task;
-
- function wrappedTask(wrappedCallback, wrappedResults) {
- function retryAttempt(task, finalAttempt) {
- return function(seriesCallback) {
- task(function(err, result){
- seriesCallback(!err || finalAttempt, {err: err, result: result});
- }, wrappedResults);
- };
- }
-
- function retryInterval(interval){
- return function(seriesCallback){
- setTimeout(function(){
- seriesCallback(null);
- }, interval);
- };
- }
-
- while (opts.times) {
-
- var finalAttempt = !(opts.times-=1);
- attempts.push(retryAttempt(opts.task, finalAttempt));
- if(!finalAttempt && opts.interval > 0){
- attempts.push(retryInterval(opts.interval));
- }
- }
-
- async.series(attempts, function(done, data){
- data = data[data.length - 1];
- (wrappedCallback || opts.callback)(data.err, data.result);
- });
- }
-
- // If a callback is passed, run this as a controll flow
- return opts.callback ? wrappedTask() : wrappedTask;
- };
-
- async.waterfall = function (tasks, callback) {
- callback = _once(callback || noop);
- if (!_isArray(tasks)) {
- var err = new Error('First argument to waterfall must be an array of functions');
- return callback(err);
- }
- if (!tasks.length) {
- return callback();
- }
- function wrapIterator(iterator) {
- return _restParam(function (err, args) {
- if (err) {
- callback.apply(null, [err].concat(args));
- }
- else {
- var next = iterator.next();
- if (next) {
- args.push(wrapIterator(next));
- }
- else {
- args.push(callback);
- }
- ensureAsync(iterator).apply(null, args);
- }
- });
- }
- wrapIterator(async.iterator(tasks))();
- };
-
- function _parallel(eachfn, tasks, callback) {
- callback = callback || noop;
- var results = _isArrayLike(tasks) ? [] : {};
-
- eachfn(tasks, function (task, key, callback) {
- task(_restParam(function (err, args) {
- if (args.length <= 1) {
- args = args[0];
- }
- results[key] = args;
- callback(err);
- }));
- }, function (err) {
- callback(err, results);
- });
- }
-
- async.parallel = function (tasks, callback) {
- _parallel(async.eachOf, tasks, callback);
- };
-
- async.parallelLimit = function(tasks, limit, callback) {
- _parallel(_eachOfLimit(limit), tasks, callback);
- };
-
- async.series = function(tasks, callback) {
- _parallel(async.eachOfSeries, tasks, callback);
- };
-
- async.iterator = function (tasks) {
- function makeCallback(index) {
- function fn() {
- if (tasks.length) {
- tasks[index].apply(null, arguments);
- }
- return fn.next();
- }
- fn.next = function () {
- return (index < tasks.length - 1) ? makeCallback(index + 1): null;
- };
- return fn;
- }
- return makeCallback(0);
- };
-
- async.apply = _restParam(function (fn, args) {
- return _restParam(function (callArgs) {
- return fn.apply(
- null, args.concat(callArgs)
- );
- });
- });
-
- function _concat(eachfn, arr, fn, callback) {
- var result = [];
- eachfn(arr, function (x, index, cb) {
- fn(x, function (err, y) {
- result = result.concat(y || []);
- cb(err);
- });
- }, function (err) {
- callback(err, result);
- });
- }
- async.concat = doParallel(_concat);
- async.concatSeries = doSeries(_concat);
-
- async.whilst = function (test, iterator, callback) {
- callback = callback || noop;
- if (test()) {
- var next = _restParam(function(err, args) {
- if (err) {
- callback(err);
- } else if (test.apply(this, args)) {
- iterator(next);
- } else {
- callback.apply(null, [null].concat(args));
- }
- });
- iterator(next);
- } else {
- callback(null);
- }
- };
-
- async.doWhilst = function (iterator, test, callback) {
- var calls = 0;
- return async.whilst(function() {
- return ++calls <= 1 || test.apply(this, arguments);
- }, iterator, callback);
- };
-
- async.until = function (test, iterator, callback) {
- return async.whilst(function() {
- return !test.apply(this, arguments);
- }, iterator, callback);
- };
-
- async.doUntil = function (iterator, test, callback) {
- return async.doWhilst(iterator, function() {
- return !test.apply(this, arguments);
- }, callback);
- };
-
- async.during = function (test, iterator, callback) {
- callback = callback || noop;
-
- var next = _restParam(function(err, args) {
- if (err) {
- callback(err);
- } else {
- args.push(check);
- test.apply(this, args);
- }
- });
-
- var check = function(err, truth) {
- if (err) {
- callback(err);
- } else if (truth) {
- iterator(next);
- } else {
- callback(null);
- }
- };
-
- test(check);
- };
-
- async.doDuring = function (iterator, test, callback) {
- var calls = 0;
- async.during(function(next) {
- if (calls++ < 1) {
- next(null, true);
- } else {
- test.apply(this, arguments);
- }
- }, iterator, callback);
- };
-
- function _queue(worker, concurrency, payload) {
- if (concurrency == null) {
- concurrency = 1;
- }
- else if(concurrency === 0) {
- throw new Error('Concurrency must not be zero');
- }
- function _insert(q, data, pos, callback) {
- if (callback != null && typeof callback !== "function") {
- throw new Error("task callback must be a function");
- }
- q.started = true;
- if (!_isArray(data)) {
- data = [data];
- }
- if(data.length === 0 && q.idle()) {
- // call drain immediately if there are no tasks
- return async.setImmediate(function() {
- q.drain();
- });
- }
- _arrayEach(data, function(task) {
- var item = {
- data: task,
- callback: callback || noop
- };
-
- if (pos) {
- q.tasks.unshift(item);
- } else {
- q.tasks.push(item);
- }
-
- if (q.tasks.length === q.concurrency) {
- q.saturated();
- }
- });
- async.setImmediate(q.process);
- }
- function _next(q, tasks) {
- return function(){
- workers -= 1;
-
- var removed = false;
- var args = arguments;
- _arrayEach(tasks, function (task) {
- _arrayEach(workersList, function (worker, index) {
- if (worker === task && !removed) {
- workersList.splice(index, 1);
- removed = true;
- }
- });
-
- task.callback.apply(task, args);
- });
- if (q.tasks.length + workers === 0) {
- q.drain();
- }
- q.process();
- };
- }
-
- var workers = 0;
- var workersList = [];
- var q = {
- tasks: [],
- concurrency: concurrency,
- payload: payload,
- saturated: noop,
- empty: noop,
- drain: noop,
- started: false,
- paused: false,
- push: function (data, callback) {
- _insert(q, data, false, callback);
- },
- kill: function () {
- q.drain = noop;
- q.tasks = [];
- },
- unshift: function (data, callback) {
- _insert(q, data, true, callback);
- },
- process: function () {
- while(!q.paused && workers < q.concurrency && q.tasks.length){
-
- var tasks = q.payload ?
- q.tasks.splice(0, q.payload) :
- q.tasks.splice(0, q.tasks.length);
-
- var data = _map(tasks, function (task) {
- return task.data;
- });
-
- if (q.tasks.length === 0) {
- q.empty();
- }
- workers += 1;
- workersList.push(tasks[0]);
- var cb = only_once(_next(q, tasks));
- worker(data, cb);
- }
- },
- length: function () {
- return q.tasks.length;
- },
- running: function () {
- return workers;
- },
- workersList: function () {
- return workersList;
- },
- idle: function() {
- return q.tasks.length + workers === 0;
- },
- pause: function () {
- q.paused = true;
- },
- resume: function () {
- if (q.paused === false) { return; }
- q.paused = false;
- var resumeCount = Math.min(q.concurrency, q.tasks.length);
- // Need to call q.process once per concurrent
- // worker to preserve full concurrency after pause
- for (var w = 1; w <= resumeCount; w++) {
- async.setImmediate(q.process);
- }
- }
- };
- return q;
- }
-
- async.queue = function (worker, concurrency) {
- var q = _queue(function (items, cb) {
- worker(items[0], cb);
- }, concurrency, 1);
-
- return q;
- };
-
- async.priorityQueue = function (worker, concurrency) {
-
- function _compareTasks(a, b){
- return a.priority - b.priority;
- }
-
- function _binarySearch(sequence, item, compare) {
- var beg = -1,
- end = sequence.length - 1;
- while (beg < end) {
- var mid = beg + ((end - beg + 1) >>> 1);
- if (compare(item, sequence[mid]) >= 0) {
- beg = mid;
- } else {
- end = mid - 1;
- }
- }
- return beg;
- }
-
- function _insert(q, data, priority, callback) {
- if (callback != null && typeof callback !== "function") {
- throw new Error("task callback must be a function");
- }
- q.started = true;
- if (!_isArray(data)) {
- data = [data];
- }
- if(data.length === 0) {
- // call drain immediately if there are no tasks
- return async.setImmediate(function() {
- q.drain();
- });
- }
- _arrayEach(data, function(task) {
- var item = {
- data: task,
- priority: priority,
- callback: typeof callback === 'function' ? callback : noop
- };
-
- q.tasks.splice(_binarySearch(q.tasks, item, _compareTasks) + 1, 0, item);
-
- if (q.tasks.length === q.concurrency) {
- q.saturated();
- }
- async.setImmediate(q.process);
- });
- }
-
- // Start with a normal queue
- var q = async.queue(worker, concurrency);
-
- // Override push to accept second parameter representing priority
- q.push = function (data, priority, callback) {
- _insert(q, data, priority, callback);
- };
-
- // Remove unshift function
- delete q.unshift;
-
- return q;
- };
-
- async.cargo = function (worker, payload) {
- return _queue(worker, 1, payload);
- };
-
- function _console_fn(name) {
- return _restParam(function (fn, args) {
- fn.apply(null, args.concat([_restParam(function (err, args) {
- if (typeof console === 'object') {
- if (err) {
- if (console.error) {
- console.error(err);
- }
- }
- else if (console[name]) {
- _arrayEach(args, function (x) {
- console[name](x);
- });
- }
- }
- })]));
- });
- }
- async.log = _console_fn('log');
- async.dir = _console_fn('dir');
- /*async.info = _console_fn('info');
- async.warn = _console_fn('warn');
- async.error = _console_fn('error');*/
-
- async.memoize = function (fn, hasher) {
- var memo = {};
- var queues = {};
- var has = Object.prototype.hasOwnProperty;
- hasher = hasher || identity;
- var memoized = _restParam(function memoized(args) {
- var callback = args.pop();
- var key = hasher.apply(null, args);
- if (has.call(memo, key)) {
- async.setImmediate(function () {
- callback.apply(null, memo[key]);
- });
- }
- else if (has.call(queues, key)) {
- queues[key].push(callback);
- }
- else {
- queues[key] = [callback];
- fn.apply(null, args.concat([_restParam(function (args) {
- memo[key] = args;
- var q = queues[key];
- delete queues[key];
- for (var i = 0, l = q.length; i < l; i++) {
- q[i].apply(null, args);
- }
- })]));
- }
- });
- memoized.memo = memo;
- memoized.unmemoized = fn;
- return memoized;
- };
-
- async.unmemoize = function (fn) {
- return function () {
- return (fn.unmemoized || fn).apply(null, arguments);
- };
- };
-
- function _times(mapper) {
- return function (count, iterator, callback) {
- mapper(_range(count), iterator, callback);
- };
- }
-
- async.times = _times(async.map);
- async.timesSeries = _times(async.mapSeries);
- async.timesLimit = function (count, limit, iterator, callback) {
- return async.mapLimit(_range(count), limit, iterator, callback);
- };
-
- async.seq = function (/* functions... */) {
- var fns = arguments;
- return _restParam(function (args) {
- var that = this;
-
- var callback = args[args.length - 1];
- if (typeof callback == 'function') {
- args.pop();
- } else {
- callback = noop;
- }
-
- async.reduce(fns, args, function (newargs, fn, cb) {
- fn.apply(that, newargs.concat([_restParam(function (err, nextargs) {
- cb(err, nextargs);
- })]));
- },
- function (err, results) {
- callback.apply(that, [err].concat(results));
- });
- });
- };
-
- async.compose = function (/* functions... */) {
- return async.seq.apply(null, Array.prototype.reverse.call(arguments));
- };
-
-
- function _applyEach(eachfn) {
- return _restParam(function(fns, args) {
- var go = _restParam(function(args) {
- var that = this;
- var callback = args.pop();
- return eachfn(fns, function (fn, _, cb) {
- fn.apply(that, args.concat([cb]));
- },
- callback);
- });
- if (args.length) {
- return go.apply(this, args);
- }
- else {
- return go;
- }
- });
- }
-
- async.applyEach = _applyEach(async.eachOf);
- async.applyEachSeries = _applyEach(async.eachOfSeries);
-
-
- async.forever = function (fn, callback) {
- var done = only_once(callback || noop);
- var task = ensureAsync(fn);
- function next(err) {
- if (err) {
- return done(err);
- }
- task(next);
- }
- next();
- };
-
- function ensureAsync(fn) {
- return _restParam(function (args) {
- var callback = args.pop();
- args.push(function () {
- var innerArgs = arguments;
- if (sync) {
- async.setImmediate(function () {
- callback.apply(null, innerArgs);
- });
- } else {
- callback.apply(null, innerArgs);
- }
- });
- var sync = true;
- fn.apply(this, args);
- sync = false;
- });
- }
-
- async.ensureAsync = ensureAsync;
-
- async.constant = _restParam(function(values) {
- var args = [null].concat(values);
- return function (callback) {
- return callback.apply(this, args);
- };
- });
-
- async.wrapSync =
- async.asyncify = function asyncify(func) {
- return _restParam(function (args) {
- var callback = args.pop();
- var result;
- try {
- result = func.apply(this, args);
- } catch (e) {
- return callback(e);
- }
- // if result is Promise object
- if (_isObject(result) && typeof result.then === "function") {
- result.then(function(value) {
- callback(null, value);
- })["catch"](function(err) {
- callback(err.message ? err : new Error(err));
- });
- } else {
- callback(null, result);
- }
- });
- };
-
- // Node.js
- if (typeof module === 'object' && module.exports) {
- module.exports = async;
- }
- // AMD / RequireJS
- else if (typeof define === 'function' && define.amd) {
- define([], function () {
- return async;
- });
- }
- // included directly via
-
-
-